/* Local Fonts — Fast zero-external-request loading */
@font-face {
  font-family: 'Inter';
  src: url('/static/css/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/css/manrope.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Material Symbols Outlined – local optimized subset font */
@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('/static/css/material-symbols.woff2?v=2.2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: block;
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Fallback styles when Material Symbols font is blocked (e.g. on Tor Browser) */
.no-material-font .material-symbols-outlined {
  font-family: inherit !important;
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.25em !important;
  height: 1.25em !important;
  vertical-align: middle;
}
.no-material-font .material-symbols-outlined::before {
  font-size: 14px !important;
  color: currentColor !important;
  display: inline-block !important;
}

/* Specific icon mappings to Unicode/Emoji symbols */
.no-material-font .material-symbols-outlined[data-icon="storefront"]::before { content: '🏪'; }
.no-material-font .material-symbols-outlined[data-icon="account_balance_wallet"]::before { content: '💳'; }
.no-material-font .material-symbols-outlined[data-icon="logout"]::before { content: '🚪'; }
.no-material-font .material-symbols-outlined[data-icon="person"]::before { content: '👤'; }
.no-material-font .material-symbols-outlined[data-icon="shopping_cart"]::before { content: '🛒'; }
.no-material-font .material-symbols-outlined[data-icon="close"]::before { content: '✕'; font-size: 16px !important; }
.no-material-font .material-symbols-outlined[data-icon="menu"]::before { content: '☰'; font-size: 18px !important; }
.no-material-font .material-symbols-outlined[data-icon="receipt_long"]::before { content: '📋'; }
.no-material-font .material-symbols-outlined[data-icon="group"]::before { content: '👥'; }
.no-material-font .material-symbols-outlined[data-icon="support_agent"]::before { content: '🎧'; }
.no-material-font .material-symbols-outlined[data-icon="add_circle"]::before { content: '➕'; }
.no-material-font .material-symbols-outlined[data-icon="shopping_bag"]::before { content: '🛍️'; }
.no-material-font .material-symbols-outlined[data-icon="help"]::before { content: '❓'; }
.no-material-font .material-symbols-outlined[data-icon="verified_user"]::before { content: '🛡️'; }
.no-material-font .material-symbols-outlined[data-icon="fingerprint"]::before { content: '🔑'; }
.no-material-font .material-symbols-outlined[data-icon="shield"]::before { content: '🛡️'; }
.no-material-font .material-symbols-outlined[data-icon="info"]::before { content: 'ℹ️'; }
.no-material-font .material-symbols-outlined[data-icon="send"]::before { content: '✉️'; }
.no-material-font .material-symbols-outlined[data-icon="arrow_back"]::before { content: '←'; font-size: 16px !important; }
.no-material-font .material-symbols-outlined[data-icon="delete"]::before { content: '🗑️'; font-size: 16px !important; }
.no-material-font .material-symbols-outlined[data-icon="admin_panel_settings"]::before { content: '⚙️'; }
.no-material-font .material-symbols-outlined[data-icon="apps"]::before { content: '📱'; }
.no-material-font .material-symbols-outlined[data-icon="arrow_downward"]::before { content: '↓'; font-size: 16px !important; }
.no-material-font .material-symbols-outlined[data-icon="arrow_upward"]::before { content: '↑'; font-size: 16px !important; }
.no-material-font .material-symbols-outlined[data-icon="check_circle"]::before { content: '✔️'; }
.no-material-font .material-symbols-outlined[data-icon="schedule"]::before { content: '🕒'; }
.no-material-font .material-symbols-outlined[data-icon="search"]::before { content: '🔍'; }
.no-material-font .material-symbols-outlined[data-icon="progress_activity"]::before { content: '⏳'; }
.no-material-font .material-symbols-outlined[data-icon="inventory_2"]::before { content: '📦'; }
.no-material-font .material-symbols-outlined[data-icon="autorenew"]::before { content: '🔄'; }

/* ══════════════════════════════════════════
   DESIGN TOKENS — Unified with Tailwind pages
══════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:           #09090b;   /* Deep rich obsidian background */
  --bg-panel:     rgba(20, 20, 26, 0.75); /* Glass panel */
  --bg-input:     rgba(15, 15, 19, 0.85); /* Glass input field */
  --bg-card:      rgba(22, 22, 29, 0.7);  /* Glass card surface */

  /* Borders */
  --border:       rgba(255, 255, 255, 0.08); /* Soft glass border */
  --border-hi:    rgba(255, 255, 255, 0.16); /* Highlighted border */

  /* Accent — Rose Glow & Violet Accent */
  --accent:       #f43f5e;   /* rose-500 */
  --accent-dk:    #e11d48;   /* rose-600 */
  --accent-glow:  rgba(244, 63, 94, 0.35);
  --purple-glow:  rgba(168, 85, 247, 0.25);

  /* Text */
  --text:         #f4f4f5;   /* crisp white text */
  --text-muted:   #a1a1aa;   /* slate-400 */
  --text-dim:     #71717a;   /* slate-500 */

  /* Status */
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #f43f5e;

  /* Shape & Glass */
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 12px 40px rgba(0, 0, 0, 0.7);
  --glass-blur:   blur(16px);
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 15% 15%, rgba(244, 63, 94, 0.06), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.05), transparent 45%),
              #09090b;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius); border: none;
  font-size: 14px; font-weight: 600; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dk);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--text); }
