@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #f6f7fb;
    --bg-2: #eef1f7;
    --panel: #ffffff;
    --panel-2: #f1f4fa;
    --ink: #14181f;
    --muted: #5b6472;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --accent-deep: #5b3fd6;
    --line: #e3e8f0;
    --shadow: 0 10px 30px rgba(20,24,31,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(124,92,255,.10), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(34,211,238,.10), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 2.5rem; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { color: var(--accent); font-size: 1.1rem; }
.brand-name { font-weight: 700; letter-spacing: .05em; }
.tag { color: var(--muted); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }

.stage { max-width: 1180px; margin: 0 auto; padding: 4rem 2.5rem 6rem; position: relative; z-index: 2; }

.intro { margin-bottom: 3rem; }
.intro h1 {
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.02; letter-spacing: -.02em;
}
.intro h1 em { color: var(--accent); font-style: italic; }
.intro p { color: var(--muted); margin-top: 1.2rem; max-width: 44ch; font-size: .95rem; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}

.field-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }

textarea {
    flex: 1; min-height: 280px; resize: vertical; background: var(--bg);
    border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
    font-family: 'Inter', sans-serif; font-size: .9rem; line-height: 1.6; padding: 1rem;
}
textarea:focus { outline: none; border-color: var(--accent-2); }

.controls { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0; align-items: end; }
.control { display: flex; flex-direction: column; gap: .4rem; }
.control label { font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.control.checkbox { justify-content: center; }
.control.checkbox label { display: flex; align-items: center; gap: .5rem; text-transform: none; font-size: .85rem; color: var(--ink); }
select, input[type=number] {
    background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: .55rem .7rem; font-family: 'Inter', sans-serif; font-size: .85rem;
}
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }

.go {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #ffffff; border: none; border-radius: 10px;
    padding: .95rem; font-family: 'Inter', sans-serif; font-weight: 600; font-size: .95rem;
    letter-spacing: .01em; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
    box-shadow: 0 6px 18px rgba(124,92,255,.28);
}
.go:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(124,92,255,.36); }
.go:disabled { background: var(--panel-2); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }

