/* ══════════════════════════════════════════════════════
   byomar Admin — Shared Design System
   Sidebar-Layout, Dark Theme, Silent Auth
   ══════════════════════════════════════════════════════ */

:root {
  --pink:   #ff2d78;
  --cyan:   #00f5ff;
  --lime:   #aaff00;
  --purple: #9b30ff;
  --orange: #ff6b00;
  --yellow: #ffe100;
  --dark:   #08060f;
  --dark2:  #100d1a;
  --dark3:  #0d0b17;
  --surface: rgba(255,255,255,.04);
  --fg:      #fff;
  --fg-dim:  rgba(255,255,255,.55);
  --fg-mute: rgba(255,255,255,.25);
  --border:  rgba(255,255,255,.08);
  --border-accent: rgba(255,45,120,.2);
  --font-hero: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --r:  3px;
  --rl: 8px;
  --tr: .25s ease;
  --sidebar-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  background: var(--dark);
  color: var(--fg);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* Hide body until auth resolves — prevents flash of login screen */
  visibility: hidden;
}
body.admin-ready { visibility: visible; }

/* ══ SCROLLBAR ════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(255,45,120,.25); border-radius: 3px; }

/* ══ GLOBAL LAYOUT ════════════════════════════════════════ */
#admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ══ SIDEBAR ══════════════════════════════════════════════ */
#admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--tr);
}

.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo-text {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  letter-spacing: .08em;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-decoration: none;
}
.sidebar-event {
  margin-top: .35rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: .75rem 0;
  overflow-y: auto;
}

.sidebar-section {
  padding: .5rem 1rem .25rem;
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: .5rem;
}
.sidebar-section:first-child { margin-top: 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.25rem;
  text-decoration: none;
  color: var(--fg-dim);
  font-size: .82rem;
  font-weight: 600;
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  color: var(--fg);
  background: rgba(255,255,255,.03);
}
.sidebar-link.active {
  color: var(--pink);
  background: rgba(255,45,120,.06);
  border-left-color: var(--pink);
}
.sidebar-link .sl-icon {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: .9rem;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
}
.sidebar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-email {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--fg-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══ TOPBAR (mobile) ══════════════════════════════════════ */
#admin-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(8,6,15,.97);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 300;
  backdrop-filter: blur(16px);
}
#topbar-logo {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  letter-spacing: .08em;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#topbar-menu-btn {
  background: none;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  padding: .4rem;
  font-size: 1.2rem;
  line-height: 1;
}

/* Mobile sidebar overlay */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 190;
  backdrop-filter: blur(2px);
}

/* ══ MAIN CONTENT ═════════════════════════════════════════ */
#admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem 4rem;
  max-width: 1200px;
}

