/* ============================================================
   VCF.cards - Design System
   Clean, modern SaaS aesthetic
   ============================================================ */

:root {
    --c-primary: #4f46e5;
    --c-primary-dark: #4338ca;
    --c-primary-light: #eef2ff;
    --c-accent: #7c3aed;
    --c-accent-2: #db2777;
    --c-ink: #0f172a;
    --c-ink-soft: #334155;
    --c-muted: #64748b;
    --c-border: #e2e8f0;
    --c-bg: #ffffff;
    --c-bg-soft: #f8fafc;
    --c-success: #059669;
    --c-success-bg: #ecfdf5;
    --c-danger: #dc2626;
    --c-danger-bg: #fef2f2;
    --c-warning: #d97706;
    --c-warning-bg: #fffbeb;
    --c-info: #2563eb;
    --c-info-bg: #eff6ff;

    --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #db2777 130%);
    --grad-soft: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 8px 30px rgba(79, 70, 229, 0.25);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1200px;
    --nav-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; color: var(--c-ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow-glow); }

.btn-gradient {
    background: var(--grad-primary);
    background-size: 160% 160%;
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-gradient:hover { color: #fff; box-shadow: var(--shadow-glow); background-position: 100% 50%; }

.btn-secondary {
    background: #fff;
    color: var(--c-ink);
    border-color: var(--c-border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: #cbd5e1; background: var(--c-bg-soft); color: var(--c-ink); }

.btn-ghost {
    background: transparent;
    color: var(--c-ink-soft);
}
.btn-ghost:hover { background: var(--c-bg-soft); color: var(--c-ink); }

.btn-danger {
    background: var(--c-danger);
    color: #fff;
}
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-outline-danger {
    background: #fff;
    color: var(--c-danger);
    border-color: #fecaca;
}
.btn-outline-danger:hover { background: var(--c-danger-bg); border-color: var(--c-danger); color: var(--c-danger); }

.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

@media (max-width: 640px) {
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

label.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 6px;
}

.form-hint {
    font-size: 13px;
    color: var(--c-muted);
    margin-top: 4px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="tel"], input[type="number"], select, textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--c-ink);
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
}
textarea { resize: vertical; min-height: 120px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

input.slug-ok { border-color: #10b981 !important; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important; }
input.slug-bad { border-color: #ef4444 !important; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important; }
input.slug-invalid { border-color: #f59e0b !important; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12) !important; }

input[readonly] { background: var(--c-bg-soft); color: var(--c-muted); }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--c-ink-soft);
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--c-primary); }

/* ---------- Alerts / Flash ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid transparent;
    animation: alertIn .3s ease;
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--c-success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--c-danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--c-warning-bg); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--c-info-bg); color: #1e40af; border-color: #bfdbfe; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
}
.badge-primary { background: var(--c-primary-light); color: var(--c-primary-dark); }
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-neutral { background: var(--c-bg-soft); color: var(--c-muted); border: 1px solid var(--c-border); }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 24px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-ink);
}
.navbar-brand:hover { color: var(--c-ink); }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.brand-mark .accent-dot { color: #fbbf24; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--c-ink-soft);
    font-size: 14.5px;
    font-weight: 500;
}
.nav-links a:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.nav-links a.active { color: var(--c-primary); font-weight: 600; }

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

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--c-ink);
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--c-border);
        padding: 12px 24px 20px;
        gap: 2px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 8px; font-size: 16px; }
    .nav-cta-mobile { display: flex !important; flex-direction: column; gap: 8px; margin-top: 8px; }
}
@media (max-width: 640px) {
    .nav-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 96px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.12), transparent),
        var(--grad-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-ink-soft);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }

.hero h1 {
    font-size: clamp(38px, 5.2vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
.hero h1 .gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-sub {
    font-size: 19px;
    color: var(--c-muted);
    max-width: 540px;
    margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 32px; font-size: 13.5px; color: var(--c-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff;
    margin-right: -8px;
}

/* Phone mockup */
.phone-mock {
    position: relative;
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 40px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
}
.phone-screen {
    border-radius: 28px;
    overflow: hidden;
    background: var(--grad-primary);
    position: relative;
    aspect-ratio: 9 / 17.5;
}
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #111827;
    border-radius: 20px;
    z-index: 3;
}
.mock-card {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.mock-avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #c4b5fd, #f9a8d4);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: #4c1d95;
}
.mock-name { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.mock-title { font-size: 12.5px; color: var(--c-muted); margin-bottom: 14px; }
.mock-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--c-ink-soft);
    text-align: left;
}
.mock-row .icon {
    width: 26px; height: 26px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-primary-light); color: var(--c-primary);
    flex-shrink: 0;
}
.mock-save {
    margin-top: 14px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    font-weight: 700;
    font-size: 13.5px;
}
.mock-qr {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px; height: 96px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; margin-bottom: 14px; }
.section-header p { font-size: 17.5px; color: var(--c-muted); }
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 12px;
}

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.step-num {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { color: var(--c-muted); font-size: 15px; }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { padding: 28px; }
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature-icon i1 { color: var(--c-primary); }
.fi-primary { background: var(--c-primary-light); }
.fi-violet { background: #f5f3ff; }
.fi-pink { background: #fdf2f8; }
.fi-amber { background: #fffbeb; }
.fi-green { background: #ecfdf5; }
.fi-cyan { background: #ecfeff; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--c-muted); }

/* ---------- Pricing ---------- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-muted);
}
.pricing-toggle .active { color: var(--c-ink); }
.switch {
    position: relative;
    width: 56px; height: 30px;
    background: var(--c-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background .2s;
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 24px; height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.switch.yearly::after { transform: translateX(26px); }
.save-pill {
    background: var(--c-success-bg);
    color: var(--c-success);
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.popular {
    border: 2px solid var(--c-primary);
    box-shadow: var(--shadow-glow);
}
.popular-flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.price-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.price-desc { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; min-height: 42px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.price-amount .period { font-size: 15px; color: var(--c-muted); font-weight: 500; }
.price-note { font-size: 13px; color: var(--c-muted); margin-bottom: 24px; }
.price-features { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 14.5px;
    color: var(--c-ink-soft);
}
.price-features .check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--c-success-bg);
    color: var(--c-success);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card { padding: 28px; }
.testimonial-quote { font-size: 15px; color: var(--c-ink-soft); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
}
.testimonial-author .name { font-size: 14.5px; font-weight: 700; }
.testimonial-author .role { font-size: 13px; color: var(--c-muted); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--c-ink);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(124, 58, 237, .35), transparent 60%);
    pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.cta-band p { color: #94a3b8; font-size: 17px; max-width: 480px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-border);
    padding: 64px 0 32px;
    margin-top: 88px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--c-muted); font-size: 14.5px; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--c-muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--c-primary); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--c-border);
    padding-top: 24px;
    font-size: 13.5px;
    color: var(--c-muted);
}
@media (max-width: 640px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* ---------- Auth pages ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124, 58, 237, 0.1), transparent),
        var(--grad-soft);
}
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
}
.auth-card h1 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-sub { color: var(--c-muted); font-size: 15px; margin-bottom: 28px; }
.auth-footer-text { text-align: center; margin-top: 24px; font-size: 14.5px; color: var(--c-muted); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 28px; }

/* ---------- Dashboard layout ---------- */
.dash-wrap { display: flex; min-height: 100vh; background: var(--c-bg-soft); }

.dash-sidebar {
    width: 264px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.dash-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--c-border);
    font-weight: 800;
    font-size: 17px;
    color: var(--c-ink);
}
.dash-nav { padding: 16px 12px; flex: 1; }
.dash-nav-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    padding: 14px 12px 6px;
}
.dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--c-ink-soft);
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 2px;
}
.dash-nav a:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.dash-nav a.active { background: var(--c-primary-light); color: var(--c-primary); font-weight: 600; }
.dash-nav a svg { flex-shrink: 0; }
.dash-nav-badge {
    margin-left: auto;
    background: var(--c-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 2px 8px;
}

.dash-userbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--c-border);
}
.dash-userbox .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover;
    background: var(--grad-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}
.dash-userbox .info { flex: 1; min-width: 0; }
.dash-userbox .name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-userbox .email { font-size: 12px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-userbox .logout-form { margin: 0; }
.dash-userbox .logout-btn { color: var(--c-muted); padding: 6px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font: inherit; }
.dash-userbox .logout-btn:hover { color: var(--c-danger); background: var(--c-danger-bg); }

.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.dash-topbar h1 { font-size: 20px; margin: 0; letter-spacing: -0.02em; }
.dash-content { padding: 32px; width: 100%; }

.dash-sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--c-ink);
}

