/* ─── PAGE TOKENS ───────────────────────────────────────────────── */
:root {
  --filter-h: 64px;
}

/* ─── HERO ──────────────────────────────────────────────────────── */
.themes-hero {
  padding: calc(var(--nav-h) + 80px) var(--page-x) 72px;
  position: relative; z-index: 1; text-align: center;
}
.themes-hero h1 {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: .97;
    color: var(--text-1);
    margin-bottom: 24px;
}
.themes-hero p {
    margin: 0 auto 40px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.85;
    max-width: 540px;
}

/* ─── FILTER BAR ────────────────────────────────────────────────── */
.filter-bar {
  position: sticky; top: var(--nav-h); z-index: 90;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--page-x);
  transition: background .35s;
}
.filter-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--filter-h); gap: 16px; flex-wrap: wrap;
}
.filter-tabs {
  display: flex; align-items: center; gap: 4px;
}
.filter-tab {
  padding: 7px 16px; border-radius: 9px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: none; background: transparent;
  color: var(--text-3); font-family: 'General Sans', sans-serif;
  transition: all .2s;
}
.filter-tab:hover { color: var(--text-1); background: var(--surface-2); }
.filter-tab.active {
  background: rgba(124,58,237,.12);
  color: #A78BFA;
}
.filter-right {
  display: flex; align-items: center; gap: 10px;
}
.filter-label {
    font-size: .78rem;
    color: var(--text-2);
    white-space: nowrap;
}

/* ─── THEME GRID ────────────────────────────────────────────────── */
.themes-section {
  padding: 64px var(--page-x);
  position: relative; z-index: 1;
}
.themes-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.23,1,.32,1), box-shadow .4s, border-color .3s;
  cursor: pointer;
  position: relative;
}
.theme-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
}
.theme-card.hidden { display: none; }

/* Glow borders on hover */
.theme-card[data-theme="minimal"]:hover    { border-color: rgba(124,58,237,.5); box-shadow: 0 32px 80px rgba(124,58,237,.12); }
.theme-card[data-theme="bold"]:hover       { border-color: rgba(236,72,153,.5); box-shadow: 0 32px 80px rgba(236,72,153,.12); }
.theme-card[data-theme="terminal"]:hover   { border-color: rgba(34,197,94,.5);  box-shadow: 0 32px 80px rgba(34,197,94,.12); }
.theme-card[data-theme="card"]:hover       { border-color: rgba(249,115,22,.5); box-shadow: 0 32px 80px rgba(249,115,22,.12); }
.theme-card[data-theme="sidebar"]:hover    { border-color: rgba(20,184,166,.5); box-shadow: 0 32px 80px rgba(20,184,166,.12); }
.theme-card[data-theme="glass"]:hover      { border-color: rgba(132,204,22,.5); box-shadow: 0 32px 80px rgba(132,204,22,.12); }

/* Preview area */
.theme-preview-area {
  height: 240px; position: relative; overflow: hidden;
}
/* Hover overlay */
.theme-card:hover .preview-overlay { opacity: 1; }
.preview-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  gap: 10px;
}
.preview-overlay .btn { font-size: .8rem; padding: 9px 18px; }

