
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #05070C;
  --bg-card: rgba(20,25,38,0.58);
  --bg-card-solid: #10141F;
  --bg-sidebar: rgba(6,8,14,0.72);
  --bg-soft: #171C2B;
  --sidebar-text: #8B93A7;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(34,211,255,0.14);
  --border: rgba(255,255,255,0.09);
  --border-soft: rgba(255,255,255,0.055);
  --text: #EDEFF5;
  --text-muted: #8B93A7;
  --primary: #22D3FF;
  --primary-rgb: 34,211,255;
  --primary-dark: #00B8E6;
  --primary-light: rgba(34,211,255,0.13);
  --coral: #FF3D8A;
  --coral-rgb: 255,61,138;
  --coral-light: rgba(255,61,138,0.13);
  --success: #2FEA8E;
  --success-light: rgba(47,234,142,0.12);
  --danger: #FF4368;
  --danger-light: rgba(255,67,104,0.12);
  --warning: #FFC93C;
  --warning-light: rgba(255,201,60,0.12);
  --info: #2BD9FF;
  --info-rgb: 43,217,255;
  --info-light: rgba(43,217,255,0.12);
  --shadow: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 10px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
  --glow: 0 0 0 4px rgba(34,211,255,.12);
  --glow-cyan: 0 0 0 4px rgba(43,217,255,.12);
  --glow-primary-soft: 0 0 18px rgba(34,211,255,.28);
  --glow-primary-strong: 0 0 28px rgba(34,211,255,.45);
  --glow-pink-soft: 0 0 18px rgba(255,61,138,.3);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --border-w: 1px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --sidebar-w: 260px;
  --header-h: 64px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glass-blur: blur(20px) saturate(150%);
  --glass-shine: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.015);
  --glass-hover-lift: translateY(-3px);
}

[data-theme="dark"] {
  --bg: #05070C;
  --bg-card: rgba(20,25,38,0.58);
  --bg-sidebar: rgba(6,8,14,0.72);
  --border: rgba(255,255,255,0.09);
  --text: #EDEFF5;
  --text-muted: #8B93A7;
  --primary: #22D3FF;
  --primary-dark: #00B8E6;
  --primary-light: rgba(34,211,255,0.13);
  --success: #2FEA8E;
  --success-light: rgba(47,234,142,0.12);
  --danger: #FF4368;
  --danger-light: rgba(255,67,104,0.12);
  --warning: #FFC93C;
  --warning-light: rgba(255,201,60,0.12);
  --info: #2BD9FF;
  --info-light: rgba(43,217,255,0.12);
  --sidebar-text: #8B93A7;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(34,211,255,0.14);
  --shadow: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 10px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
}

#theme-toggle { display: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(rgba(34,211,255,.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(34,211,255,.035) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 8% 0%, rgba(255,61,138,.06), transparent 40%),
    radial-gradient(circle at 96% 12%, rgba(43,217,255,.05), transparent 38%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
* { -webkit-tap-highlight-color: rgba(34,211,255,0.25); }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -.01em; }
::selection { background: var(--primary); color: #052430; }

.text-glow { text-shadow: 0 0 14px rgba(var(--primary-rgb), .55), 0 0 30px rgba(var(--primary-rgb), .25); }
.text-glow-pink { text-shadow: 0 0 14px rgba(var(--coral-rgb), .55), 0 0 30px rgba(var(--coral-rgb), .25); }

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 8%, rgba(34,211,255,.16), transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(255,61,138,.13), transparent 38%),
    var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg), var(--glass-shine);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--coral));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 16px;
  color: #052430;
  box-shadow: var(--glow-primary-soft);
}
.auth-logo h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.auth-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
  border-right: 1px solid var(--border-soft);
}
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--coral), var(--primary));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  color: #052430;
  box-shadow: var(--glow-pink-soft);
}
.sidebar-logo span { font-size: 15px; font-weight: 700; color: #fff; font-family: var(--font-display); }

.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #48526b; padding: 8px 8px 4px; margin-top: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  margin-bottom: 2px; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-text-active); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--primary); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), .7);
}
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; color: inherit; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge { margin-left: auto; background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }

