/* ═══════════════════════════════════════════════════════
   NatierTix Admin — admin.css  v2
   Design inspired by WareSync dashboard template:
   Clean white cards · Crisp sidebar · Data-forward layout
   Brand: navy #040323 · gold #e79a1f · red-orange #b03910
═══════════════════════════════════════════════════════ */

:root {
  /* ── Surfaces ── */
  --page-bg:   #f4f5f7;
  --card:      #ffffff;
  --card2:     #fafafa;
  --sidebar-bg:#040323;
  --topbar-bg: #ffffff;

  /* ── Brand gradient ── */
  --gold:      #e79a1f;
  --gold-lt:   #f5b83d;
  --gold-dk:   #b03910;
  --logo-grad: linear-gradient(90deg,#e79a1f 0%,#d45a18 55%,#b03910 100%);
  --logo-glow: rgba(231,154,31,.22);

  /* ── Text ── */
  --text-h:    #0d0b2a;
  --text-b:    #3a3860;
  --text-s:    #7a78a0;
  --text-d:    #aeacc8;

  /* ── Borders ── */
  --border:    #e8e6f4;
  --border-md: #d4d2e8;

  /* ── Status ── */
  --green:     #22c55e;
  --green-bg:  #f0fdf4;
  --yellow:    #f59e0b;
  --yellow-bg: #fffbeb;
  --red:       #ef4444;
  --red-bg:    #fef2f2;
  --blue:      #3b82f6;
  --blue-bg:   #eff6ff;
  --purple:    #8b5cf6;
  --purple-bg: #f5f3ff;

  /* ── Spacing / radius ── */
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* ── Layout ── */
  --sb-w:     250px;
  --topbar-h: 60px;

  /* ── Fonts ── */
  --ff-disp: 'Bebas Neue','Barlow Condensed',sans-serif;
  --ff-cond: 'Barlow Condensed',sans-serif;
  --ff-body: 'Barlow',sans-serif;
  --ff-mono: 'Space Mono',monospace;

  --transition: .18s ease;
}

/* ── Dark mode tokens ── */
[data-theme="dark"] {
  --page-bg:   #0d0b2a;
  --card:      #131130;
  --card2:     #1a1838;
  --sidebar-bg:#070520;
  --topbar-bg: #0d0b2a;
  --text-h:    #f0f0fa;
  --text-b:    #c0bedd;
  --text-s:    #8080a8;
  --text-d:    #55557a;
  --border:    rgba(255,255,255,.07);
  --border-md: rgba(255,255,255,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: .9rem;
  background: var(--page-bg);
  color: var(--text-b);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--ff-body); border: none; background: none; }
img { max-width: 100%; display: block; }

/* ════════════════════════════════
   LOGIN PAGE
════════════════════════════════ */
.login-body {
  min-height: 100vh;
  display: flex;
  background: var(--page-bg);
}
.login-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left — dark brand panel */
.login-brand {
  flex: 0 0 44%;
  background: linear-gradient(145deg, #040323 0%, #0d0b2a 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 3rem;
}
.lb-bg-text {
  position: absolute; bottom: -20px; left: -10px;
  font-family: var(--ff-disp);
  font-size: clamp(80px,16vw,160px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(231,154,31,.07);
  pointer-events: none; user-select: none; line-height: 1;
}
.lb-inner { position: relative; z-index: 2; text-align: center; }

/* Natier logo image */
.lb-logo-img {
  width: 52px; height: 52px; object-fit: contain; margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 24px rgba(231,154,31,.3));
}
.lb-tagline {
  font-family: var(--ff-mono);
  font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 2.5rem;
}
.lb-wings {
  display: flex; align-items: center; gap: 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(231,154,31,.2);
  border-radius: var(--r-xl);
  padding: 1.4rem 2rem; margin-bottom: 1.8rem;
}
.lb-wing { text-align: center; }
.lb-wing-icon { font-size: 1.6rem; margin-bottom: .35rem; }
.lb-wing-label {
  font-family: var(--ff-disp);
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: .08em; line-height: 1;
}
.lb-tix  .lb-wing-label { color: var(--gold); }
.lb-book .lb-wing-label { color: #60a5fa; }
.lb-wing-sub  { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: .2rem; }
.lb-wing-div  { width: 1px; height: 56px; background: rgba(231,154,31,.2); }
.lb-copy {
  font-family: var(--ff-mono); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

/* Right — form panel */
.login-form-panel {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--card);
}
.lf-inner { width: 100%; max-width: 380px; }
.lf-eyebrow {
  font-family: var(--ff-mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem;
}
.lf-title {
  font-family: var(--ff-disp);
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 900; line-height: 1;
  color: var(--text-h); margin-bottom: .35rem;
}
.lf-sub { font-size: .82rem; color: var(--text-s); margin-bottom: 2rem; }

/* ════════════════════════════════
   SIDEBAR — dark navy, WareSync style
════════════════════════════════ */
.adm-sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sb-w); height: 100vh;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 900;
  overflow-y: auto; overflow-x: hidden;
  transition: transform var(--transition);
  border-right: 1px solid rgba(255,255,255,.05);
}

.sb-logo {
  padding: 1.4rem 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .9rem;
}
.sb-logo-img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.sb-logo-text {}
.sb-logo-name {
  font-family: var(--ff-disp);
  font-size: 1.25rem; font-weight: 900;
  letter-spacing: .04em; line-height: 1;
  color: #fff;
}
.sb-logo-name span {
  background: var(--logo-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sb-logo-sub {
  font-family: var(--ff-mono);
  font-size: .52rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: .1rem;
}

.sb-nav { flex: 1; padding: 1rem 0 .5rem; }

.sb-section-label {
  font-family: var(--ff-mono);
  font-size: .52rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: .9rem 1.5rem .35rem;
}
.sb-section-label.tix  { color: rgba(231,154,31,.5); }
.sb-section-label.book { color: rgba(96,165,250,.5); }

.sb-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .58rem 1.5rem;
  font-size: .83rem; font-weight: 500;
  color: rgba(255,255,255,.45);
  border-left: 2px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  position: relative;
}
.sb-link .sb-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  opacity: .6; transition: opacity var(--transition);
}
.sb-link:hover {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.05);
}
.sb-link:hover .sb-icon { opacity: .9; }
.sb-link.active {
  color: #fff; font-weight: 600;
  background: rgba(231,154,31,.1);
  border-left-color: var(--gold);
}
.sb-link.active .sb-icon { opacity: 1; color: var(--gold); }

/* Active indicator pill on right */
.sb-link.active::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

.sb-divider { height: 1px; background: rgba(255,255,255,.06); margin: .5rem 1.5rem; }

.sb-footer {
  padding: .9rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .75rem;
}
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--logo-grad); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff;
}
.sb-user-name  { font-size: .82rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role  { font-size: .62rem; color: rgba(255,255,255,.3); }
.sb-logout {
  width: 28px; height: 28px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
  transition: color var(--transition), background var(--transition);
}
.sb-logout svg { width: 15px; height: 15px; }
.sb-logout:hover { color: var(--red); background: rgba(239,68,68,.1); }

.sb-overlay { display: none; position: fixed; inset: 0; z-index: 899; background: rgba(4,3,35,.6); backdrop-filter: blur(4px); }
.sb-overlay.open { display: block; }

/* ════════════════════════════════
   MAIN SHELL
════════════════════════════════ */
.adm-main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; }

