/* ============================================================
   YumaXDrive — Theme & Design System
   Designed with care: modern aurora gradients, glassmorphism,
   buttery animations, and full responsive support.
   ============================================================ */

/* ---------- 1. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- 2. Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg: #0a0b10;
  --bg-elev: #11131c;
  --bg-elev-2: #181b27;
  --bg-card: rgba(24, 27, 39, 0.65);
  --bg-card-solid: #181b27;
  --bg-overlay: rgba(8, 9, 14, 0.78);

  /* Surfaces / borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --divider: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #eef0f7;
  --text-soft: #b8bdd0;
  --text-muted: #7a7f95;
  --text-dim: #555a70;

  /* Accents */
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-3: #ec4899;
  --accent-glow: rgba(139, 92, 246, 0.45);

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Brand gradient */
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.15));

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px var(--accent-glow);

  /* Transitions */
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 420ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Sizing */
  --header-h: 72px;
  --side-w: 264px;
}

/* ---------- 3. Utility ---------- */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.muted { color: var(--text-muted); }

/* ---------- 4. Aurora Background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  animation: blob-float 18s ease-in-out infinite;
}
.aurora-blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -120px; left: -120px;
}
.aurora-blob-2 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  bottom: -160px; right: -160px;
  animation-delay: -6s;
}
.aurora-blob-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.06); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
.aurora-blob-3 {
  /* compound transform — override */
  animation-name: blob-float-center;
}
@keyframes blob-float-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -54%) scale(1.08); }
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(10, 11, 16, 0.55);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-logo { flex-shrink: 0; }
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t-fast);
}
.site-nav a:hover { color: var(--text); }
.site-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(139,92,246,0.5); color: #fff; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }

.btn-spinner { display: inline-flex; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-inner { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 13px;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 24px;
}
.hero-badge i { color: #fbbf24; }
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item i { color: var(--accent); }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 460px;
}
.visual-card {
  position: absolute;
  width: 320px;
  padding: 16px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: card-float 6s ease-in-out infinite;
}
.visual-card.card-1 { top: 0; left: 0; animation-delay: 0s; }
.visual-card.card-2 { top: 120px; right: 0; animation-delay: -2s; }
.visual-card.card-3 { bottom: 0; left: 40px; animation-delay: -4s; }
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.vc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.vc-head i {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
}
.vc-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.vc-bar-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 4px;
  transition: width var(--t-slow);
}
.vc-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.vc-meta .ok { color: var(--success); }

/* Fade-in animations */
.fade-in { opacity: 0; transform: translateY(20px); animation: fade-up 700ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 320ms; }
.delay-4 { animation-delay: 440ms; }
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 8. Sections ---------- */
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 16px;
}

.features, .pricing, .faq {
  padding: 100px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  font-size: 22px;
  color: #fff;
  margin-bottom: 18px;
}
.icon-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.icon-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.icon-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.icon-orange { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.icon-green { background: linear-gradient(135deg, #10b981, #06b6d4); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

/* Pricing */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 20px;
  justify-content: center;
}
.plan-card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), border-color var(--t-base);
}
.plan-card:hover { transform: translateY(-4px); }
.plan-featured {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-elev), var(--bg-elev)), var(--grad-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.plan-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--grad-brand);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}
.plan-head h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; }
.plan-price { font-size: 42px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.plan-tag { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; }
.plan-feat { list-style: none; padding: 0; margin: 0 0 28px; }
.plan-feat li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text-soft);
}
.plan-feat li i { color: var(--success); width: 16px; text-align: center; }
.plan-feat li.muted { color: var(--text-dim); }
.plan-feat li.muted i { color: var(--text-dim); }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: border-color var(--t-base);
}
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--t-base);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-copy { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ---------- 10. Auth pages ---------- */
.page-auth { min-height: 100vh; }
.auth-main {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: scale-in 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--t-fast);
  position: relative;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { color: var(--text); }
.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20%; right: 20%;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}
.auth-body { padding: 36px 32px 32px; }
.auth-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.auth-sub { color: var(--text-soft); margin: 0 0 28px; font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}
.field-label i { color: var(--accent); font-size: 12px; }
.field input, .field textarea {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
.auth-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { padding: 0 12px; }
.auth-foot { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--text-muted); }
.auth-foot a { color: var(--accent); font-weight: 600; }