.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.05); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
.sidebar-user:hover { background: rgba(255,255,255,.05); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #17110a;
  overflow: hidden; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: #5b657e; }

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; max-width: 100%;
  overflow-x: clip;
}

.topbar {
  height: var(--header-h);
  background: rgba(18,24,38,.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px;
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; z-index: 50;
  gap: 16px;
}
.topbar-title { font-size: 17px; font-weight: 700; flex: 1; font-family: var(--font-display); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: all var(--transition); font-size: 16px;
}
.btn-icon:hover { background: var(--bg-soft); color: var(--text); border-color: var(--primary); }

.btn-login-topbar { padding: 8px 16px; font-size: 13px; height: 36px; }

.page-content { padding: 24px; padding-top: calc(var(--header-h) + 25px); flex: 1; }

.card {
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-shine);
  max-width: 100%;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  border-color: rgba(255,255,255,0.16);
  box-shadow: var(--shadow-md), var(--glass-shine);
}
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.card-body { padding: 20px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow), var(--glass-shine);
  display: flex; align-items: flex-start; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: var(--glass-hover-lift); box-shadow: var(--shadow-md), var(--glass-shine); border-color: rgba(255,255,255,0.16); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; color: transparent;
}
.stat-icon.indigo { background: var(--primary-light); border-color: var(--primary); }
.stat-icon.green { background: var(--success-light); border-color: var(--success); }
.stat-icon.red { background: var(--danger-light); border-color: var(--danger); }
.stat-icon.blue { background: var(--info-light); border-color: var(--info); }
.stat-icon.yellow { background: var(--warning-light); border-color: var(--warning); }
.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.wallet-hero {
  background: linear-gradient(135deg, #0E1A12 0%, #0B0F17 55%, #08090D 100%);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md), var(--glow-primary-soft);
}
.wallet-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,255,.22), transparent 70%);
  pointer-events: none;
}
.wallet-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.wallet-balance { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; font-family: var(--font-display); text-shadow: 0 0 18px rgba(var(--primary-rgb),.35); }
.wallet-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #052430; box-shadow: var(--shadow); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); box-shadow: var(--shadow-md), var(--glow-primary-strong); transform: translateY(-2px); }
.btn-success { background: var(--success); color: #06231a; box-shadow: var(--shadow); }
.btn-success:hover:not(:disabled) { box-shadow: var(--shadow-md), var(--glow-cyan); transform: translateY(-2px); }
.btn-danger { background: var(--coral); color: #fff; box-shadow: var(--shadow); }
.btn-danger:hover:not(:disabled) { box-shadow: var(--shadow-md), var(--glow-pink-soft); filter: brightness(1.06); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); box-shadow: var(--glow-primary-soft); transform: translateY(-2px); }
.btn-white { background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); }
.btn-white:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .6s linear infinite; color: #fff;
}

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,211,255,.18); }
.form-control::placeholder { color: var(--text-muted); }
.input-group { position: relative; }
.input-group .form-control { padding-right: 48px; }
.input-group .form-control.has-2-addons { padding-right: 76px; }
.input-addon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; cursor: pointer; }
.input-addons { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; }
.input-addons .input-addon { position: static; transform: none; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
@media (max-width: 768px) {
  .table td { white-space: normal; word-break: break-word; padding: 8px 10px; font-size: 12px; }
  .table th { white-space: nowrap; padding: 8px 10px; font-size: 10px; letter-spacing: .03em; }
}
.table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); background: var(--bg); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-soft); }
.table-empty { text-align: center; padding: 48px; color: var(--text-muted); }
.table-empty .empty-icon { font-size: 40px; margin-bottom: 12px; }

.badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge-success { background: var(--success-light); color: var(--success); border-color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); border-color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); border-color: var(--info); }
.badge-secondary { background: var(--bg-soft); color: var(--text-muted); border-color: var(--border); }
.badge-primary { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(52,211,153,.3); }
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(244,80,107,.3); }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(255,201,60,.3); }
.alert-info { background: var(--info-light); color: var(--info); border: 1px solid rgba(78,201,245,.3); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,8,13,.65); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--glass-shine); transform: scale(.95); transition: transform var(--transition), opacity var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 16px; font-weight: 700; font-family: var(--font-display); }
.modal-close { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-soft); display: flex; gap: 10px; justify-content: flex-end; }

.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; gap: 12px; }
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination-nav { display: flex; gap: 4px; }
.page-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--text);
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #052430; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

.qr-container { text-align: center; padding: 32px; }
.qr-box { display: inline-block; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); margin: 0 auto 20px; }
.qr-box img { display: block; width: 220px; height: 220px; }
.qr-amount { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 8px; font-family: var(--font-display); }
.qr-label { font-size: 13px; color: var(--text-muted); }
.qr-timer { font-size: 18px; font-weight: 700; color: var(--warning); margin: 12px 0; }
.qr-status-polling { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--text-muted); font-size: 13px; margin-top: 16px; }
.polling-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.2s ease infinite; }