/* ════════════════════════════════
   TOPBAR — white card, WareSync style
════════════════════════════════ */
.adm-topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 1.8rem;
  position: sticky; top: 0; z-index: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.adm-topbar-left { display: flex; align-items: center; gap: .8rem; }
.adm-mob-toggle {
  display: none; background: none; border: none;
  color: var(--text-b); padding: .35rem;
}
.adm-mob-toggle svg { width: 22px; height: 22px; }

/* Search bar in topbar */
.adm-topbar-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .38rem .75rem;
  min-width: 200px;
}
.adm-topbar-search svg { width: 15px; height: 15px; color: var(--text-d); flex-shrink: 0; }
.adm-topbar-search input {
  background: none; border: none; outline: none;
  font-size: .82rem; color: var(--text-b);
  font-family: var(--ff-body);
  width: 100%;
}
.adm-topbar-search input::placeholder { color: var(--text-d); }

.adm-topbar-right { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.adm-topbar-link {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-family: var(--ff-mono);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-s);
  padding: .38rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all var(--transition);
}
.adm-topbar-link:hover { color: var(--gold); border-color: var(--gold); background: rgba(231,154,31,.04); }

.adm-theme-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--page-bg); border: 1px solid var(--border);
  color: var(--text-s); position: relative;
  transition: all var(--transition);
}
.adm-theme-btn:hover { color: var(--gold); border-color: var(--gold); }
.adm-theme-btn svg { width: 15px; height: 15px; position: absolute; transition: opacity .2s, transform .2s; }
.adm-theme-btn .icon-sun  { opacity: 1; }
.adm-theme-btn .icon-moon { opacity: 0; transform: scale(.6); }
[data-theme="dark"] .adm-theme-btn .icon-sun  { opacity: 0; transform: scale(.6); }
[data-theme="dark"] .adm-theme-btn .icon-moon { opacity: 1; transform: scale(1); }

