/* ============================================
   Verdant VPN — Design System v2
   ============================================ */

:root {
  --c-primary: #10b981;
  --c-primary-dark: #059669;
  --c-primary-light: #34d399;
  --c-primary-glow: rgba(16, 185, 129, 0.25);
  --c-primary-subtle: rgba(16, 185, 129, 0.08);

  --c-bg: #0b1120;
  --c-bg-alt: #0f172a;
  --c-surface: #1e293b;
  --c-surface-hover: #253349;
  --c-border: #334155;
  --c-border-light: rgba(51, 65, 85, 0.5);

  --c-text: #f1f5f9;
  --c-text-muted: #94a3b8;
  --c-text-dim: #64748b;

  --c-success: #22c55e;
  --c-warning: #f59e0b;
  --c-error: #ef4444;
  --c-info: #3b82f6;

  --s-xs: 4px; --s-sm: 8px; --s-md: 16px; --s-lg: 24px;
  --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px; --s-4xl: 96px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 9999px;

  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --t-fast: 150ms ease; --t-normal: 250ms ease; --t-slow: 400ms ease;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--f-sans); background: var(--c-bg); color: var(--c-text); line-height: 1.6; min-height: 100vh; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-light); }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.125rem; }
.mono { font-family: var(--f-mono); font-size: 0.875rem; }
.text-gradient { background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary), var(--c-primary-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted { color: var(--c-text-muted); }
.text-dim { color: var(--c-text-dim); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-lg); }
.container--narrow { max-width: 680px; }
.container--mid { max-width: 900px; margin: 0 auto; padding: 0 var(--s-lg); }
.flex { display: flex; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-xs { gap: var(--s-xs); } .gap-sm { gap: var(--s-sm); } .gap-md { gap: var(--s-md); }
.gap-lg { gap: var(--s-lg); } .gap-xl { gap: var(--s-xl); } .gap-2xl { gap: var(--s-2xl); }
.grid { display: grid; gap: var(--s-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; } h2 { font-size: 1.5rem; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--s-md); }
}

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm); padding: 12px 24px; font-family: var(--f-sans); font-size: 0.9375rem; font-weight: 600; border: none; border-radius: var(--r-md); cursor: pointer; transition: all var(--t-normal); text-decoration: none; white-space: nowrap; }
.btn--primary { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; box-shadow: 0 0 20px var(--c-primary-glow), 0 2px 8px rgba(0,0,0,0.3); }
.btn--primary:hover { background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary)); box-shadow: 0 0 30px rgba(16,185,129,0.4), 0 4px 16px rgba(0,0,0,0.3); transform: translateY(-1px); color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn--outline:hover { background: var(--c-primary-subtle); color: var(--c-primary-light); border-color: var(--c-primary-light); }
.btn--ghost { background: transparent; color: var(--c-text-muted); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); }
.btn--lg { padding: 16px 32px; font-size: 1.0625rem; border-radius: var(--r-lg); }
.btn--sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn--xs { padding: 6px 12px; font-size: 0.75rem; }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn--copy { background: var(--c-surface); color: var(--c-text-muted); border: 1px solid var(--c-border); }
.btn--copy:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--copy.copied { background: rgba(34,197,94,0.15); color: var(--c-success); border-color: var(--c-success); }

/* --- Cards --- */
.card { background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--r-lg); padding: var(--s-lg); transition: all var(--t-normal); }
.card--glass { background: rgba(30,41,59,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card--hover:hover { border-color: var(--c-primary); box-shadow: 0 0 24px var(--c-primary-glow); transform: translateY(-2px); }
.card--glow { border-color: var(--c-primary); box-shadow: 0 0 24px var(--c-primary-glow); }
.card--flat { background: var(--c-bg-alt); border: 1px solid var(--c-border-light); }

/* --- Badge --- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: 0.05em; }
.badge--success { background: rgba(34,197,94,0.15); color: var(--c-success); }
.badge--warning { background: rgba(245,158,11,0.15); color: var(--c-warning); }
.badge--error { background: rgba(239,68,68,0.15); color: var(--c-error); }
.badge--info { background: rgba(59,130,246,0.15); color: var(--c-info); }
.badge--neutral { background: rgba(148,163,184,0.15); color: var(--c-text-muted); }

/* --- Status Dot --- */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot--alive { background: var(--c-success); box-shadow: 0 0 8px rgba(34,197,94,0.6); animation: pulse-green 2s infinite; }
.dot--dead { background: var(--c-error); box-shadow: 0 0 8px rgba(239,68,68,0.6); animation: pulse-red 2s infinite; }
.dot--lg { width: 12px; height: 12px; }
@keyframes pulse-green { 0%,100% { box-shadow: 0 0 8px rgba(34,197,94,0.6); } 50% { box-shadow: 0 0 16px rgba(34,197,94,0.9); } }
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 8px rgba(239,68,68,0.6); } 50% { box-shadow: 0 0 16px rgba(239,68,68,0.9); } }