.chart-wrapper { position: relative; height: 220px; }
.chart-wrapper canvas { max-width: 100%; width: 100% !important; display: block; }
.chart-legend-custom { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 12px; }
.chart-legend-item { font-size: 12px; font-weight: 600; cursor: pointer; user-select: none; transition: color var(--transition); }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method-btn {
  padding: 12px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); cursor: pointer; text-align: center; font-size: 12px; font-weight: 600;
  color: var(--text); transition: all var(--transition);
}
.method-btn:hover { border-color: var(--primary); color: var(--primary); }
.method-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.wallet-logo {
  width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 14px 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast {
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: flex-start; gap: 10px;
  animation: slideIn .3s ease; font-size: 13px; border-left: 3px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.notif-bell-wrapper { position: relative; display: inline-flex; }
.notif-badge {
  position: absolute; top: -2px; right: -2px; background: var(--coral); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; display: none; align-items: center; justify-content: center;
  line-height: 1; border: 2px solid var(--bg-card);
}
.notif-panel {
  position: fixed; width: 340px; max-width: calc(100vw - 16px);
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); z-index: 9998; opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.notif-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.notif-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); font-weight: 700; font-size: 14px; }
.notif-panel-header-actions { display: flex; align-items: center; gap: 10px; }
.notif-push-toggle { background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 4px; line-height: 1; }
.notif-push-toggle.active { color: var(--primary); }
.notif-mark-all { background: none; border: none; color: var(--primary); font-size: 11.5px; cursor: pointer; font-weight: 600; }
.notif-panel-list { max-height: 380px; overflow-y: auto; }
.notif-empty { text-align: center; padding: 36px 16px; color: var(--text-muted); font-size: 13px; }
.notif-empty i { font-size: 28px; display: block; margin-bottom: 8px; opacity: .5; }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: background .15s; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item.unread { background: var(--primary-light); }
.notif-item-icon { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; background: var(--info); }
.notif-item-icon.success { background: var(--success); }
.notif-item-icon.warning { background: var(--warning); }
.notif-item-icon.danger { background: var(--danger); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.notif-item-msg { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; word-break: break-word; }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.cs-panel {
  position: fixed; width: 300px; max-width: calc(100vw - 16px);
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); z-index: 9998; opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.cs-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cs-panel-header { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); font-weight: 700; font-size: 14px; }
.cs-panel-list { padding: 6px; }
.cs-panel-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s; }
.cs-panel-item:hover { background: var(--bg-soft); }
.cs-panel-icon { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; background: var(--primary); }
.cs-panel-icon.whatsapp { background: #25d366; }
.cs-panel-icon.telegram { background: #229ed9; }
.cs-panel-body { flex: 1; min-width: 0; }
.cs-panel-title { font-size: 13.5px; font-weight: 700; }
.cs-panel-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.cs-panel-arrow { font-size: 11px; color: var(--text-muted); }

#cs-chat-window { right: auto; left: 20px; z-index: 9993; }
@media (max-width: 480px) { #cs-chat-window { left: 8px; right: 8px; width: auto; } }

.chat-fab {
  position: fixed; bottom: 22px; right: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--coral)); color: #052430;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  border: none; cursor: pointer; box-shadow: 0 8px 22px rgba(34,211,255,.4); z-index: 9990;
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .chat-fab-badge {
  position: absolute; top: -4px; right: -4px; background: var(--coral); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; display: none; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.chat-fab .chat-fab-online { position: absolute; bottom: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg); }

.chat-window {
  position: fixed; bottom: 90px; right: 20px; width: 360px; height: 520px; max-height: calc(100vh - 110px);
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 9991;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; overflow: hidden;
}
.chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-window-header { padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--coral)); color: #052430; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.chat-window-header-title { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.chat-window-header-sub { font-size: 11px; opacity: .85; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.chat-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #16693f; display: inline-block; }
.chat-window-close { background: rgba(0,0,0,.15); border: none; color: #052430; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { display: flex; gap: 8px; max-width: 88%; align-items: flex-start; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--coral)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #052430; overflow: hidden; }
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.chat-msg.mine .chat-msg-body { align-items: flex-end; }
.chat-msg-name { font-size: 11px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.chat-msg-name .admin-tag { background: var(--primary); color: #052430; font-size: 9px; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.chat-bubble {
  display: inline-block; width: fit-content; max-width: 100%; max-height: 260px; overflow-y: auto;
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px 12px; font-size: 13px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; position: relative;
}
.chat-msg.mine .chat-bubble { background: var(--primary); color: #052430; border-color: var(--primary); }
.chat-msg-time { font-size: 10px; color: var(--text-muted); }
.chat-bubble .chat-del-btn { display: none; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; border: none; font-size: 10px; cursor: pointer; align-items: center; justify-content: center; }
.chat-bubble:hover .chat-del-btn { display: flex; }

.chat-empty { text-align: center; color: var(--text-muted); font-size: 12.5px; padding: 30px 16px; }
.chat-typing-indicator { font-size: 11px; color: var(--text-muted); padding: 0 16px 4px; min-height: 16px; font-style: italic; }

.chat-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-soft); background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); flex-shrink: 0; }
.chat-input-row textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 18px; padding: 9px 14px; font-size: 13px; max-height: 80px; background: var(--bg); color: var(--text); font-family: inherit; }
.chat-input-row textarea:focus { outline: none; border-color: var(--primary); }
.chat-send-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--primary); color: #052430; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; }

.chat-connection-banner { font-size: 11px; text-align: center; padding: 5px; background: var(--warning-light); color: var(--warning); display: none; }
.chat-connection-banner.show { display: block; }

@media (max-width: 480px) {
  .chat-window { bottom: 0; right: 0; left: 0; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .chat-fab { bottom: 18px; right: 16px; }
}

.sidebar-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); padding: 4px; }

.divider { height: 1px; background: var(--border-soft); margin: 20px 0; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; font-family: var(--font-display); }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity:1; } 50% { transform: scale(1.5); opacity:.6; } }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes revealUp { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform: translateY(0); } }
@keyframes revealScale { from { opacity:0; transform: scale(.94); } to { opacity:1; transform: scale(1); } }
@keyframes slideDownFade { from { opacity:0; transform: translateY(-14px); } to { opacity:1; transform: translateY(0); } }
@keyframes slideInFromLeft { from { opacity:0; transform: translateX(-16px); } to { opacity:1; transform: translateX(0); } }
@keyframes dotPulse { 0%,100% { opacity:1; transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-rgb),.6); } 50% { opacity:.75; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(var(--primary-rgb),0); } }
@keyframes glowBreathe { 0%,100% { box-shadow: var(--shadow-md), 0 0 10px rgba(var(--primary-rgb),.15); } 50% { box-shadow: var(--shadow-md), 0 0 24px rgba(var(--primary-rgb),.35); } }

