@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css');

/* ═══════════════════════════════════════════
   DCS CLUB — SINGLE SOURCE OF TRUTH
   All CSS lives here. No inline styles in EJS.
═══════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --bg:         #050507;
  --card:       #0f0a1a;
  --card-hov:   #131024;
  --surface:    #0b0815;
  --purple:     #8b5cf6;
  --purple2:    #a855f7;
  --violet:     #7c3aed;
  --amber:      #f59e0b;
  --amber-dim:  rgba(245,158,11,.15);
  --violet-dim: rgba(124,58,237,.15);
  --violet-hi:  #a78bfa;
  --text:       #f0eeff;
  --muted:      rgba(240,238,255,.55);
  --subtle:     rgba(240,238,255,.3);
  --border:     rgba(139,92,246,.2);
  --border-hi:  rgba(139,92,246,.4);
  --danger:     #ff6b9d;
  --shadow:     0 20px 60px rgba(139,92,246,.2);
  --radius-sm:  .5rem;
  --radius:     .875rem;
  --radius-lg:  1.25rem;
  --nav-h:      64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 75% 10%, rgba(124,58,237,.16), transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
.bg-orb {
  position: fixed; inset: auto -120px 10% auto;
  width: 360px; height: 360px;
  background: rgba(139,92,246,.14);
  filter: blur(80px);
  pointer-events: none;
}


/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 5vw;
  background: rgba(5,5,7,.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(139,92,246,.12);
  transition: padding .28s, box-shadow .28s, background .28s, transform .28s;
}
.nav.scrolled {
  background: rgba(8,5,13,.85);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 1px 0 rgba(139,92,246,.16);
}
.nav.shrunk  { padding-top: 8px; padding-bottom: 8px; }
.nav.hide    { transform: translateY(-100%); }

/* Brand */
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: Rajdhani, sans-serif; flex-shrink: 0;
}
.brand-logo-wrap {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(139,92,246,.35); background: rgba(139,92,246,.1);
  display: flex; align-items: center; justify-content: center;
  transition: .28s; flex-shrink: 0;
}
.brand-logo-wrap.small { width: 34px; height: 34px; border-radius: 9px; }
.brand-logo-wrap img   { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nav.shrunk .brand-logo-wrap { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: .2px; }
.brand-tag  {
  font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: #c4b5fd; opacity: .9;
  background: linear-gradient(90deg, rgba(124,58,237,.2), rgba(168,85,247,.1));
  border: 1px solid rgba(168,85,247,.3); border-radius: 999px; padding: 2px 8px;
  position: relative;
}
.brand-tag::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: #4ade80; margin-right: 4px;
  vertical-align: middle; animation: livePulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px #4ade80;
}
.nav.shrunk .brand-name { font-size: 19px; }

/* Center links */
.nav-center {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(139,92,246,.12);
  border-radius: 16px; padding: 5px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--muted);
  font-size: .82rem; font-weight: 700; padding: 8px 14px;
  border-radius: 11px; letter-spacing: .02em; white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-link i { font-size: 1rem; }
.nav-link:hover { color: var(--text); background: rgba(139,92,246,.1); }
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(109,40,217,.35));
  border: 1px solid rgba(139,92,246,.35);
  box-shadow: 0 2px 12px rgba(124,58,237,.22);
}
.nav-link.active i { color: var(--purple2); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 12px; font-size: .82rem; font-weight: 800;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff;
  border: 1px solid rgba(168,85,247,.4); box-shadow: 0 4px 20px rgba(124,58,237,.28);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(124,58,237,.42); background: linear-gradient(135deg, #8b46f8, #6d28d9); }
.nav-cta.discord-login { background: linear-gradient(135deg, #5865F2, #4752C4); border-color: rgba(88,101,242,.4); box-shadow: 0 4px 20px rgba(88,101,242,.28); }
.nav-cta.discord-login:hover { box-shadow: 0 8px 28px rgba(88,101,242,.42); }

/* User dropdown */
.user-menu { position: relative; }
.user-toggle {
  display: flex; align-items: center; gap: 8px;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.28);
  border-radius: 12px; padding: 6px 12px 6px 6px;
  color: var(--text); font: inherit; font-weight: 700; font-size: .82rem;
  cursor: pointer; transition: .2s;
}
.user-toggle:hover { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.5); box-shadow: 0 4px 18px rgba(124,58,237,.18); }
.user-toggle img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,.1); }
.user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { font-size: .8rem; color: var(--muted); transition: transform .2s; }
.user-toggle[aria-expanded=true] .chev { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 240px; background: rgba(10,6,18,.97); backdrop-filter: blur(22px);
  border: 1px solid rgba(139,92,246,.22); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(139,92,246,.06);
  opacity: 0; transform: translateY(8px) scale(.97); pointer-events: none;
  transition: .2s cubic-bezier(.4,0,.2,1); z-index: 1100;
  overflow: hidden; padding: 8px;
}
.user-dropdown.open { opacity: 1; transform: none; pointer-events: auto; }