/* --- Input --- */
.input { width: 100%; padding: 12px 16px; font-family: var(--f-sans); font-size: 0.9375rem; background: var(--c-bg-alt); color: var(--c-text); border: 1.5px solid var(--c-border); border-radius: var(--r-md); outline: none; transition: all var(--t-fast); }
.input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-glow); }
.input::placeholder { color: var(--c-text-dim); }
.input--mono { font-family: var(--f-mono); font-size: 0.875rem; letter-spacing: 0.02em; }

/* --- Progress Bar --- */
.progress { height: 6px; background: var(--c-bg-alt); border-radius: var(--r-full); overflow: hidden; }
.progress--lg { height: 10px; }
.progress__bar { height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--c-primary), var(--c-primary-light)); transition: width var(--t-slow); }
.progress__bar--warning { background: linear-gradient(90deg, var(--c-warning), #fbbf24); }
.progress__bar--error { background: linear-gradient(90deg, var(--c-error), #f87171); }

/* --- Table --- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border-light); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); }
td { padding: 14px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--c-border-light); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--c-surface-hover); }

/* --- Navigation --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: var(--s-md) 0; background: rgba(11,17,32,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--c-border-light); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--c-text); }
.nav__links { display: flex; align-items: center; gap: var(--s-lg); list-style: none; }
.nav__links a { color: var(--c-text-muted); font-size: 0.9375rem; font-weight: 500; transition: color var(--t-fast); }
.nav__links a:hover, .nav__links a.active { color: var(--c-primary); }

/* ============================================
   Landing Page
   ============================================ */

/* --- Hero --- */
.hero { position: relative; padding: 140px 0 80px; overflow: hidden; text-align: center; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 800px 600px at 50% 0%, rgba(16,185,129,0.1) 0%, transparent 70%), radial-gradient(ellipse 400px 400px at 20% 50%, rgba(16,185,129,0.04) 0%, transparent 70%), radial-gradient(ellipse 400px 400px at 80% 50%, rgba(5,150,105,0.04) 0%, transparent 70%); pointer-events: none; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: var(--s-md); letter-spacing: -0.03em; }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--c-text-muted); max-width: 560px; margin: 0 auto var(--s-xl); line-height: 1.7; }
.hero__actions { display: flex; gap: var(--s-md); justify-content: center; flex-wrap: wrap; }
.hero__trust { display: flex; gap: var(--s-xl); justify-content: center; flex-wrap: wrap; margin-top: var(--s-2xl); }
.hero__trust-item { display: flex; align-items: center; gap: var(--s-sm); font-size: 0.875rem; color: var(--c-text-muted); }
.hero__trust-item svg { color: var(--c-primary); flex-shrink: 0; }

/* --- How it works --- */
.steps { padding: var(--s-4xl) 0 var(--s-3xl); }
.steps__header { text-align: center; margin-bottom: var(--s-2xl); }
.steps__header p { color: var(--c-text-muted); margin-top: var(--s-sm); font-size: 1.0625rem; }
.step { text-align: center; padding: var(--s-xl); position: relative; }
.step__number { width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary-subtle); border: 2px solid var(--c-primary); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto var(--s-md); }
.step h3 { margin-bottom: var(--s-sm); }
.step p { color: var(--c-text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* --- Features --- */
.features { padding: var(--s-3xl) 0; }
.features__header { text-align: center; margin-bottom: var(--s-2xl); }
.features__header p { color: var(--c-text-muted); margin-top: var(--s-sm); font-size: 1.0625rem; }
.feature-card { padding: var(--s-xl); }
.feature-card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--c-primary-subtle); color: var(--c-primary); margin-bottom: var(--s-md); font-size: 1.25rem; }
.feature-card h3 { margin-bottom: var(--s-sm); font-size: 1.125rem; }
.feature-card p { color: var(--c-text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* --- Pricing --- */
.pricing { padding: var(--s-3xl) 0; }
.pricing__header { text-align: center; margin-bottom: var(--s-2xl); }
.pricing__header p { color: var(--c-text-muted); margin-top: var(--s-sm); }
.plan-card { padding: var(--s-xl); display: flex; flex-direction: column; }
.plan-card__name { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-text-muted); margin-bottom: var(--s-sm); }
.plan-card__price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--s-xs); }
.plan-card__price span { font-size: 1rem; font-weight: 500; color: var(--c-text-muted); }
.plan-card__equiv { font-size: 0.8125rem; color: var(--c-primary); font-weight: 600; margin-bottom: var(--s-xs); }
.plan-card__period { font-size: 0.875rem; color: var(--c-text-dim); margin-bottom: var(--s-lg); }
.plan-card__features { list-style: none; flex: 1; margin-bottom: var(--s-lg); }
.plan-card__features li { padding: 6px 0; font-size: 0.9375rem; color: var(--c-text-muted); display: flex; align-items: center; gap: var(--s-sm); }
.plan-card__features li::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; background: var(--c-primary); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan-card--featured { border-color: var(--c-primary); box-shadow: 0 0 32px var(--c-primary-glow); position: relative; }
.plan-card--featured::before { content: attr(data-badge); position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 16px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; border-radius: var(--r-full); }

