/* ═══════════════════════════════════════════════════════
   TeckwikReels — Design System
   Pure CSS, no build step, no framework dependency
   ═══════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Tokens ─── */
:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-hover: #27272a;
  --border: #27272a;
  --fg: #fafafa;
  --dim: #a1a1aa;
  --accent: #7c3aed;
  --accent-lt: #a78bfa;
  --blue: #2563eb;
  --green: #22c55e;
  --glow: rgba(124, 58, 237, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  padding-top: 88px;
  /* Navbar height(64) + Spacing(24) */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-md {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-dim {
  color: var(--dim);
}

.text-sm {
  font-size: 14px;
}

.text-xs {
  font-size: 12px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-lt);
  margin-bottom: 12px;
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Modern Billing Toggle ─── */
.billing-switcher {
  display: flex !important;
  flex-direction: row !important;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid var(--border);
  position: relative;
  user-select: none;
  min-width: 240px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.billing-switcher-opt {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--dim);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 100px;
}

.billing-switcher-opt.active {
  color: #fff;
}

.billing-switcher-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-radius: 100px;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px var(--glow);
}

.billing-switcher.annual .billing-switcher-slider {
  transform: translateX(100%);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-image {
  width: 170px;
  height: 34px;
  max-width: 170px;
  object-fit: contain;
}

.nav-logo-image-sm {
  width: 150px;
  height: 30px;
  max-width: 150px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s;
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.08);
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--dim);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  padding: 8px 16px;
  transition: color 0.2s;
}

.nav-login:hover {
  color: var(--fg);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  box-shadow: 0 8px 30px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  background: #1f1f23;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s;
}

.card:hover .card-icon {
  transform: scale(1.15);
}

/* ─── Grid ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block !important;
  }
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 40px;
  position: relative;
  overflow: hidden;
}

.hero-orb-1 {
  position: absolute;
  top: 80px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  bottom: 80px;
  right: 20%;
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--dim);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 80px;
}

/* ─── Sections ─── */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  margin-top: 16px;
  color: var(--dim);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Public Pages ─── */
.public-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.public-center {
  text-align: center;
}

.public-hero {
  padding: 96px 0 56px;
  position: relative;
  overflow: hidden;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.12), transparent 38%),
    radial-gradient(ellipse at 80% 10%, rgba(37, 99, 235, 0.08), transparent 34%);
  pointer-events: none;
}

.public-hero .public-container {
  position: relative;
}

.public-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.public-hero-compact {
  padding-bottom: 48px;
}

.public-hero-compact h1 {
  margin-left: auto;
  margin-right: auto;
}

.public-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
}

.public-hero-copy {
  max-width: 640px;
  margin-top: 20px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.8;
}

.public-hero-compact .public-hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.public-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.public-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.public-hero-card {
  position: relative;
  overflow: hidden;
}

.public-hero-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.16);
  filter: blur(36px);
}

.public-device {
  position: relative;
  width: 132px;
  margin: 0 auto 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #0f0f12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.public-device-bar {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 8px;
}

.public-device-screen {
  min-height: 190px;
  border-radius: 18px;
  padding: 18px 12px;
  background:
    linear-gradient(160deg, rgba(124, 58, 237, 0.46), rgba(37, 99, 235, 0.24)),
    linear-gradient(180deg, #202026, #111114);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.public-device-screen span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: auto;
}

.public-device-screen strong {
  font-size: 13px;
  line-height: 1.25;
}

.public-device-screen small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  margin-top: 4px;
}

.public-check {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.public-check:first-child {
  padding-top: 0;
}

.public-check:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.public-check span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  margin-top: 8px;
  flex: 0 0 auto;
  box-shadow: 0 0 20px var(--glow);
}

.public-check p {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.public-story-grid {
  display: grid;
  gap: 16px;
}

.public-story-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.public-story-card:hover,
.public-contact-card:hover,
.public-proof-card:hover,
.public-article:hover {
  transform: none;
}

.public-story-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.public-story-card p {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.75;
}

.public-story-index {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22);
}

.public-card-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-lt);
  margin-bottom: 12px;
}

.public-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(124, 58, 237, 0.04), rgba(255, 255, 255, 0.01));
}

.public-band .section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.public-feature-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.public-feature-row span {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 600;
}

.public-contact-grid,
.public-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.public-contact-card,
.public-proof-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.public-contact-card h3,
.public-proof-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}