.dd-user-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; }
.dd-user-head img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(139,92,246,.28); }
.dd-user-head strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text); }
.dd-role {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 6px; padding: 2px 7px; display: inline-block; margin-top: 3px;
}
.dd-role.owner  { background: rgba(251,191,36,.14); color: #fbbf24; border: 1px solid rgba(251,191,36,.28); }
.dd-role.dcs    { background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.28); }
.dd-role.member { background: rgba(99,102,241,.1);  color: #a5b4fc; border: 1px solid rgba(99,102,241,.22); }
.dd-divider     { height: 1px; background: rgba(139,92,246,.14); margin: 4px 0; }

.user-dropdown a,
.user-dropdown .dd-logout {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 12px; color: var(--muted); text-decoration: none;
  font: inherit; font-size: .82rem; font-weight: 700;
  background: transparent; border: 0; width: 100%; cursor: pointer; text-align: left;
  transition: .15s;
}
.user-dropdown a:hover, .user-dropdown .dd-logout:hover { color: var(--text); background: rgba(139,92,246,.1); }
.user-dropdown a i, .user-dropdown .dd-logout i { font-size: 1rem; color: var(--purple2); }
.dd-logout:hover { color: #ff6b9d !important; }
.dd-logout:hover i { color: #ff6b9d !important; }

/* Hamburger */
.hamb {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 42px; height: 42px;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.24); border-radius: 12px;
  cursor: pointer; transition: .2s; padding: 0;
}
.hamb:hover { background: rgba(139,92,246,.2); }
.hamb-line { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* Mobile overlay */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 980;
}
.menu-overlay.show { opacity: 1; pointer-events: auto; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(85vw, 340px);
  background: rgba(8,5,14,.98); backdrop-filter: blur(28px);
  border-left: 1px solid rgba(139,92,246,.18);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
  z-index: 1001; display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px; border-bottom: 1px solid rgba(139,92,246,.12); flex-shrink: 0;
}
.drawer-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.18);
  border-radius: 10px; color: var(--text); font-size: 1rem; cursor: pointer; transition: .18s;
}
.drawer-close:hover { background: rgba(255,107,157,.14); border-color: rgba(255,107,157,.28); color: #ff6b9d; }

.drawer-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; flex: 1; }
.dnav-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 13px; color: var(--muted); text-decoration: none;
  font-weight: 700; font-size: .9rem; border: 1px solid transparent; transition: .15s;
}
.dnav-link i { font-size: 1.1rem; }
.dnav-link:hover { color: var(--text); background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.18); }
.dnav-link.active { color: #fff; background: rgba(124,58,237,.2); border-color: rgba(139,92,246,.32); }
.dnav-link.active i { color: var(--purple2); }

.drawer-footer {
  padding: 14px; border-top: 1px solid rgba(139,92,246,.12);
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.drawer-user {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: rgba(139,92,246,.07); border: 1px solid rgba(139,92,246,.14);
  border-radius: 13px; margin-bottom: 4px;
}
.drawer-user img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; border: 1px solid rgba(139,92,246,.22); }
.drawer-user strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text); }
.drawer-btn {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 12px; color: var(--muted); text-decoration: none;
  font: inherit; font-size: .85rem; font-weight: 700;
  background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: .15s; width: 100%; text-align: left;
}
.drawer-btn:hover { color: var(--text); background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.18); }
.drawer-btn i { font-size: 1rem; color: var(--purple2); }
.logout-btn:hover { color: #ff6b9d !important; border-color: rgba(255,107,157,.28) !important; }
.logout-btn:hover i { color: #ff6b9d !important; }
.discord-btn { background: rgba(88,101,242,.1); border-color: rgba(88,101,242,.28) !important; color: #7289da !important; justify-content: center; }
.discord-btn:hover { background: rgba(88,101,242,.18) !important; }


/* ═══════════════════════════════════════════
   COMMON COMPONENTS
═══════════════════════════════════════════ */

/* Button */
.btn {
  border: 1px solid var(--purple);
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: white; text-decoration: none; border-radius: 14px; padding: 10px 16px;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; box-shadow: 0 12px 35px rgba(139,92,246,.16);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(139,92,246,.26); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.big   { padding: 14px 22px; }
.btn.small { padding: 7px 11px; border-radius: 10px; font-size: 13px; }

/* Scrollbar */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb  { background: rgba(139,92,246,.38); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.6); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: .7s; }
.reveal.show { opacity: 1; transform: none; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .26rem .65rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: capitalize; white-space: nowrap;
}
.badge-pending    { background: rgba(245,158,11,.15); color: #fde68a; }
.badge-accepted   { background: rgba(34,197,94,.15);  color: #86efac; }
.badge-rejected,
.badge-declined   { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge-completed,
.badge-done       { background: rgba(99,102,241,.15); color: #c7d2fe; }
.badge-cancelled  { background: rgba(107,114,128,.15);color: #d1d5db; }
.badge-founder    { background: rgba(245,158,11,.2);  color: #fde68a; }
.badge-management { background: rgba(124,58,237,.2);  color: #c4b5fd; }
.badge-member     { background: rgba(255,255,255,.06);color: var(--muted); }


/* ═══════════════════════════════════════════
   DCS PAGE SHELL (shared across pages)
═══════════════════════════════════════════ */
.dcs-page          { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem 4rem; box-sizing: border-box; }
.dcs-page.narrow   { max-width: 680px; }
.dcs-page.wide     { max-width: 1400px; }

.pg-head           { margin-bottom: 2rem; }
.pg-eye {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .6rem;
}
.pg-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--text); margin: 0 0 .4rem; line-height: 1.15; }
.pg-sub   { font-size: .9rem; color: var(--muted); margin: 0; }

/* Cards */
.dcs-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
/* On mobile, dcs-table inside dcs-card needs to scroll horizontally.
   We wrap table overflow at the table level, not the card level. */
@supports (overflow: clip) {
  .dcs-card { overflow: clip; }
}
.dcs-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
}
.dcs-card-head h2 { font-size: .95rem; font-weight: 700; color: var(--text); margin: 0; display: flex; align-items: center; gap: .5rem; }
.dcs-card-head h2 i { color: var(--amber); }

/* Pills */
.pill { font-size: .7rem; font-weight: 700; background: var(--amber-dim); color: var(--amber); border-radius: 999px; padding: .22rem .65rem; }
.pill.violet { background: var(--violet-dim); color: var(--violet-hi); }

/* Tables */
.dcs-table { width: 100%; border-collapse: collapse; }
.dcs-table th {
  padding: .7rem 1.25rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--subtle);
  text-align: left; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02); white-space: nowrap;
}
.dcs-table td {
  padding: .85rem 1.25rem; font-size: .855rem; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.03); vertical-align: middle;
}
.dcs-table tbody tr:last-child td { border-bottom: none; }
.dcs-table tbody tr { transition: background .14s; }
.dcs-table tbody tr:hover { background: rgba(245,158,11,.03); }
.mono { font-family: 'JetBrains Mono','Fira Code',monospace; font-size: .8rem; color: var(--amber); font-weight: 700; }

/* Action buttons */
.act-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.act {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .8rem; border-radius: var(--radius-sm);
  font-size: .78rem; font-weight: 600; border: none;
  cursor: pointer; font-family: inherit; transition: opacity .15s, transform .1s;
}
.act:hover    { opacity: .85; transform: translateY(-1px); }
.act-accept  { background: rgba(34,197,94,.2);   color: #86efac; }
.act-reject  { background: rgba(239,68,68,.15);  color: #fca5a5; }
.act-done    { background: var(--violet-dim);    color: var(--violet-hi); }
.act-cancel  { background: rgba(107,114,128,.12);color: #d1d5db; }

/* Forms (dcs-form) */
.dcs-form-wrap {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 2.5rem 1.5rem 4rem; min-height: max(calc(100vh - var(--nav-h)), 100%);
  box-sizing: border-box;
}
.dcs-form {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.25rem 2rem; width: 100%; max-width: 500px;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.dcs-form h1 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 0 0 .25rem; }
.form-eye { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit;
  font-size: .9rem; padding: .7rem .9rem;
  transition: border-color .18s, background .18s; outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--amber); background: rgba(245,158,11,.04); }
.form-group input[readonly] { opacity: .55; cursor: default; }
.form-group select option   { background: var(--card); }
.form-group textarea        { resize: vertical; min-height: 100px; }
.form-note  { font-size: .78rem; color: var(--subtle); margin: -.4rem 0 0; }
.form-error {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.24);
  border-radius: var(--radius-sm); color: #fca5a5; font-size: .83rem;
  padding: .65rem .9rem; display: flex; align-items: center; gap: .5rem;
}

/* DCS Buttons */
.dcs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit; text-decoration: none;
  transition: opacity .18s, transform .12s, box-shadow .18s;
}
.dcs-btn:hover { opacity: .88; transform: translateY(-1px); }
.dcs-btn-amber  { background: var(--amber); color: #07080f; box-shadow: 0 4px 20px rgba(245,158,11,.28); }
.dcs-btn-ghost  { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border-hi); }
.dcs-btn-violet { background: var(--violet); color: #fff; box-shadow: 0 4px 16px rgba(124,58,237,.28); }
.dcs-btn-sm     { padding: .42rem .9rem; font-size: .8rem; }

/* Empty state */
.dcs-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3.5rem 1.5rem; color: var(--subtle); text-align: center; }
.dcs-empty i { font-size: 2.25rem; opacity: .35; }
.dcs-empty p { font-size: .88rem; margin: 0; }
.dcs-empty a { color: var(--amber); text-decoration: none; }

/* Status arrow */
.status-arrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; }
.status-arrow .arr { color: var(--amber); }


/* ═══════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════ */
.hero {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 45px; align-items: center; min-height: 78vh; padding: 70px 6vw; overflow: hidden;
}
.hero-copy, .logo-card { position: relative; z-index: 2; }
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb  { position: absolute; border-radius: 50%; filter: blur(38px); opacity: .65; animation: orbPulse 8s ease-in-out infinite; }
.orb-one   { width: 280px; height: 280px; left: 5%; top: 8%; background: rgba(139,92,246,.32); }
.orb-two   { width: 220px; height: 220px; right: 14%; top: 15%; background: rgba(168,85,247,.26); animation-delay: 1.8s; }
.orb-three { width: 260px; height: 260px; left: 46%; bottom: 2%; background: rgba(109,40,217,.22); animation-delay: 3s; }
@keyframes orbPulse {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .45; }
  50%      { transform: translate3d(18px,-22px,0) scale(1.12); opacity: .75; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(168,85,247,.42); background: rgba(139,92,246,.1);
  border-radius: 999px; color: #dfc8ff; padding: 7px 12px; font-weight: 800; font-size: 13px;
}
.hero h1 {
  font-family: Rajdhani, sans-serif; font-size: clamp(42px,7vw,86px); line-height: .9; margin: 18px 0;
}
.hero h1 span { display: inline-block; min-height: 1em; }
.hero h1 span::after { content: '|'; display: inline-block; margin-left: 6px; color: var(--purple2); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p { color: var(--muted); line-height: 1.8; }

.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.hero-stats article {
  border: 1px solid rgba(139,92,246,.22); background: rgba(15,10,24,.55);
  backdrop-filter: blur(16px); border-radius: 18px; padding: 14px 16px;
}
.hero-stats strong { display: block; font-family: Rajdhani, sans-serif; font-size: 29px; line-height: 1; color: var(--text); }
.hero-stats span   { color: var(--muted); font-size: 13px; font-weight: 800; }

.logo-card {
  border: 1px solid rgba(139,92,246,.32); border-radius: 32px;
  background: linear-gradient(180deg, rgba(139,92,246,.1), rgba(10,7,17,.82));
  padding: 28px; text-align: center;
  box-shadow: 0 25px 90px rgba(0,0,0,.55); transition: .25s;
}
.logo-card:hover { transform: translateY(-6px); box-shadow: 0 32px 100px rgba(139,92,246,.2); }
.logo-card img { width: min(100%,480px); filter: drop-shadow(0 0 40px rgba(139,92,246,.2)); }

/* Live pill */
.live-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.32); color: #34d399;
  font-weight: 700; font-size: .78rem; border-radius: 999px;
  padding: .35rem .9rem; letter-spacing: .04em; text-transform: uppercase;
  margin-top: .75rem;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  60%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Sections */
.section  { padding: 42px 6vw; box-sizing: border-box; width: 100%; }
.section h2 {
  font-family: Rajdhani, sans-serif; font-size: 36px;
  position: relative; display: inline-block; margin-bottom: 26px;
}
.section h2::after {
  content: ''; position: absolute; left: 0; bottom: -9px;
  width: 74px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), rgba(168,85,247,0));
}
.section-sub { color: var(--muted); margin-top: -.5rem; margin-bottom: 2rem; font-size: .95rem; }

/* Grid3 */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding: 42px 6vw; box-sizing: border-box; width: 100%; }
.grid3 article {
  background: rgba(15,10,24,.82); border: 1px solid var(--border); border-radius: 24px; padding: 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.grid3 article:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-hi); }
