﻿/* ================================================
   SwiftTrack v2 — Premium Theme
   Light / Dark Mode · Blazedoom-inspired UI
   ================================================ */

/* === LIGHT MODE (default) === */
:root {
  --brand-blue:    #4f46e5;
  --brand-indigo:  #6366f1;
  --brand-accent:  #f97316;
  --brand-accent-h:#ea6c00;

  --bg:            #f1f5f9;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --border:        #e2e8f0;

  --sidebar-bg:    #1e1b4b;
  --sidebar-w:     240px;
  --sidebar-cw:    68px;
  --sidebar-nav-bg:rgba(255,255,255,.07);
  --sidebar-active:rgba(99,102,241,.28);
  --sidebar-text:  rgba(255,255,255,.65);
  --sidebar-text-a:#ffffff;
  --sidebar-accent:#6366f1;
  --sidebar-sec:   rgba(255,255,255,.28);

  --text:          #0f172a;
  --text-2:        #334155;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;

  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #3b82f6;

  --radius:        14px;
  --radius-sm:     8px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,.14);
  --shadow-lg:     0 20px 48px rgba(0,0,0,.18);
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* === DARK MODE === */
[data-theme="dark"] {
  --bg:            #0d1117;
  --surface:       #161b22;
  --surface-2:     #1c2128;
  --border:        #30363d;

  --sidebar-bg:    #0d1117;
  --sidebar-active:rgba(99,102,241,.22);

  --text:          #e6edf3;
  --text-2:        #c9d1d9;
  --text-muted:    #8b949e;
  --text-light:    #484f58;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--brand-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-indigo); }
img { max-width: 100%; display: block; }

/* ================================================
   SIDEBAR
   ================================================ */
.dash-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width var(--transition);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.sidebar:hover { overflow-y: auto; }
.sidebar.collapsed { width: var(--sidebar-cw); }

.sidebar.collapsed .sidebar-logo-text,
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-badge,
.sidebar.collapsed .sidebar-user-info { display: none !important; }
.sidebar.collapsed .sidebar-nav a {
  justify-content: center;
  padding: .72rem;
  margin: 1px 6px;
}
.sidebar.collapsed .sidebar-nav a i { margin: 0; width: auto; }
.sidebar.collapsed .sidebar-logo { justify-content: center; }
.sidebar.collapsed .sidebar-collapse-btn { display: none; }
.sidebar.collapsed .sidebar-collapse-btn-expand { display: flex !important; }

.sidebar-logo {
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  min-height: 60px;
}
.sidebar-logo-text {
  font-size: 1.2rem; font-weight: 800;
  color: #fff; white-space: nowrap; letter-spacing: -.3px;
}
.sidebar-logo-text span { color: var(--brand-accent); }
.sidebar-collapse-btn {
  background: rgba(255,255,255,.07); border: none;
  color: rgba(255,255,255,.5);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .72rem; flex-shrink: 0;
  transition: all var(--transition);
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.sidebar-collapse-btn-expand {
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: none;
  color: rgba(255,255,255,.5);
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: .8rem;
  transition: all var(--transition);
  margin: .6rem auto 0;
}
.sidebar-collapse-btn-expand:hover { background: rgba(255,255,255,.14); color: #fff; }

.sidebar-nav { padding: .6rem 0; flex: 1; }
.sidebar-section {
  padding: .8rem 1.1rem .25rem;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--sidebar-sec);
  margin-top: .3rem; white-space: nowrap;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem 1.1rem;
  color: var(--sidebar-text);
  font-size: .875rem; font-weight: 500;
  border-radius: 9px; margin: 1px 8px;
  white-space: nowrap; position: relative;
  transition: all var(--transition);
}
.sidebar-nav a:hover { background: var(--sidebar-nav-bg); color: var(--sidebar-text-a); }
.sidebar-nav a.active { background: var(--sidebar-active); color: var(--sidebar-text-a); }
.sidebar-nav a.active::before {
  content: ''; position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px; background: var(--sidebar-accent);
  border-radius: 0 3px 3px 0;
}
.sidebar-nav a i {
  width: 20px; text-align: center; font-size: .95rem;
  flex-shrink: 0; opacity: .8; transition: opacity var(--transition);
}
.sidebar-nav a:hover i, .sidebar-nav a.active i { opacity: 1; }
.sidebar-label { flex: 1; }
.sidebar-badge {
  background: rgba(99,102,241,.22); color: #a5b4fc;
  font-size: .67rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 20px; white-space: nowrap;
}

.sidebar-bottom {
  padding: .75rem;
  border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem; border-radius: 10px;
  background: rgba(255,255,255,.05);
  transition: background var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,.08); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: .8rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { font-size: .68rem; color: rgba(255,255,255,.38); }

/* ================================================
   TOPBAR
   ================================================ */
.dash-main {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; transition: margin-left var(--transition);
}
.dash-main.expanded { margin-left: var(--sidebar-cw); }

.dash-topbar {
  background: var(--surface);
  padding: .7rem 1.6rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 800;
  transition: background var(--transition), border-color var(--transition);
}
.topbar-left { display: flex; align-items: center; gap: .7rem; }
.topbar-right { display: flex; align-items: center; gap: .6rem; }
.topbar-page-title { font-size: .9rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.topbar-wallet {
  display: flex; align-items: center; gap: .45rem;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 20px; padding: .32rem .8rem .32rem .6rem;
  font-size: .83rem; font-weight: 700; color: var(--text);
  text-decoration: none; transition: all var(--transition);
}
.topbar-wallet:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.topbar-wallet i { color: var(--brand-accent); font-size: .9rem; }

.topbar-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .88rem;
  transition: all var(--transition); text-decoration: none;
}
.topbar-icon-btn:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; flex-shrink: 0; cursor: pointer;
}

.topbar-hamburger {
  display: none; background: none; border: none;
  color: var(--text-muted); font-size: 1.15rem;
  cursor: pointer; padding: .25rem; transition: color var(--transition);
}
.topbar-hamburger:hover { color: var(--text); }

/* ================================================
   MAIN CONTENT
   ================================================ */
.dash-content { padding: 1.6rem; flex: 1; }

.page-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap;
}
.page-header h1 {
  font-size: 1.55rem; font-weight: 800;
  color: var(--text); margin-bottom: .18rem; line-height: 1.2;
}
.page-header p { color: var(--text-muted); font-size: .88rem; margin: 0; }
.page-title { font-size: 1.35rem; font-weight: 800; }