/* Topbar admin avatar */
.topbar-user {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem .6rem .3rem .3rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: border-color var(--transition);
}
.topbar-user:hover { border-color: var(--gold); }
.topbar-user-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--logo-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff;
}
.topbar-user-name { font-size: .78rem; font-weight: 600; color: var(--text-h); }

/* ════════════════════════════════
   CONTENT AREA
════════════════════════════════ */
.adm-content { padding: 1.8rem; flex: 1; }

.adm-welcome {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.8rem;
}
.adm-page-label {
  font-family: var(--ff-mono);
  font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .2rem;
}
.adm-page-title {
  font-family: var(--ff-disp);
  font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 900; line-height: 1.1;
  color: var(--text-h); letter-spacing: .02em;
}
.adm-welcome-time {
  font-family: var(--ff-mono); font-size: .68rem;
  color: var(--text-s);
  padding: .45rem .85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* ════════════════════════════════
   PLATFORM WINGS — WareSync two-panel hero
════════════════════════════════ */
.platform-wings {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem; margin-bottom: 1.8rem;
}
.pw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.8rem;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.pw-card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(231,154,31,.1); transform: translateY(-2px); }
.pw-book:hover { border-color: #3b82f6; box-shadow: 0 6px 24px rgba(59,130,246,.08); }

.pw-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.pw-tix  .pw-card-accent { background: var(--logo-grad); }
.pw-book .pw-card-accent { background: linear-gradient(90deg,#3b82f6,#8b5cf6); }

.pw-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.2rem; }
.pw-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.pw-tix  .pw-icon-wrap { background: rgba(231,154,31,.1); }
.pw-book .pw-icon-wrap { background: rgba(59,130,246,.1); }

.pw-name {
  font-family: var(--ff-disp);
  font-size: 1.7rem; font-weight: 900;
  letter-spacing: .06em; line-height: 1;
  margin-bottom: .15rem;
}
.pw-tix  .pw-name { color: var(--gold); }
.pw-book .pw-name { color: #3b82f6; }
.pw-desc { font-size: .75rem; color: var(--text-s); }

.pw-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: .6rem; margin-bottom: 1.4rem;
}
.pw-stat {
  background: var(--page-bg);
  border-radius: var(--r); padding: .7rem .8rem;
  border: 1px solid var(--border);
}
.pw-stat-n {
  font-family: var(--ff-disp);
  font-size: 1.4rem; font-weight: 900;
  line-height: 1; display: block;
  color: var(--text-h);
}
.pw-stat-l { font-size: .65rem; color: var(--text-s); display: block; margin-top: .15rem; }

.pw-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ff-mono);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1.1rem; border-radius: var(--r);
  transition: all var(--transition);
}
.pw-tix  .pw-btn { background: rgba(231,154,31,.1); color: var(--gold); border: 1px solid rgba(231,154,31,.25); }
.pw-book .pw-btn { background: rgba(59,130,246,.08); color: #3b82f6; border: 1px solid rgba(59,130,246,.22); }
.pw-tix  .pw-btn:hover { background: var(--logo-grad); color: #fff; border-color: transparent; }
.pw-book .pw-btn:hover { background: #3b82f6; color: #fff; border-color: transparent; }

/* ════════════════════════════════
   STAT CARDS — WareSync top row
════════════════════════════════ */
.adm-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1rem; margin-bottom: 1.8rem;
}
.adm-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: .8rem;
}
.adm-stat-card:hover { border-color: var(--border-md); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.07); }