/* Card footer */
.theme-card-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.theme-card-info { flex: 1; min-width: 0; }
.theme-card-name {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.theme-card-desc {
    font-size: .78rem;
    color: var(--text-2);
    line-height: 1.55;
}
.theme-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Plan badge */
.plan-pill {
  font-size: .62rem; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; white-space: nowrap;
}
.pill-free { background: rgba(132,204,22,.1); border: 1px solid rgba(132,204,22,.22); color: #A3E635; }
.pill-pro  { background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.22); color: #A78BFA; }

/* ─── THEME DETAIL MODAL ────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-2xl);
  width: 100%; max-width: 900px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.23,1,.32,1);
  box-shadow: 0 60px 120px rgba(0,0,0,.5);
}
.modal-backdrop.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text-2); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.modal-close:hover { background: var(--bg-3); color: var(--text-1); }
.modal-preview {
  height: 340px; overflow: hidden; position: relative;
}
.modal-preview::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--surface), transparent);
}
.modal-body { padding: 28px 32px 32px; }
.modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.modal-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; color: var(--text-1);
}
.modal-sub { font-size: .875rem; color: var(--text-3); margin-top: 4px; }
.modal-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 24px;
}
.modal-feat {
  display: flex; align-items: center; gap: 9px;
  font-size: .84rem; color: var(--text-2);
}
.mf-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.modal-actions { display: flex; gap: 10px; }

/* ─── BIG SHOWCASE (full-width theme row) ───────────────────────── */
.showcase-section {
  padding: 0 var(--page-x) 80px;
  position: relative; z-index: 1;
}
.showcase-row {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.showcase-row:first-child { border-top: none; }
.showcase-row.flip { direction: rtl; }
.showcase-row.flip > * { direction: ltr; }
.showcase-text {}
.showcase-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.showcase-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 3rem; font-weight: 700; letter-spacing: -.07em; line-height: 1;
  opacity: .12; color: var(--text-1); flex-shrink: 0;
}
.showcase-title {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.05;
    color: var(--text-1);
    margin-bottom: 16px;
}
.showcase-desc {
    font-size: .95rem;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 24px;
}
.showcase-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.sc-tag {
  font-size: .74rem; font-weight: 600;
  padding: 4px 12px; border-radius: 99px;
}
.showcase-visual {
  border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
  transition: transform .5s cubic-bezier(.23,1,.32,1);
}
.showcase-visual:hover { transform: translateY(-6px); }

/* Browser chrome for showcases */
.sc-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.sc-dots { display: flex; gap: 5px; }
.sc-dot { width: 10px; height: 10px; border-radius: 50%; }
.sc-url {
  flex: 1; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px; padding: 5px 12px;
  font-size: .7rem; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.sc-url-lock { font-size: .62rem; color: #86efac; }

/* ─── PREVIEW MOCKUP STYLES ─────────────────────────────────────── */

/* MINIMAL */
.mock-minimal { background: #FFFFFF; padding: 24px; }
[data-theme="light"] .mock-minimal { background: #F0F0F8; }
.mm-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.mm-av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,#7C3AED,#EC4899); flex-shrink: 0; }
.mm-nav { display: flex; gap: 12px; }
.mm-nav span { font-size: .65rem; color: #999; }
.mm-name { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 3px; font-family:'Clash Display',sans-serif; }
.mm-role { font-size: .7rem; color: #7C3AED; margin-bottom: 12px; }
.mm-bio  { font-size: .68rem; color: #888; line-height: 1.6; margin-bottom: 16px; }
.mm-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.mm-tag  { font-size: .6rem; padding: 2px 8px; border-radius: 99px; background: rgba(124,58,237,.08); color: #7C3AED; border: 1px solid rgba(124,58,237,.15); }
.mm-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-proj { background: rgba(0,0,0,.03); border: 1px solid #eee; border-radius: 9px; padding: 10px; }
.mm-proj-t { font-size: .68rem; font-weight: 700; color: #222; margin-bottom: 3px; }
.mm-proj-d { font-size: .6rem; color: #aaa; }

/* BOLD */
.mock-bold { background: #080814; padding: 24px; }
.mb-badge { display: inline-block; font-size: .6rem; padding: 3px 9px; border-radius: 99px; background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.3); color: #C084FC; margin-bottom: 12px; }
.mb-h1 { font-size: 1.4rem; font-weight: 700; font-family:'Clash Display',sans-serif; letter-spacing:-.04em; line-height:1; margin-bottom: 8px; background: linear-gradient(135deg,#7C3AED,#EC4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mb-sub { font-size: .68rem; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.mb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mb-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 12px; }
.mb-card-ico { font-size: .9rem; margin-bottom: 6px; }
.mb-card-t { font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 3px; }
.mb-card-d { font-size: .6rem; color: rgba(255,255,255,.35); }
.mb-skills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mb-sk { font-size: .6rem; padding: 3px 8px; border-radius: 99px; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.25); color: #C084FC; }

/* TERMINAL */
.mock-term { background: #0D1117; padding: 20px; font-family: 'Courier New', monospace; }
.mt-bar { display: flex; gap: 5px; margin-bottom: 14px; }
.mt-dot { width: 9px; height: 9px; border-radius: 50%; }
.mt-line { font-size: .68rem; margin-bottom: 5px; line-height: 1.5; }
.mt-green  { color: #22C55E; }
.mt-gray   { color: #4B5563; }
.mt-white  { color: rgba(255,255,255,.7); }
.mt-violet { color: #8B5CF6; }
.mt-cursor { display: inline-block; width: 7px; height: 12px; background: #22C55E; vertical-align: middle; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.mt-skills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mt-sk { font-size: .62rem; padding: 2px 7px; border-radius: 3px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); color: #22C55E; }

/* CARD */
.mock-card-theme { background: #F0EEFF; padding: 18px; display: flex; align-items: flex-start; gap: 14px; }
.mc-sidebar { width: 90px; flex-shrink: 0; }
.mc-card { background: #fff; border-radius: 14px; padding: 14px; text-align: center; box-shadow: 0 8px 24px rgba(124,58,237,.12); margin-bottom: 10px; }
.mc-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#7C3AED,#EC4899); margin: 0 auto 8px; }
.mc-n { height: 7px; width: 56px; background: #111; border-radius: 2px; margin: 0 auto 5px; }
.mc-r { height: 4px; width: 40px; background: #7C3AED; border-radius: 2px; margin: 0 auto 10px; }
.mc-soc { display: flex; justify-content: center; gap: 6px; }
.mc-soc span { width: 16px; height: 16px; background: rgba(124,58,237,.12); border-radius: 4px; }
.mc-skills { display: flex; flex-direction: column; gap: 5px; }
.mc-sk { background: #fff; border-radius: 6px; padding: 6px 8px; font-size: .6rem; color: #444; }
.mc-main { flex: 1; }
.mc-sec-lbl { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #999; margin-bottom: 8px; }
.mc-projs { display: flex; flex-direction: column; gap: 6px; }
.mc-proj { background: #fff; border-radius: 10px; padding: 9px 11px; border: 1px solid #EEE; }
.mc-proj-t { font-size: .68rem; font-weight: 700; color: #222; margin-bottom: 2px; }
.mc-proj-d { font-size: .6rem; color: #aaa; }

/* SIDEBAR */
.mock-sidebar { display: flex; background: #F5F4FF; min-height: 100%; }
.ms-left { width: 70px; background: #111; display: flex; flex-direction: column; align-items: center; padding: 18px 8px; gap: 14px; flex-shrink: 0; }
.ms-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#7C3AED,#EC4899); }
.ms-sep { width: 28px; height: 1px; background: rgba(255,255,255,.08); }
.ms-ico { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.05); }
.ms-ico.act { background: rgba(124,58,237,.25); }
.ms-right { flex: 1; padding: 20px 16px; overflow: hidden; }
.ms-name { font-family:'Clash Display',sans-serif; font-size: .95rem; font-weight: 700; color: #111; margin-bottom: 2px; }
.ms-role { font-size: .66rem; color: #7C3AED; margin-bottom: 12px; }
.ms-sec { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing:.08em; color: #aaa; margin-bottom: 8px; }
.ms-projs { display: flex; flex-direction: column; gap: 7px; }
.ms-proj { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 9px; padding: 9px 11px; border: 1px solid #EEE; }
.ms-proj-ico { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.ms-proj-t { font-size: .68rem; font-weight: 700; color: #222; }
.ms-proj-d { font-size: .6rem; color: #aaa; }

/* GLASS */
.mock-glass {
  background: linear-gradient(135deg, #312B8B 0%, #6B1E5A 50%, #8B2B1E 100%);
  padding: 22px; position: relative; overflow: hidden;
}
.mg-orb1 { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(124,58,237,.35); top: -30px; right: -30px; filter: blur(30px); }
.mg-orb2 { position: absolute; width: 80px; height: 80px; border-radius: 50%; background: rgba(236,72,153,.3); bottom: -20px; left: 10px; filter: blur(24px); }
.mg-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 16px; position: relative; z-index: 1; margin-bottom: 10px; }
.mg-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mg-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.3); flex-shrink: 0; }
.mg-name { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.9); }
.mg-role { font-size: .66rem; color: rgba(255,255,255,.6); margin-top: 1px; }
.mg-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.mg-tag  { font-size: .6rem; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.mg-projs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: relative; z-index: 1; }
.mg-proj { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px; }
.mg-proj-t { font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.mg-proj-d { font-size: .6rem; color: rgba(255,255,255,.45); }

/* ─── COLOR CUSTOMIZER STRIP ────────────────────────────────────── */
.customizer-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px var(--page-x);
  position: relative; z-index: 1;
}
.customizer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.customizer-label { font-size: .82rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.customizer-inner .info{
    font-size: .76rem;
    color: var(--text-2);
    margin-top: 2px;
}
.customizer-inner .info-2{
    font-size: .78rem;
    color: var(--text-2);
}
.color-swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
}
.c-swatch:hover { transform: scale(1.15); }
.c-swatch.active { border-color: white; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
[data-theme="light"] .c-swatch.active { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,.15); }

/* ─── PRICING CTA ───────────────────────────────────────────────── */
.themes-cta {
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.04));
  border: 1px solid rgba(124,58,237,.14);
  border-radius: var(--r-2xl); padding: 60px 52px;
  text-align: center; position: relative; overflow: hidden;
}
.themes-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.12), transparent 60%);
  pointer-events: none;
}

.teaser-section .title {
    font-family: 'Clash Display',sans-serif;
    font-size: clamp(1.9rem,3.5vw,2.8rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-1);
    margin-bottom: 16px;
    line-height: 1.1;
}

.teaser-section .desc {
    font-size: .95rem;
    color: var(--text-2);
    max-width: 480px;
    margin: 0 auto;
}

.teaser-section .theme .title {
    font-family: 'Clash Display',sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.teaser-section .theme .desc {
    font-size: .78rem;
    color: var(--text-2);
}
.end-text{
    font-size: .8rem;
    color: var(--text-2);
    margin-top: 12px;
}

.themes-cta .title{
    font-family: 'Clash Display',sans-serif;
    font-size: clamp(2rem,4vw,3.2rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-1);
    margin-bottom: 16px;
    line-height: 1.1;
}
.themes-cta .desc {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.8;
}
/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .themes-grid     { grid-template-columns: repeat(2, 1fr); }
  .showcase-row    { grid-template-columns: 1fr; gap: 36px; direction: ltr !important; }
  .showcase-row > * { direction: ltr; }
}
@media (max-width: 720px) {
  .themes-grid  { grid-template-columns: 1fr; }
  .filter-tabs  { overflow-x: auto; padding-bottom: 2px; }
  .modal        { max-height: 95vh; }
  .modal-preview { height: 220px; }
  .modal-features { grid-template-columns: 1fr; }
  .customizer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .themes-hero h1 { font-size: 2.6rem; }
  .filter-inner { height: auto; padding: 12px 0; }
}