.btn-danger { background: rgba(244,63,94,0.12); color: var(--accent); border: 1px solid rgba(244,63,94,0.3); }
.btn-danger:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-input {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  padding: 11px 14px; font-size: 14px; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-dim); }
.form-hint { font-size: 12px; color: var(--text-dim); }

/* ══════════════════════════════════════════
   ALERTS / TOAST
══════════════════════════════════════════ */
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: 13px;
  font-weight: 500; display: none; margin-bottom: 16px;
}
.alert.show { display: block; }
.alert-error   { background: rgba(244,63,94,0.10); border: 1px solid rgba(244,63,94,0.3); color: #f43f5e; }
.alert-success { background: rgba(38,222,129,0.08); border: 1px solid rgba(38,222,129,0.3); color: var(--success); }

#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); animation: slideIn 0.3s ease;
  min-width: 260px; max-width: 360px;
}
.toast-success { background: #0e2a1a; border: 1px solid var(--success); color: var(--success); }
.toast-error   { background: #2a0e14; border: 1px solid var(--accent); color: var(--accent); }
.toast-info    { background: #0e1a2a; border: 1px solid #4fc3f7; color: #4fc3f7; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════
   AUTH LAYOUT
══════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-box {
  display: flex; width: 100%; max-width: 900px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.auth-brand {
  flex: 0 0 45%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 40px;
  background: radial-gradient(ellipse at center, #2a1010 0%, #0e0e0e 100%);
  border-right: 1px solid var(--border);
}
.auth-brand-logo {
  font-family: 'Manrope', sans-serif;
  font-size: 36px; font-weight: 800; letter-spacing: 8px;
  text-transform: uppercase; color: var(--text);
}
.auth-brand-logo span { color: var(--accent); }
.auth-brand-tagline { color: var(--text-dim); font-size: 12px; margin-top: 12px; letter-spacing: 3px; text-transform: uppercase; }

.auth-brand-features {
  margin-top: 40px; display: flex; flex-direction: column; gap: 14px; width: 100%;
}
.auth-brand-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-dim);
}
.auth-brand-feat-icon {
  width: 32px; height: 32px; background: rgba(244,63,94,0.08);
  border: 1px solid rgba(244,63,94,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(244,63,94,0.6); flex-shrink: 0;
}

.auth-form-wrap {
  flex: 1; padding: 50px 48px; display: flex; flex-direction: column; justify-content: center;
}
.auth-title {
  font-family: 'Manrope', sans-serif;
  font-size: 26px; font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }
.auth-sub a { color: var(--accent); font-weight: 500; }

/* Captcha */
.captcha-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.captcha-img-row { display: flex; align-items: center; gap: 10px; }
.captcha-img {
  flex: 1; height: 54px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-input);
}
.captcha-img img { width: 100%; height: 100%; object-fit: fill; }
.captcha-refresh {
  width: 36px; height: 36px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition); flex-shrink: 0;
}
.captcha-refresh:hover { border-color: var(--accent); color: var(--accent); transform: rotate(180deg); }
.captcha-refresh svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════
   PHRASE DISPLAY (12 words)
══════════════════════════════════════════ */
.phrase-step { display: none; }
.phrase-step.active { display: block; }
.phrase-warning {
  background: rgba(254,211,48,0.06); border: 1px solid rgba(254,211,48,0.25);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px; color: var(--warning); font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
}
.phrase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 20px;
}
.phrase-word {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.phrase-word .num { color: var(--text-dim); font-size: 11px; min-width: 16px; }
.phrase-word .word { color: var(--text); font-weight: 500; }
.phrase-copy {
  width: 100%; padding: 10px; background: var(--bg-input);
  border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--text-muted); font-size: 13px; font-family: 'Courier New', monospace;
  text-align: center; cursor: pointer; transition: all var(--transition);
  margin-bottom: 16px;
}
.phrase-copy:hover { border-color: var(--accent); color: var(--text); }

/* ══════════════════════════════════════════
   APP SHELL HEADER (post-login)
══════════════════════════════════════════ */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  font-family: 'Manrope', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text);
}
.header-logo span { color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition);
}
.header-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.header-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 8px; background: transparent;
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); transition: all var(--transition);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════ */
.admin-shell { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar {
  width: 230px; flex-shrink: 0; background: var(--bg-panel);
  border-right: 1px solid var(--border); padding: 28px 16px;
  display: flex; flex-direction: column;
}
.admin-sidebar-title { font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--text-dim); text-transform: uppercase; padding: 0 8px; margin-bottom: 14px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
}
.admin-nav-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.admin-nav-item.active { color: var(--accent); background: rgba(244,63,94,0.08); }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-content { flex: 1; padding: 36px 40px; overflow-y: auto; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.tab-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text);
}

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; font-size: 13px; }
.data-table th { color: var(--text-dim); font-weight: 600; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table td { border-bottom: 1px solid rgba(31,31,31,0.8); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-admin  { background: rgba(244,63,94,0.12); color: var(--accent); }
.badge-owner  { background: rgba(245,158,11,0.12); color: #f59e0b; }
.badge-vendor { background: rgba(167,139,250,0.12); color: #a78bfa; }
.badge-user   { background: rgba(120,120,120,0.12); color: var(--text-muted); }
.badge-banned { background: rgba(244,63,94,0.2); color: #ff8a8a; }
.badge-active { background: rgba(38,222,129,0.08); color: var(--success); }

/* Wallet card */
.wallet-card {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.wallet-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wallet-coin-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: rgba(244,63,94,0.12); color: var(--accent); letter-spacing: 1px;
}
.wallet-addresses { display: flex; flex-direction: column; gap: 8px; }
.wallet-addr-row { display: flex; align-items: center; gap: 8px; }
.wallet-addr-row input { flex: 1; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-panel); border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  box-shadow: var(--shadow); transform: scale(0.96); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 700; font-family: 'Manrope', sans-serif; }
.modal-close { background: none; border: none; color: var(--text-muted);
  font-size: 22px; line-height: 1; transition: color var(--transition); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { padding: 0 24px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.stat-label { font-size: 11px; color: var(--text-dim); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.stat-val { font-size: 28px; font-weight: 700; }

/* ══════════════════════════════════════════
   SUPPORT PAGE
══════════════════════════════════════════ */
.support-layout {
  max-width: 1200px; margin: 40px auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
@media (max-width: 900px) { .support-layout { grid-template-columns: 1fr; } }

.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.panel-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px; font-weight: 700; margin-bottom: 24px;
  border-bottom: 1px solid var(--border); padding-bottom: 12px; color: var(--text);
}

/* Ticket styles */
.ticket-list { display: flex; flex-direction: column; gap: 16px; }
.ticket-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all 0.2s; }
.ticket-card:hover { border-color: var(--accent); }
.ticket-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ticket-id { font-family: monospace; font-size: 14px; color: var(--text-muted); font-weight: 600; }
.ticket-subject { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.ticket-status { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-open     { background: rgba(254,211,48,0.08);  color: #fed330; border: 1px solid rgba(254,211,48,0.25); }
.status-replied  { background: rgba(38,222,129,0.08);  color: var(--success); border: 1px solid rgba(38,222,129,0.25); }
.status-closed   { background: rgba(120,120,120,0.08); color: var(--text-dim); border: 1px solid rgba(120,120,120,0.2); }

/* ══════════════════════════════════════════
   FILE UPLOAD COMPONENT
══════════════════════════════════════════ */
.upload-container {
  width: 100%; min-height: 140px;
  background: var(--bg-input);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: all var(--transition);
  overflow: hidden; cursor: pointer;
}
.upload-container:hover, .upload-container.dragover {
  border-color: var(--accent);
  background: rgba(244,63,94,0.04);
}
.upload-placeholder { text-align: center; color: var(--text-dim); pointer-events: none; }
.upload-placeholder svg { width: 32px; height: 32px; margin-bottom: 8px; opacity: 0.5; }
.upload-placeholder p { font-size: 13px; font-weight: 500; }
.preview-container {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; position: relative;
}
.preview-container img { max-width: 100%; max-height: 120px; border-radius: 8px; object-fit: contain; box-shadow: var(--shadow); }
.remove-image {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: rgba(244,63,94,0.9); color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all var(--transition); z-index: 5;
}
.remove-image:hover { background: var(--accent-dk); transform: scale(1.1); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form-wrap { padding: 36px 24px; }
  .auth-box { max-width: 100%; }
  .phrase-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 60px; }
  .admin-nav-item span { display: none; }
  .app-header { padding: 0 16px; }
  .header-nav { display: none !important; }
  
  /* Support Shell stacking on mobile */
  .support-shell {
    flex-direction: column;
    height: calc(100vh - 64px) !important;
  }
  .support-sidebar {
    width: 100% !important;
    height: 100% !important;
    border-right: none !important;
  }
  .support-chat {
    width: 100% !important;
    height: 100% !important;
    display: none !important;
  }
  .support-shell.show-chat .support-sidebar {
    display: none !important;
  }
  .support-shell.show-chat .support-chat {
    display: flex !important;
  }
}

/* ══════════════════════════════════════════
   MODERN GLASS & MICRO-INTERACTIONS
══════════════════════════════════════════ */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.glass-card-hover {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.glass-card-hover:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px var(--accent-glow);
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════
   ENHANCEMENTS v2 — Animation & UX polish
══════════════════════════════════════════ */

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.6s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: rgba(20,20,26,0.65);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skeleton-img   { height: 175px; }
.skeleton-line  { height: 12px; margin: 8px 16px; }
.skeleton-line-sm { height: 10px; width: 60%; margin: 6px 16px; }

/* Staggered reveal */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-reveal.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0ms; }
.stagger-reveal.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: 80ms; }
.stagger-reveal.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 160ms; }
.stagger-reveal.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: 240ms; }
.stagger-reveal.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay: 320ms; }
.stagger-reveal.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay: 400ms; }

/* Alert slide-down animation */
.alert.show {
  display: block;
  animation: alert-slide-down 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes alert-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Copy feedback tooltip */
.copy-tooltip {
  position: relative;
  display: inline-flex;
}
.copy-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%; transform: translateX(-50%) scale(0.9);
  background: rgba(30,30,36,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: all 0.15s;
  backdrop-filter: blur(8px);
}
.copy-tooltip.show-tip::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Empty state */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 72px 24px; text-align: center;
  color: var(--text-dim);
  grid-column: 1 / -1;
}
.empty-state svg { width: 56px; height: 56px; opacity: 0.3; margin-bottom: 16px; }
.empty-state p   { font-size: 14px; max-width: 280px; line-height: 1.6; }
.empty-state strong { display: block; font-size: 16px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }

/* Live pulse dot */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%       { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* Section divider with label */
.section-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0;
  color: var(--text-dim); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.section-divider::before,
.section-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

/* Spin animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* Table row rose hover */
.data-table tr:hover td {
  background: rgba(244, 63, 94, 0.035) !important;
}

/* Coin tab active */
.coin-tab.active {
  border-color: #f43f5e !important;
  color: #f43f5e !important;
  background: rgba(244,63,94,0.1) !important;
  box-shadow: 0 0 12px rgba(244,63,94,0.15);
}

/* Image lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  cursor: zoom-out;
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,0.8);
  transform: scale(0.92); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.lightbox-overlay.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(244,63,94,0.3); }
.product-img-clickable { cursor: zoom-in !important; }

/* Password strength bar */
#pw-strength-bar { margin-top: 6px; height: 3px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
#pw-strength-fill { height: 100%; border-radius: 99px; transition: width 0.3s ease, background 0.3s ease; width: 0%; }
