@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:       #09090b;
  --bg-1:     #0f0f12;
  --bg-2:     #141418;
  --bg-3:     #1a1a20;
  --border:   rgba(255,255,255,.07);
  --border-2: rgba(255,255,255,.10);
  --border-3: rgba(255,255,255,.18);
  --t1: #ffffff;
  --t2: #a1a1aa;
  --t3: #52525b;
  --t4: #27272a;
  --green:  #22c55e;
  --red:    #ef4444;
  --yellow: #eab308;
  --blue:   #3b82f6;

  --accent:     #7c3aed;
  --accent-l:   #a78bfa;
  --accent-2:   #ec4899;
  --accent-rgb: 124,58,237;

  --glass-sm:  rgba(255,255,255,.03);
  --glass-md:  rgba(255,255,255,.05);
  --glass-lg:  rgba(255,255,255,.08);

  --shadow-card: 0 20px 60px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  --shadow-accent: 0 4px 20px rgba(124,58,237,.35);
  --glow: rgba(124,58,237,.25);

  --r:    12px;
  --r-sm: 8px;
  --r-xs: 5px;
  --sidebar-w: 240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--t1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }
img { display: block; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.93) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity:0; transform:translateY(8px) scale(.95); } to { opacity:1; transform:none; } }
@keyframes orbDrift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(25px,-18px)} }
@keyframes spin { to { transform: rotate(360deg); } }

.anim-up { animation: fadeUp .35s cubic-bezier(.22,1,.36,1) both; }
.anim-up-1 { animation-delay: .05s; }
.anim-up-2 { animation-delay: .1s; }
.anim-up-3 { animation-delay: .15s; }
.anim-up-4 { animation-delay: .2s; }

/* ══════════════════════════════════════════════════════════════════════════
   SHELL / SIDEBAR
══════════════════════════════════════════════════════════════════════════ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: rgba(9,9,11,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.4px;
  color: var(--t1);
  flex-shrink: 0;
}

.logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.sidebar-nav {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
}

.nav-section {
  padding: 14px 8px 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--t3);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--t3);
  font-size: 13px;
  font-weight: 500;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
  margin-bottom: 2px;
  cursor: pointer;
  border: 1px solid transparent;
}
.nav-link:hover {
  color: var(--t2);
  background: var(--glass-sm);
  border-color: var(--border);
}
.nav-link.active {
  color: #fff;
  background: rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.3);
  box-shadow: inset 0 1px 0 rgba(167,139,250,.12);
}
.nav-link.active .nav-icon { color: var(--accent-l); }
.nav-icon { width: 16px; font-size: 13px; text-align: center; flex-shrink: 0; }

/* Sidebar bottom: user card */
.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
  cursor: default;
}
.sidebar-user:hover { background: var(--glass-sm); border-color: var(--border); }

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--glow);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--t3); text-transform: capitalize; }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .22s ease;
}

.shell.sb-hidden .sidebar { transform: translateX(-100%); pointer-events: none; }
.shell.sb-hidden .main    { margin-left: 0; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,11,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.topbar-title   { font-size: 13px; font-weight: 600; color: var(--t2); }
.topbar-sub     { font-size: 13px; color: var(--t3); margin-left: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.content { padding: 28px 28px 56px; }
.content.est-active { padding: 0; }

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-header-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.page-header-text h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
.page-header-text p  { font-size: 13px; color: var(--t3); margin-top: 2px; }

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

.card {
  background: var(--glass-sm);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color .2s;
}
.card:hover { border-color: var(--border-3); }

.card-title {
  font-size: 13px; font-weight: 700; color: var(--t1);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 7px;
}
.card + .card { margin-top: 12px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--glass-sm);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.04) 0%, transparent 60%);
  pointer-events: none;
}
.stat-box:hover { border-color: rgba(124,58,237,.3); transform: translateY(-1px); }

.stat-box-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-label {
  font-size: 11px; font-weight: 500; color: var(--t3);
  text-transform: uppercase; letter-spacing: .08em;
}
.stat-val {
  font-size: 26px; font-weight: 800;
  color: var(--t1); letter-spacing: -.5px; line-height: 1;
}
.stat-val.warn { color: var(--yellow); }
.stat-val.sm   { font-size: 16px; letter-spacing: 0; margin-top: 2px; }
.stat-hint {
  font-size: 11px; color: var(--t3); margin-top: 2px;
}
.stat-hint.pos { color: var(--green); }

.ov-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) { .ov-grid { grid-template-columns: 1fr; } }

