/* ═══════════════════════════════════════════════════
   SuraVault — Main Stylesheet
   Aesthetic: Dark space / deep tech, refined & clean
═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:          #0a0a0f;
  --bg2:         #111119;
  --bg3:         #16161f;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --text:        #e8e8f0;
  --text2:       #888899;
  --text3:       #555566;
  --accent:      #6c63ff;
  --accent2:     #8b82ff;
  --accent-glow: rgba(108,99,255,0.35);
  --green:       #22d3a0;
  --red:         #ff5b74;
  --yellow:      #ffd166;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius:      12px;
  --radius-sm:   8px;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --sidebar-w:   260px;
  --topbar-h:    64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; }
input, select, textarea, button { font-family: var(--font-body); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); color: #fff; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border2); border-radius: var(--radius-sm);
  padding: 10px 20px; font-weight: 500; font-size: 14px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-ghost:hover { background: var(--bg3); border-color: var(--accent); color: var(--text); }

.btn-xl { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.icon-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--text2); cursor: pointer; padding: 2px 8px; font-size: 16px;
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--card-shadow);
  animation: slide-in .25s ease;
  display: flex; align-items: center; gap: 8px;
  max-width: 320px;
}
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ═══════════════════════════════════════════════════
   DECORATIVE ORBS / BG
═══════════════════════════════════════════════════ */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.orb1 { width: 400px; height: 400px; background: rgba(108,99,255,0.15); top: -100px; right: -100px; }
.orb2 { width: 300px; height: 300px; background: rgba(34,211,160,0.08); bottom: 100px; left: -50px; }
.orb3 { width: 200px; height: 200px; background: rgba(255,91,116,0.06); top: 40%; left: 40%; }

/* ═══════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════ */
.landing { min-height: 100dvh; overflow: hidden; }

.land-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  position: relative; z-index: 10;
}
.logo {
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  color: var(--text); letter-spacing: -.5px;
}
.nav-links { display: flex; gap: 12px; align-items: center; }

.hero {
  min-height: calc(100dvh - 80px);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 60px 40px;
  position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; }
.badge {
  display: inline-block;
  background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent2); padding: 6px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(42px, 6vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text2); font-size: 18px; max-width: 460px;
  margin-bottom: 32px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stats .stat span { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.hero-stats .stat small { display: block; color: var(--text2); font-size: 12px; }

/* Mockup card */
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.mockup-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 16px; overflow: hidden;
  width: 100%; max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.mockup-header {
  background: var(--bg3); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border2); }
.mockup-title { font-size: 13px; font-weight: 600; color: var(--text2); }
.mockup-files { padding: 8px; }
.mf-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 8px;
  transition: background .15s;
}
.mf-row:hover { background: var(--bg3); }
.mf-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mf-icon.img { background: rgba(108,99,255,0.15); }
.mf-icon.vid { background: rgba(255,91,116,0.15); }
.mf-icon.aud { background: rgba(34,211,160,0.15); }
.mf-info { flex: 1; min-width: 0; }
.mf-info b { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-info small { color: var(--text2); font-size: 11px; }
.mf-badge { padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.mf-badge.pub { background: rgba(34,211,160,0.15); color: var(--green); }
.mf-badge.prv { background: rgba(255,255,255,0.06); color: var(--text3); }

/* Features section */
.features {
  padding: 80px 40px;
  max-width: 1200px; margin: 0 auto;
  text-align: center;
}
.features h2 {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; margin-bottom: 48px; letter-spacing: -.5px;
}
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: left; transition: all .2s;
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feat-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { color: var(--text2); font-size: 14px; line-height: 1.65; }

/* CTA & footer */
.land-cta { padding: 60px 40px; text-align: center; }
.cta-box {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(34,211,160,0.08));
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 20px; padding: 60px 40px; max-width: 600px; margin: 0 auto;
}
.cta-box h2 { font-family: var(--font-head); font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text2); margin-bottom: 28px; }
.land-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px; border-top: 1px solid var(--border);
  color: var(--text3); font-size: 13px;
}