.grid3 h3 { font-family: Rajdhani, sans-serif; font-size: 25px; margin: 0 0 8px; }
.grid3 p  { color: var(--muted); line-height: 1.8; }

/* Workflow */
.workflow {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-top: 16px;
}
.workflow > span { font-size: 16px; color: var(--purple2); font-weight: 900; opacity: .9; }
.workflow-step {
  width: 138px; min-width: 138px; max-width: 138px; min-height: 58px;
  padding: 10px 12px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(15,10,24,.88); border: 1px solid rgba(139,92,246,.3);
  box-shadow: 0 10px 28px rgba(139,92,246,.1);
  opacity: 0; transform: translateY(18px);
  animation: stepIn .7s ease forwards; animation-delay: var(--d);
}
.reveal.show .workflow-step { animation-play-state: running; }
.workflow-step:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.6); box-shadow: 0 18px 40px rgba(139,92,246,.2); }
.workflow-step i    { font-size: 18px; color: #d8c3ff; }
.workflow-step span { color: var(--text); font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; }
@keyframes stepIn { to { opacity: 1; transform: none; } }

/* Founders */
.founders-section { text-align: center; }
.founders-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 900px; margin: 0 auto;
}
.founder-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.75rem; display: flex; flex-direction: column; align-items: center; gap: .9rem;
  transition: transform .25s, box-shadow .25s;
}
.founder-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.founder-photo-wrap { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 3px solid var(--violet); background: var(--surface); flex-shrink: 0; }
.founder-photo      { width: 100%; height: 100%; object-fit: cover; }
.founder-name       { font-size: 1.1rem; font-weight: 700; margin: 0; }
.founder-badge      { font-size: .78rem; font-weight: 600; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; border-radius: 999px; padding: .3rem .85rem; display: inline-flex; align-items: center; gap: .35rem; }

