/* ── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #1a1a2e;
    background: #fff;
    scroll-behavior: smooth;
}

/* ── Blazor error UI ─────────────────────────────────────────────────────── */
#blazor-error-ui {
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    bottom: 0; left: 0; right: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    display: none;
    z-index: 9999;
    font-size: 0.875rem;
}
#blazor-error-ui .dismiss { float: right; cursor: pointer; font-weight: 700; }

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
    --primary:     #8B1A1A;
    --primary-dk:  #6b1313;
    --primary-lt:  #fdf5f5;
    --accent:      #D4AF37;
    --accent-lt:   #fdf8e8;
    --text:        #1a1a2e;
    --text-muted:  #64748b;
    --border:      #e8e0e0;
    --border-lt:   #f1ece9;
    --radius:      12px;
    --radius-sm:   8px;
    --shadow-xs:   0 1px 3px rgba(0,0,0,.07);
    --shadow-sm:   0 2px 10px rgba(139,26,26,.08);
    --shadow-md:   0 8px 28px rgba(139,26,26,.13);
    --shadow-lg:   0 16px 48px rgba(139,26,26,.18);
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.site-nav {
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--border-lt);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.site-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary) !important;
    letter-spacing: -.4px;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.site-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: .4rem .8rem !important;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.site-nav .nav-link:hover { background: var(--primary-lt); color: var(--primary) !important; }
.site-nav .btn-nav-cta {
    background: var(--primary);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: .85rem;
    padding: .45rem 1.2rem;
    transition: background .15s, transform .1s;
    border: none;
}
.site-nav .btn-nav-cta:hover { background: var(--primary-dk); transform: translateY(-1px); }

/* ── Section tag pill ────────────────────────────────────────────────────── */
.section-tag {
    display: inline-block;
    background: var(--primary-lt);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .3rem .9rem;
    border-radius: 50px;
    border: 1px solid rgba(139,26,26,.15);
    margin-bottom: .75rem;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8B1A1A 0%, #6b1313 40%, #3a0808 100%);
    color: #fff;
    padding: 5rem 0 4rem;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}