.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.qa-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--glass-sm);
  border: 1px solid var(--border-2);
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  font-family: inherit;
}
.qa-btn:hover {
  background: rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.3);
  color: var(--t1);
  transform: translateX(2px);
}
.qa-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  font-family: inherit;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(124,58,237,.5); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(124,58,237,.12);
  color: var(--accent-l);
  border-color: rgba(124,58,237,.25);
}
.btn-secondary:hover { background: rgba(124,58,237,.2); border-color: rgba(124,58,237,.4); color: #c4b5fd; }

.btn-ghost {
  background: transparent; color: var(--t2); border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--glass-sm); color: var(--t1); border-color: var(--border-3); }

.btn-danger {
  background: transparent; color: var(--red); border-color: rgba(239,68,68,.2);
}
.btn-danger:hover { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.4); }

.btn-success {
  background: transparent; color: var(--green); border-color: rgba(34,197,94,.2);
}
.btn-success:hover { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.4); }

.btn-sm  { padding: 5px 11px; font-size: 12px; }
.btn-xs  { padding: 3px 8px;  font-size: 11px; }
.btn-icon { padding: 7px; aspect-ratio: 1; justify-content: center; }

.field { margin-bottom: 14px; }
.label { display: block; font-size: 12px; font-weight: 500; color: var(--t2); margin-bottom: 6px; }

.input, .select, textarea.input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  color: var(--t1);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.input::placeholder { color: var(--t3); }
.input:focus, .select:focus {
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.select option { background: #111; color: var(--t1); }
textarea.input { resize: vertical; line-height: 1.5; }
.select-inline {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  padding: 4px 8px; color: var(--t1);
  font-size: 12px; outline: none; font-family: inherit;
}

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 9px 12px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--t3); border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 11px 12px; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--t2);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td.t1 { color: var(--t1); }
td.mono { font-family: 'Fira Code', monospace; font-size: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 500; border: 1px solid;
}
.pill-admin   { color: var(--accent-l);  border-color: rgba(124,58,237,.3); background: rgba(124,58,237,.1); }
.pill-user    { color: var(--t3);        border-color: var(--border);       background: transparent; }
.pill-active  { color: var(--green);     border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.07); }
.pill-pending { color: var(--yellow);    border-color: rgba(234,179,8,.25); background: rgba(234,179,8,.07); }

.user-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 500; border: 1px solid;
}