/* ═══════════════════════════════════════════════════
   AUTH PAGE
═══════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.auth-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.auth-logo {
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  color: var(--text); margin-bottom: 32px; position: relative; z-index: 1;
}
.auth-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 16px; padding: 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative; z-index: 1;
}
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; }
.auth-tab {
  flex: 1; text-align: center; padding: 10px;
  font-weight: 600; font-size: 14px; color: var(--text2);
  border-bottom: 2px solid var(--border);
  transition: all .2s;
}
.auth-tab.active { color: var(--accent2); border-color: var(--accent); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 14px; transition: border-color .2s; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; opacity: .5;
}
.pw-toggle:hover { opacity: 1; }
.auth-alt { text-align: center; color: var(--text2); font-size: 13px; margin-top: 16px; }

/* ═══════════════════════════════════════════════════
   APP LAYOUT (Dashboard)
═══════════════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100dvh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 100;
  transition: transform .3s ease;
  overflow-y: auto; padding-bottom: 16px;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
}
.sidebar-close { display: none; background: none; border: none; color: var(--text2); font-size: 18px; cursor: pointer; }

.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; margin: 0 12px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.uname { font-weight: 700; font-size: 14px; }
.uemail { font-size: 11px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

.storage-bar { padding: 0 20px 16px; }
.sb-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.sb-track { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.sb-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 3px; transition: width .5s ease; }
.sb-detail { font-size: 11px; color: var(--text2); margin-top: 4px; }

.sidebar-nav { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.sn-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text2); font-size: 14px; font-weight: 500;
  transition: all .15s; cursor: pointer;
}
.sn-item:hover { background: var(--bg3); color: var(--text); }
.sn-item.active { background: rgba(108,99,255,0.15); color: var(--accent2); }
.sn-logout { color: var(--red) !important; margin: 8px 12px; }
.sn-logout:hover { background: rgba(255,91,116,0.1) !important; }

.sidebar-section { padding: 16px 20px 0; }
.ss-title {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.folder-item {
  padding: 8px 12px; color: var(--text2); font-size: 13px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all .15s;
}
.folder-item:hover { background: var(--bg3); color: var(--text); }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99; backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

/* Main */
.main-content {
  flex: 1; margin-left: var(--sidebar-w);
  min-width: 0; display: flex; flex-direction: column;
  min-height: 100dvh;
}

/* Topbar */
.topbar {
  height: var(--topbar-h); background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 20px; cursor: pointer; padding: 4px;
}
.search-wrap { flex: 1; position: relative; max-width: 500px; }
.search-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 14px; outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--accent); }
.search-scope {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 4px;
}
.scope-btn {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text2); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; cursor: pointer; transition: all .15s;
}
.scope-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--card-shadow); z-index: 200;
  max-height: 360px; overflow-y: auto;
}
.sr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  transition: background .15s; color: var(--text);
}
.sr-item:hover { background: var(--bg3); }
.sr-item:last-child { border-bottom: none; }
.sr-icon { font-size: 18px; }
.sr-name { font-size: 13px; font-weight: 600; display: block; }
.sr-meta { font-size: 11px; color: var(--text2); }
.sr-empty { padding: 20px; text-align: center; color: var(--text2); font-size: 14px; }

.topbar-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.view-toggle { display: flex; }
.vt-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); padding: 8px 10px; cursor: pointer;
  font-size: 14px; transition: all .15s;
}
.vt-btn:first-child { border-radius: 6px 0 0 6px; }
.vt-btn:last-child  { border-radius: 0 6px 6px 0; border-left: none; }
.vt-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Stats row */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 20px 24px 0;
}
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.sc-val { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.sc-label { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* Section header */
.section-hdr {
  display: flex; align-items: baseline; gap: 10px;
  padding: 20px 24px 12px;
}
.section-hdr h2 { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.file-count { font-size: 13px; color: var(--text2); }

/* Files grid */
.files-container { padding: 0 24px 24px; flex: 1; }
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.file-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s;
}
.file-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--card-shadow); }

