/* =====================================================
   Design System
   ===================================================== */
:root {
    --accent:       #f7b509;
    --accent-dark:  #d4970a;
    --accent-light: #fef3d0;
    --dark:         #111111;
    --body-color:   #374151;
    --muted:        #6b7280;
    --border:       #e5e7eb;
    --bg:           #f9fafb;
    --white:        #ffffff;
    --success:      #10b981;
    --error:        #ef4444;
    --radius:       10px;
    --radius-lg:    16px;
    --shadow:       0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:    0 10px 40px rgba(0,0,0,.12);
    --transition:   .2s ease;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w:        1100px;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body-color);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.25;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(247,181,9,.4);
}
.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--white);
}
.btn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--dark); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* =====================================================
   Header / Nav
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.logo-icon {
    width: 34px;
    height: 34px;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav > a:not(.btn) {
    padding: 6px 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: color var(--transition);
}
.main-nav > a:not(.btn):hover { color: var(--dark); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--body-color);
}
.mobile-nav a:hover { background: var(--bg); }
.nav-open .mobile-nav { display: flex; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   Hero
   ===================================================== */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero h1 {
    max-width: 780px;
    margin: 0 auto 20px;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.hero-trust-item .icon { font-size: 18px; }

/* =====================================================
   Section Layout
   ===================================================== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .muted { color: rgba(255,255,255,.6); }

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 56px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* =====================================================
   Steps / How it works
   ===================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
}
.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14px; }

/* =====================================================
   Pricing
   ===================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    transition: all var(--transition);
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(247,181,9,.15);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.pricing-card h3 { margin-bottom: 6px; }
.pricing-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-vat { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-icon {
    width: 24px;
    height: 24px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

/* =====================================================
   CTA Banner
   ===================================================== */
.cta-banner {
    background: var(--dark);
    padding: 72px 0;
    text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.65); max-width: 480px; margin: 0 auto 36px; }

/* =====================================================
   Cards / Shared
   ===================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}
.card-sm { padding: 24px; }

/* =====================================================
   Forms
   ===================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247,181,9,.2);
}
.form-control.error { border-color: var(--error); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }

/* Radio cards */
.radio-group { display: flex; flex-direction: column; gap: 12px; }
.radio-card {
    position: relative;
    cursor: pointer;
}
.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.radio-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: all var(--transition);
    cursor: pointer;
}
.radio-card input:checked + .radio-card-inner {
    border-color: var(--accent);
    background: var(--accent-light);
}
.radio-dot {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.radio-card input:checked + .radio-card-inner .radio-dot {
    border-color: var(--accent);
    background: var(--accent);
}
.radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--dark);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition);
}
.radio-card input:checked + .radio-card-inner .radio-dot::after { opacity: 1; }
.radio-card-label { font-weight: 600; font-size: 14px; color: var(--dark); }
.radio-card-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.radio-card-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--success);
    color: white;
    white-space: nowrap;
    align-self: flex-start;
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: var(--accent-light); color: var(--dark); border: 1px solid var(--accent); }

/* =====================================================
   Auth Pages (login / register)
   ===================================================== */
.auth-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 40px 16px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.auth-footer a { color: var(--dark); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* =====================================================
   Checkout
   ===================================================== */
.checkout-page {
    background: var(--bg);
    min-height: calc(100vh - 68px);
    padding: 60px 0;
}
.checkout-header { text-align: center; margin-bottom: 48px; }
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 680px) {
    .checkout-page { padding: 28px 0; }
    .checkout-header { margin-bottom: 24px; }
    .checkout-grid { grid-template-columns: 1fr; gap: 16px; }
    /* On mobile: payment form first, package details below */
    .checkout-grid > [style*="order:0"] { order: 0; }
    .checkout-grid > [style*="order:1"] { order: 1; }
}
.package-select-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}
.package-select-card:hover { border-color: var(--accent); }
.package-select-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}
.package-select-card h3 { margin-bottom: 4px; }
.pkg-price { font-size: 2rem; font-weight: 800; color: var(--dark); }