.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 6px; animation: dotPulse 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: no-preference) {
  .card, .stat-card, .game-tile, .cat-icon-tile, .seller-tile, .ticket-card,
  .order-card, .notif-item, .cs-panel-item, .trust-item, .info-banner-item,
  .banner-slide, .auth-card, .wallet-hero {
    animation: revealUp .5s cubic-bezier(.16,1,.3,1) both;
  }
  .section-row, .market-search, .dash-marquee, .cat-icon-grid, .game-grid, .seller-grid, .trust-strip {
    animation: fadeIn .45s ease both;
  }
  .topbar { animation: slideDownFade .4s cubic-bezier(.16,1,.3,1) both; }

  .game-tile:nth-child(2), .cat-icon-tile:nth-child(2), .seller-tile:nth-child(2), .ticket-card:nth-child(2) { animation-delay: .05s; }
  .game-tile:nth-child(3), .cat-icon-tile:nth-child(3), .seller-tile:nth-child(3), .ticket-card:nth-child(3) { animation-delay: .1s; }
  .game-tile:nth-child(4), .cat-icon-tile:nth-child(4), .seller-tile:nth-child(4), .ticket-card:nth-child(4) { animation-delay: .15s; }
  .game-tile:nth-child(5), .cat-icon-tile:nth-child(5), .seller-tile:nth-child(5), .ticket-card:nth-child(5) { animation-delay: .2s; }
  .game-tile:nth-child(6), .cat-icon-tile:nth-child(6), .seller-tile:nth-child(6), .ticket-card:nth-child(6) { animation-delay: .25s; }
  .game-tile:nth-child(7), .cat-icon-tile:nth-child(7), .seller-tile:nth-child(7), .ticket-card:nth-child(7) { animation-delay: .3s; }
  .game-tile:nth-child(8), .cat-icon-tile:nth-child(8), .seller-tile:nth-child(8), .ticket-card:nth-child(8) { animation-delay: .35s; }
  .game-tile:nth-child(n+9), .cat-icon-tile:nth-child(n+9), .seller-tile:nth-child(n+9), .ticket-card:nth-child(n+9) { animation-delay: .4s; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  .sidebar { animation: slideInFromLeft .45s cubic-bezier(.16,1,.3,1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

@media (max-width: 768px) {
  .sidebar {
    top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: auto; max-height: 85vh;
    overflow-y: auto; transform: translateY(-100%);
    transition: transform var(--transition), opacity var(--transition);
    opacity: 0; pointer-events: none;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .sidebar.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .sidebar { background: var(--bg-sidebar); }
  .sidebar-logo span { color: var(--text); }
  .sidebar-header { border-bottom: 1px solid var(--border-soft); }
  .sidebar-footer { border-top: 1px solid var(--border-soft); }
  .nav-item { color: var(--text-muted); }
  .nav-item:hover { background: var(--primary-light); color: var(--text); }
  .nav-item.active { color: var(--primary); }
  .sidebar-user:hover { background: var(--primary-light); }
  .sidebar-user-name { color: var(--text); }

  .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .sidebar-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .wallet-balance { font-size: 28px; }
  .page-content { padding: 16px; padding-top: calc(var(--header-h) + 17px); }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; display: none; }
  .sidebar-overlay.open { display: block; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--glass-shine); transition: border-color .2s, transform .15s, box-shadow .2s;
}
.order-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow), var(--glass-shine); }
.order-card:active { transform: scale(.99); }
.order-card-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--primary-light); color: var(--primary);
}
.order-card-icon.socmed { background: var(--info-light, rgba(78,201,245,.12)); color: var(--info); }
.order-card-icon.nokos { background: var(--success-light); color: var(--success); }
.order-card-icon.topup { background: var(--coral-light); color: var(--coral); }
.order-card-icon.appprem { background: var(--primary-light); color: var(--primary); }
.order-card-body { flex: 1; min-width: 0; }
.order-card-title { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-meta { text-align: right; flex-shrink: 0; }
.order-card-price { font-weight: 700; font-size: 13px; }
.order-card-date { font-size: 10.5px; color: var(--text-muted); margin-top: 5px; }
.order-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border-soft); font-size: 13px; }
.order-detail-row:last-child { border-bottom: none; }
.order-detail-label { color: var(--text-muted); flex-shrink: 0; }
.order-detail-value { text-align: right; font-weight: 600; word-break: break-word; }
.order-cred-box {
  background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: var(--font-mono); font-size: 12.5px; margin-top: 6px;
  white-space: pre-wrap; word-break: break-all; position: relative;
}
@media (max-width: 480px) {
  .order-card-sub, .order-card-title { max-width: 46vw; }
}