@media (max-width: 960px) {
    .dash-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--shadow-lg);
    }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-sidebar-toggle { display: inline-flex; }
    .dash-topbar { padding: 14px 20px; }
    .dash-content { padding: 20px; }
}
@media (max-width: 640px) {
    .dash-topbar .btn-sm { display: none; }
    .dash-topbar h1 { font-size: 16px; }
}

/* ---------- Dashboard widgets ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-card .stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-card .stat-label { font-size: 13.5px; color: var(--c-muted); }

.progress-track { height: 8px; background: var(--c-border); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad-primary); border-radius: var(--radius-full); transition: width .4s ease; }

.dash-grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
@media (max-width: 960px) { .dash-grid-2 { grid-template-columns: 1fr; } }

/* Chart bars */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart-bar {
    flex: 1;
    background: var(--c-primary-light);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    position: relative;
    transition: background .2s;
    cursor: pointer;
}
.chart-bar:hover { background: var(--c-primary); }
.chart-bar .tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-ink);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.chart-bar:hover .tooltip { opacity: 1; }

/* Table */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    border-bottom: 1px solid var(--c-border);
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-ink-soft); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--c-bg-soft); }

/* ---------- Profile editor ---------- */
.editor-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .editor-grid { grid-template-columns: 1fr; } }

