/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0f14;
  --bg-2:         #13161e;
  --bg-3:         #1a1e2a;
  --bg-4:         #21263a;
  --border:       #2a2f45;
  --border-light: #323a55;
  --text:         #e8eaf2;
  --text-2:       #9ba3c4;
  --text-3:       #5d6690;
  --accent:       #5c73f2;
  --accent-2:     #4a5fd4;
  --accent-glow:  rgba(92, 115, 242, 0.18);
  --green:        #3ecf8e;
  --green-bg:     rgba(62, 207, 142, 0.1);
  --red:          #f25c5c;
  --red-bg:       rgba(242, 92, 92, 0.1);
  --yellow:       #f2c45c;
  --yellow-bg:    rgba(242, 196, 92, 0.1);
  --radius:       10px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.25);
  --font:         'Inter', system-ui, sans-serif;
  --mono:         'JetBrains Mono', 'Courier New', monospace;
  --sidebar-w:    220px;
  --transition:   0.18s ease;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7b8ef5; }
strong { font-weight: 600; }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ─── Logo ────────────────────────────────────────────────── */
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #5c73f2 0%, #3d4fcc 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.logo-icon.small { width: 32px; height: 32px; }
.logo-text {
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(92,115,242,0.3);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; box-shadow: 0 4px 18px rgba(92,115,242,0.4); }
.btn-ghost {
  background: var(--bg-3);
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-4); color: var(--text); border-color: var(--border-light); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(92,115,242,0.3);
}
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; box-shadow: 0 4px 18px rgba(92,115,242,0.4); }
.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: rgba(242,92,92,0.25);
}
.btn-danger:hover { background: rgba(242,92,92,0.2); border-color: rgba(242,92,92,0.45); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 13px; font-size: 0.8125rem; }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
}
.required { color: var(--red); margin-left: 3px; font-size: 0.75rem; }
.optional { color: var(--text-3); font-size: 0.75rem; font-weight: 400; }
.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-3); }
.form-input.mono { font-family: var(--mono); letter-spacing: 0.06em; font-size: 0.9rem; }
.form-input.input-error { border-color: var(--red); }
.form-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 5px; line-height: 1.5; }

.input-wrapper { position: relative; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-3); padding: 2px;
  display: flex; align-items: center;
}
.toggle-pw:hover { color: var(--text-2); }

/* Input with prefix (g2g.com/) */
.input-with-badge { display: flex; align-items: stretch; }
.input-prefix {
  background: var(--bg-4); border: 1px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text-3); font-size: 0.84rem;
  padding: 10px 11px; white-space: nowrap;
  display: flex; align-items: center;
}
.form-input.with-prefix { border-radius: 0 var(--radius) var(--radius) 0; flex: 1; }

/* ─── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 15px; border-radius: var(--radius);
  font-size: 0.875rem; margin-bottom: 18px; line-height: 1.5;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(242,92,92,0.2); }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(62,207,142,0.2); }

/* ─── Auth page ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 60% 20%, rgba(92,115,242,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(62,207,142,0.04) 0%, transparent 60%),
              var(--bg);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.auth-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-2); font-size: 0.9rem; margin-bottom: 24px; }

/* ─── Admin layout ────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100%;
  z-index: 100;
}
.sidebar-header {
  padding: 20px 18px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav { flex: 1; padding: 14px 10px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-link:hover { background: var(--bg-3); color: var(--text); }
.nav-link.active { background: var(--accent-glow); color: var(--accent); }
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-user { font-size: 0.8125rem; color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 5px;
  border-radius: 6px; display: flex; align-items: center;
  transition: color var(--transition), background var(--transition);
}
.btn-logout:hover { color: var(--red); background: var(--red-bg); }

/* Main content */
.admin-main {
  margin-left: var(--sidebar-w); flex: 1; padding: 28px 32px;
  min-width: 0;
}