/* ---------- 11. Drive layout ---------- */
.page-drive { background: var(--bg); }
.drive-shell {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.drive-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drive-side .brand { padding: 0 6px 8px; }
.side-upload {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(139,92,246,0.35);
  transition: transform var(--t-fast), box-shadow var(--t-base);
}
.side-upload:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(139,92,246,0.5); }

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.side-link i { width: 18px; text-align: center; color: var(--text-muted); }
.side-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.side-link.active {
  background: var(--grad-soft);
  color: var(--text);
}
.side-link.active i { color: var(--accent); }

.side-storage {
  margin-top: auto;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.storage-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.storage-label i { color: var(--accent); }
.storage-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.storage-bar-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 4px;
  transition: width var(--t-slow);
}
.storage-text { font-size: 12px; color: var(--text-muted); }

.side-account {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
}
.account-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.account-meta { flex: 1; min-width: 0; }
.account-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-sub { font-size: 11px; color: var(--text-muted); }
.account-actions { display: flex; gap: 4px; }
.account-actions .icon-btn { padding: 6px; font-size: 12px; }

/* Drive main */
.drive-main {
  padding: 24px 32px 80px;
  min-width: 0;
}
.drive-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.drive-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.drive-search:focus-within { border-color: var(--accent); }
.drive-search i { color: var(--text-muted); }
.drive-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
}
.drive-search input::placeholder { color: var(--text-dim); }