.fc-thumb {
  aspect-ratio: 16/10; overflow: hidden; position: relative;
  background: var(--bg3); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.file-card:hover .fc-thumb img { transform: scale(1.04); }
.fc-video-thumb, .fc-audio-thumb, .fc-file-thumb {
  font-size: 36px; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.fc-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0); color: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: all .2s;
}
.file-card:hover .fc-play-overlay { background: rgba(0,0,0,0.35); color: #fff; }

.fc-body { padding: 12px; }
.fc-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.fc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fc-size { font-size: 11px; color: var(--text2); }
.privacy-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
}
.privacy-badge.pub { background: rgba(34,211,160,0.12); color: var(--green); }
.privacy-badge.prv { background: rgba(255,255,255,0.05); color: var(--text3); }

.fc-actions {
  display: flex; gap: 4px; flex-wrap: wrap;
  opacity: 0; transition: opacity .2s;
}
.file-card:hover .fc-actions { opacity: 1; }
.fa-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); border-radius: 6px; padding: 5px 7px;
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.fa-btn:hover { border-color: var(--accent); color: var(--accent); }
.fa-btn.danger:hover { border-color: var(--red); color: var(--red); }

/* List view */
.files-grid.list-view { display: flex; flex-direction: column; gap: 8px; }
.files-grid.list-view .file-card { display: flex; align-items: center; }
.files-grid.list-view .fc-thumb { width: 80px; aspect-ratio: 1; flex-shrink: 0; }
.files-grid.list-view .fc-body { flex: 1; }
.files-grid.list-view .fc-actions { opacity: 1; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 40px; color: var(--text2);
}
.es-icon { font-size: 64px; margin-bottom: 20px; opacity: .4; }
.empty-state h3 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════ */
.modal {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 16px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 16px; width: 100%; max-width: 540px;
  max-height: 90dvh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: modal-in .2s ease;
}
.modal-sm { max-width: 380px; }
@keyframes modal-in { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-header h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text2);
  font-size: 18px; cursor: pointer; padding: 4px;
}
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 20px 24px 24px;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border2); border-radius: var(--radius-sm);
  padding: 40px; text-align: center; cursor: pointer;
  margin: 20px 24px; transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.drop-zone.drag-over { border-color: var(--accent); background: rgba(108,99,255,0.08); }
.dz-icon { font-size: 40px; opacity: .5; }
.drop-zone p { font-weight: 600; }
.drop-zone small { color: var(--text2); }
.upload-options { padding: 0 24px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--bg3); border-radius: 11px;
  cursor: pointer; transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; top: 3px; left: 3px;
  transition: transform .2s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Upload queue */
.upload-queue { padding: 0 24px; display: flex; flex-direction: column; gap: 8px; }
.uq-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: auto auto;
  gap: 4px 8px; align-items: center;
}
.uq-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uq-size { font-size: 12px; color: var(--text2); }
.uq-remove { background: none; border: none; color: var(--text3); cursor: pointer; grid-row: 1; grid-column: 3; font-size: 14px; }
.uq-bar { grid-column: 1/-1; height: 3px; background: var(--bg2); border-radius: 2px; overflow: hidden; }
.uq-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); transition: width .3s; width: 0; }

