/* ========================================
   CringeSpeed Portal — Design System
   Brand: Purple #7F56D9, Inter font
   Mobile-first, conversion-optimized
   ======================================== */

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

:root {
    --brand: #7F56D9;
    --brand-dark: #6941C6;
    --brand-light: #9E77ED;
    --brand-bg: #F4F0FF;
    --text-primary: #101828;
    --text-secondary: #475467;
    --text-tertiary: #98A2B3;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-dark: #0C111D;
    --border: #E4E7EC;
    --border-light: #F2F4F7;
    --success: #12B76A;
    --success-light: #ECFDF3;
    --warning: #F79009;
    --error: #F04438;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --shadow-md: 0 4px 8px -2px rgba(16,24,40,.1), 0 2px 4px -2px rgba(16,24,40,.06);
    --shadow-lg: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03);
    --shadow-xl: 0 20px 24px -4px rgba(16,24,40,.08), 0 8px 8px -4px rgba(16,24,40,.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 150ms ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo .bolt { color: var(--brand); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: .875rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--brand);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: var(--transition); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s ease, opacity .3s ease;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(127,86,217,.3);
}
.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(127,86,217,.35);
}
.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-secondary); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* --- Hero --- */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--brand-bg) 0%, var(--bg-primary) 100%);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.hero h1 .highlight { color: var(--brand); }
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-stat .label {
    font-size: .8125rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
@media (max-width: 640px) {
    .hero-stats { gap: 24px; }
    .hero-stat .value { font-size: 1.25rem; }
}

/* --- Section --- */
.section {
    padding: 80px 0;
}
.section-dark { background: var(--bg-secondary); }
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.section-header .badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--brand-bg);
    color: var(--brand);
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--brand-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: .9375rem;
    line-height: 1.6;
}

/* --- Pricing --- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.pricing-toggle label {
    font-size: .9375rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.pricing-toggle label.active { color: var(--text-primary); font-weight: 600; }
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition);
}
.toggle-switch.active { background: var(--brand); }
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}
.toggle-switch.active::after { transform: translateX(20px); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card {
    position: relative;
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.popular {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
}
.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--brand);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
}
.pricing-card.best-value {
    border-color: var(--success);
    box-shadow: 0 0 0 1px var(--success), var(--shadow-lg);
}
.pricing-card.best-value::before {
    content: 'Best Value';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--success);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
}
.pricing-card .plan-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.pricing-card .price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
.pricing-card .price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.pricing-card .price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-tertiary);
}
.pricing-card .price-note {
    font-size: .8125rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}
.pricing-card .original-price {
    text-decoration: line-through;
    color: var(--text-tertiary);
    font-size: .9375rem;
    margin-left: 8px;
}
.pricing-card .discount-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--success-light);
    color: var(--success);
    font-size: .75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-left: 8px;
}
.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: .9375rem;
    color: var(--text-secondary);
}
.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Bulk Pricing Table --- */
.bulk-table {
    max-width: 600px;
    margin: 40px auto 0;
    border-collapse: collapse;
    width: 100%;
}
.bulk-table th, .bulk-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: .9375rem;
}
.bulk-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.bulk-table td { color: var(--text-primary); }
.bulk-table .price-cell { font-weight: 700; color: var(--brand); }

/* --- How It Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    counter-reset: step;
}
.step {
    text-align: center;
    position: relative;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-bg);
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.step p {
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- FAQ --- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
    transition: color var(--transition);
}
.faq-question:hover { color: var(--brand); }
.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform .3s ease;
    color: var(--text-tertiary);
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
    padding-bottom: 20px;
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    padding: 48px 0 24px;
    background: var(--bg-dark);
    color: #D0D5DD;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand .logo .bolt { color: var(--brand-light); }
.footer-brand p {
    font-size: .875rem;
    line-height: 1.7;
    color: #98A2B3;
    max-width: 320px;
}
.footer-col h4 {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #98A2B3;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
    color: #D0D5DD;
    font-size: .875rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #1D2939;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8125rem;
    color: #98A2B3;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom .payment-methods {
    display: flex;
    gap: 8px;
    align-items: center;
}
.footer-bottom .payment-methods span {
    padding: 4px 10px;
    background: #1D2939;
    border-radius: 4px;
    font-size: .75rem;
}

/* --- Auth Pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-secondary);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.auth-card .logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: .9375rem;
    margin-bottom: 32px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .9375rem;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(127,86,217,.15);
}
.form-group input::placeholder { color: var(--text-tertiary); }
.form-error {
    margin-top: 6px;
    font-size: .8125rem;
    color: var(--error);
    display: none;
}
.form-group.error input { border-color: var(--error); }
.form-group.error .form-error { display: block; }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: .875rem;
    color: var(--text-secondary);
}
.auth-footer a { font-weight: 500; }

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    margin-bottom: 20px;
    display: none;
}
.alert-error { background: #FEF3F2; color: var(--error); border: 1px solid #FECDCA; }
.alert-success { background: var(--success-light); color: #027A48; border: 1px solid #A6F4C5; }
.alert.show { display: block; }

/* --- Dashboard --- */
.dashboard-layout {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-secondary);
}
.dash-header {
    padding: 24px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}
.dash-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dash-header h1 { font-size: 1.5rem; font-weight: 700; }
.dash-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9375rem;
    color: var(--text-secondary);
}
.dash-content { padding: 32px 0; }

.dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.dash-card {
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.dash-card h3 {
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.dash-card .value {
    font-size: 2rem;
    font-weight: 700;
}

/* License cards */
.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.license-card {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.license-card .license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.license-key {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: .8125rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.license-key:hover { background: var(--brand-bg); color: var(--brand); }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
}
.status-active { background: var(--success-light); color: #027A48; }
.status-expired { background: #FEF3F2; color: var(--error); }
.license-info { font-size: .875rem; color: var(--text-secondary); }
.license-info span { display: block; margin-bottom: 4px; }

/* Orders table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.orders-table th, .orders-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: .875rem;
    border-bottom: 1px solid var(--border-light);
}
.orders-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.order-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
}
.order-completed { background: var(--success-light); color: #027A48; }
.order-pending { background: #FFF6ED; color: var(--warning); }
.order-failed { background: #FEF3F2; color: var(--error); }

/* --- Checkout --- */
.checkout-page {
    padding-top: 96px;
    min-height: 100vh;
    background: var(--bg-secondary);
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
}
.checkout-plans .plan-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 12px;
}
.plan-option:hover { border-color: var(--brand-light); }
.plan-option.selected { border-color: var(--brand); background: var(--brand-bg); }
.plan-option input[type="radio"] { display: none; }
.plan-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    position: relative;
}
.plan-option.selected .plan-radio {
    border-color: var(--brand);
}
.plan-option.selected .plan-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.plan-details { flex: 1; }
.plan-details .name { font-weight: 600; font-size: .9375rem; }
.plan-details .desc { font-size: .8125rem; color: var(--text-secondary); }
.plan-price { font-weight: 700; font-size: 1.125rem; white-space: nowrap; }

.checkout-summary {
    padding: 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 96px;
}
.checkout-summary h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: .9375rem;
}
.summary-row .label { color: var(--text-secondary); }
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 1.125rem;
    font-weight: 700;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}
.quantity-control label { font-size: .875rem; color: var(--text-secondary); }
.quantity-control input {
    width: 64px;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .9375rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll to top */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