.bottom-nav { display: none; }
@media (max-width: 768px) {
  .page-content { padding-bottom: 88px; }
  .bottom-nav {
    display: flex; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    height: 62px; padding: 0 2px;
    background: var(--bg-sidebar); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0,0,0,.35), var(--glass-shine);
  }
  .bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: var(--text-muted); text-decoration: none; font-size: 10px; font-weight: 600;
    cursor: pointer; background: none; border: none; -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
  }
  .bottom-nav-item .bn-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease, box-shadow .3s ease;
  }
  .bottom-nav-item .bn-label { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
  .bottom-nav-item.active { color: var(--primary); }
  .bottom-nav-item.active .bn-icon {
    transform: translateY(-13px) scale(1.04);
    background: var(--primary); color: #052430;
    box-shadow: 0 8px 18px rgba(34,211,255,.45);
  }
  .bottom-nav-item.active .bn-label { transform: translateY(-6px); }
}

.logo-icon i, .sidebar-logo .logo-icon i, .auth-logo .logo-icon i { font-size: inherit; color: #052430; line-height: 1; }
.stat-icon { color: transparent; }
.stat-icon i { font-size: 20px; line-height: 1; }
.stat-icon.green i { color: var(--success); }
.stat-icon.red i   { color: var(--danger); }
.stat-icon.blue i  { color: var(--info); }
.stat-icon.yellow i { color: var(--warning); }
.stat-icon.indigo i { color: var(--primary); }
.nav-icon i { font-size: 14px; line-height: 1; color: inherit; }
.btn-icon i { font-size: 15px; line-height: 1; }
.sidebar-toggle i { font-size: 18px; color: var(--text); }
.feature-icon i { font-size: 18px; line-height: 1; }

#profile-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { #profile-grid { grid-template-columns: 300px minmax(0, 1fr); } }

.dash-marquee {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--primary); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow);
  animation: glowBreathe 3.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .dash-marquee { animation: none; } }