/* ═══════════════════════════════════════════════════
   FILE VIEWER
═══════════════════════════════════════════════════ */
.viewer-wrap { min-height: 100dvh; display: flex; flex-direction: column; }
.viewer-header {
  height: var(--topbar-h); background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.back-btn { color: var(--text2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.back-btn:hover { color: var(--text); }
.logo-link { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--text); }
.vh-info { flex: 1; min-width: 0; }
.vh-name { font-size: 15px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-meta { font-size: 12px; color: var(--text2); }
.vh-actions { display: flex; gap: 8px; flex-shrink: 0; }

.viewer-body { flex: 1; display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 20px; }
.viewer-main { min-width: 0; }

/* Video */
.video-container { display: flex; flex-direction: column; gap: 16px; }
.video-player {
  width: 100%; background: #000; border-radius: var(--radius);
  max-height: 70dvh; display: block;
}
.video-ad-banner {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}

/* Audio */
.audio-container {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px; gap: 20px;
  background: var(--bg2); border-radius: var(--radius); text-align: center;
}
.audio-art { font-size: 80px; }
.audio-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.audio-player { width: 100%; max-width: 400px; }

/* Image */
.image-container {
  background: var(--bg2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 400px;
}
.view-image { max-height: 80dvh; max-width: 100%; object-fit: contain; border-radius: var(--radius); }

/* PDF */
.pdf-frame { width: 100%; height: 80dvh; border: none; border-radius: var(--radius); }

/* Other file */
.other-file {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px; gap: 16px; text-align: center;
  background: var(--bg2); border-radius: var(--radius);
}
.of-icon { font-size: 64px; }
.of-name { font-size: 18px; font-weight: 700; }

/* Viewer sidebar */
.viewer-sidebar { display: flex; flex-direction: column; gap: 16px; }
.vi-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.vi-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.vi-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.vi-row:last-child { border-bottom: none; }
.vi-row span:first-child { color: var(--text2); }
.vi-row span:last-child { font-weight: 500; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }

/* Sign-up CTA card */
.signup-cta-card {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(34,211,160,0.08));
  border: 1px solid rgba(108,99,255,0.25); border-radius: var(--radius); padding: 20px;
  text-align: center;
}
.scc-icon { font-size: 32px; margin-bottom: 8px; }
.signup-cta-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.signup-cta-card p { font-size: 13px; color: var(--text2); margin-bottom: 14px; }

/* Ads */
.ad-label { font-size: 10px; color: var(--text3); text-align: center; padding: 6px; text-transform: uppercase; letter-spacing: 1px; }
.ad-placeholder { text-align: center; color: var(--text3); font-size: 12px; }
.ad-placeholder, .ad-mock {
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--bg) 0, var(--bg) 10px, var(--bg2) 10px, var(--bg2) 20px);
  border: 1px dashed var(--border); border-radius: 4px; padding: 10px;
}
.ad-rect { min-height: 250px; }
.ad-leaderboard { min-height: 90px; }
.sidebar-ad { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.top-ad { padding: 0 24px; margin-top: 8px; }
.video-ad-banner { padding: 8px 0; }

.share-footer { padding: 24px; text-align: center; border-top: 1px solid var(--border); color: var(--text2); font-size: 14px; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .viewer-body { grid-template-columns: 1fr; }
  .viewer-sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
  /* Landing */
  .hero { grid-template-columns: 1fr; padding: 32px 20px; min-height: auto; }
  .hero-visual { display: none; }
  .land-nav { padding: 16px 20px; }
  .land-nav .btn-ghost { display: none; }
  .features, .land-cta { padding: 50px 20px; }
  .land-footer { padding: 16px 20px; }

  /* Sidebar */
  .sidebar { transform: translateX(-100%); box-shadow: var(--card-shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .main-content { margin-left: 0; }
  .hamburger { display: block; }

  /* Topbar */
  .topbar { gap: 8px; padding: 0 14px; }
  .search-scope { display: none; }

  /* Files */
  .files-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .files-container, .topbar { padding-left: 14px; padding-right: 14px; }
  .stats-row { padding: 14px 14px 0; }
  .section-hdr { padding: 14px 14px 10px; }

  /* Viewer */
  .viewer-header { padding: 0 14px; gap: 10px; }
  .viewer-body { padding: 14px; }
  .vh-meta { display: none; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .files-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .topbar-actions .view-toggle { display: none; }
}

/* PWA safe areas */
@supports (padding: env(safe-area-inset-top)) {
  .viewer-header, .topbar { padding-top: env(safe-area-inset-top); }
  #toast-container { bottom: calc(24px + env(safe-area-inset-bottom)); }
}




.ad-placeholder-box {
  width: 100%;
  min-height: 90px;
  background: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder-box::after {
  content: 'Ad Space';
  color: #aaa;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}




/* ── Points badge in sidebar ── */
.points-badge {
  margin: 0 16px 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f6d365, #fda085);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.points-card { cursor: pointer; }
.points-card:hover { transform: translateY(-2px); }

/* ── Earnings modal ── */
.earnings-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.earn-stat {
  flex: 1;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.earn-val {
  font-size: 28px;
  font-weight: 700;
  color: #6c63ff;
}
.earn-label {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.redeem-section {
  background: #f0f0ff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.redeem-info {
  font-size: 12px;
  color: #888;
  margin: 4px 0 12px;
}
.redeem-row {
  display: flex;
  gap: 8px;
}
.redeem-inp {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}
.earn-section { margin-bottom: 20px; }
.earn-section h4 { margin-bottom: 8px; font-size: 14px; }
.earn-table-wrap { max-height: 200px; overflow-y: auto; }
.earn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.earn-table th {
  text-align: left;
  padding: 6px 8px;
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
}
.earn-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.earn-empty, .earn-loading {
  text-align: center;
  color: #aaa;
  padding: 16px;
  font-size: 13px;
}
.status-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-pending  { background: #fff3cd; color: #856404; }
.status-approved { background: #d1e7dd; color: #0f5132; }
.status-paid     { background: #cfe2ff; color: #084298; }




/* ── Storage Warning ── */
.storage-warning {
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff3cd, #ffe69c);
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 12px 16px;
}
.sw-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sw-icon { font-size: 20px; }
.sw-text { flex: 1; min-width: 200px; }
.sw-text strong { display: block; font-size: 14px; color: #664d03; }
.sw-text span { font-size: 12px; color: #856404; }
.sw-actions { display: flex; gap: 8px; }

/* ── Sidebar Affiliates ── */
.sidebar-affiliates {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.aff-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 8px;
}
.aff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.aff-card:hover { background: #f5f5ff; }
.aff-icon { font-size: 18px; }
.aff-info { flex: 1; }
.aff-name { font-size: 12px; font-weight: 600; color: #333; }
.aff-sub  { font-size: 11px; color: #888; }
.aff-arrow { font-size: 12px; color: #aaa; }

/* ── Shared page sidebar affiliate cards ── */
.aff-sidebar-cards { margin-top: 16px; }
.aff-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 10px;
}
.aff-sidebar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
  transition: all 0.2s;
  background: #fff;
}
.aff-sidebar-card:hover {
  border-color: #6c63ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,99,255,0.1);
}
.asc-icon { font-size: 22px; }
.asc-body { flex: 1; }
.asc-name { font-size: 13px; font-weight: 600; color: #333; }
.asc-sub  { font-size: 11px; color: #888; margin-top: 2px; }
.asc-cta  {
  font-size: 12px;
  font-weight: 600;
  color: #6c63ff;
  white-space: nowrap;
}

/* ── Bottom banner on shared page ── */
.aff-bottom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.aff-bottom-banner span { font-size: 14px; font-weight: 500; }




/* ── Plans page ── */
.plans-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
.plans-header {
  text-align: center;
  margin-bottom: 40px;
}
.plans-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.plans-header p  { color: #888; font-size: 16px; }
.logo-link { text-decoration: none; font-size: 20px; font-weight: 700; color: #6c63ff; }

.current-plan-banner {
  background: #d1e7dd;
  color: #0f5132;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 32px;
  font-size: 14px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.plan-card {
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.2s;
  background: #fff;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.plan-popular {
  border-color: #6c63ff;
  box-shadow: 0 8px 30px rgba(108,99,255,0.2);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6c63ff;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}
.plan-price {
  margin-bottom: 8px;
}
.plan-amt {
  font-size: 36px;
  font-weight: 800;
  color: #6c63ff;
}
.plan-period { font-size: 14px; color: #888; }
.plan-storage {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.plan-features li {
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
}
.plan-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* ── Payment steps ── */
.payment-steps {
  text-align: center;
  margin-bottom: 50px;
}
.payment-steps h2 { font-size: 24px; margin-bottom: 24px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}
.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #6c63ff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step-text strong { display: block; font-size: 14px; margin-bottom: 4px; }
.step-text span   { font-size: 12px; color: #888; }

/* ── FAQ ── */
.plans-faq { margin-bottom: 50px; }
.plans-faq h2 { font-size: 24px; margin-bottom: 20px; text-align: center; }
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}
.faq-q { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.faq-a { font-size: 14px; color: #666; }

/* ── Upgrade modal ── */
.upgrade-upi-box {
  background: linear-gradient(135deg, #6c63ff, #9c88ff);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
}
.upi-label   { font-size: 12px; opacity: 0.8; margin-bottom: 6px; }
.upi-id      { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.upi-amount  { font-size: 14px; opacity: 0.9; margin-bottom: 12px; }

/* ── Plan tag in user card ── */
.plan-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
  background: #eee;
  color: #666;
}
.plan-free     { background: #eee;    color: #666; }
.plan-pro      { background: #e8e6ff; color: #6c63ff; }
.plan-business { background: #fff3cd; color: #856404; }









/* ═══════════════════════════════════════════════
   STATIC PAGES — shared styles
   (contact, about, rules, privacy, terms, dmca)
═══════════════════════════════════════════════ */

/* ── Base layout ── */
.static-page {
  min-height: 100vh;
  background: #f8f9fc;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.static-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px 48px;
}
.about-hero {
  background: linear-gradient(135deg, #6c63ff 0%, #a855f7 100%);
}
.static-logo {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 20px;
}
.static-logo:hover { color: #fff; }
.static-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.static-hero p  { font-size: 16px; color: rgba(255,255,255,0.7); }

.static-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
}

.static-footer-simple {
  text-align: center;
  padding: 24px 20px;
  color: #888;
  font-size: 13px;
  border-top: 1px solid #eee;
}
.static-footer-simple a { color: #6c63ff; text-decoration: none; }

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media(max-width:768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.ci-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}
.ci-icon { font-size: 28px; margin-bottom: 8px; }
.ci-card h3 { font-size: 15px; margin-bottom: 4px; }
.ci-card p  { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 2px; }
.ci-card span { font-size: 12px; color: #888; }

.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-form-wrap h2 { font-size: 20px; margin-bottom: 20px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:540px) { .cf-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px;
  font-weight: 600; margin-bottom: 6px; color: #555;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; font-family: inherit;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #6c63ff;
}
.cf-submit { margin-top: 8px; padding: 12px 28px; }

.form-success {
  background: #d1e7dd; color: #0f5132;
  padding: 16px; border-radius: 10px;
  font-size: 15px; text-align: center;
}

.contact-faq h2 { font-size: 22px; margin-bottom: 20px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.faq-card {
  background: #fff; border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-card .faq-q { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.faq-card .faq-a { font-size: 13px; color: #666; line-height: 1.5; }
.faq-card .faq-a a { color: #6c63ff; }

/* ── About page ── */
.about-mission {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px; align-items: center;
  margin-bottom: 48px;
}
@media(max-width:768px) { .about-mission { grid-template-columns: 1fr; } }

.am-text h2 { font-size: 28px; margin-bottom: 16px; }
.am-text p  { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 12px; }

.am-icon-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.am-icon-box {
  background: #fff; border-radius: 12px;
  padding: 20px; text-align: center;
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.am-icon-box span {
  display: block; font-size: 12px;
  font-weight: 600; color: #888;
  margin-top: 6px;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.about-stat {
  background: linear-gradient(135deg, #6c63ff, #a855f7);
  color: #fff; border-radius: 12px;
  padding: 24px; text-align: center;
}
.as-val   { font-size: 28px; font-weight: 800; }
.as-label { font-size: 13px; opacity: 0.85; margin-top: 4px; }

.about-features { margin-bottom: 48px; }
.about-features h2 { font-size: 28px; margin-bottom: 24px; }
.af-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.af-card {
  background: #fff; border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.af-card:hover { transform: translateY(-3px); }
.af-icon { font-size: 28px; margin-bottom: 12px; }
.af-card h3 { font-size: 16px; margin-bottom: 8px; }
.af-card p  { font-size: 14px; color: #666; line-height: 1.6; }

.about-plans-cta {
  background: linear-gradient(135deg, #1a1a2e, #6c63ff);
  color: #fff; border-radius: 16px;
  padding: 48px; text-align: center;
  margin-bottom: 48px;
}
.about-plans-cta h2 { font-size: 28px; margin-bottom: 10px; }
.about-plans-cta p  { font-size: 15px; opacity: 0.85; margin-bottom: 24px; }
.apc-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Static doc (rules, privacy, terms, dmca) ── */
.static-doc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media(max-width:768px) { .static-doc { grid-template-columns: 1fr; } }

.doc-toc {
  background: #fff; border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky; top: 20px;
}
.doc-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 12px; }
.doc-toc a {
  display: block; font-size: 13px; color: #555;
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.2s;
}
.doc-toc a:hover { color: #6c63ff; }

.doc-body { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.doc-intro {
  background: #f0f0ff; border-left: 4px solid #6c63ff;
  padding: 16px 20px; border-radius: 0 8px 8px 0;
  font-size: 15px; color: #444; margin-bottom: 32px;
}
.doc-body h2 {
  font-size: 20px; margin: 32px 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid #f0f0f0;
  color: #1a1a2e;
}
.doc-body h2:first-of-type { margin-top: 0; }
.doc-body p  { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 12px; }
.doc-body ul { padding-left: 20px; margin-bottom: 16px; }
.doc-body ul li { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 6px; }
.doc-body a  { color: #6c63ff; }

/* Rules page specific */
.rule-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.rule-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; border-radius: 10px;
}
.rule-danger { background: #fff5f5; border: 1px solid #ffd0d0; }
.rule-warn   { background: #fffbea; border: 1px solid #ffe58f; }
.rule-icon   { font-size: 20px; min-width: 24px; }
.rule-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.rule-item p { font-size: 13px; color: #666; margin: 0; }

/* DMCA page */
.dmca-checklist { display: flex; flex-direction: column; gap: 16px; margin: 20px 0 28px; }
.dmca-item { display: flex; gap: 16px; align-items: flex-start; }
.dmca-num {
  width: 28px; height: 28px; min-width: 28px;
  background: #6c63ff; color: #fff;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.dmca-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.dmca-item p { font-size: 13px; color: #666; margin: 0; }

.dmca-contact-box {
  background: linear-gradient(135deg, #1a1a2e, #6c63ff);
  color: #fff; border-radius: 12px;
  padding: 24px; margin-top: 32px;
}
.dmca-contact-box h3 { margin-bottom: 12px; }
.dmca-contact-box p  { font-size: 14px; margin-bottom: 6px; opacity: 0.9; }
.dmca-contact-box code {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px; border-radius: 4px;
  font-size: 13px;
}

/* ── Download page ── */
.download-page { min-height: 100vh; background: #f8f9fc; }

.download-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.download-header .logo-link {
  font-size: 18px; font-weight: 700;
  color: #6c63ff; text-decoration: none;
}

.dl-ad-top {
  max-width: 900px; margin: 20px auto;
  padding: 0 20px;
}

.download-body {
  max-width: 1000px; margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
@media(max-width:768px) { .download-body { grid-template-columns: 1fr; } }

.dl-file-card {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dl-file-icon { font-size: 40px; }
.dl-file-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; word-break: break-all; }
.dl-file-meta { font-size: 13px; color: #888; }

.dl-countdown-card {
  background: #fff; border-radius: 12px;
  padding: 32px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.dl-waiting { }
.dl-spinner {
  width: 48px; height: 48px;
  border: 4px solid #f0f0f0;
  border-top-color: #6c63ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dl-wait-text {
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
}
#dl-countdown {
  display: inline-block;
  width: 32px; height: 32px;
  background: #6c63ff; color: #fff;
  border-radius: 50%;
  line-height: 32px; text-align: center;
  font-weight: 700; margin-left: 8px;
}
.dl-wait-sub { font-size: 13px; color: #888; }

.dl-ready-icon { font-size: 48px; margin-bottom: 12px; }
.dl-ready-text { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.dl-btn { padding: 14px 32px; font-size: 16px; }
.dl-note { font-size: 12px; color: #aaa; margin-top: 12px; }
.dl-note a { color: #6c63ff; }

.dl-ad-mid { margin-bottom: 16px; }

.dl-affiliate {
  background: #fff; border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dla-title { font-size: 13px; font-weight: 600; color: #888; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.dla-cards { display: flex; flex-direction: column; gap: 10px; }
.dla-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid #eee;
  border-radius: 10px; text-decoration: none;
  color: inherit; transition: all 0.2s;
}
.dla-card:hover { border-color: #6c63ff; background: #f8f8ff; }
.dla-card span:first-child { font-size: 20px; }
.dla-card strong { display: block; font-size: 13px; }
.dla-card small  { font-size: 11px; color: #888; }
.dla-arrow { margin-left: auto; color: #aaa; font-size: 14px; }
.dla-card-cta { background: #f0f0ff; border-color: #6c63ff; }

.dl-signup-cta {
  background: linear-gradient(135deg, #6c63ff, #a855f7);
  color: #fff; border-radius: 12px;
  padding: 24px; text-align: center;
}
.dsc-icon { font-size: 32px; margin-bottom: 10px; }
.dl-signup-cta h4 { font-size: 16px; margin-bottom: 8px; }
.dl-signup-cta p  { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }
.dl-signup-cta .btn-primary { background: #fff; color: #6c63ff; }
.dl-signup-cta .btn-primary:hover { background: #f0f0ff; }

/* ── Ad placeholder (until AdSense is live) ── */
.ad-placeholder-box {
  width: 100%; min-height: 90px;
  background: #f0f0f0;
  border: 1px dashed #ddd;
  border-radius: 6px;
  display: flex; align-items: center;
  justify-content: center;
}
.ad-placeholder-box::after {
  content: 'Ad Space';
  color: #bbb; font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-placeholder-box.ad-leaderboard { min-height: 90px; }
.ad-placeholder-box.ad-rect        { min-height: 250px; }
.ad-label { font-size: 10px; color: #ccc; text-align: center; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }


.static-doc-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}
.static-doc-single .doc-body {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}


.dashboard-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 20px 24px;
  margin-top: 40px;
  border-top: 1px solid #eee;
  font-size: 12px;
}
.dashboard-footer a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.dashboard-footer a:hover { color: #6c63ff; }
.dashboard-footer span { color: #ccc; margin-left: auto; }



/* ── OTP input boxes ── */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.otp-box {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  caret-color: transparent;
}
.otp-box:focus {
  border-color: #6c63ff;
  background: #f8f8ff;
}

/* ── Auth pages ── */
/* .auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-logo {
  font-size: 20px;
  font-weight: 700;
  color: #6c63ff;
  margin-bottom: 20px;
}
.auth-box h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.auth-sub {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-error {
  background: #f8d7da;
  color: #842029;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}
.auth-footer a { color: #6c63ff; text-decoration: none; }
.auth-links {
  text-align: center;
  font-size: 11px;
  color: #ccc;
  margin-top: 12px;
}
.auth-links a { color: #aaa; text-decoration: none; }
.auth-links a:hover { color: #6c63ff; } */

/* ── Error pages ── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fc;
  padding: 20px;
}
.error-box {
  text-align: center;
  max-width: 420px;
}
.error-code {
  font-size: 96px;
  font-weight: 800;
  color: #6c63ff;
  line-height: 1;
  margin-bottom: 8px;
}
.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.error-box h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.error-box p {
  color: #888;
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


@media (max-width: 768px) {
  .static-doc {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }

  .doc-toc h4 {
    width: 100%;
    margin-bottom: 6px;
  }

  .doc-toc a {
    padding: 4px 10px;
    background: #f0f0ff;
    border-radius: 20px;
    border-bottom: none;
    font-size: 12px;
    color: #6c63ff;
    white-space: nowrap;
  }

  .doc-toc a:hover {
    background: #6c63ff;
    color: #fff;
  }

  .doc-body {
    padding: 20px;
  }

  .static-doc-single {
    padding: 20px;
  }
}