.asc-top { display: flex; align-items: center; justify-content: space-between; }
.asc-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.asc-icon svg { width: 17px; height: 17px; }
.asc-gold   { background: rgba(231,154,31,.12); color: #d4870f; }
.asc-green  { background: var(--green-bg);  color: var(--green); }
.asc-orange { background: rgba(176,57,16,.1); color: #d4601a; }
.asc-red    { background: var(--red-bg);    color: var(--red); }
.asc-blue   { background: var(--blue-bg);   color: var(--blue); }

.asc-trend {
  font-family: var(--ff-mono); font-size: .62rem; font-weight: 700;
  padding: .18rem .5rem; border-radius: 100px;
}
.asc-trend.up   { background: var(--green-bg); color: var(--green); }
.asc-trend.down { background: var(--red-bg);   color: var(--red); }
.asc-trend.flat { background: var(--yellow-bg); color: var(--yellow); }

.asc-val {
  font-family: var(--ff-disp);
  font-size: 1.8rem; font-weight: 900;
  line-height: 1; color: var(--text-h);
}
.asc-lbl { font-size: .72rem; color: var(--text-s); margin-top: .15rem; }

/* ════════════════════════════════
   PANEL / CARD
════════════════════════════════ */
.adm-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.4rem; margin-bottom: 1.4rem;
}
.adm-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
}
.adm-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.adm-panel-title {
  font-family: var(--ff-cond);
  font-size: .95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-h);
}
.adm-panel-link {
  font-size: .72rem; color: var(--gold);
  font-family: var(--ff-mono);
  transition: color var(--transition);
}
.adm-panel-link:hover { color: var(--gold-dk); }

/* ════════════════════════════════
   TABLE
════════════════════════════════ */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
  width: 100%; border-collapse: collapse; font-size: .83rem;
}
.adm-table th {
  font-family: var(--ff-mono);
  font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-d);
  padding: .7rem 1.3rem; text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap; background: var(--card2);
}
.adm-table td {
  padding: .8rem 1.3rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text-b);
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: rgba(231,154,31,.03); }
.tbl-name { font-weight: 600; color: var(--text-h); margin-bottom: .1rem; }
.tbl-sub  { font-size: .74rem; color: var(--text-s); }
.tbl-gold { color: var(--gold); font-weight: 700; font-family: var(--ff-mono); font-size: .82rem; }
.adm-empty { text-align: center; padding: 2.5rem; color: var(--text-d); font-style: italic; font-size: .82rem; }
.adm-empty a { color: var(--gold); }

.tbl-actions { display: flex; gap: .35rem; }
.tbl-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card2);
  color: var(--text-s);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.tbl-btn svg { width: 13px; height: 13px; }
.tbl-btn-edit:hover   { color: var(--gold); border-color: var(--gold); background: rgba(231,154,31,.06); }
.tbl-btn-toggle:hover { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.tbl-btn-del:hover    { color: var(--red); border-color: var(--red); background: var(--red-bg); }

/* ════════════════════════════════
   STATUS CHIPS
════════════════════════════════ */
.status-chip {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .6rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 100px;
  white-space: nowrap;
}
.status-published,.status-valid,.status-confirmed { background: var(--green-bg); color: var(--green); }
.status-draft,.status-pending                     { background: var(--yellow-bg); color: var(--yellow); }
.status-cancelled,.status-refunded                { background: var(--red-bg); color: var(--red); }
.status-used,.status-past                         { background: var(--page-bg); color: var(--text-d); border: 1px solid var(--border); }

.code-chip {
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; background: rgba(231,154,31,.08);
  color: var(--gold); border: 1px solid rgba(231,154,31,.2);
  padding: .2rem .55rem; border-radius: 5px;
}

/* ════════════════════════════════
   FORMS
════════════════════════════════ */
.adm-form-body { padding: 1.4rem; }
.adm-field { margin-bottom: 1.1rem; }
.adm-label {
  display: block; font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-s); margin-bottom: .4rem;
}
.adm-hint { font-size: .68rem; color: var(--text-d); margin-top: .25rem; }
.adm-input {
  width: 100%; background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r); padding: .6rem .9rem;
  color: var(--text-h); font-family: var(--ff-body);
  font-size: .88rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.adm-input::placeholder { color: var(--text-d); }