/* Management */
.management-section { text-align: center; }
.management-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: 700px; margin: 0 auto;
}
.management-card {
  background: var(--card); border: 1px solid var(--border); border-radius: .9rem;
  padding: 1.25rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .55rem;
  transition: transform .2s, box-shadow .2s;
}
.management-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.management-icon { font-size: 1.6rem; color: var(--violet); }
.management-name { font-size: .95rem; font-weight: 700; margin: 0; }
.management-tag  { font-size: .72rem; font-weight: 600; color: var(--violet-hi); background: rgba(124,58,237,.14); border-radius: 999px; padding: .2rem .65rem; }


/* ═══════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════ */
.dash {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h)); gap: 0;
}

/* Sidebar */
.side {
  background: rgba(10,10,20,.68); border-right: 1px solid rgba(255,255,255,.06);
  padding: 2rem 1.25rem; display: flex; flex-direction: column; align-items: center;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
  backdrop-filter: blur(12px);
}
.avatar-wrap { position: relative; margin-bottom: 1rem; }
.avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(124,58,237,.55); object-fit: cover; display: block;
}
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #7c3aed, #a855f7) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.side-name  { font-size: 1rem; font-weight: 700; color: #f0f0ff; margin: 0 0 .25rem; text-align: center; }
.side-role  { font-size: .72rem; color: #a78bfa; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.75rem; }
.side-divider { width: 100%; height: 1px; background: rgba(255,255,255,.06); margin-bottom: 1rem; }
.side-label { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.28); font-weight: 700; width: 100%; padding: 0 .5rem; margin-bottom: .4rem; }

