/* ============================================================
   CVEveryone — app.css
   Dark theme · Purple accent · Plus Jakarta Sans + Fraunces
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --c-bg:       #0d0d12;
  --c-surface:  #13131c;
  --c-surface2: #1a1a28;
  --c-border:   rgba(255,255,255,.08);
  --c-border2:  rgba(255,255,255,.13);
  --c-text:     #e2e4ef;
  --c-muted:    #6b7280;
  --c-faint:    #374151;
  --c-accent:   #7c3aed;
  --c-accent2:  #6d28d9;
  --c-accent3:  #a78bfa;
  --c-green:    #10b981;
  --c-red:      #ef4444;
  --c-yellow:   #f59e0b;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 8px 32px rgba(0,0,0,.45);
  --shadow-sm:  0 2px 12px rgba(0,0,0,.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body > main { flex: 1 1 auto; }
body > .footer { flex-shrink: 0; margin-top: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
.display { font-family: 'Fraunces', serif; font-weight: 900; }
.grad-text { background: linear-gradient(135deg, #a78bfa, #7c3aed, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,.3); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.nav { background: rgba(13,13,18,.95); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 200; backdrop-filter: blur(16px); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.desktop-nav { display: flex; align-items: center; gap: .25rem; }
.nav-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--c-muted); background: none; border: none; cursor: pointer; transition: color .15s, background .15s; white-space: nowrap; }
.nav-link:hover { color: var(--c-text); background: rgba(255,255,255,.06); }
.hamburger { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; background: none; border: 1px solid var(--c-border); border-radius: var(--radius-sm); color: var(--c-muted); font-size: 1rem; cursor: pointer; transition: border-color .15s, color .15s; }
.hamburger:hover { border-color: var(--c-accent); color: var(--c-accent3); }

/* Mobile nav */
.mobile-nav { display: none; background: var(--c-surface); border-top: 1px solid var(--c-border); padding: .5rem 0 1rem; }
.mobile-nav.is-open { display: block; }
.mob-link { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; color: var(--c-muted); font-size: .9rem; font-weight: 500; border: none; background: none; width: 100%; transition: color .15s, background .15s; }
.mob-link:hover { color: var(--c-text); background: rgba(124,58,237,.08); }
.mob-divider { height: 1px; background: var(--c-border); margin: .4rem 1.25rem; }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--c-text); }
.logo-mark { width: 34px; height: 34px; background: linear-gradient(135deg, #7c3aed, #4f46e5); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: #fff; letter-spacing: -.5px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(124,58,237,.4); }
.logo-mark-sm { width: 26px; height: 26px; border-radius: 7px; font-size: .65rem; }
.logo-accent { color: var(--c-accent3); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.35rem; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(124,58,237,.3); transition: opacity .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: .45rem 1rem; font-size: .8125rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; padding: .85rem; font-size: 1rem; border-radius: var(--radius); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.35rem; background: rgba(255,255,255,.06); color: var(--c-text); border-radius: var(--radius-sm); font-weight: 500; font-size: .9rem; border: 1px solid var(--c-border2); cursor: pointer; transition: background .15s, border-color .15s; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.btn-danger { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.2); border-radius: var(--radius-sm); padding: .35rem .75rem; font-size: .8rem; font-weight: 500; cursor: pointer; transition: background .15s; }
.btn-danger:hover { background: rgba(239,68,68,.25); }
.btn-outline-accent { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.35rem; background: transparent; color: var(--c-accent3); border: 1px solid rgba(124,58,237,.4); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-outline-accent:hover { background: rgba(124,58,237,.1); border-color: var(--c-accent3); }

/* ══════════════════════════════════════════════════════════
   FLASH
══════════════════════════════════════════════════════════ */
.flash { display: flex; align-items: center; gap: .625rem; padding: .75rem 1.5rem; font-size: .875rem; font-weight: 500; }
.flash-success { background: rgba(16,185,129,.12); border-bottom: 1px solid rgba(16,185,129,.2); color: #6ee7b7; }
.flash-error   { background: rgba(239,68,68,.12);  border-bottom: 1px solid rgba(239,68,68,.2);  color: #fca5a5; }
.flash-close   { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; opacity: .6; font-size: 1rem; padding: 0; }

/* ══════════════════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════════════════ */
.hero { padding: 6rem 1.5rem 4rem; text-align: center; background: radial-gradient(ellipse 75% 60% at 50% -5%, rgba(124,58,237,.18), transparent); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c3aed' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.25); border-radius: 9999px; padding: .35rem 1rem; font-size: .8rem; font-weight: 600; color: var(--c-accent3); margin-bottom: 1.5rem; }
.hero-title { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.2rem); color: #fff; line-height: 1.08; margin: 0 0 1.25rem; letter-spacing: -.02em; }
.hero-sub { color: var(--c-muted); font-size: 1.125rem; line-height: 1.7; max-width: 520px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 4rem; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .8rem; color: var(--c-muted); margin-top: .25rem; }

/* Template showcase */
.templates-section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-accent3); margin: 0 0 .75rem; }
.section-title { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: #fff; margin: 0 0 .75rem; letter-spacing: -.01em; }
.section-sub { color: var(--c-muted); font-size: 1rem; margin: 0 0 3rem; max-width: 500px; }
.templates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.template-card { background: var(--c-surface); border: 2px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.template-card:hover { border-color: var(--c-accent); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(124,58,237,.2); }
.template-preview { height: 200px; position: relative; overflow: hidden; }
.template-preview-classic  { background: linear-gradient(160deg, #1e3a5f 0%, #1e3a5f 40%, #f0f4f8 40%); }
.template-preview-modern   { background: linear-gradient(90deg, #1a1a3e 0%, #1a1a3e 40%, #f8f9fc 40%); }
.template-preview-minimal  { background: #f8f9fc; }
.template-preview-elegant  { background: linear-gradient(160deg, #1a1a1a 0%, #1a1a1a 45%, #f5f0eb 45%); }
.template-badge { position: absolute; top: 10px; right: 10px; background: var(--c-accent); color: #fff; font-size: .65rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.template-lines { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; }
.tl-bar { height: 6px; border-radius: 3px; margin-bottom: 5px; }
.tl-bar-dark { background: rgba(255,255,255,.2); }
.tl-bar-light { background: rgba(0,0,0,.12); }
.tl-bar-accent { background: rgba(124,58,237,.5); }
.template-info { padding: 1rem 1.25rem; }
.template-name { font-weight: 700; color: #fff; margin: 0 0 .25rem; }
.template-desc { font-size: .8rem; color: var(--c-muted); margin: 0; }

/* Features */
.features-section { padding: 4rem 1.5rem; border-top: 1px solid var(--c-border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.25rem; }
.feature-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.75rem; transition: border-color .2s; }
.feature-card:hover { border-color: rgba(124,58,237,.3); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 1rem; }
.feature-title { font-weight: 700; color: #fff; font-size: 1rem; margin: 0 0 .4rem; }
.feature-desc { color: var(--c-muted); font-size: .875rem; line-height: 1.65; margin: 0; }

/* CTA strip */
.cta-section { padding: 5rem 1.5rem; text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(124,58,237,.12), transparent); }
.cta-title { font-family: 'Fraunces', serif; font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 900; color: #fff; margin: 0 0 1rem; }
.cta-sub { color: var(--c-muted); font-size: 1rem; margin: 0 0 2rem; }

/* ══════════════════════════════════════════════════════════
   AUTH
══════════════════════════════════════════════════════════ */
.auth-body { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem 1.25rem; background: var(--c-bg); background-image: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124,58,237,.15), transparent); }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-card { background: var(--c-surface); border: 1px solid var(--c-border2); border-radius: 20px; padding: 2.25rem 2rem; box-shadow: var(--shadow); }
.auth-title { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.7rem; color: #fff; margin: 0 0 .3rem; }
.auth-sub { color: var(--c-muted); font-size: .875rem; margin: 0 0 1.75rem; }
.auth-switch { text-align: center; font-size: .875rem; color: var(--c-muted); margin-top: 1.25rem; }
.auth-switch a { color: var(--c-accent3); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   FORM FIELDS
══════════════════════════════════════════════════════════ */
.field { margin-bottom: 1rem; }
.label { display: block; font-size: .8125rem; font-weight: 600; color: #9ca3af; margin-bottom: .4rem; }
.input-wrap { position: relative; }
.field-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--c-faint); font-size: .875rem; pointer-events: none; }
.input { width: 100%; padding: .65rem .9rem .65rem 2.4rem; background: rgba(255,255,255,.05); border: 1px solid var(--c-border2); border-radius: var(--radius-sm); color: var(--c-text); font-size: .9rem; outline: none; transition: border-color .15s, background .15s; }
.input:focus { border-color: var(--c-accent); background: rgba(255,255,255,.07); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.input::placeholder { color: var(--c-faint); }
.input-no-icon { padding-left: .9rem; }
textarea.input { resize: vertical; min-height: 80px; padding-top: .65rem; }
select.input { cursor: pointer; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════ */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.page-title { font-family: 'Fraunces', serif; font-weight: 900; font-size: 2rem; color: #fff; margin: 0; }
.page-sub { color: var(--c-muted); font-size: .9rem; margin: .3rem 0 0; }
.resume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.25rem; }
.resume-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.resume-card:hover { border-color: rgba(124,58,237,.35); box-shadow: 0 8px 30px rgba(124,58,237,.12); transform: translateY(-2px); }
.resume-card-preview { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.resume-card-preview-classic { background: linear-gradient(135deg, #1e3a5f, #2d5496); }
.resume-card-preview-modern  { background: linear-gradient(135deg, #1a1a3e, #312e81); }
.resume-card-preview-minimal { background: linear-gradient(135deg, #1a1a28, #2a2a3e); }
.resume-card-preview-elegant { background: linear-gradient(135deg, #1a1a1a, #2d1b69); }
.resume-card-body { padding: 1.1rem 1.25rem; }
.resume-card-title { font-weight: 700; color: #fff; font-size: 1rem; margin: 0 0 .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-card-meta { font-size: .78rem; color: var(--c-muted); margin: 0 0 1rem; }
.resume-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--c-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .3; }
.empty-state h3 { color: var(--c-text); font-weight: 700; margin: 0 0 .5rem; }
.empty-state p { font-size: .9rem; margin: 0 0 1.5rem; }

/* ══════════════════════════════════════════════════════════
   RESUME BUILDER
══════════════════════════════════════════════════════════ */
.builder-wrap { display: grid; grid-template-columns: 380px 1fr; min-height: calc(100vh - 64px); }
.builder-panel { background: var(--c-surface); border-right: 1px solid var(--c-border); display: flex; flex-direction: column; height: calc(100vh - 64px); position: sticky; top: 64px; overflow-y: auto; }
.builder-panel-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--c-border); flex-shrink: 0; }
.builder-panel-title { font-weight: 700; color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.builder-tabs { display: flex; background: rgba(255,255,255,.04); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.builder-tab { flex: 1; padding: .35rem; border-radius: 6px; font-size: .75rem; font-weight: 600; color: var(--c-muted); background: none; border: none; cursor: pointer; transition: all .15s; text-align: center; }
.builder-tab.active { background: var(--c-accent); color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,.3); }
.builder-sections { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.builder-section { margin-bottom: 1.5rem; }
.builder-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-accent3); margin: 0 0 .875rem; display: flex; align-items: center; justify-content: space-between; }
.builder-section-title button { font-size: .7rem; padding: .2rem .55rem; border-radius: 5px; background: rgba(124,58,237,.15); color: var(--c-accent3); border: none; cursor: pointer; font-weight: 600; transition: background .15s; }
.builder-section-title button:hover { background: rgba(124,58,237,.3); }
.repeater-item { background: rgba(255,255,255,.04); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .75rem; position: relative; }
.repeater-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.repeater-item-label { font-size: .82rem; font-weight: 600; color: var(--c-text); }
.repeater-remove { width: 24px; height: 24px; border-radius: 5px; background: rgba(239,68,68,.12); border: none; color: #f87171; font-size: .75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.repeater-remove:hover { background: rgba(239,68,68,.25); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.builder-save-bar { padding: 1rem 1.5rem; border-top: 1px solid var(--c-border); flex-shrink: 0; display: flex; gap: .75rem; align-items: center; }
.save-status { font-size: .78rem; color: var(--c-muted); flex: 1; }
.save-status.saved { color: var(--c-green); }
.save-status.saving { color: var(--c-yellow); }

/* Preview pane */
.builder-preview { background: #e8e8e8; display: flex; flex-direction: column; align-items: center; padding: 2rem 1.5rem; overflow-y: auto; }
.preview-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; width: 100%; max-width: 700px; flex-wrap: wrap; }
.preview-toolbar-label { font-size: .8rem; font-weight: 600; color: var(--c-muted); }
.preview-frame { width: 100%; max-width: 700px; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,.25); border-radius: 4px; overflow: hidden; }
.preview-frame iframe { width: 100%; height: 842px; border: none; display: block; }

/* Color picker swatches */
.color-swatches { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.color-swatch:hover, .color-swatch.active { transform: scale(1.2); border-color: #fff; }
.template-selector { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .25rem; }
.tmpl-opt { padding: .6rem; border: 2px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer; text-align: center; font-size: .78rem; font-weight: 600; color: var(--c-muted); transition: all .15s; }
.tmpl-opt:hover { border-color: rgba(124,58,237,.4); color: var(--c-accent3); }
.tmpl-opt.active { border-color: var(--c-accent); color: var(--c-accent3); background: rgba(124,58,237,.1); }

/* ══════════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════════ */
.admin-body { display: flex; min-height: 100vh; background: var(--c-bg); }
.sidebar { width: 230px; background: var(--c-surface); border-right: 1px solid var(--c-border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; }
.sidebar-logo { padding: 1.25rem 1rem; border-bottom: 1px solid var(--c-border); }
.sidebar-nav { flex: 1; padding: .75rem; overflow-y: auto; }
.sidebar-link { display: flex; align-items: center; gap: .625rem; padding: .6rem .75rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--c-muted); margin-bottom: .125rem; transition: background .15s, color .15s; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--c-text); }
.sidebar-link i { width: 16px; text-align: center; }
.sidebar-link-active { background: rgba(124,58,237,.12) !important; color: var(--c-accent3) !important; }
.sidebar-link-danger:hover { color: #f87171 !important; background: rgba(239,68,68,.07) !important; }
.sidebar-bottom { padding: .75rem; border-top: 1px solid var(--c-border); }
.admin-main { margin-left: 230px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-header { height: 54px; background: rgba(19,19,28,.8); border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
.admin-title { font-family: 'Fraunces', serif; font-weight: 900; color: #fff; margin: 0; font-size: 1.1rem; }
.admin-date { color: var(--c-muted); font-size: .875rem; }
.admin-content { flex: 1; padding: 1.75rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; }
.stat-num { font-family: 'Fraunces', serif; font-weight: 900; font-size: 2.25rem; color: #fff; margin: 0; line-height: 1; }
.stat-label { color: var(--c-muted); font-size: .875rem; margin: .5rem 0 0; }
.stat-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.table-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.table-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; }
.table-title { font-weight: 700; color: #fff; margin: 0; font-size: .9375rem; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; padding: .625rem 1rem; color: var(--c-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-green  { background: rgba(16,185,129,.15); color: #6ee7b7; }
.badge-red    { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge-purple { background: rgba(124,58,237,.15); color: var(--c-accent3); }
.badge-gray   { background: rgba(255,255,255,.07); color: var(--c-muted); }

/* ══════════════════════════════════════════════════════════
   STATIC PAGES
══════════════════════════════════════════════════════════ */
.static-hero { padding: 5rem 1.5rem 3rem; text-align: center; background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(124,58,237,.12), transparent); }
.static-hero h1 { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(2rem,4vw,3rem); color: #fff; margin: 0 0 .75rem; }
.static-hero p { color: var(--c-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.static-body { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.static-body h2 { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 700; color: #fff; margin: 2.5rem 0 .75rem; }
.static-body p, .static-body li { color: var(--c-muted); line-height: 1.85; font-size: .95rem; }
.static-body ul { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.static-body li { margin-bottom: .4rem; }
.static-body a { color: var(--c-accent3); }
.static-body a:hover { color: #c4b5fd; }
.static-meta { display: inline-block; background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2); color: var(--c-accent3); font-size: .8rem; border-radius: 6px; padding: .25rem .75rem; margin-bottom: 2rem; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-tagline { color: var(--c-muted); font-size: .875rem; line-height: 1.7; margin: .625rem 0 0; }
.footer-heading { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .875rem; }
.footer-link { display: block; color: var(--c-muted); font-size: .875rem; margin-bottom: .5rem; transition: color .15s; }
.footer-link:hover { color: var(--c-accent3); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--c-border); padding-top: 1.25rem; text-align: center; color: var(--c-faint); font-size: .8rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .builder-wrap { grid-template-columns: 340px 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .builder-wrap { grid-template-columns: 1fr; }
  .builder-panel { position: static; height: auto; max-height: 60vh; }
  .builder-preview { min-height: 500px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .hamburger { display: flex !important; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a, .hero-btns button { width: 100%; max-width: 320px; justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { margin-left: 0; }
  .sidebar { display: none; }
  .page-wrap { padding: 1.75rem 1.25rem; }
  .page-header { flex-direction: column; gap: .75rem; }
  .resume-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .static-body { padding: 2rem 1.25rem 4rem; }
}
@media (max-width: 480px) {
  .nav-right .btn-primary { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stat-num { font-size: 1.5rem; }
}

/* ── Template picker scroll (20 templates) ── */
.template-selector { max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.template-selector::-webkit-scrollbar { width: 4px; }
.template-selector::-webkit-scrollbar-thumb { background: rgba(124,58,237,.3); border-radius: 2px; }