.adm-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(231,154,31,.1);
}
.adm-textarea { resize: vertical; min-height: 100px; }
.adm-select   { cursor: pointer; }
.adm-row-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.adm-pw-wrap { position: relative; }
.adm-pw-toggle {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-d); padding: .2rem;
}
.adm-pw-toggle svg { width: 16px; height: 16px; display: block; }
.adm-pw-toggle:hover { color: var(--gold); }

.adm-upload-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; color: var(--gold); cursor: pointer;
  border: 1.5px dashed rgba(231,154,31,.4);
  background: rgba(231,154,31,.04);
  padding: .55rem 1.1rem; border-radius: var(--r);
  margin-bottom: .6rem; transition: all var(--transition);
}
.adm-upload-btn:hover { background: rgba(231,154,31,.1); border-color: var(--gold); }

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.adm-btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--logo-grad); color: #fff; border: none;
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 1.3rem; border-radius: var(--r);
  transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(176,57,16,.2);
}
.adm-btn-primary:hover {
  opacity: .92; box-shadow: 0 6px 20px rgba(176,57,16,.32);
  transform: translateY(-1px);
}
.adm-btn-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--card); color: var(--text-s);
  border: 1.5px solid var(--border);
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 1.3rem; border-radius: var(--r);
  transition: all var(--transition); white-space: nowrap;
}
.adm-btn-outline:hover { color: var(--text-h); border-color: var(--border-md); background: var(--page-bg); }

/* ════════════════════════════════
   NOTICES
════════════════════════════════ */
.adm-notice {
  padding: .8rem 1.1rem; border-radius: var(--r);
  font-size: .82rem; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .5rem;
}
.adm-notice-ok  { background: var(--green-bg); border: 1px solid rgba(34,197,94,.25); color: var(--green); }
.adm-notice-err { background: var(--red-bg);   border: 1px solid rgba(239,68,68,.25);  color: var(--red); }
.adm-notice:not(.adm-notice-err) { background: var(--green-bg); border: 1px solid rgba(34,197,94,.25); color: var(--green); }
.adm-err {
  background: var(--red-bg); border: 1px solid rgba(239,68,68,.25); color: var(--red);
  padding: .7rem 1rem; border-radius: var(--r); font-size: .82rem; margin-bottom: 1rem;
}

/* ════════════════════════════════
   FILTER BAR
════════════════════════════════ */
.adm-filter-bar {
  display: flex; gap: .7rem; flex-wrap: wrap;
  align-items: center; margin-bottom: 1.2rem;
}
.adm-search { max-width: 260px; }

/* ════════════════════════════════
   TABS
════════════════════════════════ */
.adm-tabs { display: flex; gap: .35rem; flex-wrap: wrap; border-bottom: 1.5px solid var(--border); margin-bottom: 1.5rem; }
.adm-tab {
  font-family: var(--ff-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem 1rem; color: var(--text-s);
  border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  transition: all var(--transition);
}
.adm-tab:hover { color: var(--text-h); }
.adm-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ════════════════════════════════
   EVENT EDIT — two-col
════════════════════════════════ */
.edit-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.4rem; align-items: start; }
.flyer-preview { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); margin-bottom: .8rem; border: 1px solid var(--border); }
.flyer-ph {
  width: 100%; aspect-ratio: 4/5;
  background: var(--page-bg); border: 2px dashed var(--border-md);
  border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .5rem; color: var(--text-d);
  font-size: .78rem; margin-bottom: .8rem;
}
.flyer-ph svg { width: 32px; height: 32px; opacity: .4; }

/* ════════════════════════════════
   PROGRESS BARS
════════════════════════════════ */
.mini-progress { width: 100%; height: 5px; background: var(--page-bg); border-radius: 3px; overflow: hidden; }
.mini-fill     { height: 100%; background: var(--logo-grad); border-radius: 3px; transition: width .4s ease; }
.progress-bar  { width: 100%; height: 8px; background: var(--page-bg); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--logo-grad); border-radius: 4px; transition: width .6s ease; }