/* ================================================
   STAT CARDS
   ================================================ */
.stat-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--text); }
.stat-label {
  font-size: .7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .7px; margin-top: 3px; font-weight: 600;
}

/* ================================================
   TOOL CARDS (Blazedoom-style)
   ================================================ */
.tool-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block; text-decoration: none !important; color: inherit !important; height: 100%;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(99,102,241,.3); }
.tool-card:hover .tool-open-link { color: var(--brand-blue) !important; }

.tool-banner {
  height: 170px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.tool-banner-inner {
  position: relative; z-index: 2;
  padding: 1rem 1.1rem; width: 100%;
}
.tool-banner-inner h3 {
  font-size: 1.05rem; font-weight: 800; color: #fff;
  line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,.35); margin-bottom: .15rem;
}
.tool-banner-inner p { font-size: .72rem; color: rgba(255,255,255,.78); margin: 0; }
.tool-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  z-index: 1;
}
.tool-banner-icon {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  font-size: 2.6rem; opacity: .15; color: #fff;
}
.tool-card-body { padding: .95rem 1.1rem 1.05rem; }
.tool-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: .5rem;
}
.tool-card h4 { font-size: .92rem; font-weight: 700; color: var(--text); margin: 0 0 .25rem; }
.tool-card p { font-size: .77rem; color: var(--text-muted); margin: 0; line-height: 1.45; }
.tool-open-link { font-size: .77rem; font-weight: 600; color: var(--text-muted); transition: color var(--transition); }
.tool-card-icon-sm {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: .88rem;
}

