/* ══════════════════════════════════════════════════════════
   THOTBB FILES — "Midnight Emerald" Design System
   Refined dark-first interface with emerald accents,
   frosted glass panels, and fluid micro-animations.
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ── */

:root {
  --bg:           #07070a;
  --bg2:          #0b0b10;
  --bg3:          #101015;
  --surface:      #111116;
  --surface2:     #17171d;
  --surface3:     #1e1e26;
  --card:         #111116;
  --glass:        rgba(255,255,255,0.025);
  --glass-hover:  rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.10);
  --border-active: rgba(16,185,129,0.30);
  --bg-hover:     rgba(255,255,255,0.04);
  --text:         #ededf0;
  --text2:        #9898a6;
  --text3:        #5e5e6e;
  --txt:          #ededf0;
  --txt-muted:    #9898a6;
  --accent:       #10b981;
  --accent2:      #34d399;
  --accent3:      #6ee7b7;
  --accent-rgb:   16,185,129;
  --accent-soft:  rgba(16,185,129,0.08);
  --accent-glow:  rgba(16,185,129,0.15);
  --green:        #22c55e;
  --green-soft:   rgba(34,197,94,0.08);
  --red:          #ef4444;
  --red-soft:     rgba(239,68,68,0.07);
  --amber:        #eab308;
  --yellow:       #eab308;
  --blue:         #3b82f6;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.45);
  --shadow-glow:  0 0 24px rgba(16,185,129,0.12);
  --shadow-card:  0 2px 8px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.04);
  --radius:       14px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --radius-full:  9999px;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg:           #f5f5f7;
  --bg2:          #ebebef;
  --bg3:          #e2e2e8;
  --surface:      #ffffff;
  --surface2:     #f5f5f7;
  --surface3:     #ebebef;
  --card:         #ffffff;
  --glass:        rgba(0,0,0,0.015);
  --glass-hover:  rgba(0,0,0,0.03);
  --glass-border: rgba(0,0,0,0.06);
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.13);
  --border-active: rgba(5,150,105,0.30);
  --bg-hover:     rgba(0,0,0,0.03);
  --text:         #111113;
  --text2:        #555560;
  --text3:        #8b8b98;
  --txt:          #111113;
  --txt-muted:    #555560;
  --accent:       #059669;
  --accent2:      #10b981;
  --accent3:      #047857;
  --accent-rgb:   5,150,105;
  --accent-soft:  rgba(5,150,105,0.06);
  --accent-glow:  rgba(5,150,105,0.10);
  --green:        #16a34a;
  --green-soft:   rgba(22,163,74,0.06);
  --red:          #dc2626;
  --red-soft:     rgba(220,38,38,0.06);
  --amber:        #ca8a04;
  --yellow:       #ca8a04;
  --blue:         #2563eb;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.10);
  --shadow-glow:  0 0 24px rgba(5,150,105,0.10);
  --shadow-card:  0 1px 4px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* ── Reset & Base ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--txt);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--accent3); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(var(--accent-rgb), 0.25); color: var(--text); }

/* ══════════════════════════════════════════════════════════
   ANIMATION KEYFRAMES
   ══════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes float-blob-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes float-blob-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-50px, 30px) scale(0.9); }
  66%      { transform: translate(40px, -50px) scale(1.05); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}
@keyframes progress-shine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes nav-enter {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── Reveal (entrance) animations ── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s var(--ease-out) forwards;
}
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }
.reveal-d5 { animation-delay: 0.40s; }

/* ══════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════ */

.container      { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.page           { display: none; padding: 2rem 0 4rem; min-height: calc(100vh - 60px); }
.page.active    { display: block; animation: fadeIn 0.3s var(--ease-out); }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,7,10,0.72);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  animation: nav-enter 0.5s var(--ease-out);
}
[data-theme="light"] .nav { background: rgba(245,245,247,0.78); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--txt);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.nav-brand:hover { opacity: 0.8; color: var(--txt); }

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.2rem;
}

.nav-pill {
  background: none;
  border: none;
  color: var(--text2);
  padding: 0.32rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-pill:hover { color: var(--txt); background: var(--glass-hover); }
.nav-pill.active { background: var(--accent); color: #fff; }
.nav-pill--admin { color: var(--accent2); }
.nav-pill--admin:hover { color: var(--accent3); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-user-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}
.user-badge:hover { background: var(--glass-hover); }
.user-badge .uname { color: var(--txt); }
.user-badge img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
}
.avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all 0.15s;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25);
  transform: translateY(-1px);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--txt);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--glass-hover); color: var(--txt); }

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(239,68,68,0.25); color: #fff; }