.hint { margin-top: .9rem; font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.hint.error { color: var(--accent); }

.preview { align-items: center; justify-content: center; min-height: 360px; }
.placeholder {
    width: 100%; aspect-ratio: 16/9; border: 1px dashed var(--line); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem;
}
video { width: 100%; border-radius: 10px; background: #000; }
.download {
    margin-top: 1rem; color: var(--accent-2); text-decoration: none; font-size: .9rem;
    border: 1px solid var(--accent-2); padding: .6rem 1.1rem; border-radius: 8px; transition: background .2s;
}
.download:hover { background: rgba(99,102,241,.12); }

.spin { display: inline-block; animation: spin 1s linear infinite; }
@@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Wizard steps ---------- */
.steps {
    display: flex; gap: 1rem; list-style: none; margin: 0 0 2rem; padding: 0; flex-wrap: wrap;
}
.step {
    display: flex; align-items: center; gap: .5rem; color: var(--muted);
    font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
}
.step span {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.step.active { color: var(--ink); }
.step.active span { background: var(--accent); color: #160a06; border-color: var(--accent); }
.step.done span { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }

.pane { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

.script-box {
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 1.2rem; white-space: pre-wrap; line-height: 1.7; font-size: .9rem;
    max-height: 420px; overflow-y: auto; color: var(--ink);
}

.refine-row { display: flex; gap: .7rem; }
.refine-row input {
    flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: .7rem .9rem; font-family: 'Inter', sans-serif; font-size: .85rem;
}
.refine-row input:focus { outline: none; border-color: var(--accent-2); }

.approve-row { display: flex; gap: .8rem; margin-top: 1.4rem; }
.approve-row .go { flex: 1; }

.go.secondary { background: var(--accent-2); color: #fff; }
.go.secondary:hover { background: #7c7ff5; }
.go.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.go.ghost:hover { background: var(--panel-2); }

.progress-box { text-align: center; padding: 3rem 1rem; }
.spin.big { font-size: 2.4rem; color: var(--accent); }
#progress-msg { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

/* ---------- Header / nav / footer (responsive) ---------- */
.brand-logo { height: 34px; width: auto; display: block; color: var(--ink); }
.footer-logo { height: 28px; width: auto; opacity: .85; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav-user { color: var(--ink); font-size: .8rem; opacity: .8; }
.inline-form { display: inline; margin: 0; }
.nav-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #ffffff; border: none; border-radius: 8px;
    padding: .5rem .9rem; font-family: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.nav-btn:hover { color: #ffffff; opacity: .92; }

.content-wrap { min-height: 60vh; }

.footer {
    border-top: 1px solid var(--line); margin-top: 4rem; padding: 3rem 2.5rem 1.5rem;
    position: relative; z-index: 2; background: var(--panel);
}
.footer-grid {
    max-width: 1180px; margin: 0 auto; display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.8fr; gap: 2rem;
}
.footer-brand .footer-logo { height: 30px; margin-bottom: .8rem; color: var(--ink); }
.footer-tag { color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.footer-copy { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.footer-col h4, .footer-subscribe h4 {
    font-family: 'Poppins',sans-serif; font-size: .8rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--ink); margin-bottom: .9rem;
}
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: .85rem; margin-bottom: .55rem; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-subscribe p { color: var(--muted); font-size: .82rem; line-height: 1.5; margin-bottom: .8rem; }
.footer-sub-row { display: flex; gap: .5rem; }
.footer-sub-row input {
    flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: .6rem .8rem; font-family: inherit; font-size: .85rem;
}
.footer-sub-row input:focus { outline: none; border-color: var(--accent); }
.footer-sub-row button {
    background: linear-gradient(135deg,var(--accent),var(--accent-deep)); color: #fff; border: none;
    border-radius: 8px; padding: .6rem 1.1rem; font-family: inherit; font-weight: 600; font-size: .85rem; cursor: pointer;
    white-space: nowrap;
}
.footer-sub-row button:disabled { opacity: .6; cursor: default; }
.footer-sub-hint { color: var(--accent-deep); font-size: .8rem; margin-top: .5rem; min-height: 1em; }
.footer-bottom {
    max-width: 1180px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
    text-align: center; color: var(--muted); font-size: .8rem;
}

/* Mobile nav hamburger (hidden on desktop) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ad-slot { text-align: center; margin: 2rem auto; max-width: 760px; min-height: 90px; position: relative; z-index: 2; }

/* ---------- Auth forms ---------- */
.auth-card {
    max-width: 420px; margin: 4rem auto; background: var(--panel);
    border: 1px solid var(--line); border-radius: 14px; padding: 2rem; position: relative; z-index: 2;
}
.auth-card h1 { font-family: 'Poppins', sans-serif; font-size: 1.8rem; margin-bottom: 1.4rem; }
.auth-card label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1rem 0 .4rem; }
.auth-card input {
    width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: .7rem .9rem; font-family: 'Inter', sans-serif;
}
.auth-card input:focus { outline: none; border-color: var(--accent-2); }
.auth-card .go { width: 100%; margin-top: 1.4rem; }
.auth-card .alt { margin-top: 1rem; font-size: .82rem; color: var(--muted); text-align: center; }
.auth-card .alt a { color: var(--accent-2); text-decoration: none; }
.validation { color: var(--accent); font-size: .82rem; margin-top: .8rem; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1180px; margin: 2rem auto; padding: 0 2.5rem; position: relative; z-index: 2; }
.admin-tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-tabs a { color: var(--muted); text-decoration: none; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }
.admin-tabs a:hover, .admin-tabs a.active { color: var(--ink); border-color: var(--accent-2); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; }
.stat-card .num { font-family: 'Poppins', sans-serif; font-size: 2.2rem; color: var(--accent); }
.stat-card .lbl { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th, .data-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
/* ---------- Site Content editor (redesigned) ---------- */
.admin-h1 { font-family: 'Poppins',sans-serif; font-size: 2rem; margin-bottom: 1.4rem; }
.admin-lead { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1.4rem; max-width: 70ch; }
.cc-search { margin-bottom: 2rem; }
.cc-search input {
    width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line);
    color: var(--ink); border-radius: 10px; padding: .7rem 1rem; font-family: inherit; font-size: .9rem;
}
.cc-search input:focus { outline: none; border-color: var(--accent); }
.cc-group { margin-bottom: 2.4rem; }
.cc-group-title {
    font-family: 'Poppins',sans-serif; font-size: 1.05rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.cc-group-title span { font-size: 1.1rem; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.cc-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem;
    display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow);
}
.cc-card-wide { grid-column: 1 / -1; }
.cc-key {
    font-family: 'Inter',monospace; color: var(--accent-deep); font-size: .78rem; font-weight: 600;
    word-break: break-all; letter-spacing: .01em;
}
.cc-card input[type=text], .cc-card textarea {
    background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 8px;
    padding: .6rem .8rem; font-family: 'Inter',sans-serif; font-size: .88rem; width: 100%; resize: vertical;
}
.cc-card input[type=text]:focus, .cc-card textarea:focus { outline: none; border-color: var(--accent); }
.cc-save {
    align-self: flex-start; background: linear-gradient(135deg,var(--accent),var(--accent-deep)); color: #fff;
    border: none; border-radius: 8px; padding: .5rem 1.2rem; font-family: inherit; font-weight: 600;
    font-size: .82rem; cursor: pointer;
}
.cc-save:hover { opacity: .92; }
.cc-empty { color: var(--muted); text-align: center; padding: 2rem; }

/* Toggle switch */
.cc-switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.cc-switch input { display: none; }
.cc-slider { width: 42px; height: 24px; background: var(--line); border-radius: 999px; position: relative; transition: background .2s; flex-shrink: 0; }
.cc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.cc-switch input:checked + .cc-slider { background: linear-gradient(135deg,var(--accent),var(--accent-deep)); }
.cc-switch input:checked + .cc-slider::after { transform: translateX(18px); }
.cc-switch-label { font-size: .85rem; color: var(--muted); }

/* Rich editor inside a card */
.cc-card .rich-editor { background: #fff; border-radius: 0 0 8px 8px; min-height: 160px; color: #14181f; }
.cc-card .ql-editor { min-height: 150px; font-size: .92rem; line-height: 1.7; }

/* ---------- Responsive ---------- */
/* Tablet and below: footer collapses to two columns, nav becomes a dropdown */
@@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
    .footer-subscribe { grid-column: 1 / -1; }

    .nav-toggle { display: flex; }
    .nav {
        display: none; position: absolute; top: 100%; right: 0; left: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--panel); border-bottom: 1px solid var(--line);
        padding: .6rem 1.2rem 1rem; box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a, .nav .nav-user { padding: .7rem 0; border-bottom: 1px solid var(--line); }
    .nav .inline-form, .nav .nav-btn { width: 100%; margin-top: .6rem; }
    .nav .nav-btn { display: block; text-align: center; }
    .topbar { position: sticky; }
}

/* Phones */
@@media (max-width: 760px) {
    .topbar { padding: .9rem 1.2rem; }
    .stage { padding: 2rem 1.2rem 4rem; }
    .grid { grid-template-columns: 1fr; }
    .section { padding: 2.5rem 1.2rem; }
    .footer { padding: 2.2rem 1.2rem 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; text-align: left; }
    .admin-wrap { padding: 0 1.2rem; }
    .cc-grid { grid-template-columns: 1fr; }
    .cc-search input { max-width: 100%; }
    .intro h1, .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .hero { padding: 3rem 1.2rem 2.5rem; }
    .hero-stats { gap: 1.6rem; }
    .cards, .steps-row { grid-template-columns: 1fr; }
    .controls { flex-direction: column; align-items: stretch; }
    .controls .control { width: 100%; }
    .approve-row { flex-direction: column; }
    .refine-row { flex-direction: column; }
    .refine-row input, .refine-row button { width: 100%; }
    .mode-switch { flex-direction: column; }
    .seg { width: 100%; justify-content: space-between; }
    .seg-btn { flex: 1; text-align: center; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
    .auth-card { margin: 2rem 1rem; }
}

/* Small phones */
@@media (max-width: 420px) {
    .brand-logo { height: 28px; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .footer-sub-row { flex-direction: column; }
    .footer-sub-row button { width: 100%; }
}


/* ---------- Warnings ---------- */
.warnings {
    margin-top: 1rem; width: 100%; background: rgba(255,93,59,.08);
    border: 1px solid var(--accent); border-radius: 10px; padding: .9rem 1.1rem;
}
.warnings p { color: var(--accent); font-size: .85rem; line-height: 1.5; margin: .2rem 0; }

/* ---------- Uploads (step 3) ---------- */
.upload-row {
    display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: .9rem 1rem; margin-top: .6rem;
}
.upload-row input[type=file] { color: var(--muted); font-size: .82rem; max-width: 100%; }
.upload-note { color: var(--muted); font-size: .8rem; margin: .3rem 0 0; }
.upload-status { color: var(--accent-2); font-size: .82rem; }
.rights-check { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--ink); }
.rights-check input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ---------- Landing page ---------- */
.hero { padding: 5rem 2rem 4rem; text-align: center; position: relative; z-index: 2; }
.hero-inner { max-width: 860px; margin: 0 auto; }
.badge {
    display: inline-block; background: var(--panel); border: 1px solid var(--line);
    color: var(--accent-deep); font-size: .78rem; font-weight: 600; padding: .4rem .9rem;
    border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 1.4rem;
}
.hero-title {
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.05; letter-spacing: -.02em; color: var(--ink);
    background: linear-gradient(120deg, var(--ink) 40%, var(--accent-deep));
    -webkit-background-clip: text; background-clip: text;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 1.3rem auto 0; max-width: 38em; line-height: 1.6; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.btn-outline {
    border: 1px solid var(--line); color: var(--ink); background: var(--panel);
    padding: .95rem 1.4rem; border-radius: 10px; text-decoration: none; font-weight: 600;
    font-size: .95rem; transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--accent); }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Poppins',sans-serif; font-size: 1.8rem; color: var(--accent-deep); }
.hero-stats span { color: var(--muted); font-size: .82rem; }

.section { max-width: 1180px; margin: 0 auto; padding: 4rem 2.5rem; position: relative; z-index: 2; }
.section.alt {
    max-width: none; background: var(--panel);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section.alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-title { font-family: 'Poppins',sans-serif; font-size: clamp(1.6rem,3vw,2.4rem); text-align: center; font-weight: 700; }
.section-lead { color: var(--muted); text-align: center; max-width: 40em; margin: 1rem auto 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.3rem; margin-top: 2.5rem; }
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem;
    box-shadow: var(--shadow); transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card-ico { font-size: 1.8rem; margin-bottom: .7rem; }
.card h3 { font-family: 'Poppins',sans-serif; font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.3rem; margin-top: 2.5rem; }
.how-step { text-align: center; padding: 1rem; }
.how-step span {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent-deep));
    color: #fff; font-weight: 700; font-family: 'Poppins',sans-serif; margin-bottom: .8rem;
}
.how-step h4 { font-family: 'Poppins',sans-serif; margin-bottom: .4rem; }
.how-step p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* Social post generator */
.social-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.social-tab {
    border: 1px solid var(--line); background: var(--panel); color: var(--muted);
    padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; cursor: pointer; font-family: inherit;
}
.social-tab.active { background: linear-gradient(135deg,var(--accent),var(--accent-deep)); color: #fff; border-color: transparent; }
.social-output {
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem;
    white-space: pre-wrap; line-height: 1.6; font-size: .9rem; min-height: 120px; margin-top: 1rem;
}
.mode-switch { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.mode-switch a {
    flex: 1; text-align: center; padding: .8rem; border: 1px solid var(--line); border-radius: 10px;
    text-decoration: none; color: var(--muted); font-weight: 600; background: var(--panel);
}
.mode-switch a.active { border-color: var(--accent); color: var(--ink); }

/* ---------- Content pages (prose) ---------- */
.prose { color: var(--ink); line-height: 1.8; font-size: 1rem; margin-bottom: 1.2rem; max-width: 70ch; }
.prose a { color: var(--accent-deep); }

/* ---------- SEO results ---------- */
.seo-results { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.seo-field label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .35rem; }
.seo-val { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; font-size: .88rem; line-height: 1.55; white-space: pre-wrap; }

/* ---------- Progress bar ---------- */
.progress-track { width: 100%; max-width: 420px; height: 10px; background: var(--panel-2); border-radius: 999px; margin: 1.2rem auto .4rem; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); border-radius: 999px; transition: width .5s ease; }
.progress-pct { color: var(--muted); font-size: .82rem; }

/* ---------- Contact / follow ---------- */
.social-follow { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.social-follow a {
    color: var(--accent-deep); text-decoration: none; font-weight: 600; font-size: .9rem;
    border: 1px solid var(--line); padding: .5rem .9rem; border-radius: 999px;
}
.social-follow a:hover { border-color: var(--accent); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.about-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); }
.about-card h3 { font-family: 'Poppins',sans-serif; font-size: 1.05rem; margin-bottom: .5rem; }
.about-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.7; font-size: .9rem; }

/* ---------- Social output type segmented control ---------- */
.seg { display: inline-flex; gap: .3rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; margin-bottom: 1rem; }
.seg-btn { border: none; background: transparent; color: var(--muted); padding: .5rem .9rem; border-radius: 999px; font-family: inherit; font-size: .82rem; cursor: pointer; }
.seg-btn.active { background: linear-gradient(135deg,var(--accent),var(--accent-deep)); color: #fff; }
.social-image { max-width: 100%; border-radius: 12px; margin-top: 1rem; display: block; }
.social-video { width: 100%; border-radius: 12px; margin-top: 1rem; background: #000; }
.social-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .9rem; }

/* ---------- Contact page redesign ---------- */
.contact-hero { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem 1rem; text-align: center; position: relative; z-index: 2; }
.contact-hero h1 { font-family: 'Poppins',sans-serif; font-size: clamp(1.8rem,4vw,2.8rem); margin: 1rem 0 .6rem; }
.contact-hero p { color: var(--muted); font-size: 1.02rem; }
.contact-layout {
    max-width: 1060px; margin: 1.5rem auto 0; padding: 0 1.5rem 4rem;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; position: relative; z-index: 2;
}
.contact-form-card, .contact-info-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; box-shadow: var(--shadow);
}
.contact-form-card h2 { font-family: 'Poppins',sans-serif; font-size: 1.3rem; margin-bottom: 1.2rem; }
.cform-row { display: flex; gap: 1rem; }
.cfield { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; flex: 1; }
.cfield label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cfield input, .cfield textarea {
    background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 9px;
    padding: .75rem .9rem; font-family: inherit; font-size: .92rem;
}
.cfield textarea { min-height: 140px; resize: vertical; }
.cfield input:focus, .cfield textarea:focus { outline: none; border-color: var(--accent); }
.cform .go { width: 100%; }
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card h3 { font-family: 'Poppins',sans-serif; font-size: 1.05rem; margin-bottom: .8rem; }
.contact-info-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.ci-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.ci-row a { color: var(--accent-deep); text-decoration: none; }
.ci-ico { font-size: 1.1rem; }
.sub-row { display: flex; gap: .5rem; margin: .8rem 0 .3rem; }
.sub-row input {
    flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: .6rem .8rem; font-family: inherit; font-size: .85rem;
}
.sub-row input:focus { outline: none; border-color: var(--accent); }
.sub-row button {
    background: linear-gradient(135deg,var(--accent),var(--accent-deep)); color: #fff; border: none;
    border-radius: 8px; padding: .6rem 1rem; font-family: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}

@@media (max-width: 760px) {
    .contact-layout { grid-template-columns: 1fr; }
    .cform-row { flex-direction: column; gap: 0; }
    .sub-row { flex-direction: column; }
    .sub-row button { width: 100%; }
}

/* ---------- Social video options ---------- */
.script-actions { margin: 1rem 0 .6rem; }
#social-script { width: 100%; min-height: 130px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: .9rem; font-family: inherit; font-size: .9rem; line-height: 1.6; resize: vertical; }
#social-script:focus { outline: none; border-color: var(--accent); }
.agency .card-ico { font-size: 2rem; }

/* ---------- Animated SanwalStudio loader ---------- */
.ss-loader { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.ss-loader-svg { width: 80px; height: 80px; }
.ss-loader-ring {
    stroke-dasharray: 220; stroke-dashoffset: 60;
    transform-origin: 50% 50%; animation: ssspin 1.3s linear infinite;
}
@@keyframes ssspin { to { transform: rotate(360deg); } }
.ss-loader-play { transform-origin: 50% 50%; animation: sspulse 1.1s ease-in-out infinite; }
@@keyframes sspulse { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.05); } }
.ss-loader-word { font-family: 'Poppins',sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink); letter-spacing: .01em; }
.ss-loader-word b { background: linear-gradient(135deg,var(--accent),var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Speak-to-generate */
.speak-row { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.speak-btn { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .5rem 1rem; font-family: inherit; font-size: .85rem; cursor: pointer; }
.speak-btn:hover { border-color: var(--accent); }
.speak-btn.listening { background: linear-gradient(135deg,var(--accent),var(--accent-deep)); color: #fff; border-color: transparent; animation: sspulse2 1s ease-in-out infinite; }
@@keyframes sspulse2 { 0%,100% { box-shadow: 0 0 0 0 rgba(124,92,255,.4); } 50% { box-shadow: 0 0 0 8px rgba(124,92,255,0); } }
.speak-status { color: var(--muted); font-size: .82rem; }

/* Guest history panel */
.guest-history { max-width: 1180px; margin: 0 auto 1.5rem; padding: 1.2rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.guest-history h3 { font-family: 'Poppins',sans-serif; font-size: 1rem; margin-bottom: .8rem; }
.hist-item { display: block; color: var(--muted); text-decoration: none; font-size: .88rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.hist-item:hover { color: var(--accent-deep); }

/* ---------- Admin rich editor (Quill) ---------- */
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--line); }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; background: var(--panel-2); }
.ql-container.ql-snow { border-radius: 0 0 8px 8px; }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.pager-info { color: var(--muted); font-size: .82rem; }
.pager-links { display: flex; gap: .35rem; flex-wrap: wrap; }
.pager-links a, .pager-cur { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; text-decoration: none; color: var(--muted); }
.pager-links a:hover { border-color: var(--accent); color: var(--ink); }
.pager-cur { background: linear-gradient(135deg,var(--accent),var(--accent-deep)); color: #fff; border-color: transparent; }
@@media (max-width: 760px) { .pager { flex-direction: column; align-items: flex-start; } }

/* ---------- Video thumbnail ---------- */
.thumb-box { margin-top: 1rem; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.thumb-label { color: var(--muted); font-size: .82rem; margin-bottom: .6rem; }
.thumb-box img { max-width: 320px; width: 100%; border-radius: 8px; display: block; margin-bottom: .7rem; }

/* ---------- Admin user cards ---------- */
.user-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; }
.user-card-head { display: flex; align-items: center; gap: .8rem; }
.user-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg,var(--accent),var(--accent-deep)); }
.user-id { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-weight: 600; font-size: .95rem; }
.user-email { color: var(--muted); font-size: .82rem; text-decoration: none; word-break: break-all; }
.user-email:hover { color: var(--accent-deep); }
.user-stats { display: flex; gap: 1rem; }
.user-stat { flex: 1; background: var(--bg); border-radius: 8px; padding: .6rem; text-align: center; }
.us-num { display: block; font-family: 'Poppins',sans-serif; font-size: 1.3rem; font-weight: 700; }
.us-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.user-meta { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; color: var(--muted); }

/* ---------- Admin message cards ---------- */
.msg-list { display: flex; flex-direction: column; gap: 1rem; }
.msg-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; box-shadow: var(--shadow); }
.msg-head { display: flex; align-items: center; gap: .8rem; }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg,var(--accent),var(--accent-deep)); }
.msg-from { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.msg-name { font-weight: 600; font-size: .92rem; }
.msg-email { color: var(--muted); font-size: .8rem; text-decoration: none; word-break: break-all; }
.msg-email:hover { color: var(--accent-deep); }
.msg-date { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.msg-subject { font-weight: 600; font-size: .9rem; margin: .9rem 0 .3rem; }
.msg-body { color: var(--ink); font-size: .9rem; line-height: 1.6; margin: .6rem 0 0; white-space: pre-wrap; }
.msg-actions { margin-top: .9rem; }
@@media (max-width: 600px) {
    .msg-head { flex-wrap: wrap; }
    .msg-date { width: 100%; }
}