.side a, .side-btn {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem .9rem;
  border-radius: .6rem; font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.62); text-decoration: none; transition: background .18s, color .18s;
  margin-bottom: .2rem; background: none; border: none; cursor: pointer; font-family: inherit;
}
.side a:hover, .side-btn:hover { background: rgba(124,58,237,.16); color: #e0d9ff; }
.side a.active { background: rgba(124,58,237,.22); color: #c4b5fd; }
.side a i, .side-btn i { font-size: 1rem; opacity: .8; }
.side-btn.danger { color: rgba(255,100,100,.68); }
.side-btn.danger:hover { background: rgba(220,50,50,.14); color: #fca5a5; }

/* Panel */
.panel { padding: 2rem 2.5rem; display: flex; flex-direction: column; gap: 2rem; background: transparent; }

.dash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.dash-title  { font-size: 1.6rem; font-weight: 800; color: #f0f0ff; margin: 0; line-height: 1.2; }
.dash-title span { background: linear-gradient(90deg, #a78bfa, #c4b5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.dash-greeting   { font-size: .85rem; color: rgba(255,255,255,.38); margin: .25rem 0 0; }

/* Dashboard card */
.dash-card { background: rgba(15,15,30,.68); border: 1px solid rgba(255,255,255,.06); border-radius: 1rem; overflow: hidden; backdrop-filter: blur(8px); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.dash-card-head h2 { font-size: 1rem; font-weight: 700; color: #e0d9ff; margin: 0; display: flex; align-items: center; gap: .5rem; }
.dash-card-head h2 i { color: #a78bfa; }
.count-pill { font-size: .72rem; font-weight: 700; background: rgba(124,58,237,.18); color: #c4b5fd; border-radius: 999px; padding: .2rem .65rem; }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { padding: .75rem 1.5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.32); text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.02); }
.orders-table td { padding: .9rem 1.5rem; font-size: .875rem; color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tbody tr { transition: background .15s; }
.orders-table tbody tr:hover { background: rgba(124,58,237,.06); }
.order-id { font-family: 'JetBrains Mono','Fira Code',monospace; font-size: .8rem; color: #7c3aed; font-weight: 700; }
.cargo-chip { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.05); border-radius: .4rem; padding: .25rem .6rem; font-size: .8rem; color: #d4d4ff; }

/* Apps grid (dashboard) */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem; padding: 1.25rem 1.5rem; }
.app-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: .75rem;
  padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .18s, background .18s;
}
.app-card:hover { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.28); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; }
.app-name   { font-size: .9rem; font-weight: 700; color: #e0d9ff; }
.app-id     { font-size: .72rem; color: rgba(255,255,255,.28); font-family: monospace; }
.app-reason { font-size: .82rem; color: rgba(255,255,255,.48); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Empty state (dashboard) */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3rem 1.5rem; color: rgba(255,255,255,.24); }
.empty-state i { font-size: 2.5rem; opacity: .38; }
.empty-state p { font-size: .88rem; margin: 0; }

/* Sync button */
.sync-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: .5rem; font-size: .8rem; font-weight: 600; background: rgba(124,58,237,.18); color: #c4b5fd; border: 1px solid rgba(124,58,237,.28); cursor: pointer; font-family: inherit; transition: background .18s; }
.sync-btn:hover { background: rgba(124,58,237,.32); }


/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.gallery-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(139,92,246,.16);
  border-radius: 14px; padding: 5px; width: fit-content;
}
.gtab {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.25rem;
  border-radius: 10px; font-size: .83rem; font-weight: 700; border: 1px solid transparent;
  background: transparent; color: rgba(255,255,255,.42); cursor: pointer;
  font-family: inherit; transition: all .18s; letter-spacing: .02em;
}
.gtab i { font-size: 1rem; }
.gtab:hover { background: rgba(139,92,246,.1); color: rgba(255,255,255,.78); border-color: rgba(139,92,246,.18); }
.gtab.active { background: linear-gradient(135deg, rgba(124,58,237,.38), rgba(109,40,217,.22)); border-color: rgba(139,92,246,.52); color: #e0d9ff; box-shadow: 0 2px 16px rgba(124,58,237,.18); }
.gtab-count { background: rgba(139,92,246,.24); border-radius: 999px; padding: 1px 7px; font-size: .72rem; color: #c4b5fd; margin-left: 2px; font-weight: 700; }

.gpane        { display: none; }
.gpane.active { display: block; }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.gal-item {
  border-radius: 14px; overflow: hidden; background: rgba(15,10,25,.78);
  border: 1px solid rgba(139,92,246,.18);
  transition: transform .22s, box-shadow .22s, border-color .22s; cursor: pointer;
}
.gal-item:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 16px 40px rgba(0,0,0,.48), 0 0 0 1px rgba(139,92,246,.32); border-color: rgba(139,92,246,.48); }
.gal-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s; }
.gal-item:hover .gal-img { transform: scale(1.04); }
.gal-footer { display: flex; align-items: center; gap: .5rem; padding: .65rem .85rem; background: rgba(0,0,0,.22); border-top: 1px solid rgba(139,92,246,.1); }
.gal-avatar { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(139,92,246,.28); flex-shrink: 0; }
.gal-name   { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.52); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ═══════════════════════════════════════════
   MEMBERS PAGE
═══════════════════════════════════════════ */
.members-section { margin-bottom: 2.5rem; }
.role-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.role-head h2 { font-size: 1rem; font-weight: 800; color: var(--text); margin: 0; }
.role-divider { flex: 1; height: 1px; background: var(--border); }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.member-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; align-items: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.member-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.38); border-color: rgba(245,158,11,.18); }
.member-banner { width: 100%; height: 52px; background: linear-gradient(135deg, #0d0f1c, #1a1040); position: relative; flex-shrink: 0; }
.member-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(245,158,11,.06), rgba(124,58,237,.06)); }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--bg); object-fit: cover; margin-top: -32px; position: relative; z-index: 1; flex-shrink: 0; }
.member-body { padding: .6rem .9rem 1.1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 100%; box-sizing: border-box; }
.member-name   { font-size: .9rem; font-weight: 800; color: var(--text); margin: 0; }
.member-nick   { font-size: .75rem; color: var(--subtle); }
.member-id     { font-size: .68rem; font-family: monospace; color: var(--subtle); background: rgba(255,255,255,.04); border-radius: .3rem; padding: .15rem .4rem; margin-top: .1rem; }
.member-joined { font-size: .7rem; color: var(--subtle); margin-top: .15rem; }


/* ═══════════════════════════════════════════
   APP MANAGER PAGE
═══════════════════════════════════════════ */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.1rem; padding: 1.5rem; }
.app-item { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color .18s, background .18s; }
.app-item:hover { background: rgba(245,158,11,.03); border-color: rgba(245,158,11,.18); }
.app-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.app-igname   { font-size: .98rem; font-weight: 800; color: var(--text); margin: 0; }
.app-meta     { font-size: .78rem; color: var(--subtle); display: flex; gap: .5rem; flex-wrap: wrap; }
.app-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.app-reason   { font-size: .83rem; color: var(--muted); line-height: 1.55; margin: 0; }


/* ═══════════════════════════════════════════
   BOOK PAGE — Cargo radio buttons
═══════════════════════════════════════════ */
.cargo-options { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.cargo-opt { position: relative; }
.cargo-opt input[type=radio] { position: absolute; opacity: 0; width: 0; }
.cargo-opt label {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .5rem;
  border: 1px solid var(--border-hi); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); cursor: pointer; font-size: .8rem;
  color: var(--muted); font-weight: 600; transition: border-color .18s, background .18s, color .18s; text-align: center;
}
.cargo-opt label i { font-size: 1.4rem; color: var(--subtle); transition: color .18s; }
.cargo-opt input:checked + label { border-color: var(--amber); background: var(--amber-dim); color: var(--amber); }
.cargo-opt input:checked + label i { color: var(--amber); }
.cargo-opt label:hover { border-color: rgba(245,158,11,.38); }


/* ═══════════════════════════════════════════
   LOGS PAGE
═══════════════════════════════════════════ */
.log-type-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--violet-dim); color: var(--violet-hi); border-radius: .35rem; padding: .18rem .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ts { font-size: .75rem; color: var(--subtle); font-family: monospace; white-space: nowrap; }


/* ═══════════════════════════════════════════
   SOCIAL PAGE
═══════════════════════════════════════════ */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.1rem; }
.social-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; transition: transform .2s, border-color .2s, box-shadow .2s; text-decoration: none; }
.social-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,.22); box-shadow: 0 12px 32px rgba(0,0,0,.32); }
.social-platform-icon { width: 44px; height: 44px; border-radius: .65rem; background: var(--amber-dim); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--amber); }
.social-platform { font-size: 1rem; font-weight: 800; color: var(--text); }
.social-id   { font-size: .75rem; color: var(--subtle); font-family: monospace; word-break: break-all; }
.social-open { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--amber); text-decoration: none; margin-top: auto; }
.social-open i { font-size: .85rem; }