#toast-container {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 9999; pointer-events: none;
}
.toast {
  background: rgba(12,12,16,.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  min-width: 220px; pointer-events: auto;
  animation: toastIn .18s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.toast-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.toast.success .toast-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.toast.error   .toast-dot { background: var(--red);   box-shadow: 0 0 6px var(--red); }
.toast.info    .toast-dot { background: var(--t3); }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  animation: fadeIn .15s;
}
.modal {
  background: rgba(12,12,16,.98);
  backdrop-filter: blur(32px);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 24px;
  width: min(440px, 90vw);
  box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04), 0 0 40px var(--glow);
  animation: modalIn .2s cubic-bezier(.34,1.26,.64,1);
}
.modal-title  { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.flex   { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.gap-1  { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }

.t1 { color: var(--t1); } .t2 { color: var(--t2); } .t3 { color: var(--t3); }
.bold { font-weight: 600; } .sm { font-size: 12px; } .xs { font-size: 11px; }
.mono { font-family: 'Fira Code', monospace; }
.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.key-box {
  background: rgba(124,58,237,.06);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--accent-l);
  word-break: break-all;
  letter-spacing: .02em;
}

.empty { text-align: center; padding: 56px 24px; color: var(--t3); }
.empty-icon { font-size: 32px; margin-bottom: 10px; opacity: .4; }
.empty p { font-size: 13px; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.progress { background: rgba(255,255,255,.06); border-radius: 3px; height: 4px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  transition: width .4s;
  box-shadow: 0 0 8px var(--glow);
}

.pages { display: flex; align-items: center; justify-content: center; gap: 4px; padding-top: 16px; }
.pages button {
  width: 30px; height: 30px;
  border: 1px solid var(--border-2); border-radius: var(--r-xs);
  background: transparent; color: var(--t2);
  font-size: 12px; cursor: pointer; transition: all .12s; font-family: inherit;
}
.pages button:hover { border-color: rgba(124,58,237,.4); color: var(--accent-l); background: rgba(124,58,237,.1); }
.pages button.active { background: var(--accent); border-color: transparent; color: #fff; box-shadow: var(--shadow-accent); }
.pages button:disabled { opacity: .3; cursor: not-allowed; }

.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; }
.file-card {
  background: var(--glass-sm);
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.file-card:hover { border-color: rgba(124,58,237,.3); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.file-thumb { width: 100%; height: 110px; background: rgba(255,255,255,.02); display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { padding: 9px 10px; }
.file-name { font-size: 12px; color: var(--t1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 11px; color: var(--t3); margin-top: 2px; }
.file-actions { display: flex; gap: 4px; margin-top: 7px; }

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

/* ══════════════════════════════════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg);
  position: relative; overflow: hidden;
}
.auth-page::before, .auth-page::after {
  content: ''; position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.auth-page::before {
  width: 500px; height: 500px;
  background: rgba(124,58,237,.16); filter: blur(120px);
  top: -150px; left: -100px;
  animation: orbDrift 16s ease-in-out infinite;
}
.auth-page::after {
  width: 350px; height: 350px;
  background: rgba(236,72,153,.1); filter: blur(100px);
  bottom: -100px; right: -80px;
  animation: orbDrift 20s ease-in-out infinite reverse;
}
.auth-card { width: 100%; max-width: 380px; position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-mark {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-accent);
}
.auth-logo h1 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.auth-logo p  { font-size: 13px; color: var(--t3); margin-top: 4px; }
.auth-form {
  background: rgba(15,15,18,.92);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border-2);
  border-radius: 16px; padding: 26px;
  box-shadow: var(--shadow-card);
}
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--t3); }
.auth-footer a { color: var(--t2); }
.auth-footer a:hover { color: var(--t1); }

/* ══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════════════════ */
.land-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(9,9,11,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 10;
}
.land-logo { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.land-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-accent);
}
.land-nav-links { display: flex; gap: 8px; }
.land-hero { text-align: center; padding: 96px 24px 80px; max-width: 680px; margin: 0 auto; position: relative; }
.land-hero h1 {
  font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1.08;
  background: linear-gradient(180deg, #fff 50%, rgba(255,255,255,.4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.land-hero p { font-size: 16px; color: var(--t2); margin: 18px auto 36px; max-width: 460px; line-height: 1.65; }
.land-cta   { display: flex; gap: 10px; justify-content: center; }
.land-stats { display: flex; gap: 48px; justify-content: center; padding-top: 64px; }
.land-stat  { text-align: center; }
.land-stat-n {
  font-size: 30px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent-l), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.land-stat-l { font-size: 12px; color: var(--t3); margin-top: 3px; }
.land-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; max-width: 920px; margin: 80px auto 88px; padding: 0 24px; }
.feat-card {
  background: var(--glass-sm); border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: rgba(124,58,237,.25); transform: translateY(-2px); }
.feat-icon  { font-size: 22px; margin-bottom: 10px; }
.feat-title { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.feat-desc  { font-size: 13px; color: var(--t3); line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════════════════
   BIO PAGE (PUBLIC)
══════════════════════════════════════════════════════════════════════════ */
.bio-page { min-height: 100vh; background: #000; display: flex; flex-direction: column; align-items: center; }
.bio-topbar { width: 100%; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; position: absolute; top: 0; left: 0; }
.bio-topbar-logo { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.3); }
.bio-topbar-logo:hover { color: rgba(255,255,255,.7); }
.bio-wrap { width: 100%; max-width: 440px; padding: 80px 20px 64px; display: flex; flex-direction: column; align-items: center; }
.bio-avatar-wrap { position: relative; margin-bottom: 18px; }
.bio-avatar-img { width: 80px; height: 80px; border-radius: 50%; background: #1a1a1a; border: 2px solid #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; overflow: hidden; }
.bio-avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.bio-name   { font-size: 20px; font-weight: 700; color: #fff; text-align: center; letter-spacing: -.3px; }
.bio-handle { font-size: 13px; color: #555; margin-top: 3px; text-align: center; }
.bio-desc   { font-size: 14px; color: #888; margin-top: 12px; text-align: center; line-height: 1.6; max-width: 360px; }
.bio-pills  { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.bio-pill   { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; border: 1px solid; }
.bio-links  { width: 100%; margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.bio-link-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; cursor: pointer;
}
.bio-link-item:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); transform: translateY(-1px); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.bio-footer { margin-top: 48px; font-size: 12px; color: #333; text-align: center; }
.bio-footer a { color: #444; transition: color .1s; }
.bio-footer a:hover { color: #888; }
.preview-card { background: #000; border: 1px solid rgba(255,255,255,.07); border-radius: var(--r); min-height: 480px; display: flex; flex-direction: column; align-items: center; padding: 32px 20px 24px; }
.link-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 6px; transition: border-color .15s; }
.link-row:hover { border-color: rgba(124,58,237,.25); }
.drag-handle { color: var(--t3); cursor: grab; font-size: 14px; }

.viewer-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.viewer-nav { height: 54px; border-bottom: 1px solid var(--border); background: rgba(9,9,11,.88); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.viewer-nav-logo { font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.viewer-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
.viewer-media { max-width: 100%; max-height: 70vh; border-radius: var(--r-sm); }
.viewer-info { margin-top: 20px; background: var(--glass-sm); border: 1px solid var(--border-2); border-radius: var(--r); padding: 16px 20px; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--t2); width: 100%; max-width: 640px; flex-wrap: wrap; }
.viewer-info .filename { font-weight: 600; color: var(--t1); }
.viewer-actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