.hero-text {
    flex: 1;
    min-width: 0;
}
.hero-preview {
    flex-shrink: 0;
    width: 280px;
    position: relative;
    height: 260px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(212,175,55,.18);
    border: 1px solid rgba(212,175,55,.4);
    color: #f0d060;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .9rem;
    border-radius: 50px;
    letter-spacing: .04em;
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -.5px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1rem;
    opacity: .85;
    max-width: 480px;
    margin: 0 0 1.75rem;
    line-height: 1.7;
}
.hero-cta-row { margin-bottom: 1.5rem; }
.hero-cta-note {
    font-size: .76rem;
    opacity: .6;
    margin-top: .6rem;
}
.hero-cta {
    background: var(--accent);
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 2.4rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 24px rgba(212,175,55,.4);
    transition: transform .2s, box-shadow .2s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(212,175,55,.5); color: #1a1a1a !important; }
.hero .trust-badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.trust-badge {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50px;
    padding: .3rem .85rem;
    font-size: .75rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
    position: relative;
    z-index: 1;
}
.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stat-lbl { font-size: .72rem; opacity: .65; margin-top: .25rem; }

/* ── Hero mock template cards ────────────────────────────────────────────── */
.hero-mock-card {
    position: absolute;
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    overflow: hidden;
    font-size: .72rem;
}
.hero-mock-1 { top: 0; left: 0; z-index: 2; transform: rotate(-3deg); }
.hero-mock-2 { bottom: 0; right: 0; z-index: 3; transform: rotate(3deg); }
.hmc-header {
    background: #8B1A1A;
    padding: 10px 12px 8px;
}
.hmc-mantra { color: #f0d060; font-size: .65rem; text-align: center; letter-spacing: .05em; font-family: 'Cormorant Garamond', serif; }
.hmc-divider { height: 1px; background: rgba(240,208,96,.4); margin-top: 6px; }
.hmc-body { padding: 10px 12px; }
.hmc-row { display: flex; justify-content: space-between; padding: 2.5px 0; border-bottom: 1px solid #f0ebe9; }
.hmc-row:last-child { border-bottom: none; }
.hmc-label { color: #8B1A1A; font-weight: 600; font-size: .66rem; }
.hmc-val { color: #333; font-size: .66rem; }
.hmc-badge {
    background: #8B1A1A;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: .2rem .6rem;
    margin: 0 12px 10px;
    border-radius: 4px;
    display: inline-block;
}
.hmc-badge-gold { background: #B8860B; }
.hmc2-header {
    background: linear-gradient(135deg, #B8860B, #8b6508);
    padding: 12px;
    text-align: center;
}
.hmc2-name { color: #fff; font-weight: 700; font-size: .8rem; }
.hmc2-sub { color: rgba(255,255,255,.7); font-size: .6rem; margin-top: 2px; }
.hmc2-body { padding: 10px 12px; }

/* ── Template strip ──────────────────────────────────────────────────────── */
.template-strip {
    background: #1a0a0a;
    padding: .75rem 0;
    overflow: hidden;
}
.template-strip .container { display: flex; align-items: center; gap: 1.5rem; }
.ts-label {
    color: rgba(255,255,255,.45);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.ts-cards {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.ts-cards::-webkit-scrollbar { display: none; }
.ts-card {
    flex-shrink: 0;
    background: var(--tc, #8B1A1A);
    border-radius: 8px;
    padding: .45rem .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: .85;
    transition: opacity .15s, transform .15s;
    cursor: default;
}
.ts-card:hover { opacity: 1; transform: translateY(-2px); }
.ts-name { font-size: .72rem; color: #fff; font-weight: 600; white-space: nowrap; }
.ts-free {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 4px;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: .1rem .35rem;
}
.ts-lock {
    background: rgba(212,175,55,.25);
    border: 1px solid rgba(212,175,55,.5);
    border-radius: 4px;
    color: #f0d060;
    font-size: .6rem;
    font-weight: 700;
    padding: .1rem .35rem;
}
.ts-more { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6) !important; }
.ts-more .ts-name { color: rgba(255,255,255,.6); font-weight: 500; }

/* ── Create section ──────────────────────────────────────────────────────── */
.create-section { padding: 3rem 0 4rem; }
.create-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: .5rem;
}
.create-section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 2rem;
}

/* ── About section ───────────────────────────────────────────────────────── */
.about-section { background: #fafafa; border-top: 1px solid var(--border-lt); border-bottom: 1px solid var(--border-lt); }

/* ── Bottom CTA ──────────────────────────────────────────────────────────── */
.bottom-cta {
    background: linear-gradient(135deg, #8B1A1A, #3a0808);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}
.bottom-cta-badge {
    display: inline-block;
    background: rgba(212,175,55,.2);
    border: 1px solid rgba(212,175,55,.4);
    color: #f0d060;
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.bottom-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: .75rem;
}
.bottom-cta p {
    font-size: 1rem;
    opacity: .8;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* ── How it works steps ──────────────────────────────────────────────────── */
.steps-section {
    padding: 5rem 0;
    background: #fafafa;
    position: relative;
}
.steps-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.step-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-lt);
    box-shadow: var(--shadow-xs);
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon {
    width: 68px; height: 68px;
    background: var(--primary-lt);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: .75rem auto 1.25rem;
    font-size: 1.75rem;
}
.step-card h5 { font-weight: 700; margin-bottom: .5rem; color: var(--text); font-size: 1rem; }
.step-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Section headings ────────────────────────────────────────────────────── */
.section-heading {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text);
    letter-spacing: -.3px;
}
.section-sub { color: var(--text-muted); font-size: .975rem; margin-top: .5rem; }

/* duplicate removed — .create-section is defined in the hero block above */

/* ── Form cards ──────────────────────────────────────────────────────────── */
.form-card {
    border: 1px solid var(--border-lt);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: box-shadow .2s;
}
.form-card:focus-within { box-shadow: var(--shadow-sm); }
.form-card-header {
    background: linear-gradient(to right, var(--primary-lt), #fff);
    border-bottom: 1px solid var(--border-lt);
    padding: .8rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: .9rem;
    color: var(--primary);
}
.form-card-body { padding: 1.25rem; }

/* ── Global form controls ────────────────────────────────────────────────── */
.form-control, .form-select {
    border-radius: var(--radius-sm) !important;
    border-color: var(--border) !important;
    font-size: .9rem !important;
    padding: .5rem .85rem !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139,26,26,.1) !important;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { border-radius: var(--radius-sm) !important; font-weight: 600 !important; transition: all .15s !important; }
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-primary:hover {
    background: var(--primary-dk) !important;
    border-color: var(--primary-dk) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139,26,26,.25) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.btn-outline-secondary { border-radius: var(--radius-sm) !important; }

/* ── Photo upload ────────────────────────────────────────────────────────── */
.photo-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    background: #fafafa;
}
.photo-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-lt);
    transform: translateY(-2px);
}
.photo-upload-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.photo-upload-title { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: .25rem; }
.photo-upload-sub { font-size: .8rem; color: var(--text-muted); }
.photo-preview-img {
    width: 130px; height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin: .75rem auto;
    display: block;
    box-shadow: var(--shadow-sm);
}
.photo-preview-img.square { border-radius: var(--radius); }

/* ── Crop modal ──────────────────────────────────────────────────────────── */
.crop-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1050;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.crop-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    width: min(92vw, 540px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.crop-container { max-height: 380px; overflow: hidden; border-radius: var(--radius-sm); }
.crop-container img { max-width: 100%; display: block; }

/* ── Feature cards (About section) ──────────────────────────────────────── */
.feature-card {
    background: #fff;
    border: 1px solid var(--border-lt);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-xs);
    height: 100%;
    transition: box-shadow .22s, transform .22s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    width: 60px; height: 60px;
    background: var(--primary-lt);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.feature-card h5 { font-weight: 700; color: var(--primary); margin-bottom: .5rem; font-size: 1rem; }
.feature-card p  { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Help steps ──────────────────────────────────────────────────────────── */
.help-section { background: #fafafa; padding: 4.5rem 0; }
.help-step {
    display: flex; gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-lt);
    box-shadow: var(--shadow-xs);
    transition: box-shadow .2s;
}
.help-step:hover { box-shadow: var(--shadow-sm); }
.help-step-num {
    width: 44px; height: 44px; min-width: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(139,26,26,.25);
}
.help-step-body h6 { font-weight: 700; margin-bottom: .25rem; font-size: .95rem; }
.help-step-body p  { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: #0f0505;
    color: rgba(255,255,255,.65);
    padding: 3rem 0;
    text-align: center;
    font-size: .875rem;
}
.site-footer .brand { color: #fff; font-weight: 800; font-size: 1.15rem; }
.site-footer .footer-links { display: flex; gap: 1.5rem; justify-content: center; margin: .75rem 0; flex-wrap: wrap; }
.site-footer .footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .8rem; transition: color .15s; }
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .made-in { margin-top: .5rem; opacity: .45; font-size: .78rem; }

/* ── Preview shell ───────────────────────────────────────────────────────── */
.preview-shell {
    display: flex;
    min-height: calc(100vh - 60px);
    gap: 0;
}
.preview-sidebar {
    width: 260px;
    min-width: 260px;
    background: #fff;
    border-right: 1px solid var(--border-lt);
    padding: 1.25rem 1rem;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.preview-canvas {
    flex: 1;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f5f0f0 0%, #efe8e8 100%);
    display: flex;
    justify-content: center;
    overflow-y: auto;
}
.sidebar-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: .6rem;
    margin-top: .25rem;
}
.template-thumb {
    border: 1.5px solid var(--border-lt);
    border-radius: var(--radius-sm);
    padding: .55rem .9rem;
    margin-bottom: .4rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
    font-weight: 500;
    transition: border-color .15s, background .15s, transform .1s;
    background: #fff;
}
.template-thumb:hover { border-color: var(--primary); background: var(--primary-lt); transform: translateX(2px); }
.template-thumb.active {
    border-color: var(--primary);
    background: var(--primary-lt);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}
.thumb-check { color: var(--primary); font-weight: 800; font-size: .9rem; }

/* ── Download buttons ────────────────────────────────────────────────────── */
.btn-download-pdf {
    background: linear-gradient(135deg, var(--primary), var(--primary-dk)) !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: .95rem !important;
    padding: .7rem 1rem !important;
    box-shadow: 0 4px 16px rgba(139,26,26,.3) !important;
    transition: transform .15s, box-shadow .15s !important;
}
.btn-download-pdf:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(139,26,26,.4) !important;
}

/* ── A4 canvas ───────────────────────────────────────────────────────────── */
.a4-page {
    width: 794px;
    min-height: 1123px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 8px 48px rgba(0,0,0,.22);
    border-radius: 2px;
}

/* ── Premium preview lock overlay ────────────────────────────────────────── */
.premium-preview-container {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.premium-preview-blur {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 58%;
    background: linear-gradient(to bottom, transparent 0%, rgba(248,242,242,.6) 20%, rgba(248,242,242,.97) 65%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    z-index: 10;
}
.premium-lock-badge {
    background: #fff;
    border: 1.5px solid var(--accent);
    border-radius: 50px;
    padding: .5rem 1.25rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.premium-unlock-btn {
    background: linear-gradient(135deg, var(--accent), #b8941e);
    color: #1a1a1a !important;
    border: none !important;
    font-weight: 700 !important;
    padding: .6rem 1.6rem !important;
    border-radius: 50px !important;
    font-size: .9rem !important;
    box-shadow: 0 4px 16px rgba(212,175,55,.4) !important;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s !important;
}
.premium-unlock-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(212,175,55,.5) !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .preview-shell  { flex-direction: column; }
    .preview-sidebar { width: 100%; height: auto; position: relative; top: 0; border-right: none; border-bottom: 1px solid var(--border-lt); }
    .preview-canvas  { padding: 1rem .75rem; }
    .a4-page { width: 100%; min-height: unset; }
    .hero-stats { gap: 1rem; flex-wrap: wrap; }
    .hero-stat-num { font-size: 1.3rem; }
    .hero-inner { flex-direction: column; }
    .hero-preview { display: none; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: .95rem; }
    .template-strip .container { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ── Sidebar divider ─────────────────────────────────────────────────────── */
.sidebar-divider {
    height: 1px;
    background: var(--border-lt);
    margin: .5rem 0;
}

/* ── Alignment buttons ───────────────────────────────────────────────────── */
.align-btn-group {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
   /* overflow: hidden;*/
}
.align-btn {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    padding: .35rem !important;
    font-size: .85rem !important;
    background: #fff;
    color: var(--text-muted);
    transition: background .15s, color .15s !important;
}
.align-btn.active, .align-btn:hover {
    background: var(--primary-lt) !important;
    color: var(--primary) !important;
}
.align-btn + .align-btn { border-left: 1px solid var(--border) !important; }