.btn-sm { font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: var(--radius-xs); }
.btn-xs { font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: var(--radius-xs); }
.btn-lg { font-size: 0.9rem; padding: 0.6rem 1.4rem; border-radius: var(--radius-sm); }

/* ══════════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════════ */

input[type="text"], input[type="password"], input[type="email"],
input[type="number"], select, textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--txt);
  font-size: 0.88rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}
input::placeholder, textarea::placeholder { color: var(--text3); }

.form-err {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  background: var(--red-soft);
  border-radius: var(--radius-xs);
  margin: 0.5rem 0;
  display: none;
}
.form-err.active { display: block; }

/* ══════════════════════════════════════════════════════════
   PAGE TITLES
   ══════════════════════════════════════════════════════════ */

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--txt);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.page-subtitle {
  color: var(--text2);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 3.5rem;
  overflow: hidden;
}

/* Animated gradient blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.5;
}
.hero::before {
  width: 500px;
  height: 500px;
  top: -15%;
  left: -5%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 0%, transparent 70%);
  animation: float-blob-1 25s ease-in-out infinite;
}
.hero::after {
  width: 400px;
  height: 400px;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%);
  animation: float-blob-2 20s ease-in-out infinite;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--txt);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 520px;
  margin: 0 auto 1.8rem;
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats-strip {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.stat-pill:hover { border-color: var(--border-hover); }
.stat-pill .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--txt);
}
.stat-pill .lbl {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════════════════════════ */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.feat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  opacity: 0;
  transition: opacity 0.25s;
}
.feat:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.feat:hover::before { opacity: 1; }

.feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.feat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--txt);
}
.feat-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   INFO CARDS
   ══════════════════════════════════════════════════════════ */

.info-cards-section { margin-bottom: 3rem; }
.info-cards-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: all 0.25s var(--ease);
}
.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.info-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}
.info-card-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   BROWSE / SEARCH
   ══════════════════════════════════════════════════════════ */

.browse-section { margin-top: 3rem; }
.browse-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.browse-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.browse-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  flex: 1;
  min-width: 200px;
  transition: border-color 0.2s;
}
.browse-search:focus-within { border-color: var(--accent); }
.browse-search i { color: var(--text3); font-size: 0.82rem; }
.browse-search input {
  background: none;
  border: none;
  color: var(--txt);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
  padding: 0;
}

.browse-filters { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.filter-chip {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}
.filter-chip:hover { border-color: var(--accent); color: var(--txt); }
.filter-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent3); }

.browse-sort {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.browse-sort:focus { border-color: var(--accent); outline: none; }

.browse-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

/* ══════════════════════════════════════════════════════════
   FILE LIST (HOME)
   ══════════════════════════════════════════════════════════ */

.file-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.file-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all 0.2s var(--ease);
}
.file-card:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.fc-row { display: flex; align-items: center; gap: 0.75rem; }
.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.fc-body { flex: 1; min-width: 0; }
.fc-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 0.1rem;
}
.fc-meta .sz {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text2);
}

.fc-badges { display: flex; gap: 0.3rem; margin-top: 0.4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.badge-lock {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent2);
}

/* ══════════════════════════════════════════════════════════
   UPLOAD PAGE
   ══════════════════════════════════════════════════════════ */

.up-step { }

.drop-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background: var(--glass);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dz-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  transition: transform 0.25s;
}
.drop-zone:hover .dz-icon { transform: translateY(-4px); }
.dz-text { font-weight: 600; font-size: 0.95rem; color: var(--txt); margin-bottom: 0.3rem; }
.dz-hint { font-size: 0.78rem; color: var(--text3); }

.up-folder-btn-row {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
.btn-folder-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-folder-upload:hover { border-color: var(--accent); color: var(--accent2); }
.bfu-icon { font-size: 0.9rem; }

/* Config step */
.up-file-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.up-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.up-file-details { flex: 1; min-width: 0; }
.up-file-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-file-size { font-size: 0.75rem; color: var(--text3); font-family: var(--font-mono); }

/* Folder file list */
.up-folder-files {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  max-height: 200px;
  overflow-y: auto;
}
.up-folder-files-title { font-weight: 600; font-size: 0.78rem; margin-bottom: 0.5rem; color: var(--text2); }
.up-ff-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}
.up-ff-row:last-child { border-bottom: none; }
.up-ff-icon { font-size: 0.8rem; color: var(--text3); width: 16px; text-align: center; }
.up-ff-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-ff-size { color: var(--text3); font-family: var(--font-mono); font-size: 0.68rem; }
.up-ff-more { padding: 0.3rem 0; color: var(--text3); font-size: 0.75rem; font-style: italic; }