.public-article {
  display: grid;
  gap: 0;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.public-article article {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.public-article article:first-child {
  padding-top: 0;
}

.public-article article:last-child {
  border-bottom: none;
}

.public-article h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.public-article p {
  color: var(--dim);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .public-hero-grid {
    grid-template-columns: 1fr;
  }

  .public-panel {
    max-width: 520px;
  }

  .public-contact-grid,
  .public-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .public-hero {
    padding: 72px 0 42px;
  }

  .public-story-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .public-article {
    padding: 24px;
  }

  .public-actions {
    flex-direction: column;
  }

  .public-actions .btn {
    width: 100%;
  }
}

/* ─── Pipeline ─── */
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.3s;
}

.pipeline-step:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.pipeline-step-emoji {
  font-size: 28px;
}

.pipeline-step-label {
  font-weight: 600;
  font-size: 14px;
}

.pipeline-step-sub {
  font-size: 12px;
  color: var(--dim);
}

.pipeline-arrow {
  text-align: center;
  padding: 4px 0;
  color: var(--accent);
}

/* ─── Step badge ─── */
.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}

/* ─── CTA Banner ─── */
.cta-banner {
  text-align: center;
  padding: 64px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-banner-orb {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ─── FAQ ─── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item+.faq-item {
  margin-top: 12px;
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: var(--bg-hover);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--dim);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

/* ─── Pricing Cards ─── */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: rgba(124, 58, 237, 0.5);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 30px var(--glow), inset 0 0 30px rgba(124, 58, 237, 0.04);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.pricing-currency {
  font-size: 14px;
  color: var(--dim);
  font-weight: 500;
}

.pricing-amount {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: var(--dim);
  font-weight: 500;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  padding: 6px 0;
}

.feature-list li.disabled {
  color: rgba(161, 161, 170, 0.4);
  text-decoration: line-through;
}

.feature-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Compare Table ─── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: var(--bg-card);
}

.compare-table th:first-child {
  text-align: left;
  color: var(--dim);
}

.compare-table td {
  padding: 14px 24px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.compare-table td:first-child {
  color: var(--fg);
}

.compare-table td:nth-child(2) {
  text-align: center;
  color: var(--dim);
}

.compare-table td:nth-child(3) {
  text-align: center;
  font-weight: 500;
  color: var(--fg);
}

.compare-table tr:nth-child(even) {
  background: rgba(24, 24, 27, 0.4);
}

/* ─── Guarantee ─── */
.guarantee {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links span {
  font-size: 14px;
  color: var(--dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--dim);
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--dim);
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: var(--fg);
}

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Animations ─── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.anim {
  animation: fade-up 0.6s ease-out both;
}

.anim-d1 {
  animation-delay: 0.12s;
}

.anim-d2 {
  animation-delay: 0.24s;
}

.anim-d3 {
  animation-delay: 0.36s;
}

/* ─── Mobile menu ─── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  padding: 8px;
}

/* ═══════════════════════════════════════════
   Dashboard / App Layout
   ═══════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: width 0.25s ease;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 62px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-link svg {
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.sidebar-link.active {
  background: rgba(124, 58, 237, 0.1);
  color: var(--fg);
}

.sidebar-link.active svg {
  color: var(--accent-lt);
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}

.sidebar-credits {
  padding: 12px;
  background: var(--bg);
  border-radius: 12px;
  text-align: center;
  margin-bottom: 8px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.sidebar-text {
  transition: opacity 0.2s;
  overflow: hidden;
}

/* ─── Collapsed sidebar ─── */
.sidebar.collapsed {
  width: 68px;
}

.sidebar.collapsed .sidebar-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
}

.sidebar.collapsed .sidebar-header .nav-logo {
  display: none;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 10px;
}

.sidebar.collapsed .sidebar-credits .text-xs {
  display: none;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
}

/* ─── Main content area ─── */
.app-main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.25s ease;
}

.app-main.sidebar-collapsed {
  margin-left: 68px;
}

/* ─── App header ─── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-header-title {
  font-size: 16px !important;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header-icon {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.app-header-icon:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.app-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
}

.app-content {
  max-width: 1000px;
  padding: 32px 40px;
}

/* Responsive: hide sidebar on mobile */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .app-main {
    margin-left: 0 !important;
  }

  .app-content {
    padding: 24px 16px;
  }
}

/* ─── Disabled button ─── */
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