.drive-top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-soft);
  transition: all var(--t-fast);
}
.icon-btn:hover { background: var(--bg-elev-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn-sm { width: 28px; height: 28px; font-size: 12px; }

.drive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.bc-link {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-soft);
  transition: background var(--t-fast);
}
.bc-link:hover { background: var(--bg-elev); color: var(--text); }
.bc-link.current { color: var(--text); font-weight: 600; }
.bc-sep { color: var(--text-dim); }

.drive-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 22px;
  text-align: center;
  transition: all var(--t-base);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
}
.drive-dropzone:hover, .drive-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(139,92,246,0.08);
}
.dropzone-inner i {
  font-size: 28px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.dropzone-inner h3 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.dropzone-inner p { margin: 0; font-size: 13px; color: var(--text-muted); }

.drive-section { margin-bottom: 32px; }
.drive-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-head .drive-section-title { margin-bottom: 0; }
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-elev);
  padding: 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.view-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--t-fast);
  font-size: 13px;
}
.view-btn:hover { color: var(--text); }
.view-btn.active {
  background: var(--bg-elev-2);
  color: var(--text);
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.folder-item {
  position: relative;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.folder-item:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
.folder-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.folder-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-menu { opacity: 0; transition: opacity var(--t-fast); }
.folder-item:hover .folder-menu { opacity: 1; }

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.files-grid.view-list {
  grid-template-columns: 1fr;
  gap: 4px;
}
.file-item {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
}
.file-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.file-thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-elev-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-thumb .file-icon {
  font-size: 38px;
  color: var(--text-muted);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.file-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.file-badges {
  position: absolute;
  top: 8px; right: 8px;
  display: flex; gap: 4px;
}
.file-badge {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.file-badge.password { background: rgba(139,92,246,0.8); }
.file-badge.guest { background: rgba(245,158,11,0.85); }

/* List view */
.files-grid.view-list .file-item {
  flex-direction: row;
  align-items: center;
  padding: 8px 14px;
  gap: 14px;
}
.files-grid.view-list .file-thumb {
  width: 44px; height: 44px;
  aspect-ratio: 1;
  border-radius: 8px;
  flex-shrink: 0;
}
.files-grid.view-list .file-thumb .file-icon { font-size: 20px; }
.files-grid.view-list .file-info {
  flex: 1; padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.files-grid.view-list .file-name { flex: 1; }
.files-grid.view-list .file-badges { position: static; }

.file-menu-trigger {
  position: absolute;
  top: 8px; left: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.file-item:hover .file-menu-trigger { opacity: 1; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.empty-state i {
  font-size: 56px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.empty-state h3 { font-size: 18px; margin: 0 0 8px; }
.empty-state p { color: var(--text-muted); margin: 0 0 22px; font-size: 14px; }

/* Upload panel */
.upload-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 80;
  animation: slide-up 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.up-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.up-head > div { display: flex; gap: 4px; }
.up-head i { margin-right: 4px; color: var(--accent); }
.up-list {
  list-style: none;
  padding: 8px;
  margin: 0;
  max-height: 340px;
  overflow-y: auto;
}
.up-item {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-sm);
}
.up-item + .up-item { margin-top: 4px; }
.up-item-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--bg-elev-2);
  color: var(--accent);
  flex-shrink: 0;
}
.up-item-body { flex: 1; min-width: 0; }
.up-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-item-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 5px;
}
.up-item-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width var(--t-fast);
}
.up-item-status {
  font-size: 11px;
  color: var(--text-muted);
  display: flex; justify-content: space-between;
  margin-top: 3px;
}
.up-item.status-ok .up-item-fill { background: var(--success); }
.up-item.status-err .up-item-fill { background: var(--danger); }

.upload-panel.minimized .up-list { display: none; }

/* ---------- 12. Modal ---------- */
.modal-root { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade 220ms;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 28px;
  animation: scale-in 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.modal-head h3 { font-size: 18px; margin: 0; font-weight: 700; }
.modal-body { font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.modal-body .field { margin-top: 14px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* Context menu */
.ctx-menu {
  position: fixed;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 200px;
  z-index: 250;
  animation: scale-in 140ms;
}
.ctx-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  transition: background var(--t-fast);
  text-align: left;
}
.ctx-item:hover { background: var(--bg-elev-2); }
.ctx-item i { width: 16px; text-align: center; color: var(--text-muted); }
.ctx-item.danger { color: #fca5a5; }
.ctx-item.danger i { color: #fca5a5; }
.ctx-divider { height: 1px; background: var(--divider); margin: 4px 0; }

/* ---------- 13. Toasts ---------- */
.toast-root {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  animation: toast-in 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast.fade-out { animation: toast-out 220ms forwards; }
@keyframes toast-out {
  to { opacity: 0; transform: translateY(20px); }
}
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.success i { color: var(--success); }
.toast.error { border-color: rgba(239,68,68,0.4); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }

/* ---------- 14. Share page ---------- */
.page-share { background: var(--bg); min-height: 100vh; }
.share-main {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.share-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  text-align: center;
  animation: scale-in 480ms cubic-bezier(0.4, 0, 0.2, 1);
}
.share-loading {
  padding: 60px 0;
  color: var(--text-muted);
}
.share-loading i { font-size: 28px; margin-bottom: 12px; display: block; }
.share-icon-big {
  width: 88px; height: 88px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  background: var(--grad-brand);
  color: #fff;
  font-size: 38px;
  box-shadow: 0 10px 30px rgba(139,92,246,0.4);
}
.share-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  word-break: break-all;
}
.share-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 22px;
}
.share-locked {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 18px;
  color: #c4b5fd;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}

.share-error {
  padding: 60px 0;
  color: var(--text-muted);
}
.share-error i { font-size: 56px; color: var(--danger); margin-bottom: 16px; display: block; }
.share-error h3 { font-size: 18px; color: var(--text); margin: 0 0 6px; }
.share-error p { margin: 0; font-size: 14px; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 60px;
    gap: 40px;
  }
  .hero-visual { height: 380px; }
  .visual-card { width: 280px; }
  .site-nav { display: none; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .features, .pricing, .faq { padding: 60px 20px; }
  .drive-shell { grid-template-columns: 1fr; }
  .drive-side {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: auto;
    flex-direction: row;
    padding: 12px;
    overflow-x: auto;
    z-index: 50;
    border-right: none;
    border-top: 1px solid var(--border);
    gap: 10px;
    background: rgba(17, 19, 28, 0.95);
    backdrop-filter: blur(20px);
  }
  .drive-side .brand { display: none; }
  .side-upload { padding: 10px 16px; }
  .side-upload span { display: none; }
  .side-nav { flex-direction: row; }
  .side-link { padding: 10px 12px; font-size: 12px; }
  .side-link span, .side-link i + span { display: inline; }
  .side-storage, .side-account { display: none; }
  .drive-main { padding: 20px 18px 110px; }
  .auth-body { padding: 28px 22px; }
  .visual-card { width: 260px; }
  .hero-visual { height: 320px; }
  .visual-card.card-1 { top: 0; left: 0; }
  .visual-card.card-2 { top: 100px; right: 0; }
  .visual-card.card-3 { bottom: 0; left: 20px; }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .modal { padding: 22px; }
  .files-grid, .folders-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 16. Scrollbar styling ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* ---------- 17. Selection ---------- */
::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}