/* Upload config area */
.up-config { margin-top: 0.5rem; }
.up-config-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.up-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.cfg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}
.cfg-card--wide { grid-column: 1 / -1; }
.cfg-header { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.cfg-icon { font-size: 0.82rem; color: var(--accent); }
.cfg-label { font-weight: 600; font-size: 0.82rem; }
.cfg-hint { font-size: 0.7rem; color: var(--text3); margin-top: 0.3rem; }

.cfg-groups { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cfg-chip {
  padding: 0.3rem 0.65rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.cfg-chip:hover { border-color: var(--accent); color: var(--txt); }
.cfg-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.up-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.up-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.3);
}
.up-start-icon { font-size: 1.1rem; }

/* Progress step */
.up-progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.up-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.up-fname { font-weight: 600; font-size: 0.88rem; }
.up-fsize { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text3); }

.prog-track {
  height: 8px;
  background: var(--surface3);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: var(--radius-full);
  transition: width 0.3s;
  position: relative;
}
.prog-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progress-shine 2s infinite;
}

.up-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text2);
}
.up-stats .spd { color: var(--accent); font-weight: 600; }
.up-file-status { font-size: 0.78rem; color: var(--text3); margin-top: 0.5rem; text-align: center; }

/* Done step */
.up-result {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.up-result-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.up-result-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.up-result-link {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}
.up-result-link input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════
   DOWNLOAD PAGE
   ══════════════════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.dl-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
/* Subtle accent glow at top */
.dl-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.dl-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.dl-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  word-break: break-word;
}
.dl-desc {
  font-size: 0.88rem;
  color: var(--text2);
  margin-bottom: 0.75rem;
}
.dl-meta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 1.2rem;
}
.dl-meta .val { color: var(--txt); font-weight: 600; }

.dl-expired, .dl-restricted {
  background: var(--red-soft);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--red);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.dl-restricted {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.15);
  color: var(--accent2);
}

/* Password gate */
.dl-pw {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.dl-pw label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--text2);
}
.pw-row { display: flex; gap: 0.5rem; }
.dl-pw-err {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: none;
}
.dl-pw-err.active { display: block; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  margin-top: 0.5rem;
}
.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
  color: #fff;
}

.dl-uploader {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 1.2rem;
}

/* ══════════════════════════════════════════════════════════
   DOWNLOAD ACTION ROW
   ══════════════════════════════════════════════════════════ */

.dl-action-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ── Embed codes ── */
.dl-embeds {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
}
.embed-title { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.5rem; }
.embed-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.3rem; }
.embed-label { font-size: 0.72rem; color: var(--text3); text-transform: capitalize; min-width: 80px; white-space: nowrap; }
.embed-val {
  flex: 1;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--txt);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color 0.15s;
}
.embed-val:hover { border-color: var(--accent); }

/* ── File preview ── */
.dl-preview { margin: 1rem 0; }
.preview-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.preview-img { max-width: 100%; max-height: 500px; display: block; margin: 0 auto; cursor: pointer; }
.preview-video { width: 100%; max-height: 500px; display: block; }
.preview-audio { width: 100%; display: block; padding: 1rem; }
.preview-pdf { width: 100%; height: 600px; border: none; }
.preview-code {
  max-height: 400px;
  overflow: auto;
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
.preview-code pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: var(--font-mono); }

/* ── Comments ── */
.comment-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.comment-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; }
.comment-time { color: var(--text3); font-size: 0.72rem; }
.comment-body { font-size: 0.85rem; margin-top: 0.2rem; line-height: 1.4; }

/* ══════════════════════════════════════════════════════════
   FOLDER VIEW
   ══════════════════════════════════════════════════════════ */

.fld-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fld-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(var(--accent-rgb), 0.15));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.fld-header-body { flex: 1; min-width: 0; }
.fld-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.fld-desc {
  font-size: 0.85rem;
  color: var(--text2);
  margin-top: 0.2rem;
}

.fld-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.fld-stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.fld-stat .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--txt);
}
.fld-stat .lbl {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Folder toolbar */
.fld-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fld-toolbar-left { display: flex; align-items: center; gap: 0.5rem; }
.fld-toolbar-right { display: flex; align-items: center; gap: 0.4rem; }
.fld-files-header { font-weight: 600; font-size: 0.88rem; color: var(--text2); }

/* Folder file grid */
.fld-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.6rem;
}
.fld-file-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 230px;
}
.fld-file-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Thumbnail fallback (icon / non-playable) */
.ffc-thumb {
  height: 180px;
  flex: 0 0 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  position: relative;
}
.ffc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.ffc-thumb--clickable { cursor: pointer; }
.ffc-thumb--clickable:hover img { transform: scale(1.05); }