.editor-section { margin-bottom: 28px; }
.editor-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.photo-uploader { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo-preview {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800;
    color: #c4b5fd;
    overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.live-preview-sticky { position: sticky; top: 90px; }

/* Mini profile preview (sidebar) */
.mini-profile {
    background: var(--grad-primary);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.mini-profile .mp-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 14px;
    object-fit: cover;
    background: rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 800; color: #fff;
    border: 3px solid rgba(255,255,255,.5);
    overflow: hidden;
}
.mini-profile .mp-name { font-size: 19px; font-weight: 800; margin-bottom: 2px; }
.mini-profile .mp-title { font-size: 13.5px; opacity: .85; margin-bottom: 4px; }
.mini-profile .mp-company { font-size: 13.5px; opacity: .85; margin-bottom: 16px; }
.mini-profile .mp-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 8px;
    font-size: 12.5px;
    text-align: left;
    backdrop-filter: blur(4px);
}
.mini-profile .mp-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile .mp-cta {
    display: block;
    background: #fff;
    color: var(--c-primary);
    border-radius: 12px;
    padding: 11px;
    font-weight: 700;
    font-size: 13.5px;
    margin-top: 14px;
}

/* ---------- QR page ---------- */
.qr-layout { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .qr-layout { grid-template-columns: 1fr; } }
.qr-frame {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-md);
}
.qr-frame img { border-radius: 12px; }
.qr-frame .qr-url {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--c-muted);
    font-weight: 600;
    word-break: break-all;
}

.copy-link-row { display: flex; gap: 10px; }
.copy-link-row input { flex: 1; font-size: 14px; }

/* ---------- Public profile page ---------- */
.pp-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 40% at 50% -5%, rgba(124, 58, 237, 0.14), transparent),
        var(--grad-soft);
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
}
.pp-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
}
.pp-header {
    background: var(--grad-primary);
    padding: 36px 24px 56px;
    text-align: center;
    color: #fff;
    position: relative;
}
.pp-avatar {
    width: 104px; height: 104px;
    border-radius: 50%;
    margin: 0 auto 14px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800; color: #fff;
    overflow: hidden;
}
.pp-header h1 { color: #fff; font-size: 24px; margin-bottom: 2px; letter-spacing: -0.02em; }
.pp-header .pp-title { font-size: 15px; opacity: .9; }
.pp-header .pp-company { font-size: 14px; opacity: .8; margin-top: 4px; }
.pp-body { padding: 24px; margin-top: -32px; }
.pp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pp-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 16px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-ink-soft);
    font-size: 13px;
    font-weight: 600;
    transition: all .15s ease;
    box-shadow: var(--shadow-sm);
}
.pp-action:hover { border-color: var(--c-primary); color: var(--c-primary); box-shadow: var(--shadow-md); }
.pp-action .icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-primary-light);
    color: var(--c-primary);
}
.pp-save-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: background .15s ease;
    margin-bottom: 20px;
}
.pp-save-btn:hover { background: var(--c-primary-dark); }
.pp-details { display: flex; flex-direction: column; gap: 8px; }
.pp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    color: var(--c-ink-soft);
    font-size: 14.5px;
}
.pp-row:hover { border-color: #cbd5e1; color: var(--c-ink); }
.pp-row .icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--c-bg-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--c-primary);
}
.pp-row .val { overflow: hidden; text-overflow: ellipsis; }
.pp-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--c-muted);
}
.pp-footer a { font-weight: 600; }