/* ═══════════════════════════════════════════
   POLICY PAGE
═══════════════════════════════════════════ */
.policy-body { display: flex; flex-direction: column; gap: 1.5rem; }
.policy-block { display: flex; gap: 1rem; align-items: flex-start; }
.policy-icon { width: 38px; height: 38px; border-radius: .6rem; background: var(--amber-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.policy-icon i { color: var(--amber); font-size: 1.1rem; }
.policy-text h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin: 0 0 .3rem; }
.policy-text p  { font-size: .85rem; color: var(--muted); line-height: 1.65; margin: 0; }


/* ═══════════════════════════════════════════
   SUPPORT PAGE
═══════════════════════════════════════════ */
.support-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; margin-top: 1.5rem; }
.support-opt { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color .18s, background .18s; }
.support-opt:hover { border-color: rgba(245,158,11,.18); background: var(--card-hov); }
.support-opt-icon { width: 42px; height: 42px; border-radius: .65rem; background: var(--amber-dim); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--amber); }
.support-opt h3 { font-size: .95rem; font-weight: 800; color: var(--text); margin: 0; }
.support-opt p  { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.5; }


/* ═══════════════════════════════════════════
   ERROR PAGES
═══════════════════════════════════════════ */
.error-page {
  min-height: 80vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 60px 5vw;
  position: relative; overflow: hidden;
}
.error-page::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.16), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.error-page h1 {
  font-family: Rajdhani, sans-serif; font-size: clamp(100px,22vw,180px);
  line-height: .85; margin: 0 0 12px;
  background: linear-gradient(135deg, #7c3aed, #c4b5fd, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 40px rgba(124,58,237,.38));
}
.error-page p   { font-size: 1.05rem; color: rgba(255,255,255,.52); margin: 0 0 2rem; max-width: 420px; }
.error-page .btn { padding: 12px 28px; border-radius: 14px; font-size: .95rem; }


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  margin-top: 50px; border-top: 1px solid rgba(139,92,246,.18);
  background: linear-gradient(180deg, rgba(11,7,17,.55), rgba(5,5,7,.95));
  padding: 44px 6vw 22px; color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 34px; align-items: start; }