.ffc-thumb--icon {
  font-size: 1.8rem;
  color: var(--text3);
}
.ffc-thumb--video { background: #0a0a0c; }
.ffc-thumb--audio {
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
}

/* ── Inline preview containers ── */
.ffc-preview {
  position: relative;
  height: 180px;
  flex: 0 0 180px;
  overflow: hidden;
  background: var(--surface2);
}
.ffc-preview--image { cursor: pointer; }
.ffc-preview--image img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  background: var(--surface2);
  transition: transform 0.3s var(--ease);
}
.ffc-preview--image:hover img { transform: scale(1.03); }
.ffc-preview--video video {
  width: 100%;
  height: 180px;
  display: block;
  background: #000;
  object-fit: cover;
}
.ffc-preview--audio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
}
.ffc-preview--audio audio {
  flex: 1;
  min-width: 0;
  height: 32px;
}
.ffc-audio-icon { font-size: 1.5rem; color: var(--accent); }
.ffc-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}
.ffc-thumb--clickable:hover .ffc-play-overlay,
.ffc-preview--image:hover .ffc-play-overlay { opacity: 1; }
.ffc-play-overlay i {
  font-size: 1.8rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.ffc-play-disabled { font-size: 1.5rem; color: var(--text3); opacity: 0.5; }
.ffc-duration {
  position: absolute;
  bottom: 0.35rem;
  right: 0.35rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.ffc-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 1.2rem;
  color: #fff;
}
.ffc-thumb--clickable:hover .ffc-zoom,
.ffc-preview--image:hover .ffc-zoom { opacity: 1; }

/* Card body */
.ffc-body { padding: 0.55rem 0.7rem 0.5rem; flex: 0 0 auto; }
.ffc-name {
  font-weight: 600;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.1rem;
}
.ffc-meta {
  font-size: 0.64rem;
  color: var(--text3);
  font-family: var(--font-mono);
}

/* Download button on card */
.ffc-dl {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  opacity: 0;
}
.fld-file-card:hover .ffc-dl { opacity: 1; }
.ffc-dl:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.fld-owner-actions {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.fld-uploader { margin-top: 1rem; font-size: 0.72rem; color: var(--text3); text-align: center; }

/* ── Subfolder breadcrumbs ── */
.fld-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}
.fld-bc-item {
  color: var(--accent);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.fld-bc-item:hover { background: var(--accent-soft); }
.fld-bc-active { color: var(--text); cursor: default; font-weight: 600; }
.fld-bc-active:hover { background: none; }
.fld-bc-sep { font-size: 0.55rem; color: var(--text3); margin: 0 0.05rem; }

/* ── Subfolder cards ── */
.fld-subfolder-card {
  cursor: pointer;
}
.fld-subfolder-card .ffc-thumb--icon {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface2));
  color: var(--accent);
  font-size: 2rem;
}
.fld-subfolder-card:hover .ffc-thumb--icon {
  color: var(--accent2);
}

/* ══════════════════════════════════════════════════════════
   MEDIA LIGHTBOX
   ══════════════════════════════════════════════════════════ */

.mlb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
}
.mlb.active { display: flex; align-items: center; justify-content: center; }

.mlb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(24px);
}

.mlb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.mlb-close:hover { background: rgba(255,255,255,0.15); }

.mlb-prev, .mlb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.mlb-prev { left: 1rem; }
.mlb-next { right: 1rem; }
.mlb-prev:hover, .mlb-next:hover { background: rgba(255,255,255,0.15); }

.mlb-content {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mlb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  transition: transform 0.15s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.mlb-img.zoomed { cursor: grab; }
.mlb-img.dragging { cursor: grabbing; transition: none; }
.mlb-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  background: #000;
  outline: none;
}
.mlb-audio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  min-width: 320px;
}
.mlb-audio-icon { font-size: 3rem; color: var(--accent); }
.mlb-audio-name {
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mlb-audio { width: 100%; max-width: 400px; outline: none; }

.mlb-info {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08);
}
.mlb-fname { color: #fff; font-size: 0.78rem; font-weight: 600; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlb-fmeta { color: rgba(255,255,255,0.5); font-size: 0.7rem; font-family: var(--font-mono); }

/* ══════════════════════════════════════════════════════════
   MY FILES
   ══════════════════════════════════════════════════════════ */

.mf-section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 0.6rem;
  margin-top: 1.2rem;
}

/* My Files — file rows */
.mf-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 0.35rem;
  transition: all 0.15s;
  cursor: pointer;
}
.mf-row:hover { border-color: var(--border-hover); background: var(--surface2); }
.mf-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.mf-check { flex-shrink: 0; }
.mf-check input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }
.mf-info { flex: 1; min-width: 0; }
.mf-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: var(--accent2);
}
.mf-name:hover { text-decoration: underline; }
.mf-meta { font-size: 0.72rem; color: var(--text3); margin-top: 0.1rem; }
.mf-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }

/* Folder cards */
.mf-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.folder-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
}
.folder-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: inherit;
}

.foc-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent);
  flex-shrink: 0;
}
.foc-body { flex: 1; min-width: 0; }
.foc-name {
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foc-meta { font-size: 0.68rem; color: var(--text3); margin-top: 0.1rem; }

/* Gear button on cards */
.mf-settings-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  transition: color 0.15s, background 0.15s;
}
.mf-settings-btn:hover { color: var(--accent); background: var(--glass-hover); }
.folder-card .mf-settings-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════
   LOGIN
   ══════════════════════════════════════════════════════════ */

.login-card {
  max-width: 380px;
  margin: 4rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.login-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.login-card .sub { color: var(--text2); font-size: 0.88rem; margin-bottom: 1.2rem; }
.fg { margin-bottom: 0.75rem; text-align: left; }
.fg label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text2); margin-bottom: 0.3rem; }

/* ══════════════════════════════════════════════════════════
   ADMIN
   ══════════════════════════════════════════════════════════ */

.adm-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
  overflow-x: auto;
}
.adm-tab {
  padding: 0.45rem 0.85rem;
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text3);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.adm-tab:hover { color: var(--txt); background: var(--glass-hover); }
.adm-tab.active { color: #fff; background: var(--accent); }

.adm-pane { display: none; }
.adm-pane.active { display: block; animation: fadeIn 0.2s var(--ease-out); }

.adm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.adm-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.adm-stat-lbl { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; font-weight: 500; }
.adm-stat-val { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--accent); }

.adm-section { margin-bottom: 1.5rem; }
.adm-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.adm-table th {
  text-align: left;
  padding: 0.55rem 0.6rem;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}
.adm-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.adm-table tr:hover td { background: var(--glass-hover); }
.del-row td { opacity: 0.5; text-decoration: line-through; }
.ban-row td { background: var(--red-soft); }
.adm-badge-ban { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.6rem; font-weight: 700; background: var(--red-soft); color: var(--red); }
.font-mono { font-family: var(--font-mono); }

.adm-ban-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Admin badges */
.adm-badge-approved { display: inline-block; padding: 0.15rem 0.55rem; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: 600; background: var(--green-soft); color: var(--green); }
.adm-badge-denied { display: inline-block; padding: 0.15rem 0.55rem; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: 600; background: var(--red-soft); color: var(--red); }
.adm-badge-pending { display: inline-block; padding: 0.15rem 0.55rem; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: 600; background: rgba(234,179,8,0.12); color: #eab308; }

.adm-sr-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.adm-sr-actions input { width: 60px; padding: 0.25rem 0.4rem; font-size: 0.78rem; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface2); color: var(--txt); }
.adm-sr-actions .note-input { width: 120px; }

/* Reup Bot section */
.adm-reupbot-desc { font-size: 0.82rem; color: var(--text2); margin-bottom: 1rem; line-height: 1.5; }
.adm-reupbot-err { padding: 0.75rem; background: var(--red-soft); border: 1px solid rgba(239,68,68,0.2); color: var(--red); border-radius: var(--radius-xs); font-size: 0.82rem; margin-bottom: 1rem; }
.adm-reupbot-stats { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.reupbot-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1.25rem; text-align: center; }
.reupbot-stat-val { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.reupbot-stat-lbl { font-size: 0.68rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ══════════════════════════════════════════════════════════
   ACTIVITY FEED
   ══════════════════════════════════════════════════════════ */

.activity-feed { display: flex; flex-direction: column; gap: 0.5rem; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.activity-item:hover { border-color: var(--border-hover); }
.act-icon { font-size: 1.2rem; color: var(--accent); }
.act-icon i { font-size: 1rem; }
.act-action { font-size: 0.85rem; }
.act-detail { font-size: 0.75rem; color: var(--text3); margin-top: 0.15rem; }

/* ══════════════════════════════════════════════════════════
   USER PROFILE
   ══════════════════════════════════════════════════════════ */

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  margin-bottom: 1rem;
}
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-soft); }
.profile-avatar-fallback {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   ACCESS GATE (FOLDER GROUP RESTRICTION)
   ══════════════════════════════════════════════════════════ */

.access-gate {
  max-width: 420px;
  margin: 2rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.access-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}
.access-gate-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.access-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid rgba(var(--accent-rgb), 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.access-gate h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.access-gate-info { color: var(--text2); font-size: 0.85rem; margin-bottom: 0.75rem; }

.access-gate-groups { display: flex; justify-content: center; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.access-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent2);
}

.access-gate-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--text3);
  font-size: 0.72rem;
}
.access-gate-divider::before,
.access-gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.access-gate-sub { color: var(--text3); font-size: 0.82rem; margin-bottom: 0.75rem; }

