:root {
  --navy: #1a237e;
  --navy-2: #3949ab;
  --gold: #c9a227;
  --bg: #f3f5f9;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #fff;
  --border: #e5e7eb;
  --danger: #b91c1c;
  --ok: #047857;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.site-header { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; }
.nav { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.nav a { color: #e8eaf6; font-size: .92rem; }
.main { padding: 28px 0 48px; }
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 18px 0; color: var(--muted); font-size: .9rem; }
.hero { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 24px; box-shadow: 0 8px 30px rgba(26,35,126,.06); }
.hero h1 { margin: 0 0 8px; color: var(--navy); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.btn { display: inline-block; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff !important; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.btn-outline { background: #fff; color: var(--navy) !important; border: 1px solid var(--navy-2); }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.muted { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.card.mini { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert.ok { background: #ecfdf5; color: var(--ok); border: 1px solid #a7f3d0; }
.alert.err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0; }
.gallery-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 8px; font-size: .85rem; }
.gallery-admin-panel .gallery-upload-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(201,169,98,.14);
  background: linear-gradient(180deg, #fffdf8, #fff);
}
.gallery-admin-panel .gallery-upload-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: #073b66;
  font-size: .7rem;
  font-weight: 700;
}
.gallery-admin-panel .gallery-upload-form input {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  font: 500 .8rem/1.25 "Montserrat", "Segoe UI", system-ui, sans-serif;
}
.gallery-grid--admin {
  padding: 16px 18px 20px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-grid--admin .gallery-item {
  border: 1px solid rgba(201,169,98,.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #faf8f5);
  box-shadow: 0 6px 16px rgba(15,23,41,.05);
}
.gallery-grid--admin .gallery-item img {
  height: 150px;
  object-fit: cover;
}
.gallery-grid--admin figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px 12px;
}
.gallery-grid--admin figcaption strong {
  color: #0f1729;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
}
.gallery-grid--admin figcaption small {
  color: #806725;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gallery-item__missing {
  display: grid;
  place-items: center;
  height: 150px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 600;
}
.gallery-empty { grid-column: 1 / -1; color: #64748b; padding: 24px; text-align: center; }
@media (max-width: 900px) {
  .gallery-admin-panel .gallery-upload-form { grid-template-columns: 1fr; }
}

.admin-body { margin: 0; min-height: 100vh; font-family: "Montserrat", "Segoe UI", system-ui, sans-serif; background: radial-gradient(circle at 8% 5%, rgba(201,169,98,.08), transparent 25%), linear-gradient(180deg, #f4f6fa 0%, #eef1f6 100%); }
.admin-header { position: relative; z-index: 40; background: linear-gradient(115deg, #021428 0%, #031d3b 48%, #073b66 100%); color: #fff; box-shadow: 0 10px 34px rgba(8,16,33,.24); }
.admin-header::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent 5%, #9e7c32 28%, #efd99b 50%, #9e7c32 72%, transparent 95%); opacity: .9; }
.admin-header__inner { width: min(1280px, 92%); margin: 0 auto; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-header__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; min-width: 0; }
.admin-brand__logo { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); background: #fff; border-radius: 50%; padding: 3px; }
.admin-brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.admin-brand__text strong { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-brand__text small { margin-top: 3px; color: #cbd4e9; font-size: .65rem; letter-spacing: .04em; }

.admin-header__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-btn { display: inline-block; padding: 9px 14px; border-radius: 9px; border: 1px solid transparent; font-size: .76rem; font-weight: 650; text-decoration: none !important; }
.admin-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.admin-btn--ghost:hover { border-color: rgba(232,213,163,.65); background: rgba(255,255,255,.13); }
.admin-btn--danger { color: #fff !important; background: linear-gradient(135deg, #9f1d2d, #c72c3d); box-shadow: 0 5px 14px rgba(159,29,45,.25); }

/* Account launcher — right side */
.admin-launcher { position: relative; flex: 0 0 auto; }
.admin-launcher--account { margin-left: 2px; }
.admin-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  min-height: 46px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.admin-account:hover,
.admin-account.is-open {
  border-color: rgba(229,189,101,.65);
  background: rgba(255,255,255,.14);
}
.admin-account__avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(229,189,101,.55);
  background: linear-gradient(145deg, #073b66, #031d3b);
}
.admin-account__avatar--lg { width: 48px; height: 48px; }
.admin-account__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.admin-account__initials {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #efd99b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.admin-account__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
  text-align: left;
}
.admin-account__meta small {
  color: #aebbd7;
  font-size: .52rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-account__meta strong {
  max-width: 150px;
  overflow: hidden;
  color: #fff;
  font-size: .78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-account__chevron {
  color: #efd99b;
  font-size: .7rem;
  line-height: 1;
  transition: transform .15s;
}
.admin-account.is-open .admin-account__chevron { transform: rotate(180deg); }

.admin-launcher__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  z-index: 50;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(201,154,61,.35);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
  box-shadow: 0 22px 48px rgba(2,10,24,.35);
}
.admin-launcher__panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 28px;
  left: auto;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(201,154,61,.35);
  border-top: 1px solid rgba(201,154,61,.35);
  background: #fff;
  transform: rotate(45deg);
}
.admin-launcher__account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid #e8e6e0;
}
.admin-launcher__account-head strong {
  display: block;
  color: #031d3b;
  font-size: .9rem;
  font-weight: 700;
}
.admin-launcher__account-head span { color: #7a8798; font-size: .72rem; }
.admin-launcher__panel-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding: 0 6px 10px;
}
.admin-launcher__panel-head strong {
  color: #031d3b;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-launcher__panel-head span { color: #7a8798; font-size: .68rem; }
.admin-launcher__group-label {
  margin: 4px 6px 8px;
  color: #9a7830;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-launcher__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.admin-launcher__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .12s;
}
.admin-launcher__item:hover,
.admin-launcher__item.is-active {
  border-color: rgba(201,154,61,.4);
  background: rgba(201,154,61,.08);
  transform: translateY(-1px);
}
.admin-launcher__item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15,23,41,.16);
}
.admin-launcher__item-icon svg { width: 20px; height: 20px; fill: currentColor; }
.admin-launcher__item-label {
  color: #101a31;
  font-size: .68rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.25;
}
.admin-launcher__item--navy .admin-launcher__item-icon { background: linear-gradient(135deg, #031d3b, #073b66); }
.admin-launcher__item--blue .admin-launcher__item-icon { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.admin-launcher__item--teal .admin-launcher__item-icon { background: linear-gradient(135deg, #00695c, #26a69a); }
.admin-launcher__item--orange .admin-launcher__item-icon { background: linear-gradient(135deg, #e65100, #ff9800); }
.admin-launcher__item--indigo .admin-launcher__item-icon { background: linear-gradient(135deg, #283593, #5c6bc0); }
.admin-launcher__item--violet .admin-launcher__item-icon { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.admin-launcher__item--pink .admin-launcher__item-icon { background: linear-gradient(135deg, #ad1457, #ec407a); }
.admin-launcher__item--green .admin-launcher__item-icon { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.admin-launcher__item--slate .admin-launcher__item-icon { background: linear-gradient(135deg, #37474f, #78909c); }
.admin-launcher__item--gold .admin-launcher__item-icon { background: linear-gradient(135deg, #b8860b, #c9a227); }
.admin-launcher__footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8e6e0;
}
.admin-launcher__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9f1d2d, #c72c3d);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(159,29,45,.22);
}
.admin-launcher__logout:hover { filter: brightness(1.06); }

.admin-main { width: min(1280px, 92%); margin: 0 auto; padding: 22px 0 48px; }
.admin-main--launcher { padding-top: 26px; }
.admin-pagehead h1 { margin: 0 0 14px; font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 1.35rem; color: var(--navy); letter-spacing: .02em; }
.admin-content { min-width: 0; }
.admin-quicknav-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(15,23,42,.04); }
.admin-quicknav { display: flex; align-items: stretch; width: min(1200px, 94%); margin: 0 auto; overflow: hidden; }
.admin-quicknav__home { display: inline-flex; align-items: center; padding: 10px 14px; font-size: .86rem; font-weight: 600; color: var(--navy) !important; text-decoration: none !important; border-right: 1px solid var(--border); white-space: nowrap; }
.admin-quicknav__items { display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; flex: 1; }
.admin-quicknav__link { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: .84rem; color: var(--muted) !important; text-decoration: none !important; white-space: nowrap; }
.admin-quicknav__link:hover { background: #eef2ff; color: var(--navy) !important; }
.admin-quicknav__link.is-active { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff !important; }

.dashboard-luxury { display: grid; gap: 24px; animation: memberPanelIn .45s ease-out; }
.launcher-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .65fr); min-height: 280px; overflow: hidden; border: 1px solid rgba(201,169,98,.36); border-radius: 24px; background: radial-gradient(circle at 82% 28%, rgba(81,104,197,.45), transparent 28%), radial-gradient(circle at 100% 100%, rgba(201,169,98,.23), transparent 35%), linear-gradient(125deg, #081021 0%, #101d3d 58%, #1d326d 100%); box-shadow: 0 24px 55px rgba(10,20,45,.2); }
.launcher-hero::before { content: ""; position: absolute; top: -70%; right: 17%; width: 310px; height: 540px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; transform: rotate(38deg); }
.launcher-hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, transparent, #a98539 24%, #ecd89f 50%, #a98539 76%, transparent); }
.launcher-hero__content { position: relative; z-index: 1; align-self: center; padding: 42px 48px; }
.launcher-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #e6cf91; font-size: .66rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.launcher-eyebrow span { width: 28px; height: 1px; background: #d8b964; }
.launcher-hero h1 { margin: 0; color: #fff; font-family: "Oswald", "Arial Narrow", sans-serif; font-size: clamp(1.55rem, 3.2vw, 2.55rem); font-weight: 600; letter-spacing: .01em; line-height: 1.12; }
.launcher-hero h1 em { color: #efd99b; font-style: normal; }
.launcher-hero__content > p:not(.launcher-eyebrow) { max-width: 690px; margin: 15px 0 0; color: #cbd5e8; font-size: .88rem; line-height: 1.72; }
.launcher-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.dashboard-primary, .dashboard-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 17px; border-radius: 10px; font-size: .75rem; font-weight: 750; text-decoration: none !important; }
.dashboard-primary { border: 1px solid #e1c77e; background: linear-gradient(135deg, #d8b964, #f0dc9f); color: #101a34 !important; box-shadow: 0 8px 20px rgba(201,169,98,.2); }
.dashboard-primary span { font-size: 1rem; transition: transform .2s ease; }
.dashboard-primary:hover span { transform: translateX(3px); }
.dashboard-secondary { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #fff !important; }
.launcher-hero__identity { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 26px 28px 26px 0; border-left: 1px solid rgba(232,213,163,.2); color: #fff; text-align: center; }
.launcher-hero__logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.launcher-hero__monogram { width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid rgba(239,217,155,.55); border-radius: 50%; color: #f0daa0; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .09em; box-shadow: inset 0 0 0 7px rgba(255,255,255,.035), 0 12px 30px rgba(0,0,0,.2); }
.launcher-hero__identity > small { margin-top: 10px; color: #9eabc8; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; }
.launcher-hero__total { display: flex; align-items: center; flex-direction: column; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.launcher-hero__total strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; }
.launcher-hero__total span { margin-top: 3px; color: #e2ca87; font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-section { padding: 22px; border: 1px solid rgba(201,169,98,.2); border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: 0 14px 38px rgba(15,23,41,.07); }
.dashboard-section__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 0 2px 15px; border-bottom: 1px solid #eae7df; }
.dashboard-section__header p { margin: 0 0 4px; color: #9a7830; font-size: .6rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.dashboard-section__header h2 { margin: 0; color: #101a31; font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 1.35rem; font-weight: 600; }
.dashboard-section__header > span { color: #7b8496; font-size: .66rem; }
.launcher-group__desc { display: block; margin-top: 6px; color: #7a8290; font-size: .74rem; line-height: 1.45; font-weight: 500; letter-spacing: 0; text-transform: none; }
.launcher-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.launcher-group { position: relative; overflow: hidden; }
.launcher-group::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c99a3d 20%, #e5bd65 50%, #c99a3d 80%, transparent);
}
.launcher-group--admin { background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); }
.launcher-group--website { background: linear-gradient(180deg, #fff 0%, #faf8f4 100%); }
.launcher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.launcher-grid--group { grid-template-columns: 1fr; gap: 10px; }
.launcher-tile { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 92px; padding: 16px; overflow: hidden; border: 1px solid #e8e6e0; border-radius: 15px; background: linear-gradient(145deg, #fff, #faf9f6); box-shadow: 0 5px 16px rgba(15,23,41,.045); text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.launcher-tile::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #c9a962; opacity: 0; transition: opacity .2s ease; }
.launcher-tile:hover { border-color: rgba(201,169,98,.52); transform: translateY(-3px); box-shadow: 0 13px 26px rgba(15,23,41,.11); }
.launcher-tile:hover::before { opacity: 1; }
.launcher-tile__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: #fff; box-shadow: 0 7px 17px rgba(15,23,41,.16); }
.launcher-tile__icon svg { width: 23px; height: 23px; fill: currentColor; }
.launcher-tile__body { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.launcher-tile__label { color: #101a31; font-family: Georgia, "Times New Roman", serif; font-size: .92rem; font-weight: 650; line-height: 1.2; }
.launcher-tile__body small { overflow: hidden; color: #7a8290; font-size: .61rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.launcher-tile__arrow { color: #9b7b36; font-size: 1rem; transition: transform .2s ease; }
.launcher-tile:hover .launcher-tile__arrow { transform: translateX(3px); }
.launcher-tile__badge { position: absolute; top: 8px; right: 9px; min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: #111a31; color: #fff; font-size: .58rem; font-weight: 750; box-shadow: 0 3px 8px rgba(15,23,41,.2); }
.launcher-tile--navy .launcher-tile__icon { background: linear-gradient(135deg, #1a237e, #3949ab); }
.launcher-tile--blue .launcher-tile__icon { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.launcher-tile--teal .launcher-tile__icon { background: linear-gradient(135deg, #00695c, #26a69a); }
.launcher-tile--orange .launcher-tile__icon { background: linear-gradient(135deg, #e65100, #ff9800); }
.launcher-tile--indigo .launcher-tile__icon { background: linear-gradient(135deg, #283593, #5c6bc0); }
.launcher-tile--violet .launcher-tile__icon { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.launcher-tile--pink .launcher-tile__icon { background: linear-gradient(135deg, #ad1457, #ec407a); }
.launcher-tile--green .launcher-tile__icon { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.launcher-tile--slate .launcher-tile__icon { background: linear-gradient(135deg, #37474f, #78909c); }
.launcher-tile--gold .launcher-tile__icon { background: linear-gradient(135deg, #b8860b, #c9a227); }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stat { position: relative; overflow: hidden; padding: 16px 15px 14px; border: 1px solid #e7e4dc; border-radius: 14px; background: linear-gradient(145deg, #fff, #f9f8f5); }
.stat::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: #23355b; }
.stat--agency::before { background: #1f7a72; }
.stat--open::before { background: #d97706; }
.stat--closed::before { background: #18815a; }
.stat--posts::before { background: #4c5db5; }
.stat--events::before { background: #8a3ca1; }
.stat span { display: block; color: #687184; font-size: .63rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat strong { display: block; margin: 7px 0 5px; color: #111b32; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 600; }
.stat small { color: #9298a5; font-size: .57rem; }
.dashboard-warning { box-shadow: 0 10px 28px rgba(180,83,9,.07); }
.dashboard-note { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid rgba(201,169,98,.25); border-radius: 12px; background: rgba(255,252,244,.82); color: #6f644e; }
.dashboard-note > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 50%; background: #19294e; color: #efd99b; font-family: Georgia, serif; font-size: .72rem; font-weight: 700; }
.dashboard-note p { margin: 0; font-size: .67rem; line-height: 1.5; }
.dashboard-note strong { margin-right: 5px; color: #182541; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; font-size: .92rem; }
.table th { background: #eef1f8; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.row-warn { background: #fff7ed; }
.panel.warn { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 14px; }
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px 16px;
  color: #031d3b;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(201, 154, 61, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(7, 59, 102, 0.55), transparent 50%),
    linear-gradient(160deg, #021428 0%, #031d3b 42%, #073b66 100%);
}

.auth-shell {
  width: min(440px, 100%);
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 36px 32px 28px;
  border: 1px solid rgba(201, 154, 61, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f7f8fb 100%);
  box-shadow:
    0 28px 64px rgba(2, 10, 24, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #e5bd65 20%, #c99a3d 50%, #e5bd65 80%, transparent);
}

.auth-card__brand {
  text-align: center;
  margin-bottom: 26px;
}

.auth-card__logo {
  display: block;
  width: 108px;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 14px rgba(3, 29, 59, 0.18));
}

.auth-card__eyebrow {
  margin: 0 0 8px;
  color: #c99a3d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card__brand h1 {
  margin: 0;
  color: #031d3b;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.2;
}

.auth-card__subtitle {
  margin: 8px 0 0;
  color: #073b66;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.auth-card__alert {
  margin-bottom: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  color: #073b66;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d4e3;
  border-radius: 10px;
  background: #fff;
  color: #031d3b;
  font: 500 0.95rem/1.2 "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: #c99a3d;
  box-shadow: 0 0 0 3px rgba(201, 154, 61, 0.18);
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 48px;
}

.auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #5a6b7d;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s, background 0.15s;
}

.auth-password__toggle:hover {
  color: #031d3b;
  background: rgba(3, 29, 59, 0.06);
}

.auth-password__toggle svg {
  width: 20px;
  height: 20px;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #073b66 0%, #031d3b 100%);
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(3, 29, 59, 0.28);
  transition: transform 0.12s, filter 0.15s;
}

.auth-submit:hover {
  filter: brightness(1.08);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-card__footnote {
  margin: 20px 0 0;
  color: #7a8798;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px 22px; }
  .auth-card__logo { width: 92px; }
  .auth-card__brand h1 { font-size: 1.15rem; letter-spacing: 0.02em; }
}

.data-panel { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fdfbf7 100%); border: 1px solid rgba(201,169,98,.22); border-radius: 16px; box-shadow: 0 18px 45px rgba(15,23,41,.1), 0 0 0 1px rgba(255,255,255,.6) inset; animation: memberPanelIn .45s ease-out; }
.data-panel::before { content: ""; position: absolute; z-index: 2; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, transparent, #a98539 18%, #e8d5a3 50%, #a98539 82%, transparent); }
@keyframes memberPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.data-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px 20px; border-bottom: 1px solid rgba(201,169,98,.18); background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(201,169,98,.1), transparent 55%), linear-gradient(135deg, #fff 0%, #faf8f5 62%, rgba(250,248,245,.9) 100%); }
.data-panel__header h2 { margin: 3px 0 4px; color: #0f1729; font-size: 1.35rem; letter-spacing: .02em; }
.data-panel__header p { margin: 0; color: var(--muted); font-size: .86rem; }
.data-panel__eyebrow { color: #a98539 !important; font-size: .7rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.data-panel__add { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: linear-gradient(180deg, #243656, #0f1729); box-shadow: 0 6px 16px rgba(15,23,41,.18); }
.sample-mode-note { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid rgba(201,169,98,.2); background: #fff8e8; color: #725816; font-size: .78rem; }
.sample-mode-note strong { white-space: nowrap; }
.sample-mode-note span { color: #806f45; }
.data-panel__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid rgba(201,169,98,.12); background: linear-gradient(180deg, rgba(250,248,245,.95), #fff); }
.data-panel__result { color: #64748b; font-size: .8rem; white-space: nowrap; }
.member-search { width: min(520px, 100%); display: flex; align-items: center; position: relative; }
.member-search__icon { position: absolute; left: 13px; width: 18px; height: 18px; color: #94a3b8; pointer-events: none; }
.member-search__icon svg { width: 100%; height: 100%; fill: currentColor; }
.member-search input { width: 100%; height: 42px; padding: 8px 38px 8px 40px; border: 1px solid #ddd7ca; border-radius: 10px 0 0 10px; background: #fff; color: var(--text); font: inherit; font-size: .88rem; outline: none; }
.member-search input:focus { border-color: #c9a962; box-shadow: 0 0 0 3px rgba(201,169,98,.13); }
.member-search button { height: 42px; border-radius: 0 10px 10px 0; padding-inline: 18px; }
.member-search__clear { position: absolute; right: 68px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #64748b; font-size: 1.15rem; text-decoration: none !important; }
.member-search__clear:hover { background: #e2e8f0; }
.table-responsive { width: 100%; overflow-x: auto; padding: 12px 16px 16px; }
.member-table { width: 100%; min-width: 1150px; overflow: hidden; border: 1px solid rgba(201,169,98,.15); border-radius: 14px; border-collapse: separate; border-spacing: 0; box-shadow: 0 8px 24px rgba(15,23,41,.08); }
.member-table th { padding: 12px 10px; border-bottom: 2px solid #c9a962; background: linear-gradient(180deg, #243656 0%, #0f1729 55%, #0a1020 100%); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.member-table th:first-child { border-radius: 14px 0 0; }
.member-table th:last-child { border-radius: 0 14px 0 0; }
.member-table td { padding: 13px 10px; border-bottom: 1px solid rgba(232,228,220,.75); color: #334155; font-size: .8rem; vertical-align: middle; transition: background .22s ease; }
.member-table tbody tr:nth-child(even) td { background: rgba(250,248,245,.72); }
.member-table tbody tr:hover td { background: linear-gradient(90deg, rgba(201,169,98,.1), rgba(255,255,255,.95) 38%) !important; }
.member-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 #c9a962; }
.member-table tbody tr:last-child td { border-bottom: 0; }
.member-table__action { width: 202px; text-align: right !important; }
.member-table__no { width: 48px; text-align: center !important; color: #806725; font-size: .88rem; font-weight: 700; }
.member-table__registered { width: 130px; text-align: center !important; }
.member-table__member-id { width: 145px; text-align: center !important; }
.member-table td.member-table__member-id strong { color: #53668a; font-size: .78rem; letter-spacing: .02em; }
.member-table__name { min-width: 390px; text-align: left !important; }
.member-registration { display: flex; align-items: center; flex-direction: column; gap: 5px; }
.member-registration > strong { color: #53668a; font-size: .78rem; }
.member-registration time { color: #0f1729; font-size: .7rem; font-weight: 700; }
.member-photo { width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(201,169,98,.3); border-radius: 50%; background: linear-gradient(145deg, #f3efe8, #e8e4dc); color: #806725; font-size: .72rem; font-weight: 800; }
.member-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.member-age { display: inline-flex; align-items: baseline; justify-content: center; gap: 3px; min-width: 48px; margin-top: -1px; padding: 3px 9px 4px; border: 1px solid rgba(169,133,57,.24); border-radius: 999px; background: linear-gradient(135deg, #fffdf8, #f4ead2); color: #17233b; box-shadow: 0 2px 8px rgba(15,23,41,.07), inset 0 1px rgba(255,255,255,.9); white-space: nowrap; }
.member-age b { font-family: Georgia, "Times New Roman", serif; font-size: .93rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.member-age small { color: #8a6a27; font-family: Georgia, "Times New Roman", serif; font-size: .48rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.member-name-block { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; color: #1e293b; font-size: .72rem; line-height: 1.28; }
.member-name-block > strong { margin-bottom: 1px; color: #0f1729; font-size: .9rem; letter-spacing: .015em; }
.member-name-block > span { display: block; max-width: 100%; }
.member-name-block .member-nik b { margin-right: 4px; color: #806725; font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.member-name-block .member-birth { color: #243656; font-weight: 600; }
.member-name-block .member-birth em { color: #b45309; font-style: normal; }
.member-name-block .member-address { color: #334155; }
.member-identity { display: flex; min-width: 350px; align-items: flex-start; gap: 12px; }
.member-identity > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.member-identity strong { overflow: hidden; color: #172554; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.member-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; margin-top: 3px; }
.member-details small { overflow: hidden; color: #64748b; font-size: .67rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.member-details small b { margin-right: 3px; color: #806725; font-size: .61rem; letter-spacing: .035em; text-transform: uppercase; }
.member-details .is-address { grid-column: 1 / -1; max-width: 275px; }
.member-avatar { width: 56px; height: 64px; flex: 0 0 56px; display: grid; place-items: center; border: 2px solid rgba(201,169,98,.55); border-radius: 11px; background: linear-gradient(145deg, #f3efe8, #e8e4dc); color: #806725; font-size: .73rem; font-weight: 800; box-shadow: 0 2px 10px rgba(15,23,41,.12); }
.member-avatar img { width: 100%; height: 100%; display: block; border-radius: 7px; object-fit: cover; object-position: center top; }
.member-code { color: #806725; font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.is-active { background: #e9f9f0; color: #137749; }
.status-badge.is-neutral { background: #eef2f7; color: #64748b; }
.table-action { display: inline-flex; align-items: center; justify-content: center; padding: 7px 11px; border: 1px solid rgba(201,169,98,.48); border-radius: 8px; background: #fff; color: #0f1729 !important; font-size: .75rem; font-weight: 700; text-decoration: none !important; }
.table-action:hover { border-color: #c9a962; background: #faf8f5; transform: translateY(-1px); }
.table-actions { display: flex; justify-content: flex-end; gap: 5px; }
.table-action--profile { border-color: #243656; background: #243656; color: #fff !important; }
.table-action--profile:hover { background: #0f1729; color: #fff !important; }
.table-action--card { border-color: #c9a962; background: #fff8e8; color: #725816 !important; }
.table-action--card:hover { background: #f7e7ba; color: #4f3b0d !important; }
.table-empty { display: flex; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.table-empty__icon { width: 54px; height: 54px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 16px; background: #eef2ff; font-size: 1.45rem; }
.table-empty strong { color: #172554; }
.table-empty p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.data-panel__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 18px; border-top: 1px solid rgba(201,169,98,.18); background: linear-gradient(180deg, rgba(250,248,245,.92), #fff); }
.data-panel__footer p { margin: 0; color: #64748b; font-size: .78rem; }
.pagination { display: flex; gap: 5px; }
.pagination a { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid rgba(15,23,41,.14); border-radius: 10px; background: #fff; color: #0f1729; font-size: .78rem; font-weight: 700; text-decoration: none !important; }
.pagination a:hover { border-color: rgba(201,169,98,.55); background: #faf8f5; color: #0f1729; transform: translateY(-1px); }
.pagination a.is-current { border-color: #0f1729; background: linear-gradient(180deg, #243656, #0f1729); color: #fff; }
.pagination a.is-disabled { opacity: .4; pointer-events: none; }
.member-mobile-cards { display: none; }
.member-profile-form { display: grid; gap: 10px; max-width: 1080px; }
.form-alert { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: .8rem; font-weight: 600; line-height: 1.45; }
.form-alert--error { border: 1px solid #f1b4b4; background: #fff5f5; color: #9b1c1c; }
.member-form-section .form-grid label small { color: #64748b; font-size: .62rem; font-weight: 500; line-height: 1.3; }
.member-form-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid rgba(201,169,98,.28); border-radius: 12px; background: radial-gradient(ellipse at 100% 0%, rgba(201,169,98,.12), transparent 52%), linear-gradient(135deg, #fff, #faf8f5); box-shadow: 0 6px 18px rgba(15,23,41,.04); }
.member-form-intro p { margin: 0; color: #a98539; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.member-form-intro h2 { margin: 2px 0; color: #0f1729; font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; }
.member-form-intro span { color: #64748b; font-size: .72rem; line-height: 1.4; }
.member-form-section { overflow: hidden; border: 1px solid rgba(201,169,98,.22); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,41,.04); }
.member-form-section > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(201,169,98,.16); background: linear-gradient(135deg, #fff, #faf8f5); }
.member-form-section > header > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(180deg, #243656, #0f1729); color: #e8d5a3; font-size: .64rem; font-weight: 800; }
.member-form-section > header h2 { margin: 0; color: #0f1729; font-family: "Oswald", "Arial Narrow", sans-serif; font-size: .92rem; font-weight: 600; }
.member-form-section > header p { margin: 1px 0 0; color: #64748b; font-size: .68rem; line-height: 1.35; }
.member-form-section .form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 12px 14px 14px;
}
.member-form-section .form-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  color: #073b66;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.member-form-section .form-grid .full { grid-column: 1 / -1; }
.member-form-section .form-grid input,
.member-form-section .form-grid select,
.member-form-section .form-grid textarea {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #d5dde8;
  border-radius: 7px;
  background: #fff;
  color: #031d3b;
  font: 500 .8rem/1.25 "Montserrat", "Segoe UI", system-ui, sans-serif;
  transition: border-color .12s, box-shadow .12s;
}
.member-form-section .form-grid textarea { min-height: 64px; resize: vertical; }
.member-form-section .form-grid input:focus,
.member-form-section .form-grid select:focus,
.member-form-section .form-grid textarea:focus {
  outline: none;
  border-color: #c99a3d;
  box-shadow: 0 0 0 2px rgba(201,154,61,.16);
}
.member-documents { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 0 14px 14px; }
.member-document { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e8e4dc; border-radius: 8px; background: #faf8f5; }
.member-document__icon { width: 28px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(201,169,98,.4); border-radius: 6px; background: #fff; color: #806725; font-size: .55rem; font-weight: 800; }
.member-document > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.member-document strong { overflow: hidden; color: #0f1729; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.member-document small { color: #64748b; font-size: .6rem; }
.member-document a { color: #806725; font-size: .68rem; font-weight: 700; }
.member-upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; padding: 12px 14px; }
.member-upload-grid label { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px dashed rgba(201,169,98,.48); border-radius: 9px; background: #faf8f5; color: #0f1729; font-size: .72rem; font-weight: 700; }
.member-upload-grid input[type="file"] { width: 100%; padding: 5px 6px; border: 1px solid #e1ddd4; border-radius: 6px; background: #fff; color: #475569; font-size: .68rem; }
.member-upload-grid small { color: #64748b; font-size: .6rem; font-weight: 400; }
.member-declaration { margin: 0 14px 14px; padding: 8px 10px; border-left: 3px solid #c9a962; background: #fff8e8; color: #725816; font-size: .68rem; line-height: 1.45; }
.member-form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border: 1px solid rgba(201,169,98,.22); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 -3px 14px rgba(15,23,41,.06); backdrop-filter: blur(8px); }
.member-form-actions .btn { padding: 8px 14px; font-size: .8rem; }
.agency-profile-form .agency-active-check__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-weight: 700;
}
.agency-profile-form .agency-active-check__row input { width: auto; min-height: 0; }
.agency-panel__alert {
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(185, 28, 28, .14);
  background: linear-gradient(90deg, #fff5f5, #fff);
  color: #9b1c1c;
  font-size: .78rem;
  font-weight: 600;
}
.agency-panel__sort-note {
  color: #806725;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.agency-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}
.agency-table th,
.agency-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(201,169,98,.14);
  text-align: left;
  vertical-align: middle;
  font-size: .82rem;
}
.agency-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f7f3ea, #efe8d8);
  color: #243656;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.agency-table tbody tr {
  background: #fff;
  transition: background .15s ease, transform .15s ease;
}
.agency-table tbody tr:hover {
  background: linear-gradient(90deg, #fffdf8, #fff);
}
.agency-table tbody tr.is-cba-expired {
  background: linear-gradient(90deg, #fff7f5, #fff);
}
.agency-table__no {
  width: 46px;
  text-align: center !important;
  color: #806725;
  font-weight: 800;
}
.agency-table__photo { width: 78px; }
.agency-table__code { width: 88px; }
.agency-table__code code {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(201,169,98,.35);
  border-radius: 999px;
  background: #fffaf0;
  color: #725816;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.agency-table__num { width: 84px; text-align: center !important; }
.agency-table__action { width: 96px; text-align: right !important; }
.agency-office-photo {
  width: 64px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(201,169,98,.5);
  border-radius: 10px;
  background: linear-gradient(145deg, #f3efe8, #e8e4dc);
  box-shadow: 0 4px 14px rgba(15,23,41,.12);
}
.agency-office-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.agency-office-photo__fallback {
  color: #806725;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.agency-name-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}
.agency-name-block > strong {
  color: #0f1729;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
}
.agency-name-block__addr {
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: .68rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.agency-name-block__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.agency-cba-flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.agency-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  color: #1e293b;
  font-size: .76rem;
  font-weight: 600;
}
.agency-contact small {
  color: #64748b;
  font-size: .66rem;
  font-weight: 500;
}
.agency-stat {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #243656;
  font-size: .78rem;
  font-weight: 800;
}
.agency-stat--members {
  background: linear-gradient(180deg, #243656, #0f1729);
  color: #e8d5a3;
  box-shadow: 0 4px 10px rgba(15,23,41,.16);
}
.agency-stat__sub {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: .58rem;
}
.agency-cba-date {
  color: #334155;
  font-size: .76rem;
  font-weight: 650;
}
.agency-cba-date.is-expired { color: #b91c1c; font-weight: 800; }
.agency-cba-date.is-empty { color: #94a3b8; }

.agency-doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}
.agency-doc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(201,169,98,.28);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #faf8f5);
  box-shadow: 0 4px 14px rgba(15,23,41,.04);
}
.agency-doc-card.is-uploaded {
  border-color: rgba(34,120,80,.28);
  background: linear-gradient(180deg, #fff, #f3faf6);
}
.agency-doc-card.is-optional {
  border-style: dashed;
}
.agency-doc-card__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
}
.agency-doc-card__icon {
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201,169,98,.4);
  border-radius: 8px;
  background: #fff;
  color: #806725;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.agency-doc-card__top h3 {
  margin: 0;
  color: #0f1729;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}
.agency-doc-card__top em {
  display: inline-block;
  margin-top: 2px;
  color: #806725;
  font-size: .58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.agency-doc-card__status {
  color: #64748b;
  font-size: .58rem;
  font-weight: 700;
  white-space: nowrap;
}
.agency-doc-card.is-uploaded .agency-doc-card__status { color: #1f7a4d; }
.agency-doc-card__hint {
  margin: 0;
  color: #64748b;
  font-size: .62rem;
  font-weight: 500;
  line-height: 1.4;
}
.agency-doc-card__file {
  color: #806725;
  font-size: .68rem;
  font-weight: 700;
  text-decoration: none;
}
.agency-doc-card__file:hover { text-decoration: underline; }
.agency-doc-card__upload {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border: 1px dashed rgba(201,169,98,.45);
  border-radius: 8px;
  background: #fff;
  color: #073b66;
  font-size: .66rem;
  font-weight: 700;
}
.agency-doc-card--cba { grid-column: 1 / -1; }
.agency-cba-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.agency-cba-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  background: #faf8f5;
}
.agency-cba-list a {
  color: #806725;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}
.agency-cba-list a:hover { text-decoration: underline; }
.agency-cba-list__del {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
}
.agency-doc-card__upload input[type="file"] {
  width: 100%;
  min-height: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: .62rem;
  font-weight: 500;
}

/* Wilayah cascade — Coretax-style compact selects */
.wilayah-cascade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid rgba(201,169,98,.22);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfaf7 0%, #f7f8fb 100%);
}
.wilayah-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 !important;
}
.wilayah-field > span {
  color: #073b66;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.wilayah-field select {
  width: 100%;
  min-height: 34px;
  padding: 6px 28px 6px 9px;
  border: 1px solid #d5dde8;
  border-radius: 7px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23073B66' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 10px;
  color: #031d3b;
  font: 500 .8rem/1.25 "Montserrat", "Segoe UI", system-ui, sans-serif;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.wilayah-field select:disabled {
  background-color: #eef1f5;
  color: #94a3b8;
  cursor: not-allowed;
}
.wilayah-field select:focus {
  outline: none;
  border-color: #c99a3d;
  box-shadow: 0 0 0 2px rgba(201,154,61,.16);
}
.wilayah-field select.is-loading {
  opacity: .7;
}
.wilayah-field input[type="hidden"] { display: none; }

@media (max-width: 980px) {
  .member-form-section .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wilayah-cascade { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .member-form-section .form-grid { grid-template-columns: 1fr; }
}

.member-profile-page { display: grid; gap: 16px; animation: memberPanelIn .4s ease-out; }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 24px; border: 1px solid rgba(201,169,98,.3); border-radius: 18px; background: radial-gradient(ellipse 60% 140% at 100% 0%, rgba(201,169,98,.16), transparent 58%), linear-gradient(135deg, #fff, #faf8f5); box-shadow: 0 16px 38px rgba(15,23,41,.09); }
.profile-hero__photo { width: 104px; height: 124px; display: grid; place-items: center; overflow: hidden; border: 3px solid #fff; border-radius: 16px; outline: 1px solid rgba(201,169,98,.48); background: #ece8df; color: #806725; font-size: .78rem; font-weight: 800; box-shadow: 0 8px 24px rgba(15,23,41,.13); }
.profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-hero__identity > p { margin: 0; color: #a98539; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.profile-hero__identity h1 { margin: 5px 0 10px; color: #0f1729; font-size: clamp(1.35rem, 3vw, 2rem); }
.profile-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-hero__meta > span { padding: 6px 9px; border: 1px solid #e5e0d5; border-radius: 999px; background: rgba(255,255,255,.75); color: #475569; font-size: .7rem; font-weight: 700; }
.profile-hero__meta .profile-status--active { border-color: #b7e4ca; background: #e9f9f0; color: #137749; }
.profile-hero__meta .profile-status--blocked { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.profile-hero__actions { display: flex; align-items: center; gap: 8px; }
.profile-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.profile-summary > div { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border: 1px solid rgba(201,169,98,.2); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,41,.04); }
.profile-summary span { color: #64748b; font-size: .7rem; text-transform: uppercase; }
.profile-summary strong { color: #0f1729; font-size: 1rem; }
.profile-nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; overflow-x: auto; padding: 9px; border: 1px solid rgba(201,169,98,.22); border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 6px 20px rgba(15,23,41,.06); backdrop-filter: blur(8px); }
.profile-nav a { padding: 8px 12px; border-radius: 8px; color: #475569; font-size: .76rem; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.profile-nav a:hover { background: #faf8f5; color: #806725; }
.profile-section { scroll-margin-top: 68px; overflow: hidden; border: 1px solid rgba(201,169,98,.22); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,41,.045); }
.profile-section > header { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid rgba(201,169,98,.16); background: linear-gradient(135deg, #fff, #faf8f5); }
.profile-section > header > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(180deg, #243656, #0f1729); color: #e8d5a3; font-size: .7rem; font-weight: 800; }
.profile-section > header h2 { margin: 0; color: #0f1729; font-size: 1rem; }
.profile-section > header p { margin: 3px 0 0; color: #64748b; font-size: .72rem; }
.profile-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 8px 18px 18px; }
.profile-data-grid > div { display: grid; grid-template-columns: minmax(120px, .75fr) 1.25fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0ede7; }
.profile-data-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.profile-data-grid > div:nth-child(odd) { padding-right: 18px; }
.profile-data-grid > div:nth-child(even) { padding-left: 18px; border-left: 1px solid #f0ede7; }
.profile-data-grid > div.is-wide { grid-column: 1 / -1; padding-right: 0; padding-left: 0; border-left: 0; }
.profile-data-grid dt { color: #806725; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.profile-data-grid dd { margin: 0; color: #1e293b; font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-address { padding: 20px; color: #1e293b; font-size: .84rem; line-height: 1.7; }
.profile-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding: 18px; }
.profile-doc-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e8e4dc; border-radius: 10px; background: #faf8f5; }
.profile-doc-card > span { width: 36px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(201,169,98,.4); border-radius: 7px; background: #fff; color: #806725; font-size: .58rem; font-weight: 800; }
.profile-doc-card > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.profile-doc-card strong { overflow: hidden; color: #0f1729; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-doc-card small { color: #64748b; font-size: .64rem; }
.profile-doc-card a { color: #806725; font-size: .72rem; font-weight: 700; }
.profile-empty { margin: 18px; padding: 28px; border: 1px dashed rgba(201,169,98,.35); border-radius: 10px; background: #faf8f5; color: #64748b; text-align: center; font-size: .8rem; }

@media (max-width: 900px) {
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .launcher-groups { grid-template-columns: 1fr; gap: 14px; }
  .launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .launcher-tile { min-height: 88px; padding: 14px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launcher-hero { grid-template-columns: minmax(0, 1.4fr) minmax(210px, .6fr); }
  .launcher-hero__content { padding: 34px; }
  .admin-header__inner, .admin-main, .admin-quicknav { width: min(1280px, 95%); }
  .data-panel__header, .data-panel__tools, .data-panel__footer { align-items: stretch; flex-direction: column; }
  .data-panel__result { white-space: normal; }
  .member-search { width: 100%; }
  .sample-mode-note { align-items: flex-start; flex-direction: column; gap: 3px; }
  .member-form-intro, .profile-hero { align-items: stretch; grid-template-columns: 1fr; }
  .profile-hero__actions { flex-wrap: wrap; }
  .profile-summary { grid-template-columns: repeat(2, 1fr); }
  .profile-data-grid { grid-template-columns: 1fr; }
  .profile-data-grid > div, .profile-data-grid > div:nth-child(odd), .profile-data-grid > div:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
}

@media (max-width: 768px) {
  .admin-header__inner { flex-wrap: nowrap; }
  .admin-brand__text strong { font-size: .88rem; max-width: 42vw; }
  .admin-brand__text small { display: none; }
  .admin-account__meta { display: none; }
  .admin-header__actions { flex-wrap: nowrap; }
  .admin-btn { padding: 8px 10px; }
  .admin-launcher__panel { right: 0; left: auto; width: min(340px, calc(100vw - 24px)); }
  .launcher-hero { display: block; min-height: 0; }
  .launcher-hero__content { padding: 32px 24px; }
  .launcher-hero__identity { display: none; }
  .launcher-hero__content > p:not(.launcher-eyebrow) { font-size: .8rem; }
  .dashboard-section { padding: 16px; }
  .dashboard-section__header { align-items: flex-start; flex-direction: column; gap: 6px; }
  .launcher-groups { grid-template-columns: 1fr; }
  .launcher-grid,
  .launcher-grid--group { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-desktop-table { display: none; }
  .member-mobile-cards { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
  .member-mobile-card { display: flex; min-height: 76px; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border: 1px solid rgba(201,169,98,.28); border-radius: 16px; background: linear-gradient(180deg, #fff, #faf8f5); box-shadow: 0 2px 12px rgba(15,23,41,.06); color: inherit; text-decoration: none !important; }
  .member-mobile-card__no { width: 28px; flex: 0 0 28px; text-align: center; color: #806725; font-size: .82rem; font-weight: 800; }
  .member-mobile-card:active { transform: scale(.99); border-color: rgba(201,169,98,.5); }
  .member-mobile-card__avatar { width: 56px; height: 64px; flex: 0 0 56px; display: grid; place-items: center; border: 1.5px solid rgba(201,169,98,.45); border-radius: 12px; background: linear-gradient(145deg, #f3efe8, #e8e4dc); color: #806725; font-weight: 800; }
  .member-mobile-card__avatar img { width: 100%; height: 100%; display: block; border-radius: 9px; object-fit: cover; object-position: center top; }
  .member-mobile-card__main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 8px; }
  .member-mobile-card__main > strong { overflow: hidden; color: #0f1729; font-size: .92rem; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
  .member-mobile-card__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
  .member-mobile-card__details small { overflow: hidden; color: #64748b; font-size: .67rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .member-mobile-card__details small b { color: #806725; font-size: .6rem; letter-spacing: .03em; text-transform: uppercase; }
  .member-mobile-card__details .is-address { grid-column: 1 / -1; }
  .member-mobile-card__meta { display: flex; align-items: center; gap: 7px; }
  .member-mobile-card__meta small { color: #806725; font-size: .7rem; font-weight: 700; }
  .member-mobile-card__arrow { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(201,169,98,.12); color: rgba(15,23,41,.45); font-size: 1.15rem; font-weight: 700; }
  .member-mobile-cards__empty { padding: 28px 16px; border: 1px dashed rgba(201,169,98,.35); border-radius: 14px; background: rgba(250,248,245,.7); color: #64748b; text-align: center; }
}