/* ---------- Profile themes ---------- */
.pp-page.theme-midnight {
    background:
        radial-gradient(ellipse 70% 40% at 50% -5%, rgba(51, 65, 85, 0.5), transparent),
        #020617;
}
.pp-page.theme-midnight .pp-card { background: #0f172a; border-color: #1e293b; }
.pp-page.theme-midnight .pp-header { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.pp-page.theme-midnight .pp-avatar { background: #334155; border-color: rgba(255,255,255,.2); }
.pp-page.theme-midnight .pp-action { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.pp-page.theme-midnight .pp-action:hover { border-color: #60a5fa; color: #60a5fa; }
.pp-page.theme-midnight .pp-action .icon { background: #334155; color: #93c5fd; }
.pp-page.theme-midnight .pp-row { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.pp-page.theme-midnight .pp-row:hover { border-color: #475569; color: #fff; }
.pp-page.theme-midnight .pp-row .icon { background: #334155; color: #93c5fd; }
.pp-page.theme-midnight .pp-footer { color: #64748b; }

.pp-page.theme-ocean .pp-header { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); }
.pp-page.theme-forest .pp-header { background: linear-gradient(135deg, #059669 0%, #0d9488 100%); }
.pp-page.theme-sunset .pp-header { background: linear-gradient(135deg, #f97316 0%, #db2777 100%); }
.pp-page.theme-ocean .pp-save-btn { background: #2563eb; box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .5); }
.pp-page.theme-forest .pp-save-btn { background: #059669; box-shadow: 0 10px 30px -10px rgba(5, 150, 105, .5); }
.pp-page.theme-sunset .pp-save-btn { background: #db2777; box-shadow: 0 10px 30px -10px rgba(219, 39, 119, .5); }
.pp-page.theme-ocean .pp-action .icon { background: #e0f2fe; color: #0284c7; }
.pp-page.theme-forest .pp-action .icon { background: #d1fae5; color: #047857; }
.pp-page.theme-sunset .pp-action .icon { background: #ffe4e6; color: #be123c; }

/* Custom action buttons */
.pp-custom-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }.pp-custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-ink);
    font-size: 14.5px;
    font-weight: 600;
    transition: all .15s ease;
}
.pp-custom-btn:hover { border-color: var(--c-primary); color: var(--c-primary); box-shadow: var(--shadow-md); }
.pp-page.theme-midnight .pp-custom-btn { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.pp-page.theme-midnight .pp-custom-btn:hover { border-color: #60a5fa; color: #60a5fa; }

/* Theme picker (profile editor) */
.theme-option {
    position: relative;
    border-radius: 16px;
    padding: 4px;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.theme-option .theme-swatch {
    position: relative;
    transition: transform .15s ease;
}
.theme-option:hover .theme-swatch { transform: scale(1.04); }
.theme-option.selected {
    box-shadow: 0 0 0 3px var(--c-primary);
    background: var(--c-primary-light);
}
.theme-option.selected .theme-swatch { border-color: var(--c-primary) !important; }
.theme-option.selected .theme-swatch::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .35);
}
.theme-option.selected .theme-name { color: var(--c-primary); }

/* ---------- Misc ---------- */
.text-muted { color: var(--c-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Language switcher */
.lang-switcher { display: inline-flex; align-items: center; gap: 2px; }
.lang-link {
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-muted);
    border-radius: 6px;
}
.lang-link:hover { color: var(--c-ink); background: var(--c-bg-soft); }
.lang-link.active { color: var(--c-primary); background: var(--c-primary-light); }

/* Error pages */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}
.error-code {
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* Responsive helpers */
@media (max-width: 640px) {
    .hero { padding: 56px 0 48px; }
    .section { padding: 56px 0; }
    .pricing-grid { max-width: 100%; }
    .btn-lg { width: 100%; }
    .hero-ctas .btn { width: 100%; }
}