/* Page header */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
}
.page-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.025em; }
.page-subtitle { color: var(--text-2); font-size: 0.875rem; margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb-group { display: flex; align-items: center; gap: 7px; }
.breadcrumb-link { font-size: 0.875rem; color: var(--text-2); }
.breadcrumb-link:hover { color: var(--text); }
.breadcrumb-current { font-size: 0.875rem; color: var(--text); font-weight: 600; }

/* Stats grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.teams   { background: rgba(92,115,242,0.15); color: var(--accent); }
.stat-icon.keys    { background: rgba(242,196,92,0.13); color: var(--yellow); }
.stat-icon.available { background: var(--green-bg); color: var(--green); }
.stat-icon.used    { background: rgba(92,115,242,0.12); color: #9ba3f2; }
.stat-data { display: flex; flex-direction: column; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }

/* Section header */
.section-header { margin-bottom: 14px; }
.section-title { font-size: 1rem; font-weight: 600; color: var(--text-2); }

/* Teams grid */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.team-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.team-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.team-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.team-name { font-size: 1rem; font-weight: 600; }
.team-desc { font-size: 0.82rem; color: var(--text-3); margin-top: 3px; }
.team-card-footer { display: flex; flex-direction: column; gap: 10px; }
.slot-progress {}
.slot-bar { height: 5px; background: var(--bg-4); border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.slot-fill { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, var(--green) 100%); border-radius: 99px; transition: width 0.5s ease; }
.slot-text { font-size: 0.78rem; color: var(--text-3); }
.team-badges { display: flex; gap: 7px; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 0.75rem; font-weight: 500;
}
.badge-available { background: var(--green-bg); color: var(--green); }
.badge-used      { background: var(--red-bg); color: var(--red); }
.badge-total     { background: var(--bg-4); color: var(--text-2); }

/* Team info bar */
.team-info-bar {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 14px; flex-wrap: wrap;
}
.team-info-name h2 { font-size: 1.1rem; font-weight: 700; }
.team-info-name p  { font-size: 0.84rem; color: var(--text-3); margin-top: 3px; }
.team-info-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* Keys table */
.table-wrapper {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.keys-table { width: 100%; border-collapse: collapse; }
.keys-table thead th {
  background: var(--bg-3);
  text-align: left; padding: 11px 16px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.th-actions { text-align: right; }
.keys-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.keys-table tbody tr:last-child { border-bottom: none; }
.keys-table tbody tr:hover { background: var(--bg-3); }
.keys-table tbody td { padding: 11px 16px; font-size: 0.875rem; vertical-align: middle; }

.slot-num { color: var(--text-3); font-size: 0.8rem; width: 40px; }
.slot-key-cell { display: flex; align-items: center; gap: 8px; }
.key-display { font-family: var(--mono); font-size: 0.83rem; color: var(--text); letter-spacing: 0.04em; background: var(--bg-3); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); }
.row-used .key-display { color: var(--text-3); }

.btn-copy {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 5px; border-radius: 6px;
  display: flex; align-items: center;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.btn-copy:hover { color: var(--accent); background: var(--accent-glow); }
.hidden { display: none !important; }

.status-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 500;
}
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-dot.available::before { background: var(--green); box-shadow: 0 0 5px var(--green); }
.status-dot.available { color: var(--green); }
.status-dot.used::before { background: var(--text-3); }
.status-dot.used { color: var(--text-3); }

.g2g-cell .g2g-name { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); }
.date-cell { color: var(--text-3); font-size: 0.82rem; }
.empty-cell { color: var(--text-3); }
.actions-cell { text-align: right; white-space: nowrap; }
.btn-action {
  background: none; border: 1px solid transparent; cursor: pointer;
  color: var(--text-3); padding: 6px; border-radius: 6px;
  display: inline-flex; align-items: center;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.btn-action:hover { color: var(--accent); background: var(--accent-glow); border-color: rgba(92,115,242,0.2); }
.btn-action.danger:hover { color: var(--red); background: var(--red-bg); border-color: rgba(242,92,92,0.2); }

/* Empty state */
.empty-state {
  padding: 60px 20px; text-align: center;
  background: var(--bg-2); border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-icon { color: var(--text-3); margin-bottom: 16px; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; color: var(--text-2); }

/* Toast notifications */
.toast-container {
  position: fixed; top: 18px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 0.875rem; color: var(--text);
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease;
  max-width: 340px;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-success svg { color: var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-error svg { color: var(--red); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Modal */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
  z-index: 500; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 460px;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header { padding: 20px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.05rem; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-3); padding: 4px; border-radius: 6px; display: flex; }
.modal-close:hover { color: var(--text); background: var(--bg-3); }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 0 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }

/* ─── Buyer page ──────────────────────────────────────────── */
.buyer-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 70% 15%, rgba(92,115,242,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(62,207,142,0.05) 0%, transparent 55%),
    var(--bg);
}
.buyer-card {
  width: 100%; max-width: 460px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow);
}
.buyer-header { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.buyer-logo { display: flex; align-items: center; gap: 10px; }
.buyer-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; text-align: center; margin-bottom: 8px; }
.buyer-subtitle { color: var(--text-2); font-size: 0.9rem; text-align: center; margin-bottom: 26px; }

/* Checkbox */
.checkbox-group { margin-bottom: 22px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.checkbox-input { display: none; }
.checkbox-custom {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 5px; transition: background var(--transition), border-color var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.checkbox-input:checked + .checkbox-custom {
  background: var(--accent); border-color: var(--accent);
}
.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.checkbox-text { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }
.checkbox-help { font-size: 0.8rem; color: var(--text-3); margin-top: 8px; padding-left: 29px; }
.contact-link { color: var(--accent); cursor: pointer; text-decoration: underline; }
.contact-info {
  margin-top: 8px; margin-left: 29px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  font-size: 0.82rem; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}

.btn-activate { padding: 12px 18px; font-size: 0.9375rem; }

/* ─── Active Team Banner ──────────────────────────────────── */
.active-team-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 22px;
}
.active-team-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.active-team-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(62,207,142,.2);
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62,207,142,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(62,207,142,.08); }
}
.active-team-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-bottom: 2px;
}
.active-team-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-team-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.active-team-slots {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.active-team-slots-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.active-team-bar-track {
  width: 100px;
  height: 5px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}
.active-team-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
}
.active-team-fraction {
  font-size: 0.72rem;
  color: var(--text-3);
}
.buyer-footer-note {
  display: flex; align-items: center; gap: 7px;
  margin-top: 18px; font-size: 0.78rem; color: var(--text-3);
  justify-content: center; text-align: center;
}