/* ══ PAGE HEADER ══════════════════════════════════════════ */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-kicker {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .4rem;
}
.page-title {
  font-family: var(--font-hero);
  font-size: 2rem;
  letter-spacing: .04em;
  line-height: 1;
  background: linear-gradient(90deg, var(--fg) 60%, var(--fg-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-sub {
  font-size: .82rem;
  color: var(--fg-mute);
  margin-top: .35rem;
}
.page-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-shrink: 0;
}

/* ══ BUTTONS ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border: none;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--tr);
  white-space: nowrap;
}
.btn-neon {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 0 18px rgba(255,45,120,.25);
}
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(255,45,120,.45); }
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,.35);
}
.btn-outline:hover { background: rgba(0,245,255,.06); }
.btn-ghost {
  background: var(--surface);
  color: var(--fg-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,.07); }
.btn-danger {
  background: rgba(255,45,45,.1);
  color: #ff4444;
  border: 1px solid rgba(255,45,45,.25);
}
.btn-danger:hover { background: rgba(255,45,45,.2); }
.btn-sm { padding: .35rem .75rem; font-size: .68rem; border-radius: 2px; }
.btn-full { width: 100%; justify-content: center; }

/* ══ FORMS ════════════════════════════════════════════════ */
.form-field { margin-bottom: .9rem; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: .4rem;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .7rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  transition: border-color var(--tr);
}
.form-input:focus { border-color: var(--pink); }
select.form-input option { background: #100d1a; color: var(--fg); }
textarea.form-input { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; margin-top: 1rem; }
.form-hint { font-size: .75rem; color: var(--fg-mute); margin-top: .3rem; }
.form-error { color: #ff4444; font-size: .75rem; margin-top: .3rem; font-family: var(--font-mono); }

/* ══ CARDS ════════════════════════════════════════════════ */
.card {
  background: rgba(16,13,26,.8);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem 1.4rem;
  margin-bottom: .75rem;
  transition: border-color var(--tr);
}
.card:hover { border-color: rgba(255,45,120,.2); }
.card-title {
  font-family: var(--font-hero);
  font-size: 1.15rem;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.card-section {
  background: rgba(16,13,26,.8);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card-section-title {
  font-family: var(--font-hero);
  font-size: 1.2rem;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

/* ══ STAT GRID ════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: rgba(16,13,26,.8);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--tr);
}
.stat-card:hover { border-color: rgba(255,45,120,.2); }
.stat-label {
  font-family: var(--font-mono);
  font-size: .57rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.stat-val {
  font-family: var(--font-hero);
  font-size: 2rem;
  letter-spacing: .03em;
  margin-top: .3rem;
  color: var(--cyan);
}
.stat-sub { font-size: .72rem; color: var(--fg-mute); margin-top: .2rem; }

/* ══ TABLE ════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--rl); border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
table th {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: rgba(16,13,26,.6);
  white-space: nowrap;
}
table td {
  padding: .65rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ══ BADGES ═══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge-paid    { background: rgba(170,255,0,.08);  color: var(--lime);   border-color: rgba(170,255,0,.2); }
.badge-pending { background: rgba(255,107,0,.08);  color: var(--orange); border-color: rgba(255,107,0,.2); }
.badge-refunded{ background: rgba(0,245,255,.08);  color: var(--cyan);   border-color: rgba(0,245,255,.2); }
.badge-cancelled{background: rgba(255,45,45,.08);  color: #ff4444;       border-color: rgba(255,45,45,.2); }
.badge-valid   { background: rgba(170,255,0,.08);  color: var(--lime);   border-color: rgba(170,255,0,.2); }
.badge-used    { background: rgba(0,245,255,.08);  color: var(--cyan);   border-color: rgba(0,245,255,.2); }
.badge-info    { background: rgba(255,45,120,.08); color: var(--pink);   border-color: rgba(255,45,120,.2); }
.badge-muted   { background: rgba(255,255,255,.05);color: var(--fg-mute);border-color: var(--border); }

/* ══ TOGGLE ═══════════════════════════════════════════════ */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16,13,26,.8);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .9rem 1.25rem;
  gap: 1rem;
  margin-bottom: .5rem;
}
.tgl-lbl { font-size: .88rem; color: var(--fg-dim); }
.tgl-sub { font-size: .73rem; color: var(--fg-mute); margin-top: .15rem; }
.sw { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.sw input { opacity: 0; width: 0; height: 0; }
.sl {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: background var(--tr);
}
.sl::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: var(--fg-mute);
  border-radius: 50%;
  transition: transform var(--tr), background var(--tr);
}
input:checked + .sl { background: rgba(255,45,120,.2); border-color: var(--pink); }
input:checked + .sl::before { transform: translateX(20px); background: var(--pink); }

/* ══ SPINNER ══════════════════════════════════════════════ */
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 2rem auto;
}
.spinner-sm {
  width: 16px; height: 16px;
  border-width: 2px;
  margin: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: .75rem;
}

/* ══ TOAST ════════════════════════════════════════════════ */
#toasts {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  padding: .75rem 1.25rem;
  border-radius: var(--r);
  font-size: .82rem;
  font-weight: 600;
  animation: toast-in .25s ease forwards;
  border: 1px solid;
  pointer-events: auto;
  max-width: 320px;
}
.toast-success { background: rgba(39,174,96,.12); color: #2ecc71; border-color: rgba(39,174,96,.25); }
.toast-error   { background: rgba(255,45,45,.12); color: #ff4444; border-color: rgba(255,45,45,.25); }
.toast-info    { background: rgba(255,45,120,.1);  color: var(--pink); border-color: rgba(255,45,120,.2); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ══ MODAL ════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 560px;
  background: var(--dark2);
  border: 1px solid var(--border-accent);
  border-radius: var(--rl);
  padding: 2rem;
  margin: auto;
  position: relative;
}
.modal-box-lg { max-width: 720px; }
.modal-title {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  letter-spacing: .05em;
  margin-bottom: 1.25rem;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  color: var(--fg-mute);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: .2rem;
  transition: color var(--tr);
}
.modal-close:hover { color: var(--fg); }

/* ══ DRAWER ═══════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 400;
  display: none;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed;
  top: 0; right: -480px;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--dark2);
  border-left: 1px solid var(--border);
  z-index: 401;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
  overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--dark2);
  z-index: 1;
}
.drawer-title {
  font-family: var(--font-hero);
  font-size: 1.3rem;
  letter-spacing: .04em;
}
.drawer-close {
  background: none;
  border: none;
  color: var(--fg-mute);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: .2rem;
  transition: color var(--tr);
}
.drawer-close:hover { color: var(--fg); }
.drawer-body { padding: 1.5rem; flex: 1; }

/* ══ EMPTY STATE ══════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--fg-mute);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-state-title {
  font-family: var(--font-hero);
  font-size: 1.3rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
  margin-bottom: .5rem;
}
.empty-state-sub { font-size: .82rem; line-height: 1.6; }

/* ══ SECTION TITLE ════════════════════════════════════════ */
.section-title {
  font-family: var(--font-hero);
  font-size: 1.3rem;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .4rem;
}

/* ══ SKELETON ═════════════════════════════════════════════ */
.skeleton {
  background: rgba(255,255,255,.05);
  border-radius: var(--r);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* ══ DRAG ═════════════════════════════════════════════════ */
.dragging { opacity: .4; cursor: grabbing !important; transform: scale(.98); }
.drag-over { border-color: var(--cyan) !important; border-style: dashed !important; }
[draggable="true"] { cursor: grab; }

/* ══ SETTINGS GRID ════════════════════════════════════════ */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ══ SUB-NAV (tabs within a section) ═════════════════════ */
.sub-nav {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.sub-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--tr);
}
.sub-nav-link:hover,
.sub-nav-link.active {
  color: var(--fg);
  border-color: rgba(255,45,120,.3);
  background: rgba(255,45,120,.08);
}

/* ══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  #admin-sidebar { transform: translateX(-100%); }
  #admin-sidebar.open { transform: translateX(0); }
  #sidebar-overlay.open { display: block; }
  #admin-topbar { display: flex; }
  #admin-main { margin-left: 0; padding: 4rem 1.25rem 3rem; }
  .form-row, .form-row-3, .settings-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  #admin-main { padding: 4rem .9rem 3rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .btn-sm { padding: .3rem .55rem; font-size: .64rem; }
}

/* ══ LINEUP / ITEM ROWS ═══════════════════════════════════ */
.item-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(16,13,26,.8);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: .9rem 1rem;
  margin-bottom: .5rem;
  transition: border-color var(--tr);
}
.item-row:hover { border-color: rgba(255,45,120,.2); }
.item-row-info { flex: 1; min-width: 0; }
.item-row-title { font-family: var(--font-hero); font-size: 1rem; letter-spacing: .04em; }
.item-row-sub { font-size: .76rem; color: var(--fg-mute); margin-top: .1rem; }
.item-row-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.drag-handle { cursor: grab; color: var(--fg-mute); font-size: .9rem; flex-shrink: 0; line-height: 1; padding: 0 .25rem; }
.drag-handle:hover { color: var(--fg-dim); }

/* ══ PROGRAM ITEMS ════════════════════════════════════════ */
.prog-item {
  background: rgba(16,13,26,.8);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1rem 1.25rem;
  margin-bottom: .5rem;
  cursor: grab;
  transition: border-color .2s, opacity .2s, transform .15s;
  position: relative;
}
.prog-item:hover { border-color: rgba(255,45,120,.3); }
.prog-item.is-header { border-color: rgba(0,245,255,.2); background: rgba(0,245,255,.04); }
.prog-item.is-active { border-color: var(--pink); background: linear-gradient(135deg,rgba(255,45,120,.08),rgba(16,13,26,.9)); }
.prog-item.is-completed { opacity: .4; }

/* ══ GALLERY ══════════════════════════════════════════════ */
.gal-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16,13,26,.8);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .75rem 1rem;
  margin-bottom: .5rem;
}
.gal-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }

/* ══ FEATURE TAGS ═════════════════════════════════════════ */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
  min-height: 2.5rem;
  padding: .5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 100px;
  border: 1px solid rgba(255,45,120,.35);
  background: rgba(255,45,120,.08);
  color: var(--pink);
  cursor: pointer;
  transition: all var(--tr);
}
.feature-tag:hover { background: rgba(255,45,45,.15); }
.feature-tag .del { opacity: .5; font-size: 1rem; line-height: 1; }
.feature-tag:hover .del { opacity: 1; }