/* =====================================================
   Dashboard / Generator
   ===================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    min-height: calc(100vh - 68px);
    align-items: start;
    padding: 32px 0 64px;
}
.sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 88px;
}
.sidebar-user { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.sidebar-avatar {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 10px;
    color: var(--dark);
}
.sidebar-name { font-weight: 600; font-size: 15px; }
.sidebar-email { font-size: 12px; color: var(--muted); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color);
    transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--bg);
    color: var(--dark);
}
.sidebar-nav a.active { font-weight: 600; }
.sidebar-access {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.access-badge.active { background: #ecfdf5; color: #065f46; }
.access-badge.expired { background: #fef2f2; color: #991b1b; }

/* Generator */
.generator-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.generator-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.generator-header h2 { font-size: 1.2rem; margin-bottom: 4px; }
.generator-header p { font-size: 14px; color: var(--muted); }
.generator-body { padding: 28px; }
.generator-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.generator-output {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--dark);
    min-height: 280px;
    white-space: pre-wrap;
    word-break: break-word;
    position: relative;
}
.output-placeholder {
    color: var(--muted);
    font-style: italic;
    font-size: 13px;
}
.generator-output-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.copy-feedback {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition);
}
.copy-feedback.show { opacity: 1; }
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    overflow-x: auto;
}
.step-ind-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 80px;
    position: relative;
}
.step-ind-item::before {
    content: '';
    position: absolute;
    top: 14px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step-ind-item:first-child::before { display: none; }
.step-ind-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
    position: relative;
}
.step-ind-item.done .step-ind-dot { background: var(--success); border-color: var(--success); color: white; }
.step-ind-item.active .step-ind-dot { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.step-ind-item.active::before,
.step-ind-item.done::before { background: var(--success); }
.step-ind-label { font-size: 11px; color: var(--muted); text-align: center; }
.step-ind-item.active .step-ind-label { color: var(--dark); font-weight: 600; }

/* =====================================================
   Success / Cancel pages
   ===================================================== */
.result-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 40px 16px;
}
.result-card {
    text-align: center;
    max-width: 520px;
    width: 100%;
}
.result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}
.result-icon.success { background: #ecfdf5; }
.result-icon.error   { background: #fef2f2; }
.result-card h1 { font-size: 1.8rem; margin-bottom: 12px; }
.result-card p  { color: var(--muted); margin-bottom: 28px; }

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .logo-mark { background: var(--accent); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: .3px; }
.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,.55);
    padding: 3px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.35);
}

/* =====================================================
   Tooltips
   ===================================================== */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tooltip-icon {
    width: 16px;
    height: 16px;
    background: var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    cursor: help;
    flex-shrink: 0;
    line-height: 1;
}
.tooltip-text {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    width: 260px;
    line-height: 1.5;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 14px;
    border: 5px solid transparent;
    border-top-color: var(--dark);
}
.tooltip-wrap:hover .tooltip-text { display: block; }

/* Output disclaimer badge */
.muster-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Print styles for guide.php */
@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    body { font-size: 12px; background: white; }
    .print-page { max-width: 100%; padding: 0; margin: 0; }
    a[href]::after { content: none; }
}

/* =====================================================
   Utilities
   ===================================================== */
.muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.fw-600 { font-weight: 600; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* =====================================================
   Responsive
   ===================================================== */

/* Prevent horizontal scroll on all screens */
html, body { overflow-x: hidden; max-width: 100%; }

/* iOS: prevent auto-zoom on input focus (needs font-size >= 16px) */
@media (max-width: 768px) {
    .form-control, select.form-control { font-size: 16px; }
}

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; top: auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 48px 0 60px; }
    .generator-row { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    /* Generator: make buttons stack on mobile */
    .generator-output-actions { flex-direction: column; align-items: stretch; }
    .generator-output-actions .btn,
    .generator-output-actions a.btn { width: 100%; justify-content: center; text-align: center; }
    .generator-output-actions .copy-feedback { text-align: center; width: 100%; }

    /* Dashboard sidebar collapses above content */
    .dashboard-layout { padding: 16px 0 48px; gap: 16px; }

    /* Generator card padding reduction */
    .generator-body { padding: 20px 16px; }
    .generator-header { padding: 16px 20px; }

    /* Checkout header */
    .checkout-header h1 { font-size: 1.5rem; }

    /* Touch-friendly: ensure all buttons are at least 44px tall */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .card { padding: 18px 14px; }
    .card-sm { padding: 16px 14px; }

    /* Checkout price display */
    .checkout-grid .card { padding: 20px 16px; }

    /* Payment icons smaller on mobile */
    .payment-icons img { height: 20px !important; }

    /* Auth card */
    .auth-card { padding: 24px 16px; }
    .auth-card .btn-lg { font-size: 15px; padding: 14px 20px; }

    /* Radio cards */
    .radio-card-inner { padding: 12px 14px; }

    /* Tooltip: show below on mobile to avoid overflow */
    .tooltip-text { left: auto; right: 0; }
    .tooltip-text::after { left: auto; right: 14px; }
}