/* ================================================
   GENERAL CARD
   ================================================ */
.card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  background: transparent; border-bottom: 1px solid var(--border);
  padding: .95rem 1.2rem; font-weight: 700; font-size: .9rem; color: var(--text);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
  background: var(--brand-blue); border-color: var(--brand-blue);
  border-radius: var(--radius-sm); font-weight: 600;
  padding: .55rem 1.35rem; font-size: .9rem; transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--brand-indigo); border-color: var(--brand-indigo);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.btn-accent {
  background: var(--brand-accent); border: none;
  color: #fff !important; border-radius: var(--radius-sm);
  font-weight: 600; padding: .55rem 1.35rem; font-size: .9rem; transition: all var(--transition);
}
.btn-accent:hover {
  background: var(--brand-accent-h);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,.38);
}
.btn-outline-primary { border-radius: var(--radius-sm); font-weight: 600; }
.btn-sm { padding: .38rem .85rem !important; font-size: .82rem !important; }

/* ================================================
   FORMS
   ================================================ */
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  padding: .6rem .9rem; font-size: .92rem;
  background: var(--surface); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3.5px rgba(99,102,241,.12);
  background: var(--surface); color: var(--text); outline: none;
}
.form-control::placeholder { color: var(--text-light); }
.form-label { font-weight: 600; font-size: .84rem; margin-bottom: .32rem; color: var(--text-2); }
.form-text { font-size: .77rem; color: var(--text-muted); }
.input-group-text {
  background: var(--surface-2); border-color: var(--border); color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition);
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 2.5rem; }
.input-icon-wrap .input-icon {
  position: absolute; left: .82rem; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: .88rem; pointer-events: none;
}

/* ================================================
   TABLES
   ================================================ */
.table-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.table-card .table { margin: 0; color: var(--text); }
.table thead th {
  background: var(--surface-2); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--text-muted); font-weight: 700;
  border-bottom: 1px solid var(--border); padding: .8rem 1rem;
}
.table tbody td { padding: .85rem 1rem; vertical-align: middle; font-size: .88rem; border-color: var(--border); }
.table-hover tbody tr:hover { background: var(--surface-2); }
.table-striped tbody tr:nth-child(odd) { background: var(--surface-2); }

/* ================================================
   BADGES & ALERTS
   ================================================ */