.access-gate-form { text-align: left; }
.access-gate-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--surface2);
  transition: border-color 0.2s;
}
.access-gate-field:focus-within { border-color: var(--accent); }
.access-gate-field label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text3);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.access-gate-field input {
  flex: 1;
  border: none;
  background: none;
  padding: 0.5rem 0.6rem 0.5rem 0;
  font-size: 0.85rem;
  outline: none;
  color: var(--txt);
}
.access-gate-field input:focus { box-shadow: none; }

.access-gate-denied-box {
  background: var(--red-soft);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.access-gate-denied-icon { font-size: 1.5rem; color: var(--red); margin-bottom: 0.4rem; }
.access-gate-denied-msg { color: var(--red); font-size: 0.85rem; font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s var(--ease-out);
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 95%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s var(--ease-spring);
}
.modal-box--settings { max-width: 440px; }

.modal-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.modal-desc { font-size: 0.85rem; color: var(--text2); margin-bottom: 1rem; }
.modal-label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.3rem; margin-top: 0.75rem; color: var(--text2); }
.modal-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface2);
  color: var(--txt);
  font-family: inherit;
  resize: vertical;
}
.modal-input:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }

/* For the members/requests modals that use .modal instead of .modal-box */
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 95%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s var(--ease-spring);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text3);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--glass-hover); color: var(--txt); }
.modal-body { padding: 1.25rem 1.5rem; }

/* ══════════════════════════════════════════════════════════
   ITEM SETTINGS MODAL
   ══════════════════════════════════════════════════════════ */

.ism-vis-group {
  display: flex;
  gap: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.ism-vis-btn {
  flex: 1;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  border: none;
  background: var(--surface2);
  color: var(--text3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-weight: 500;
}
.ism-vis-btn:not(:last-child) { border-right: 1px solid var(--border); }
.ism-vis-btn:hover { background: var(--surface3); color: var(--txt); }
.ism-vis-btn.active { background: var(--accent); color: #fff; }

.ism-hint { font-size: 0.7rem; color: var(--text3); margin: 0.2rem 0 0.75rem; }

.ism-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: background 0.2s;
  user-select: none;
}
.ism-toggle:hover { background: var(--surface2); }
.ism-toggle input { display: none; }
.ism-toggle-slider {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}
.ism-toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: transform 0.25s;
}
.ism-toggle input:checked + .ism-toggle-slider { background: var(--accent); }
.ism-toggle input:checked + .ism-toggle-slider::after { transform: translateX(16px); }
.ism-toggle-label { font-size: 0.85rem; color: var(--txt); display: flex; align-items: center; gap: 0.4rem; }

.ism-share-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ism-share-row .modal-input { flex: 1; margin-bottom: 0; }

.ism-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.ism-group-chip {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--glass);
  font-size: 0.73rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.ism-group-chip:hover { border-color: var(--accent); background: var(--glass-hover); }
.ism-group-chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Analytics in settings */
.ism-analytics-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0;
  user-select: none;
}
.ism-analytics-toggle:hover { opacity: 0.8; }
.ism-analytics-toggle i { transition: transform 0.2s; color: var(--text3); font-size: 0.75rem; }
.ism-analytics-toggle.expanded i { transform: rotate(180deg); }

.ism-analytics-section {
  padding: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
}
.ism-analytics-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.ism-analytics-stat { text-align: center; padding: 0.5rem; background: var(--surface2); border-radius: var(--radius-xs); }
.ism-analytics-stat-val { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-bottom: 0.2rem; }
.ism-analytics-stat-lbl { font-size: 0.65rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
#ism-an-chart { font-size: 0.75rem; }
.ism-an-day { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); }
.ism-an-day:last-child { border-bottom: none; }
.ism-an-day-label { color: var(--text3); }
.ism-an-day-val { font-weight: 600; color: var(--accent2); }

/* ══════════════════════════════════════════════════════════
   MIRROR BUTTONS & LINKS
   ══════════════════════════════════════════════════════════ */

