:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #161616;
  --border: #262626;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #e11d2f;
  --accent-hover: #ff2b3f;
  --green: #22c55e;
  --radius: 14px;
  --max-width: 1200px;
}


h1, h2, h3, h4 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.9);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.navbar .logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}
.navbar .logo span { color: var(--accent); }

.navbar nav {
  display: flex;
  gap: 32px;
}
.navbar nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.navbar nav a:hover { color: var(--text); }

.navbar .actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #d6d6d6; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text-muted); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(10,10,10,0.95));
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}
.hero p {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 72px 24px; }
.section-alt { background: var(--bg-elevated); }
.section-head { margin-bottom: 40px; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; font-weight: 800; }
.section-head p { color: var(--text-muted); margin: 0; max-width: 640px; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.15s ease;
}
.card:hover { border-color: #3a3a3a; }

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.card-title { font-size: 19px; font-weight: 700; margin: 0; }
.card-desc { color: var(--text-muted); font-size: 14px; margin: 0; flex: 1; }
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.card-meta strong { color: var(--text); display: block; font-size: 15px; }
.card-footer { padding: 0 20px 20px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34,197,94,0.15);
  color: var(--green);
}
.badge-muted { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num { font-size: 34px; font-weight: 800; color: #3a3a3a; margin-bottom: 6px; }
.step-card h3 { margin: 0 0 12px; font-size: 19px; }
.step-card ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 14px; }
.step-card li { margin-bottom: 6px; }

/* ---------- Detail hero ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 56px 24px;
}
@media (max-width: 860px) { .detail-hero { grid-template-columns: 1fr; } }
.detail-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.detail-panel .amount { font-size: 26px; font-weight: 800; margin: 4px 0 18px; }
.detail-panel dl { margin: 0 0 20px; }
.detail-panel dt { color: var(--text-muted); font-size: 13px; }
.detail-panel dd { margin: 0 0 12px; font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 440px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-card h1 { font-size: 24px; margin: 0 0 24px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: none;
}
.field input:invalid {
  border-color: var(--border);
  box-shadow: none;
}

.field select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background-color: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-foot { margin-top: 16px; font-size: 13px; color: var(--text-muted); text-align: center; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: rgba(225,29,47,0.12); color: #ff8f97; border: 1px solid rgba(225,29,47,0.3); }
.alert-success { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 73px); }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } .dash-sidebar { display: none; } }

/* .dash-sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 16px;

} */

/* ---------- Sidebar: flex column so Logout pins to bottom ---------- */
.dash-sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 73px);
}
.dash-sidebar .sidebar-nav { display: flex; flex-direction: column; }
.dash-sidebar .sidebar-logout { margin-top: auto; padding-top: 16px; }

.dash-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.dash-sidebar a:hover { background: var(--bg-elevated); color: var(--text); }
.dash-sidebar a.active { background: rgba(225,29,47,0.12); color: var(--accent); }

.dash-main { padding: 28px 32px; }

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.tab-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.tab-switch a {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.tab-switch a.active { background: var(--text); color: #000; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 8px; }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.action-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.action-pill:hover { border-color: var(--text-muted); }

/* Action pill hover -> red */
.action-pill { transition: 0.15s ease; }
.action-pill:hover { border-color: var(--accent); color: var(--accent); }
.action-pill:hover svg { stroke: var(--accent); }
.action-pill.highlight:hover { border-color: #3b82f6; color: #3b82f6; }
.action-pill.highlight:hover svg { stroke: #3b82f6; }

/* Mobile hamburger */
.dash-hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.dash-hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Mobile sidebar off-canvas + bottom tab bar */
@media (max-width: 900px) {
  .dash-hamburger { display: flex; align-items: center; }
  .dash-sidebar {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: var(--bg, #0a0a0a);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 200;
    padding-top: 20px;
  }
  .dash-sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 150;
  }
  .sidebar-overlay.open { display: block; }
  .dash-main { padding-bottom: 84px; }
  .mobile-tabbar { display: flex !important; }
}

.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0;
}
.mobile-tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.mobile-tabbar a.active { color: var(--accent); }
.mobile-tabbar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.panel .panel-icon.grey { color: #6b6b6b; }
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.simple th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 96px 24px 64px; background: #000; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max-width); margin: 0 auto; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 0 0 14px; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 260px; }

.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }


/* ---------- Dashboard: icons, topbar, ticker (additions) ---------- */
.dash-sidebar { overflow-y: auto; max-height: calc(100vh - 73px); position: sticky; top: 73px; }
.dash-sidebar::-webkit-scrollbar { width: 5px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
.dash-sidebar .sidebar-icon { width: 17px; height: 17px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dash-sidebar .sidebar-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.dash-sidebar .sidebar-divider { height: 1px; background: var(--border); margin: 12px 14px; }
.dash-sidebar form { margin: 0; }
.dash-sidebar button.as-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: 10px; background: none; border: none;
  color: var(--text-muted); font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer; text-align: left;
}
.dash-sidebar button.as-link:hover { background: var(--bg-elevated); color: var(--text); }

.dash-topbar-icons { display: flex; align-items: center; gap: 18px; }
.dash-topbar-icons .icon-btn { color: var(--text-muted); cursor: pointer; }
.dash-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
}

.ticker-wrap {
  border-bottom: 1px solid var(--border); background: #0d0d0d;
  overflow: hidden; white-space: nowrap;
}
.ticker { display: inline-flex; align-items: center; gap: 32px; padding: 9px 24px; animation: ticker-scroll 28s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; }
.ticker-item { font-size: 13px; color: var(--text-muted); }
.ticker-item strong { color: var(--text); margin: 0 6px; }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: #ff8f97; }



.dash-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.action-pill { text-transform: uppercase; letter-spacing: 0.4px; }
.action-pill svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.action-pill.highlight { border-color: #3b82f6; color: #3b82f6; }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}
.panel .panel-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: #6b6b6b;
}
.panel h3 { font-size: 18px; margin: 0 0 8px; }
.panel p { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field select {
  width: 100%; padding: 12px 14px; background: #0e0e0e;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px;
}
.field select:focus { outline: none; border-color: var(--accent); }
.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted); font-size: 12px; text-transform: uppercase;
}
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