.badge { font-size: .68rem; font-weight: 700; border-radius: 6px; padding: .28em .65em; }
.alert { border-radius: var(--radius-sm); border: none; font-size: .88rem; }
.alert-success { background: rgba(16,185,129,.1); color: #065f46; }
.alert-danger  { background: rgba(239,68,68,.09);  color: #7f1d1d; }
.alert-info    { background: rgba(59,130,246,.1);  color: #1e3a5f; }
[data-theme="dark"] .alert-success { background: rgba(16,185,129,.14); color: #6ee7b7; }
[data-theme="dark"] .alert-danger  { background: rgba(239,68,68,.14);  color: #fca5a5; }
[data-theme="dark"] .alert-info    { background: rgba(59,130,246,.14); color: #93c5fd; }

/* ================================================
   AUTH PAGES
   ================================================ */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 52%, #312e81 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; position: relative; overflow: hidden;
}
.auth-wrapper::before {
  content: ''; position: absolute;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
  top: -200px; right: -100px; border-radius: 50%; pointer-events: none;
}
.auth-wrapper::after {
  content: ''; position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 70%);
  bottom: -100px; left: -80px; border-radius: 50%; pointer-events: none;
}
.auth-card {
  background: #fff; border-radius: 20px; padding: 2.5rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  position: relative; z-index: 1; animation: slideUp .38s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-logo { font-size: 1.5rem; font-weight: 800; color: #1e1b4b; text-align: center; }
.auth-logo span { color: #f97316; }
.auth-subtitle { text-align: center; color: #64748b; font-size: .88rem; margin: .35rem 0 1.6rem; }

/* ================================================
   TRACKING TIMELINE
   ================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: .6rem; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 1.4rem; }
.timeline-dot {
  position: absolute; left: -1.4rem; top: .2rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--border);
}
.timeline-item.active .timeline-dot { border-color: var(--brand-accent); background: var(--brand-accent); }
.timeline-item.done   .timeline-dot { border-color: var(--success); background: var(--success); }
.timeline-time  { font-size: .74rem; color: var(--text-muted); margin-bottom: .18rem; }
.timeline-title { font-weight: 600; font-size: .9rem; }
.timeline-sub   { font-size: .8rem; color: var(--text-muted); }

/* ================================================
   MISC
   ================================================ */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .84rem; flex-shrink: 0;
}
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 2.8rem; margin-bottom: 1rem; opacity: .25; display: block; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.4rem 0; }

.dropdown-menu {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-size: .88rem;
}
.dropdown-item { color: var(--text); transition: background var(--transition); }
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-divider { border-color: var(--border); }

/* ================================================
   TELEGRAM FAB
   ================================================ */
.tg-fab {
  position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 9999;
  display: flex; align-items: center; gap: .55rem;
  background: #229ED9; color: #fff; border-radius: 40px;
  padding: .6rem .95rem .6rem .7rem;
  font-size: .82rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(34,158,217,.45);
  text-decoration: none; transition: all var(--transition);
}
.tg-fab:hover { background: #1a8bbd; color: #fff; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(34,158,217,.5); }
.tg-fab i { font-size: 1.1rem; }

/* ================================================
   THEME TOGGLE FAB
   ================================================ */
.theme-fab {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 9999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.05rem; box-shadow: var(--shadow-md); transition: all var(--transition);
}
.theme-fab:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); transform: rotate(20deg) scale(1.05); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }

/* ================================================
   LANDING PAGE
   ================================================ */
.main-nav {
  background: #0f172a; padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.main-nav .navbar-brand { font-size: 1.4rem; font-weight: 800; color: #fff !important; letter-spacing: -.4px; }
.main-nav .navbar-brand span { color: #f97316; }
.main-nav .nav-link { color: rgba(255,255,255,.72) !important; font-weight: 500; padding: .75rem 1rem !important; }
.main-nav .nav-link:hover { color: #fff !important; }
.main-nav .btn-nav-cta { background: #6366f1; color: #fff !important; border-radius: 8px; padding: .45rem 1.25rem !important; font-weight: 700; }
.main-nav .btn-nav-cta:hover { background: #4f46e5; }

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
  color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero h1 span { color: #f97316; }
.hero p { font-size: 1.1rem; opacity: .8; max-width: 520px; margin-bottom: 2rem; }
.hero-track {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  padding: 1.4rem; margin-top: 2rem;
}
.hero-track .form-control { background: rgba(255,255,255,.96); border: none; height: 48px; border-radius: 8px 0 0 8px; color: #0f172a; }
.hero-track .btn { height: 48px; border-radius: 0 8px 8px 0; padding: 0 1.5rem; font-weight: 700; }

.features-section { padding: 5rem 0; }
.section-title { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(99,102,241,.08); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.how-step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--surface); border-radius: var(--radius);
  border: 1.5px solid var(--border); transition: all var(--transition);
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; margin: 0 auto 1rem;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .dash-main { margin-left: 0 !important; }
  .topbar-hamburger { display: flex; }
  .tg-fab span { display: none; }
  .tg-fab { padding: .65rem; border-radius: 50%; }
}
@media (max-width: 576px) {
  .dash-content { padding: 1rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .stat-value { font-size: 1.45rem; }
}
