/* White Label Calculator - OMAX Dark Theme • Polished */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --accent: #65489d;
    --accent-light: #7c5fbb;
    --accent-dark: #523a7d;
    --accent-muted: rgba(101, 72, 157, 0.18);
    --accent-border: rgba(101, 72, 157, 0.4);
    --accent-glow: rgba(124, 95, 187, 0.25);
    --bg-primary: #0d0d10;
    --bg-secondary: #141418;
    --bg-card: #1a1a20;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.15);
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 0 1px rgba(101, 72, 157, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(101, 72, 157, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(101, 72, 157, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(101, 72, 157, 0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Container */
.container {
    max-width: 940px;
    margin: 0 auto;
    padding: 3rem 1.75rem 4rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.logo {
    height: 40px;
    width: auto;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform 0.3s var(--ease-spring), filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Sections */
.section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease-out-expo);
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }

.section:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(101, 72, 157, 0.2);
}

.section h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section h2::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 2px;
    transition: height 0.3s var(--ease-spring);
}

.section:hover h2::before {
    height: 1.4em;
}

.section-icon {
    display: flex;
    align-items: center;
    color: var(--accent-light);
    transition: transform 0.3s var(--ease-spring);
}

.section:hover .section-icon {
    transform: scale(1.08);
}

.section-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Setup & Basic */
#setupSection .section h2 {
    margin-bottom: 1.25rem;
}

.setup-promo-badge {
    margin-bottom: 1.5rem;
    padding: 0.25rem 0;
}

.promo-text {
    display: block;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.06) 100%);
    border-left: 4px solid #22c55e;
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4ade80;
    line-height: 1.5;
}

.section-setup-promo {
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12), var(--shadow-sm);
}

.section-setup-promo:hover {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), var(--shadow-md);
}

#setupSection .setup-info {
    flex-direction: row;
    align-items: stretch;
}

#setupSection .setup-info p {
    padding-right: 1.5rem;
}

.section-setup-promo .fixed-price.setup-price {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(101, 72, 157, 0.06) 100%);
}

.fixed-price.setup-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    min-width: 180px;
}

.fixed-price.setup-price .original-price {
    order: -1;
    margin-bottom: 0.1rem;
}

.original-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.fixed-price.setup-price .amount {
    font-size: 1.75rem;
}

.fixed-price.setup-price .label {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.setup-info,
.basic-subscription {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.setup-info p,
.basic-subscription .includes {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
    line-height: 1.6;
}

.fixed-price {
    background: linear-gradient(135deg, var(--accent-muted) 0%, rgba(101, 72, 157, 0.08) 100%);
    padding: 1.125rem 1.75rem;
    border-radius: var(--radius);
    text-align: right;
    white-space: nowrap;
    border: 1px solid var(--accent-border);
    transition: all 0.35s var(--ease-out-expo);
}

.fixed-price:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.fixed-price .amount {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: -0.02em;
}

.fixed-price .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    font-weight: 500;
    margin-top: 0.15rem;
}

/* Add-on cards */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 1.125rem;
}

.addon-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.addon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out-expo), opacity 0.25s ease;
}

.addon-card:hover {
    border-color: var(--accent-border);
    background: var(--bg-secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.addon-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.addon-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-muted);
    box-shadow: var(--shadow-glow), 0 0 24px var(--accent-glow);
}

.addon-card:has(input:checked)::before {
    opacity: 1;
    transform: scaleX(1);
}

.addon-card input {
    position: absolute;
    opacity: 0;
}

.addon-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.9rem;
    border-radius: 12px;
    background: var(--accent-muted);
    color: var(--accent-light);
    flex-shrink: 0;
    transition: all 0.35s var(--ease-spring);
}

.addon-icon svg {
    width: 22px;
    height: 22px;
}

.addon-card:hover .addon-icon {
    background: rgba(101, 72, 157, 0.25);
    transform: scale(1.05);
}

.addon-card:has(input:checked) .addon-icon {
    background: rgba(101, 72, 157, 0.35);
    color: var(--accent-light);
    transform: scale(1.05);
}

.checkmark {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    transition: all 0.3s var(--ease-spring);
}

.addon-card:hover .checkmark {
    border-color: var(--text-muted);
}

.addon-card input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.addon-card input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: 700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.addon-name {
    font-weight: 600;
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
    padding-right: 36px;
    color: var(--text-primary);
}

.addon-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    flex: 1;
    line-height: 1.5;
}

.addon-price {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--accent-light);
    transition: color 0.25s ease;
}

.addon-card:hover .addon-price {
    color: var(--accent-light);
}

.full-suite-note {
    margin-top: 1.5rem;
    padding: 1.125rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: border-color 0.25s ease;
}

.full-suite-note:hover {
    border-color: rgba(101, 72, 157, 0.25);
}

/* Wallet */
.wallet-section {
    margin-top: 0.5rem;
}

.wallet-explanation {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.wallet-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wallet-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.35s var(--ease-out-expo);
    flex: 1;
    min-width: 140px;
}

.wallet-tier:hover {
    border-color: rgba(101, 72, 157, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wallet-tier.highlight {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.wallet-tier.highlight:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.tier-amount {
    font-weight: 700;
    color: var(--accent-light);
}

.tier-bonus {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.wallet-tier.highlight .tier-bonus {
    color: var(--success);
}

.wallet-option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.wallet-option select {
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-option select:hover {
    border-color: var(--text-muted);
}

.wallet-option select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Summary */
.summary-section {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2.5rem;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: fadeInUp 0.6s var(--ease-out-expo) 0.3s both;
    transition: box-shadow 0.4s ease;
}

.summary-section:hover {
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.summary-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    text-transform: none;
    letter-spacing: 0;
}

.summary-section h2::before {
    display: none;
}

.summary-section .section-icon {
    color: var(--accent-light);
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    transition: background 0.2s ease;
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.summary-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.summary-row span:first-child {
    color: var(--text-secondary);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row.highlight {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    font-size: 1.08rem;
}

.summary-row.highlight span:first-child {
    color: var(--text-primary);
}

.summary-row.highlight span:last-child {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
}

.wallet-bonus-display {
    margin-top: 1.75rem;
    padding: 1.35rem;
    background: var(--success-muted);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius);
    animation: fadeIn 0.4s ease;
}

.wallet-bonus-display p {
    color: var(--success);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    margin-top: 2.5rem;
    text-align: center;
}

.cta-urgent {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s var(--ease-out-expo) 0.35s both;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}

.cta-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px var(--accent-glow);
}

.cta-btn svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    animation: fadeIn 0.6s ease 0.5s both;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 2rem 1.25rem 3rem;
    }

    .header {
        margin-bottom: 2.5rem;
    }

    .logo {
        height: 32px;
    }

    .section {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .addons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .setup-info,
    .basic-subscription {
        flex-direction: column;
        align-items: flex-start;
    }

    #setupSection .setup-info p {
        padding-right: 0;
    }

    .fixed-price.setup-price {
        min-width: 100%;
        align-items: flex-end;
    }

    .promo-text {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }

    .wallet-tiers {
        flex-direction: column;
    }

    .wallet-tier {
        min-width: 100%;
    }

    .summary-section {
        padding: 1.75rem 1.5rem;
        margin-top: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}