/* ════════════════════════════════
   BOOKING CARDS
════════════════════════════════ */
.booking-cards { display: grid; gap: 1rem; }
.booking-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.booking-card:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(231,154,31,.08); }
.bc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  padding: 1rem 1.3rem; border-bottom: 1px solid var(--border);
}
.bc-name { font-weight: 700; font-size: .9rem; color: var(--text-h); margin-bottom: .15rem; }
.bc-meta { font-size: .74rem; color: var(--text-s); }
.bc-body { padding: .9rem 1.3rem; }
.bc-row  { display: flex; gap: .8rem; margin-bottom: .4rem; font-size: .82rem; }
.bc-lbl  { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-d); min-width: 100px; }
.bc-message { font-size: .82rem; color: var(--text-s); background: var(--page-bg); border-radius: var(--r); padding: .6rem .85rem; margin-top: .5rem; line-height: 1.5; border: 1px solid var(--border); }
.bc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding: .85rem 1.3rem; border-top: 1px solid var(--border); background: var(--card2); }

/* ════════════════════════════════
   PORTFOLIO GRID
════════════════════════════════ */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; }
.port-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.port-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(231,154,31,.1); }
.port-hidden { opacity: .55; }
.port-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.port-img-ph { width: 100%; aspect-ratio: 4/3; background: var(--page-bg); display: flex; align-items: center; justify-content: center; }
.port-img-ph svg { width: 32px; height: 32px; opacity: .25; }
.port-body { padding: .75rem .95rem; }
.port-cat  { font-size: .6rem; color: var(--gold); font-family: var(--ff-mono); letter-spacing: .09em; text-transform: uppercase; margin-bottom: .2rem; }
.port-title{ font-weight: 600; font-size: .82rem; color: var(--text-h); }
.port-hidden-badge { font-size: .58rem; font-family: var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-d); background: var(--page-bg); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: 3px; display: inline-block; margin-top: .2rem; }
.port-actions { position: absolute; top: .6rem; right: .6rem; display: flex; gap: .3rem; opacity: 0; transition: opacity var(--transition); }
.port-card:hover .port-actions { opacity: 1; }