.dash-marquee-icon { color: var(--primary); font-size: 12px; flex-shrink: 0; }
.dash-marquee-track {
  display: flex; white-space: nowrap; min-width: 0; flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dash-marquee-text { display: inline-block; padding-right: 48px; font-size: 12.5px; font-weight: 500; color: var(--success); animation: dashMarqueeScroll 18s linear infinite; }
@keyframes dashMarqueeScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.dash-announcement { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; margin-bottom: 12px; border: 1px solid transparent; }
.dash-announcement i { margin-top: 2px; flex-shrink: 0; }
.dash-announcement-info    { background: var(--info-light);    color: var(--info);    border-color: var(--info); }
.dash-announcement-success { background: var(--success-light); color: var(--success); border-color: var(--success); }
.dash-announcement-warning { background: var(--warning-light); color: var(--warning); border-color: var(--warning); }
.dash-announcement-danger  { background: var(--danger-light);  color: var(--danger);  border-color: var(--danger); }
.dash-announcement span { color: var(--text); }

.info-banner-item { background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.info-banner-item:last-child { margin-bottom: 0; }
.info-banner-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.info-banner-message { font-size: 13px; line-height: 1.6; color: var(--text-muted); white-space: pre-wrap; }
.info-banner-date { font-size: 11px; color: var(--text-muted); opacity: .7; margin-top: 8px; }


.market-search { position: relative; }
.market-search input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--text); font-size: 14px;
}
.market-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,211,255,.18); }
.market-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.section-row { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; }
.section-row .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 4px; }
.section-row h2 { font-size: 19px; font-weight: 700; }
.section-row a.see-all { font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

.banner-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.banner-strip::-webkit-scrollbar { height: 6px; }
.banner-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.banner-slide {
  scroll-snap-align: start; flex: 0 0 auto; width: min(78vw, 340px); min-height: 170px;
  border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.banner-slide .banner-tag { align-self: flex-start; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 20px; margin-bottom: auto; }
.banner-slide h3 { font-size: 21px; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.banner-slide p { font-size: 12.5px; color: rgba(255,255,255,.85); }

.cat-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px; }
.cat-icon-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.cat-icon-tile .icon-box {
  width: 58px; height: 58px; border-radius: 18px; background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat-icon-tile:hover .icon-box { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow), var(--glow-primary-soft); }
.cat-icon-tile span { font-size: 11.5px; font-weight: 600; text-align: center; color: var(--text-muted); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.game-tile {
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow), var(--glass-shine);
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s, border-color .2s;
}
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--glow-primary-soft), var(--glass-shine); border-color: var(--primary); }
.game-tile .thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--bg-soft); }
.game-tile .thumb-fallback { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--text-muted); background: var(--bg-soft); }
.game-tile .info { padding: 10px 12px 12px; }
.game-tile .info h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tile .info span { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }
.game-tile .info .price-tag { color: var(--primary); font-weight: 700; font-size: 12.5px; }
.game-tile .info .sold-count { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.game-tile, .seller-tile { position: relative; }
.rank-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--primary); color: #1A1200; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; box-shadow: var(--shadow);
}

.seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.seller-tile {
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 12px 14px; text-align: center; cursor: pointer; box-shadow: var(--shadow), var(--glass-shine);
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s, border-color .2s;
}
.seller-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--glow-primary-soft), var(--glass-shine); border-color: var(--primary); }
.seller-avatar {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-muted);
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-tile h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-rating { font-size: 12px; color: var(--warning); font-weight: 700; }
.star-rating .fa-star { margin-right: 2px; }
.star-rating .text-muted { font-weight: 500; }

.ticket-card {
  background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-shine); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s, border-color .2s;
}
.ticket-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), var(--glow-primary-soft), var(--glass-shine); border-color: var(--primary); }
.ticket-card .ticket-top { padding: 16px; }
.ticket-card .ticket-divider { position: relative; height: 1px; border-top: 2px dashed var(--border); margin: 0 16px; }
.ticket-card .ticket-divider::before, .ticket-card .ticket-divider::after {
  content: ''; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg);
}
.ticket-card .ticket-divider::before { left: -25px; }
.ticket-card .ticket-divider::after { right: -25px; }
.ticket-card .ticket-bottom { padding: 14px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-card .ticket-price { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--primary); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 40px; margin-bottom: 14px; display: block; opacity: .6; }

.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 28px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--glass-shine); transition: transform var(--transition); }
.trust-item:hover { transform: var(--glass-hover-lift); }
.trust-item .icon-box { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.trust-item b { display: block; font-size: 13px; }
.trust-item span { font-size: 11.5px; color: var(--text-muted); }