.mirror-btn {
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.2s;
}
.mirror-btn:hover { background: var(--accent-soft); }
.mirror-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.mirror-status {
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.mirror-status.processing { border-color: var(--accent); color: var(--accent2); }
.mirror-status.done { border-color: var(--green); color: var(--green); }
.mirror-status.failed { border-color: var(--red); color: var(--red); }

.mirror-links {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.mirror-links-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.mirror-link-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.mirror-link-row:last-child { border-bottom: none; }
.mlr-host { font-weight: 600; min-width: 100px; color: var(--txt); }
.mlr-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlr-url a { color: var(--accent2); text-decoration: none; }
.mlr-url a:hover { text-decoration: underline; }
.mlr-copy {
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all 0.15s;
}
.mlr-copy:hover { background: var(--glass-hover); color: var(--txt); }

/* ══════════════════════════════════════════════════════════
   UPLOAD LIMIT BAR
   ══════════════════════════════════════════════════════════ */

.up-limit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  margin-top: 0.75rem;
}
.ulb-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text2); }
.ulb-info strong { color: var(--txt); font-weight: 600; }
.ulb-icon { font-size: 1rem; color: var(--accent); }
.ulb-pending { font-size: 0.78rem; color: var(--accent); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   STORAGE QUOTA BAR
   ══════════════════════════════════════════════════════════ */

.storage-quota-bar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.sq-info { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text2); }
.sq-track { height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.sq-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s; }
.sq-fill.sq-warn { background: #f59e0b; }
.sq-fill.sq-danger { background: var(--red); }

/* ══════════════════════════════════════════════════════════
   BULK ACTION BAR
   ══════════════════════════════════════════════════════════ */

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.bulk-bar .btn { font-size: 0.75rem; }

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}
.toast {
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  transform: translateX(120%);
  transition: transform 0.35s var(--ease-spring);
  box-shadow: var(--shadow-lg);
  max-width: 350px;
}
.toast-show { transform: translateX(0); }
.toast-info { background: var(--accent); }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }

/* ══════════════════════════════════════════════════════════
   NOTIFICATION PANEL
   ══════════════════════════════════════════════════════════ */

.notif-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text2);
  padding: 0.25rem;
  transition: color 0.15s;
}
.notif-bell:hover { color: var(--txt); }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 0.58rem;
  padding: 0.08rem 0.3rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  line-height: 1;
}
.notif-panel {
  position: fixed;
  top: 60px;
  right: 1rem;
  z-index: 9999;
  width: 340px;
  max-height: 450px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.2s var(--ease-spring);
}
.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.notif-list { overflow-y: auto; max-height: 380px; }
.notif-item {
  display: block;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--txt);
  transition: background 0.15s;
}
.notif-item:hover { background: var(--bg-hover); color: var(--txt); }
.notif-unread { background: rgba(var(--accent-rgb), 0.06); }
.notif-title { font-size: 0.82rem; font-weight: 600; }
.notif-msg { font-size: 0.75rem; color: var(--text2); margin-top: 0.15rem; }
.notif-time { font-size: 0.65rem; color: var(--text3); margin-top: 0.1rem; }

/* ══════════════════════════════════════════════════════════
   ANALYTICS CHARTS
   ══════════════════════════════════════════════════════════ */

.ana-chart { margin-bottom: 1.5rem; }
.ana-label { font-size: 0.85rem; font-weight: 600; text-transform: capitalize; margin-bottom: 0.3rem; }
.ana-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  background: var(--surface);
  border-radius: var(--radius-xs);
  padding: 4px;
  border: 1px solid var(--border);
}
.ana-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  min-width: 4px;
  transition: height 0.3s;
}
.ana-total { font-size: 0.72rem; color: var(--text3); margin-top: 0.2rem; }

/* ══════════════════════════════════════════════════════════
   FOLDER PAGINATION
   ══════════════════════════════════════════════════════════ */

.fld-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.fld-pag-info { font-size: 0.78rem; color: var(--text3); }
.fld-pag-btns { display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   SKELETON LOADING
   ══════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface3) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}
.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-bar { height: 0.7rem; width: 60%; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════ */

.empty { text-align: center; padding: 3rem 1rem; color: var(--text3); }
.empty-icon { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.3; }
.empty-text { font-size: 0.88rem; }

/* ══════════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════════ */

.legal-page { padding-bottom: 4rem; }
.legal-updated { font-size: 0.82rem; color: var(--text3); margin-bottom: 1.5rem; }
.legal-content {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text2);
  max-width: 680px;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}