/* ════════════════════════════════
   SCANNER
════════════════════════════════ */
.scanner-layout { display: grid; grid-template-columns: 360px 1fr; gap: 1.4rem; align-items: start; }
.scanner-viewport { position: relative; width: 100%; aspect-ratio: 1; background: #000; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
#scannerVideo { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; color: var(--text-d); background: var(--page-bg); font-size: .8rem; }
.scanner-idle svg { width: 48px; height: 48px; opacity: .25; }
.scanner-reticle { position: absolute; inset: 20px; pointer-events: none; }
.sr-corner { position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; }
.sr-tl { top:0;left:0;  border-width:3px 0 0 3px; }
.sr-tr { top:0;right:0; border-width:3px 3px 0 0; }
.sr-bl { bottom:0;left:0;  border-width:0 0 3px 3px; }
.sr-br { bottom:0;right:0; border-width:0 3px 3px 0; }
.sr-line { position: absolute; left:0; right:0; top:50%; height:2px; background: linear-gradient(to right,transparent,var(--gold),transparent); animation: scanLine 2s ease-in-out infinite; }
@keyframes scanLine { 0%,100%{top:10%;opacity:0} 20%{opacity:1} 80%{opacity:1} 50%{top:90%} }

/* ════════════════════════════════
   CALENDAR
════════════════════════════════ */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; background: var(--border); }
.cal-dow { background: var(--card2); padding: .55rem; text-align: center; font-family: var(--ff-mono); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-d); }
.cal-cell { background: var(--card); min-height: 90px; padding: .5rem; cursor: pointer; transition: background var(--transition); }
.cal-cell:hover { background: rgba(231,154,31,.03); }
.cal-cell-empty { background: var(--card2); cursor: default; }
.cal-today { background: rgba(231,154,31,.05); }
.cal-today .cal-day-num { color: var(--gold); font-weight: 800; }
.cal-has-items { border-left: 2px solid rgba(231,154,31,.35); }
.cal-day-num { font-size: .78rem; font-weight: 600; margin-bottom: .3rem; color: var(--text-s); }
.cal-item { font-size: .62rem; padding: .12rem .35rem; border-radius: 4px; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item-event     { background: rgba(231,154,31,.12); color: var(--gold); }
.cal-item-confirmed { background: var(--green-bg); color: var(--green); }
.cal-item-pending   { background: var(--yellow-bg); color: var(--yellow); }
.cal-item-cancelled { background: var(--red-bg); color: var(--red); }
.cal-item-more      { font-size: .6rem; color: var(--text-d); padding: 0 .3rem; }

/* ════════════════════════════════
   DARK MODE OVERRIDES
════════════════════════════════ */
[data-theme="dark"] .adm-topbar    { background: #0d0b2a; border-color: rgba(255,255,255,.07); box-shadow: none; }
[data-theme="dark"] .adm-topbar-search { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .adm-topbar-search input { color: #f0f0fa; }
[data-theme="dark"] .topbar-user   { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .topbar-user-name { color: #f0f0fa; }
[data-theme="dark"] .adm-panel     { background: #131130; border-color: rgba(255,255,255,.07); box-shadow: none; }
[data-theme="dark"] .adm-panel-hd  { border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .adm-stat-card { background: #131130; border-color: rgba(255,255,255,.07); box-shadow: none; }
[data-theme="dark"] .adm-stat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.3); }
[data-theme="dark"] .pw-card       { background: #131130; border-color: rgba(255,255,255,.07); box-shadow: none; }
[data-theme="dark"] .pw-stat       { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .adm-table th  { background: rgba(255,255,255,.03); }
[data-theme="dark"] .adm-table td  { border-color: rgba(255,255,255,.05); color: #c0bedd; }
[data-theme="dark"] .adm-table tbody tr:hover td { background: rgba(231,154,31,.04); }
[data-theme="dark"] .adm-input     { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #f0f0fa; }
[data-theme="dark"] .adm-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231,154,31,.12); }
[data-theme="dark"] .adm-btn-outline { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #c0bedd; }
[data-theme="dark"] .adm-btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #f0f0fa; }
[data-theme="dark"] .adm-theme-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .booking-card  { background: #131130; border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .bc-foot       { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .bc-message    { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .port-card     { background: #131130; border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .tbl-btn       { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .cal-cell      { background: #131130; }
[data-theme="dark"] .cal-dow       { background: rgba(255,255,255,.03); }
[data-theme="dark"] .cal-cell-empty{ background: rgba(255,255,255,.02); }
[data-theme="dark"] .adm-tabs      { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .adm-page-title{ color: #f0f0fa; }
[data-theme="dark"] .adm-panel-title { color: #f0f0fa; }
[data-theme="dark"] .asc-val       { color: #f0f0fa; }
[data-theme="dark"] .tbl-name      { color: #f0f0fa; }
[data-theme="dark"] .pw-stat-n     { color: #f0f0fa; }
[data-theme="dark"] .asc-gold { background: rgba(231,154,31,.15); }
[data-theme="dark"] .asc-green{ background: rgba(34,197,94,.1); }
[data-theme="dark"] .asc-orange{ background: rgba(176,57,16,.15); }
[data-theme="dark"] .asc-red  { background: rgba(239,68,68,.12); }
[data-theme="dark"] .scanner-idle { background: rgba(13,11,42,1); }
[data-theme="dark"] .flyer-ph  { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .login-form-panel { background: #0d0b2a; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1200px) {
  .adm-stats-row  { grid-template-columns: repeat(2,1fr); }
  .adm-two-col    { grid-template-columns: 1fr; }
  .platform-wings { grid-template-columns: 1fr; }
  .scanner-layout { grid-template-columns: 1fr; }
  .edit-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sb-w: 260px; }
  .adm-sidebar { transform: translateX(-100%); box-shadow: none; }
  .adm-sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0,0,0,.35); }
  .adm-main    { margin-left: 0; }
  .adm-mob-toggle { display: flex; }
  .adm-topbar-search { display: none; }
  .adm-content { padding: 1rem; }
  .adm-welcome { margin-bottom: 1rem; }
  .login-brand { display: none; }
  .login-form-panel { padding: 2.5rem 1.5rem; }
  .cal-cell { min-height: 55px; }
  .cal-item { display: none; }
  .cal-has-items .cal-day-num::after { content: ' ●'; color: var(--gold); font-size: .5rem; }
  .adm-row-2 { grid-template-columns: 1fr; }
  .bc-foot   { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .adm-stats-row { grid-template-columns: 1fr 1fr; }
  .adm-filter-bar { flex-direction: column; }
  .adm-search { max-width: 100%; }
}
@media (max-width: 380px) {
  .adm-stats-row { grid-template-columns: 1fr; }
}

/* Focus rings */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
* { -webkit-tap-highlight-color: transparent; }