.footer .brand.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: Rajdhani, sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer .brand.footer-logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.footer-brand p { line-height: 1.75; margin: 12px 0; }
.footer-discord { margin-top: 10px; }
.footer-col h3 { font-family: Rajdhani, sans-serif; color: var(--text); font-size: 24px; margin: 0 0 14px; position: relative; }
.footer-col h3::after { content: ''; display: block; width: 46px; height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--purple), transparent); }
.footer-col p { line-height: 1.75; margin: 12px 0; }
.footer-col a { display: flex; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; font-weight: 800; padding: 8px 0; transition: .2s; }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-col strong { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(139,92,246,.16); font-size: 14px; }


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── 1200px ── */
@media (max-width: 1200px) {
  .nav-link { padding: 8px 10px; }
}

/* ── 860px ── */
@media (max-width: 860px) {
  .hamb        { display: flex; }
  .nav         { padding: 12px 4vw; }
  .nav-center  { display: none; }
  .nav-cta span { display: none; }
  .nav-cta     { padding: 9px 12px; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding: 48px 5vw 36px; gap: 28px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; width: 100%; }
  .hero-stats { grid-template-columns: repeat(3,1fr); width: 100%; }
  .hero h1 { font-size: clamp(36px,11vw,62px); text-align: center; }
  .logo-card { max-width: min(320px,85vw); margin: 0 auto; padding: 20px; }
  .logo-card img { width: 100%; max-height: 240px; object-fit: contain; }

  .section, .grid3, .dcs-page { padding-left: 5vw; padding-right: 5vw; }
  .grid3 { grid-template-columns: 1fr; padding-left: 5vw; padding-right: 5vw; }

  .workflow { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px !important; padding-bottom: 8px; scrollbar-width: none; justify-content: flex-start !important; -webkit-overflow-scrolling: touch; }
  .workflow::-webkit-scrollbar { display: none; }
  .workflow > span { display: flex; align-items: center; flex-shrink: 0; font-size: 14px; color: rgba(168,85,247,.55); }
  .workflow-step { width: 110px !important; min-width: 110px !important; max-width: 110px !important; flex-shrink: 0; flex-direction: column; padding: 12px 8px; gap: 6px; min-height: auto; }
  .workflow-step i { font-size: 20px; }
  .workflow-step span { font-size: 11px; text-align: center; }

  .founders-grid   { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; gap: 1.25rem; }
  .management-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }

  .dash { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    justify-content: center; padding: .85rem 1rem; gap: .35rem;
    border-right: none; border-bottom: 1px solid rgba(139,92,246,.12);
    overflow-x: auto; overflow-y: visible; scrollbar-width: none;
    top: auto; backdrop-filter: none;
    /* prevent the horizontal scrollbar from causing page overflow */
    max-width: 100vw;
    box-sizing: border-box;
  }
  .side::-webkit-scrollbar { display: none; }
  .avatar-wrap, .side-name, .side-role, .side-divider, .side-label { display: none !important; }
  .side a, .side-btn { width: auto; padding: .5rem .9rem; font-size: .82rem; margin-bottom: 0; white-space: nowrap; flex-shrink: 0; }
  .panel { padding: 1.25rem 1rem; gap: 1.25rem; }
  .orders-table th, .orders-table td { padding: .75rem .75rem; }
  .dash-title { font-size: 1.3rem !important; }
  .apps-grid  { grid-template-columns: 1fr !important; padding: 1rem !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { display: grid; }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .gal-grid { grid-template-columns: repeat(2,1fr); gap: .6rem; }
  .gallery-tabs { width: 100%; }
  .gtab { flex: 1; justify-content: center; }

  .hero { padding: 36px 4vw 28px; }
  .hero h1 { font-size: clamp(38px,13vw,56px); }
  .hero-actions { flex-direction: column; }
  .btn.big { width: 100%; justify-content: center; }

  .cargo-options { grid-template-columns: 1fr; }

  .orders-table th:nth-child(3),
  .orders-table td:nth-child(3) { display: none; }

  .footer { padding-left: 4vw; padding-right: 4vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }

  .dcs-page { padding: 1.5rem 1rem 3rem; }
  .dcs-form-wrap { padding: 1.25rem 1rem 3rem; }
  .dcs-table { display: block; overflow-x: auto; }
  .dcs-table th, .dcs-table td { padding: .7rem .75rem; }
}

/* ── 520px ── */
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: repeat(3,1fr) !important; gap: 8px; }
  .hero-stats article { padding: 10px 8px; border-radius: 12px; }
  .hero-stats strong  { font-size: 22px; }
  .hero-stats span    { font-size: 11px; }
  .logo-card img { max-height: 180px; }
  .workflow > span { display: none; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .nav { padding: 10px 4vw; }
  .brand-name { font-size: 18px; }
  .nav-cta { padding: 8px 10px; }
}