/* ══ ROLE TAGS ════════════════════════════════════════════ */
.role-tag-admin   { background: rgba(255,45,120,.1);  color: var(--pink); border-color: rgba(255,45,120,.3); }
.role-tag-komitee { background: rgba(0,245,255,.1);   color: var(--cyan); border-color: rgba(0,245,255,.3); }

/* ══ AGB EDITOR ═══════════════════════════════════════════ */
.agb-editor {
  width: 100%;
  min-height: 320px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  transition: border-color var(--tr);
}
.agb-editor:focus { border-color: var(--pink); }

/* ══ EMAIL MODAL ══════════════════════════════════════════ */
.email-recipient-box {
  background: rgba(0,245,255,.05);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: var(--r);
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
}
.email-recipient-name { font-family: var(--font-hero); font-size: 1.2rem; letter-spacing: .04em; color: var(--cyan); }
.email-recipient-detail { font-family: var(--font-mono); font-size: .63rem; color: var(--fg-mute); margin-top: .2rem; }

/* ══ CAPACITY BAR ═════════════════════════════════════════ */
.capacity-bar {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: .4rem;
}
.capacity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  border-radius: 2px;
  transition: width .4s ease;
}
.capacity-bar-fill.danger { background: linear-gradient(90deg, var(--orange), var(--pink)); }