/* --- FAQ --- */
.faq { padding: var(--s-3xl) 0; }
.faq__header { text-align: center; margin-bottom: var(--s-2xl); }
.faq-item { border-bottom: 1px solid var(--c-border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-item__q { width: 100%; background: none; border: none; color: var(--c-text); font-family: var(--f-sans); font-size: 1rem; font-weight: 600; padding: var(--s-lg) 0; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); }
.faq-item__q:hover { color: var(--c-primary); }
.faq-item__q svg { flex-shrink: 0; transition: transform var(--t-normal); color: var(--c-text-dim); }
.faq-item.open .faq-item__q svg { transform: rotate(180deg); color: var(--c-primary); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow), padding var(--t-slow); }
.faq-item.open .faq-item__a { max-height: 300px; padding-bottom: var(--s-lg); }
.faq-item__a p { color: var(--c-text-muted); line-height: 1.8; font-size: 0.9375rem; }

/* ============================================
   Setup / Subscription Page
   ============================================ */

.setup-page { padding: 100px 0 var(--s-3xl); min-height: 100vh; }
.setup-header { text-align: center; margin-bottom: var(--s-2xl); }
.setup-header__status { margin-bottom: var(--s-md); }

/* --- QR Code --- */
.qr-wrap { display: flex; justify-content: center; margin: var(--s-lg) 0; }
.qr-box { background: #fff; padding: 16px; border-radius: var(--r-lg); display: inline-block; }
.qr-box canvas, .qr-box img { display: block; width: 200px; height: 200px; }

/* --- Copy field --- */
.copy-field { display: flex; align-items: center; gap: var(--s-sm); background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 10px var(--s-md); }
.copy-field__value { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--c-text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: break-all; user-select: all; }
.copy-field__btn { flex-shrink: 0; }

/* --- Platform tabs --- */
.platform-tabs { display: flex; gap: 2px; background: var(--c-bg-alt); border-radius: var(--r-md); padding: 3px; margin-bottom: var(--s-lg); overflow-x: auto; }
.platform-tab { flex: 1; min-width: 0; padding: 10px 16px; font-size: 0.8125rem; font-weight: 600; color: var(--c-text-muted); background: transparent; border: none; border-radius: var(--r-sm); cursor: pointer; transition: all var(--t-fast); text-align: center; font-family: var(--f-sans); white-space: nowrap; }
.platform-tab:hover { color: var(--c-text); }
.platform-tab.active { background: var(--c-surface); color: var(--c-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* --- Setup steps --- */
.setup-steps { counter-reset: setup-step; }
.setup-step { display: flex; gap: var(--s-md); padding: var(--s-md) 0; align-items: flex-start; }
.setup-step::before { counter-increment: setup-step; content: counter(setup-step); width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-primary-subtle); color: var(--c-primary); font-weight: 700; font-size: 0.875rem; margin-top: 2px; }
.setup-step__content { flex: 1; }
.setup-step__content h4 { font-size: 0.9375rem; margin-bottom: var(--s-xs); }
.setup-step__content p { color: var(--c-text-muted); font-size: 0.875rem; line-height: 1.7; }
.setup-step__content code { font-family: var(--f-mono); font-size: 0.8125rem; background: var(--c-bg-alt); color: var(--c-primary); padding: 2px 8px; border-radius: var(--r-sm); }

/* --- App cards --- */
.app-card { display: flex; align-items: center; gap: var(--s-md); padding: var(--s-md); background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--r-md); transition: all var(--t-fast); }
.app-card:hover { border-color: var(--c-primary); }
.app-card__icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-primary-subtle); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.app-card__info { flex: 1; min-width: 0; }
.app-card__name { font-weight: 600; font-size: 0.9375rem; }
.app-card__desc { font-size: 0.8125rem; color: var(--c-text-muted); }
.app-card__badge { font-size: 0.6875rem; padding: 2px 8px; background: rgba(16,185,129,0.15); color: var(--c-primary); border-radius: var(--r-full); font-weight: 600; }

