/* =====================================================================
   Cat Spinner — public pages (index.php, contact.php, renew.php)
   Admin dashboard keeps assets/style.css; nothing here leaks into admin/.
   ===================================================================== */

:root {
    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-700: #3730a3;
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --violet: #8b5cf6;
    --pink: #ec4899;
    --cyan: #22d3ee;

    --ink: #0d1024;
    --ink-2: #3c4258;
    --muted: #697089;
    --line: #e6e8f0;
    --line-soft: #eff1f7;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;

    --night: #0b0d1c;
    --night-2: #12152b;
    --night-line: rgba(255, 255, 255, .09);
    --night-text: #c9cde0;

    --green: #16a34a;
    --red: #dc2626;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 20, 50, .06), 0 1px 3px rgba(16, 20, 50, .05);
    --shadow: 0 10px 30px -12px rgba(16, 20, 50, .18), 0 2px 6px rgba(16, 20, 50, .05);
    --shadow-lg: 0 30px 60px -20px rgba(30, 27, 110, .35);

    --grad: linear-gradient(100deg, #818cf8 0%, #c084fc 45%, #f472b6 100%);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.cs {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.cs img, .cs svg { display: block; max-width: 100%; }
.cs a { color: var(--brand); text-decoration: none; }
.cs a:hover { color: var(--brand-600); }
:where(.cs) :is(h1, h2, h3, h4) { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
:where(.cs) p { margin: 0; }
.cs :focus-visible { outline: 3px solid rgba(99, 102, 241, .55); outline-offset: 2px; border-radius: 6px; }

.cs-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cs-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.cs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
    font: 600 15px/1.2 var(--font); cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.cs-btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.cs-btn:hover svg { transform: translateX(2px); }
.cs-btn:active { transform: translateY(1px); }
.cs-btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.cs-btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.cs-btn-block { width: 100%; }
.cs .cs-btn-primary {
    color: #fff; background: linear-gradient(135deg, #6366f1, var(--brand-600));
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.cs .cs-btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -6px rgba(79, 70, 229, .65), inset 0 1px 0 rgba(255, 255, 255, .2); transform: translateY(-1px); }
.cs .cs-btn-outline { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.cs .cs-btn-outline:hover { color: var(--brand-600); border-color: #c7cbfa; }
.cs .cs-btn-ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.cs .cs-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.cs .cs-btn-white { color: var(--brand-700); background: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.cs .cs-btn-white:hover { color: var(--brand-700); transform: translateY(-1px); }

/* ---------- Pill / eyebrow ---------- */
.cs-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #c7d2fe;
    background: rgba(99, 102, 241, .14); border: 1px solid rgba(129, 140, 248, .3);
}
.cs-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: cs-pulse 2s ease-in-out infinite; }
@keyframes cs-pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.cs-eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Nav ---------- */
.cs-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 13, 28, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.cs-nav.is-scrolled { border-bottom-color: var(--night-line); background: rgba(11, 13, 28, .88); }
.cs-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.cs-brand { display: inline-flex; align-items: center; gap: 10px; }
.cs .cs-brand, .cs .cs-brand:hover { color: #fff; }
.cs-brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, var(--brand-700)); color: #fff;
    box-shadow: 0 6px 16px -4px rgba(99, 102, 241, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.cs-brand-mark svg { width: 21px; height: 21px; }
.cs-brand-text { font: 800 18px/1 var(--font-display); letter-spacing: -.02em; }
.cs-nav-menu { display: flex; align-items: center; gap: 4px; }
.cs-nav-menu a:not(.cs-btn) { color: var(--night-text); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.cs-nav-menu a:not(.cs-btn):hover, .cs-nav-menu a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.cs-nav-menu .cs-btn { margin-left: 8px; }
.cs-nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .04); border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.cs-nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.cs-nav.is-open .cs-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cs-nav.is-open .cs-nav-toggle span:nth-child(2) { opacity: 0; }
.cs-nav.is-open .cs-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.cs-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, .35), transparent 60%),
                radial-gradient(900px 500px at -10% 30%, rgba(139, 92, 246, .22), transparent 60%),
                var(--night);
    margin-top: -68px; padding: 148px 0 72px;
}
.cs-hero-glow { position: absolute; width: 520px; height: 520px; right: 8%; top: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(236, 72, 153, .22), transparent 65%); filter: blur(20px); pointer-events: none; }
.cs-hero-grid-bg {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.cs-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.cs-hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.03em; margin: 22px 0 20px; line-height: 1.06; }
.cs-hero-sub { font-size: 18px; color: var(--night-text); max-width: 560px; }
.cs-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cs-hero-checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #aab0c8; }
.cs-hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.cs-hero-checks li::before {
    content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
    background: rgba(52, 211, 153, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Product mock */
.cs-hero-visual { position: relative; }
.cs-mock {
    position: relative; border-radius: 20px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
}
.cs-mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); }
.cs-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cs-mock-bar span:nth-child(2) { background: #febc2e; }
.cs-mock-bar span:nth-child(3) { background: #28c840; }
.cs-mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #8b91ab; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cs-mock-body { padding: 18px; display: grid; gap: 12px; }
.cs-mock-row {
    display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line);
    animation: cs-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.cs-mock-row:nth-child(2) { animation-delay: .15s; }
.cs-mock-row:nth-child(3) { animation-delay: .3s; }
.cs-mock-row.is-done { background: rgba(52, 211, 153, .07); border-color: rgba(52, 211, 153, .25); }
.cs-mock-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none; }
.cs-mock-ico svg { width: 20px; height: 20px; }
.cs-ico-rss { background: rgba(56, 189, 248, .15); color: #7dd3fc; }
.cs-ico-ai { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.cs-ico-ok { background: rgba(52, 211, 153, .18); color: #6ee7b7; }
.cs-mock-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cs-mock-text strong { font-size: 14px; font-weight: 600; }
.cs-mock-text small { font-size: 12.5px; color: #9aa1bb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-mock-progress { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cs-mock-progress i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--grad); animation: cs-load 2.4s ease-in-out infinite; }
@keyframes cs-load { 0% { width: 8%; } 70% { width: 100%; } 100% { width: 100%; opacity: .4; } }
.cs-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; flex: none; }
.cs-tag-blue { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
.cs-tag-violet { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.cs-tag-green { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.cs-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.cs-mock-stats div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--night-line); }
.cs-mock-stats b { display: block; font: 800 20px/1.1 var(--font-display); }
.cs-mock-stats small { font-size: 11.5px; color: #8b91ab; }
.cs-float {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--ink);
    background: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
    animation: cs-float 5s ease-in-out infinite;
}
.cs-float-a { left: -28px; bottom: -22px; }
.cs-float-b { right: -14px; top: -18px; animation-delay: -2.5s; }
.cs-float-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@keyframes cs-float { 50% { transform: translateY(-8px); } }
[data-live].is-bump { animation: cs-bump .6s ease; transform-origin: left center; }
@keyframes cs-bump { 40% { transform: scale(1.12); } }
.cs-plus::after { content: '+'; }
@keyframes cs-rise { from { opacity: 0; transform: translateY(12px); } }

/* Stats strip */
.cs-stats {
    position: relative; margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border: 1px solid var(--night-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); overflow: hidden;
}
.cs-stat { padding: 22px 24px; display: grid; gap: 2px; }
.cs-stat + .cs-stat { border-left: 1px solid var(--night-line); }
.cs-stat b { font: 800 28px/1.15 var(--font-display); letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #c7cbe6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-stat span { font-size: 14px; color: #9aa1bb; }

/* ---------- Sections ---------- */
.cs-section { padding: 104px 0; }
.cs-section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cs-section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.cs-section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.cs-section-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.cs-section-head-left { text-align: left; margin: 0; }

/* Steps */
.cs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.cs-steps::before { content: ''; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #c7cbfa 0 8px, transparent 8px 16px); z-index: 0; }
.cs-step { position: relative; z-index: 1; padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.cs-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cs-step-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; font: 800 18px/1 var(--font-display); color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .6); }
.cs-step h3 { font-size: 19px; margin-bottom: 8px; }
.cs-step p { color: var(--muted); font-size: 15px; }

/* Features */
.cs-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cs-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6d9fb; }
.cs-feature-wide { grid-column: span 2; background: linear-gradient(135deg, #fff 40%, #f3f2ff); }
.cs-feature-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); }
.cs-feature-ico svg { width: 24px; height: 24px; }
.cs-feature h3 { font-size: 19px; margin-bottom: 8px; }
.cs-feature p { color: var(--muted); font-size: 15px; max-width: 560px; }
.cs-feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cs-feature-chips span { font-size: 13px; font-weight: 600; color: var(--brand-700); background: #fff; border: 1px solid var(--brand-100); padding: 6px 12px; border-radius: 999px; }
.cs-quota-demo { margin-top: 20px; max-width: 420px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.cs-quota-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cs-quota-head b { color: var(--ink); }
.cs-quota-bar { height: 8px; border-radius: 8px; background: var(--line-soft); overflow: hidden; }
.cs-quota-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #a855f7); }

/* Pricing */
.cs-pricing { display: grid; gap: 22px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cs-pricing-1 { max-width: 400px; margin: 0 auto; }
.cs-pricing-2 { max-width: 820px; margin: 0 auto; }
.cs-plan {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 32px 24px; border-radius: 22px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.cs-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cs-plan.is-popular {
    color: #fff; border-color: transparent;
    background: radial-gradient(500px 260px at 100% 0%, rgba(168, 85, 247, .35), transparent 60%), linear-gradient(160deg, #1b1d44, var(--night));
    box-shadow: var(--shadow-lg);
}
.cs-plan.is-popular::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cs-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #6366f1, #d946ef); box-shadow: 0 8px 18px -6px rgba(168, 85, 247, .6); white-space: nowrap; }
.cs-plan h3 { font-size: 20px; }
.cs-plan-desc { margin-top: 6px; font-size: 14px; color: var(--muted); }
.cs-plan.is-popular .cs-plan-desc { color: #aab0c8; }
.cs-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; margin: 22px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.cs-plan.is-popular .cs-plan-price { border-bottom-color: var(--night-line); }
.cs-plan-price small { font-size: 16px; font-weight: 700; color: var(--muted); align-self: flex-start; margin-top: 6px; }
.cs-plan-price b { font: 800 clamp(30px, 2.6vw, 38px)/1 var(--font-display); letter-spacing: -.03em; }
.cs-plan-price span { font-size: 15px; color: var(--muted); }
.cs-pricing-4 .cs-plan-price b { font-size: 30px; }
.cs-pricing-4 .cs-plan-price small { font-size: 14px; margin-top: 3px; }
.cs-pricing-4 .cs-plan-price span { font-size: 14px; }
.cs-plan.is-popular .cs-plan-price small, .cs-plan.is-popular .cs-plan-price span { color: #aab0c8; }
.cs-plan-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; font-size: 15px; }
.cs-plan-list li { position: relative; padding-left: 30px; }
.cs-plan-list li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.cs-plan.is-popular .cs-plan-list li::before { background-color: rgba(129, 140, 248, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.cs-plan-list li.is-off { color: #a3a9bd; text-decoration: line-through; text-decoration-color: rgba(163, 169, 189, .6); }
.cs-plan-list li.is-off::before { background: #f1f2f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a9bd' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/10px no-repeat; }
.cs-plan.is-popular .cs-plan-list li.is-off { color: #6c7290; }
.cs-plan.is-popular .cs-plan-list li.is-off::before { background-color: rgba(255, 255, 255, .06); }
.cs-plan .cs-btn-outline { border-color: #d6d9fb; color: var(--brand-700); }
.cs-pricing-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted); }

/* FAQ */
.cs-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.cs-faq { display: grid; gap: 12px; }
.cs-faq-item { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.cs-faq-item[open] { border-color: #d6d9fb; box-shadow: var(--shadow); }
.cs-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16px; }
.cs-faq-item summary::-webkit-details-marker { display: none; }
.cs-faq-item summary::after {
    content: ''; width: 28px; height: 28px; flex: none; border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
    transition: transform .25s ease;
}
.cs-faq-item[open] summary::after { transform: rotate(45deg); }
.cs-faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* CTA */
.cs-cta-wrap { padding-top: 0; }
.cs-section-soft + .cs-cta-wrap { padding-top: 104px; }
.cs-cta {
    position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; padding: 72px 32px;
    background: radial-gradient(700px 300px at 50% -20%, rgba(168, 85, 247, .45), transparent 70%), linear-gradient(135deg, #312e81, #1e1b4b 60%, var(--night));
    box-shadow: var(--shadow-lg);
}
.cs-cta-glow { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.cs-cta-mark { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); margin-bottom: 22px; }
.cs-cta-mark svg { width: 34px; height: 34px; color: #fff; }
.cs-cta h2 { position: relative; font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; }
.cs-cta p { position: relative; margin: 14px auto 0; max-width: 540px; font-size: 17px; color: #c7cbe6; }
.cs-cta-actions { position: relative; justify-content: center; }

/* Footer */
.cs-footer { background: var(--night); color: var(--night-text); padding: 72px 0 32px; }
.cs-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.cs-footer-brand p { margin-top: 16px; max-width: 340px; font-size: 14.5px; color: #9aa1bb; }
.cs-footer h4 { font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.cs-footer-grid > div:not(.cs-footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.cs .cs-footer-grid a:not(.cs-brand) { color: #9aa1bb; font-size: 14.5px; word-break: break-word; }
.cs .cs-footer-grid a:not(.cs-brand):hover { color: #fff; }
.cs-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13.5px; color: #7d84a1; }

/* ---------- Inner pages (contact / renew) ---------- */
.cs-page { background: var(--night); }
.cs-page-main {
    position: relative; overflow: hidden; color: #fff; margin-top: -68px; padding: 140px 0 96px;
    background: radial-gradient(1000px 600px at 90% 0%, rgba(99, 102, 241, .32), transparent 60%),
                radial-gradient(800px 500px at 0% 100%, rgba(168, 85, 247, .2), transparent 60%), var(--night);
}
.cs-page-glow { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 20%, transparent 75%); }
.cs-split { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.cs-split-aside { padding-top: 12px; }
.cs-split-aside h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 22px 0 18px; }
.cs-split-lead { font-size: 17px; color: var(--night-text); max-width: 480px; }

.cs-benefits { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.cs-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.cs-benefit-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; color: #c7d2fe; background: rgba(99, 102, 241, .16); border: 1px solid rgba(129, 140, 248, .28); }
.cs-benefit-ico svg { width: 20px; height: 20px; }
.cs-benefits strong, .cs-mini-steps strong { display: block; font-size: 15.5px; font-weight: 600; }
.cs-benefits small, .cs-mini-steps small { display: block; font-size: 14px; color: #9aa1bb; margin-top: 2px; }

.cs-mini-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; counter-reset: none; }
.cs-mini-steps li { display: flex; gap: 14px; align-items: flex-start; }
.cs-mini-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; font: 800 15px/1 var(--font-display); background: linear-gradient(135deg, #6366f1, #a855f7); }

.cs-direct { margin-top: 36px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); }
.cs-direct > span { font-size: 14px; color: #9aa1bb; }
.cs-direct-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cs .cs-direct-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: background .15s ease, border-color .15s ease; min-width: 0; }
.cs-direct-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; color: #c7d2fe; background: rgba(99, 102, 241, .16); border: 1px solid rgba(129, 140, 248, .28); }
.cs-direct-text { display: grid; text-align: left; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.cs-direct-text small { font-size: 12px; font-weight: 500; color: #9aa1bb; }
.cs .cs-direct-link:hover { border-color: rgba(129, 140, 248, .45); }
.cs .cs-direct-link:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.cs-direct-ico svg { width: 19px; height: 19px; }
.cs .cs-footer-contact { display: inline-flex; align-items: center; gap: 10px; }
.cs-footer-contact svg { width: 17px; height: 17px; flex: none; opacity: .85; }

.cs-card { position: relative; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.cs-form-card { padding: 36px; }
.cs-form-head h2 { font-size: 24px; font-weight: 800; }
.cs-form-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.cs-form { display: grid; gap: 18px; margin-top: 26px; }
.cs-field { display: grid; gap: 7px; min-width: 0; }
.cs-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-field label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.cs-optional { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; }
.cs-field input, .cs-field select, .cs-field textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
    font: 400 15px/1.45 var(--font); color: var(--ink); background: var(--bg-soft);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; -webkit-appearance: none; appearance: none;
}
.cs-field textarea { resize: vertical; min-height: 110px; }
.cs-field select {
    padding-right: 40px; cursor: pointer;
    background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23697089' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat;
}
.cs-field input::placeholder, .cs-field textarea::placeholder { color: #a3a9bd; }
.cs-field input:hover, .cs-field select:hover, .cs-field textarea:hover { border-color: #d3d6e2; }
.cs-field input:focus, .cs-field select:focus, .cs-field textarea:focus { outline: none; background-color: #fff; border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.cs-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .03em; }
.cs-form-note { font-size: 13px; color: var(--muted); text-align: center; }
.cs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.cs-alert { margin-top: 20px; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.cs-alert-error { color: #9b1c1c; background: #fdeeee; border: 1px solid #f8cccc; }

.cs-success { text-align: center; padding: 28px 8px; }
.cs-success-ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin-bottom: 22px; color: #fff; background: linear-gradient(135deg, #34d399, var(--green)); box-shadow: 0 0 0 10px rgba(52, 211, 153, .14), 0 16px 30px -10px rgba(22, 163, 74, .55); animation: cs-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.cs-success-ico svg { width: 36px; height: 36px; }
@keyframes cs-pop { from { transform: scale(.4); opacity: 0; } }
.cs-success h2 { font-size: 26px; font-weight: 800; }
.cs-success p { margin: 10px auto 26px; max-width: 380px; color: var(--muted); }
.cs-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.cs-js .cs-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.cs-js .cs-reveal.is-in { opacity: 1; transform: none; }
.cs-steps .cs-reveal:nth-child(2), .cs-features .cs-reveal:nth-child(2), .cs-pricing .cs-reveal:nth-child(2) { transition-delay: .08s; }
.cs-steps .cs-reveal:nth-child(3), .cs-features .cs-reveal:nth-child(3), .cs-pricing .cs-reveal:nth-child(3) { transition-delay: .16s; }
.cs-features .cs-reveal:nth-child(4), .cs-pricing .cs-reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .cs-js .cs-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .cs-hero-inner { grid-template-columns: 1fr; gap: 64px; }
    .cs-hero-copy { text-align: center; }
    .cs-hero-sub { margin: 0 auto; }
    .cs-hero-cta, .cs-hero-checks { justify-content: center; }
    .cs-hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .cs-mock { transform: none; }
    .cs-features { grid-template-columns: repeat(2, 1fr); }
    .cs-faq-wrap { grid-template-columns: 1fr; gap: 32px; }
    .cs-section-head-left { text-align: center; margin: 0 auto; }
    .cs-split { grid-template-columns: 1fr; gap: 40px; }
    .cs-split-aside { text-align: center; }
    .cs-split-lead { margin: 0 auto; }
    .cs-benefits, .cs-mini-steps { max-width: 440px; margin-left: auto; margin-right: auto; text-align: left; }
    .cs-direct { max-width: 480px; margin-left: auto; margin-right: auto; }
    .cs-direct-links { justify-content: center; }
    .cs-footer-grid { grid-template-columns: 1fr 1fr; }
    .cs-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .cs-nav-toggle { display: inline-flex; }
    .cs-nav-menu {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px 16px 18px; background: rgba(11, 13, 28, .97); border-bottom: 1px solid var(--night-line);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .cs-nav.is-open .cs-nav-menu { opacity: 1; visibility: visible; transform: none; }
    .cs-nav-menu a:not(.cs-btn) { padding: 12px; font-size: 16px; }
    .cs-nav-menu .cs-btn { margin: 8px 0 0; padding: 12px; }
    .cs-steps { grid-template-columns: 1fr; }
    .cs-steps::before { display: none; }
    .cs-stat + .cs-stat { border-left: 0; }
    .cs-stats { grid-template-columns: 1fr 1fr; }
    .cs-stat { border-top: 1px solid var(--night-line); }
    .cs-stat:nth-child(-n+2) { border-top: 0; }
    .cs-stat:nth-child(even) { border-left: 1px solid var(--night-line); }
}

@media (max-width: 640px) {
    .cs-container { padding: 0 16px; }
    .cs-hero { padding: 116px 0 56px; }
    .cs-hero-sub { font-size: 16.5px; }
    .cs-hero-cta .cs-btn { width: 100%; }
    .cs-float-a { display: none; }
    .cs-float-b { right: 4px; top: -16px; }
    .cs-mock-body { padding: 12px; }
    .cs-mock-row { padding: 11px; gap: 10px; }
    .cs-mock-stats b { font-size: 17px; }
    .cs-stats { margin-top: 56px; }
    .cs-stat { padding: 18px; }
    .cs-stat b { font-size: 22px; }
    .cs-section { padding: 72px 0; }
    .cs-section-soft + .cs-cta-wrap { padding-top: 72px; }
    .cs-section-head { margin-bottom: 40px; }
    .cs-features { grid-template-columns: 1fr; }
    .cs-feature-wide { grid-column: auto; }
    .cs-cta { padding: 52px 20px; border-radius: 22px; }
    .cs-cta-actions .cs-btn { width: 100%; }
    .cs-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cs-footer-bottom { flex-direction: column; }
    .cs-page-main { padding: 108px 0 64px; }
    .cs-form-card { padding: 24px 18px; border-radius: 20px; }
    .cs-field-row { grid-template-columns: 1fr; }
}

/* ---------- Admin login (admin/login.php) ---------- */
.cs-login { background: var(--bg); }
.cs-login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.cs-login-art {
    position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    padding: 40px 56px;
    background: radial-gradient(900px 600px at 100% 0%, rgba(99, 102, 241, .38), transparent 60%),
                radial-gradient(700px 500px at 0% 100%, rgba(168, 85, 247, .26), transparent 60%), var(--night);
}
.cs-login-art > * { position: relative; }
.cs-login-art .cs-page-glow { position: absolute; }
.cs-login-art-copy { max-width: 520px; }
.cs-login-art h1 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 22px 0 0; }
.cs-login-art-foot { font-size: 13.5px; color: #7d84a1; }
.cs-login-main { display: grid; place-items: center; padding: 48px 24px; background: radial-gradient(600px 400px at 100% 0%, rgba(99, 102, 241, .07), transparent 70%), var(--bg); }
.cs-login-box { width: 100%; max-width: 400px; }
.cs-login-box .cs-form-head h2 { font-size: 28px; }
.cs-login-mobile-brand { display: none; margin-bottom: 32px; }
.cs .cs-login-mobile-brand, .cs .cs-login-mobile-brand:hover { color: var(--ink); }
.cs-password { position: relative; }
.cs-password input { padding-right: 48px; }
.cs-password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.cs-password-toggle:hover { color: var(--ink); background: var(--line-soft); }
.cs-password-toggle svg { width: 20px; height: 20px; }
.cs-password-toggle .cs-eye-closed, .cs-password-toggle[aria-pressed="true"] .cs-eye-open { display: none; }
.cs-password-toggle[aria-pressed="true"] .cs-eye-closed { display: block; }
.cs .cs-login-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.cs .cs-login-back:hover { color: var(--brand); }
.cs-login-back svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
    .cs-login-shell { grid-template-columns: 1fr; }
    .cs-login-art { display: none; }
    .cs-login-mobile-brand { display: inline-flex; }
    .cs-login-main { align-items: start; padding-top: 64px; }
}