/* ─── Success card ────────────────────────────────────────── */
.success-card { text-align: center; }
.success-icon-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.success-ring {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green-bg); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  box-shadow: 0 0 24px rgba(62,207,142,0.2);
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.success-details {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 22px 0 20px;
  text-align: left;
}
.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 0.8125rem; color: var(--text-3); }
.detail-value { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.mono-val { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }

.success-notice {
  display: flex; align-items: flex-start; gap: 9px;
  background: rgba(92,115,242,0.08); border: 1px solid rgba(92,115,242,0.2);
  border-radius: var(--radius); padding: 12px 14px;
  font-size: 0.82rem; color: var(--text-2); line-height: 1.55;
  margin-bottom: 20px; text-align: left;
}
.success-notice svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }

/* ─── Slot Progress Block ─────────────────────────────────── */
.slot-progress-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0 10px;
  text-align: left;
}
.slot-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.slot-progress-label { font-size: 0.85rem; color: var(--text-2); }
.slot-progress-count { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.slot-progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.slot-progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.slot-progress-bar-fill.fill-green { background: var(--green); }
.slot-progress-note {
  font-size: 0.82rem;
  color: var(--text-2);
  margin: 0;
}
.slot-progress-note.full { color: var(--green); font-weight: 600; }
.slot-progress-note.warn { color: #f59e0b; }

/* ─── Status Badges ───────────────────────────────────────── */
.status-badge-full,
.status-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.status-badge-full { background: rgba(62,207,142,.15); color: var(--green); border: 1px solid rgba(62,207,142,.3); }
.status-badge-pending { background: rgba(245,158,11,.12); color: #f59e0b; border: 1px solid rgba(245,158,11,.25); }

/* ─── Slot List ───────────────────────────────────────────── */
.slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}
.slot-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 16px;
}
.slot-list-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-light);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slot-list-username { flex: 1; font-size: 0.88rem; font-weight: 500; color: var(--text); font-family: 'JetBrains Mono', monospace; }
.slot-list-empty { flex: 1; font-size: 0.85rem; color: var(--text-3); font-style: italic; }
.status-dot.small { font-size: 0.72rem; padding: 2px 8px; }
.status-card { text-align: center; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; padding: 18px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .teams-grid { grid-template-columns: 1fr; }
  .table-wrapper { overflow-x: auto; }
  .buyer-card { padding: 26px 20px; }
  .auth-card { padding: 26px 22px; }
}