/* --- Strategy cards (protocol groups) --- */
.strategy-card { padding: var(--s-md); border-left: 3px solid var(--c-border); }
.strategy-card--active { border-left-color: var(--c-primary); }
.strategy-card__name { font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--s-xs); }
.strategy-card__desc { font-size: 0.8125rem; color: var(--c-text-muted); line-height: 1.6; }

/* ============================================
   Dashboard
   ============================================ */

.dashboard { display: flex; min-height: 100vh; padding-top: 65px; }
.sidebar { width: 260px; position: fixed; top: 65px; bottom: 0; left: 0; background: var(--c-bg-alt); border-right: 1px solid var(--c-border-light); padding: var(--s-lg); overflow-y: auto; }
.sidebar__section { margin-bottom: var(--s-xl); }
.sidebar__label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-dim); margin-bottom: var(--s-sm); padding: 0 var(--s-sm); }
.sidebar__item { display: flex; align-items: center; gap: var(--s-sm); padding: 10px var(--s-sm); border-radius: var(--r-sm); color: var(--c-text-muted); font-size: 0.9375rem; font-weight: 500; transition: all var(--t-fast); }
.sidebar__item:hover { background: var(--c-surface); color: var(--c-text); }
.sidebar__item.active { background: var(--c-primary-subtle); color: var(--c-primary); }
.main-content { flex: 1; margin-left: 260px; padding: var(--s-xl); }

.stat-card { padding: var(--s-lg); }
.stat-card__label { font-size: 0.8125rem; color: var(--c-text-muted); margin-bottom: var(--s-xs); }
.stat-card__value { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }

/* --- Token Display --- */
.token-display { display: flex; align-items: center; gap: var(--s-sm); background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-sm) var(--s-md); }
.token-display__value { font-family: var(--f-mono); font-size: 0.875rem; color: var(--c-text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Footer --- */
.footer { padding: var(--s-2xl) 0; border-top: 1px solid var(--c-border-light); text-align: center; }
.footer p { color: var(--c-text-dim); font-size: 0.875rem; }
.footer__links { display: flex; gap: var(--s-lg); justify-content: center; margin-bottom: var(--s-md); }
.footer__links a { color: var(--c-text-muted); font-size: 0.875rem; }

/* --- Utilities --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.mt-xs { margin-top: var(--s-xs); } .mt-sm { margin-top: var(--s-sm); } .mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); } .mt-xl { margin-top: var(--s-xl); } .mt-2xl { margin-top: var(--s-2xl); }
.mb-xs { margin-bottom: var(--s-xs); } .mb-sm { margin-bottom: var(--s-sm); } .mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); } .mb-xl { margin-bottom: var(--s-xl); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--c-border-light); margin: var(--s-lg) 0; }

/* --- Animations --- */
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fade-in 0.5s ease forwards; }
.animate-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--t-normal); z-index: 90; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}