.legal-content ul { margin: 0.5rem 0 1rem 1.25rem; padding: 0; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent2); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent3); }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text2);
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-links { margin-bottom: 0.8rem; }
.footer-links a { color: var(--accent2); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer-sep { margin: 0 0.5rem; color: var(--text3); }
.footer-disclaimer { margin-bottom: 0.5rem; }
.footer-disclaimer strong { color: var(--txt); }
.footer-dmca { margin-bottom: 0.5rem; }
.footer-dmca a { color: var(--accent2); text-decoration: underline; text-underline-offset: 2px; }
.footer-dmca a:hover { color: var(--accent3); }
.footer-copy { opacity: 0.5; font-size: 0.75rem; }

/* ══════════════════════════════════════════════════════════
   QR CODE MODAL
   ══════════════════════════════════════════════════════════ */

.qr-modal-body { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; }
.qr-modal-body img { border-radius: 8px; background: #fff; padding: 8px; }
.qr-modal-body .qr-url { font-size: 0.75rem; color: var(--text3); word-break: break-all; text-align: center; max-width: 280px; }

/* ══════════════════════════════════════════════════════════
   FILE REQUEST UPLOAD PAGE
   ══════════════════════════════════════════════════════════ */

.page-header { margin-bottom: 1.5rem; }
.up-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.up-drop-zone:hover { border-color: var(--accent); }
.up-drop-text { font-weight: 500; font-size: 0.9rem; color: var(--text2); }
.up-prog-bar { height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.up-prog-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }

/* ══════════════════════════════════════════════════════════
   FA ICON SIZING
   ══════════════════════════════════════════════════════════ */

.feat-icon i, .info-card-icon i, .cfg-icon i, .dz-icon i,
.up-result-icon i, .dl-icon i, .fld-header-icon i, .empty-icon i {
  font-size: inherit;
}
.act-icon i { font-size: 1rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero { padding: 4rem 1rem 2.5rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .file-grid { grid-template-columns: 1fr; }
  .hide-m { display: none !important; }
  .dl-card, .login-card { margin: 1.5rem; padding: 1.5rem; }
  .access-gate { margin: 1.5rem auto; padding: 2rem 1.4rem 1.6rem; }
  .adm-grid { grid-template-columns: 1fr 1fr; }
  .up-config-grid { grid-template-columns: 1fr; }
  .cfg-card--wide { grid-column: 1; }
  .nav-center { gap: 0.1rem; padding: 0.15rem; }
  .nav-pill { padding: 0.28rem 0.6rem; font-size: 0.72rem; }
  .nav-inner { gap: 0.5rem; }
  .user-badge .uname { display: none; }
  .mf-folder-grid { grid-template-columns: 1fr; }
  .fld-file-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .fld-header-icon { width: 42px; height: 42px; font-size: 1.3rem; }
  .fld-name { font-size: 1.1rem; }
  .fld-toolbar { flex-direction: column; align-items: flex-start; }
  .adm-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .adm-tabs::-webkit-scrollbar { display: none; }
  .adm-tab { flex-shrink: 0; }
  .adm-section { overflow-x: auto; }
  .adm-table { min-width: 500px; }
  .up-limit-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .modal-box { width: 95%; padding: 1.5rem; }
  .fld-pagination { flex-direction: column; align-items: center; }
  .fld-pag-btns { justify-content: center; }
  .container, .container-wide { padding-left: 1rem; padding-right: 1rem; }
  .adm-sr-actions { flex-direction: column; align-items: flex-start; }
  .adm-sr-actions input { width: 100%; }
  .adm-sr-actions .note-input { width: 100%; }
  .adm-ban-form { flex-direction: column; gap: 0.5rem; }
  .adm-ban-form input { width: 100%; }
  .drop-zone { padding: 2rem 1rem; }
  .dz-text { font-size: 0.88rem; }
  .mlb-prev, .mlb-next { width: 36px; height: 36px; font-size: 1.1rem; }
  .mlb-prev { left: 0.4rem; }
  .mlb-next { right: 0.4rem; }
  .mlb-audio-wrap { padding: 1.5rem 1rem; min-width: 260px; }
  .browse-toolbar { flex-direction: column; align-items: stretch; }
  .browse-filters { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 440px) {
  .hero { padding: 3rem 0.5rem 2rem; }
  .hero-title { font-size: 1.8rem; }
  .features { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .stats-strip { flex-direction: column; align-items: center; }
  .page-title { font-size: 1.4rem; }
  .adm-grid { grid-template-columns: 1fr; }
  .fld-file-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .nav-pill { padding: 0.22rem 0.45rem; font-size: 0.65rem; }
  .fld-pagination { gap: 0.5rem; }
  .fld-pag-btns .btn { padding: 0.2rem 0.35rem; font-size: 0.65rem; }
  .ism-vis-btn { font-size: 0.68rem; padding: 0.4rem 0.3rem; }
  .fld-file-card { padding: 0; }
  .ffc-body { min-width: 0; }
  .ffc-name { font-size: 0.72rem; }
  .dl-meta { flex-direction: column; gap: 0.3rem; }
}

/* ══════════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
