:root {
    --bg-dark: #1a1a1a;
    --bg-surface: rgba(255,255,255,0.03);
    --bg-surface-hover: rgba(255,255,255,0.06);
    --border-subtle: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --text-light: #f5f5f5;
    --text-muted: #999;
    --accent-yellow: #e8b830;
    --accent-gold: #e8c864;
    --entry-purple: #b8b4d4;
    --basic-pink: #e8b4b8;
    --standard-coral: #d4a574;
    --premium-gold: #e8c864;
    --addons-cream: #f5f0e1;
    --radius-card: 16px;
    --radius-btn: 12px;
    --shadow-bloom: 0 8px 32px rgba(232, 184, 48, 0.08);
    --transition-hover: 0.25s ease;
    --transition-reveal: 0.5s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

body {
    font-family: 'Libre Baskerville', 'Big Caslon', 'Book Antiqua', Palatino, serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
}

/* === TIER BUTTONS & GRID === */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tier-btn {
    padding: 15px 10px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: center;
    opacity: 0.7;
    position: relative;
}

.tier-btn:hover {
    opacity: 0.9;
}

.tier-btn.selected {
    opacity: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tier-btn.entry { background: var(--entry-purple); color: #333; }
.tier-btn.basic { background: var(--basic-pink); color: #333; }
.tier-btn.standard { background: var(--standard-coral); color: #333; }
.tier-btn.premium { background: var(--premium-gold); color: #333; }

.tier-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.tier-name {
    font-weight: 700;
    display: block;
    text-align: center;
}

.tier-info-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.15);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tier-info-btn:hover {
    background: rgba(0,0,0,0.25);
}

.tier-price {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.tier-qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tier-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.3);
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tier-qty-btn:hover {
    background: rgba(255,255,255,0.5);
}

.tier-qty-display {
    min-width: 24px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

/* === ADDONS === */
.addons-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 10px;
}

.addons-title {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 12px;
}

.addon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(245,240,225,0.3);
    background: transparent;
    color: var(--addons-cream);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.8rem;
}

.addon-item.selected {
    background: rgba(245,240,225,0.15);
    border-color: var(--addons-cream);
}

.addon-item.tbd {
    cursor: pointer;
    transition: all 0.2s ease;
}

.addon-item.tbd:hover {
    background: rgba(245,240,225,0.1);
}

.addon-item.tbd.selected {
    background: rgba(245,240,225,0.15);
}

.addon-name {
    white-space: nowrap;
}

.addon-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.addon-qty-btn {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(245,240,225,0.3);
    background: transparent;
    color: var(--addons-cream);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-qty-btn:hover {
    background: rgba(245,240,225,0.1);
}

.addon-qty-display {
    min-width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* === CAMPAIGNS === */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.campaigns-category {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 15px;
}

.campaigns-category h4 {
    font-size: 0.95rem;
    color: var(--accent-yellow);
    margin-bottom: 12px;
    font-weight: 400;
}

.campaign-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.campaign-item:last-child {
    border-bottom: none;
}

.campaign-item-name {
    font-size: 0.85rem;
    color: #ccc;
}

.campaign-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.campaign-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-qty-btn:hover {
    background: rgba(255,255,255,0.1);
}

.campaign-qty {
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* === SCHOOL PRODUCTIONS === */
.productions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.productions-column {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 15px;
}

.productions-column h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.productions-column h4.recording { color: var(--entry-purple); }
.productions-column h4.highlights { color: var(--basic-pink); }
.productions-column h4.documentary { color: var(--standard-coral); }
.productions-column h4.fullpackage { color: var(--premium-gold); }

.production-option {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.production-option.selected {
    border-color: currentColor;
    background: rgba(255,255,255,0.08);
}

.production-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.production-option-header:hover {
    opacity: 0.8;
}

.production-option-name {
    font-weight: 700;
    display: block;
}

.production-option-price {
    font-size: 0.8rem;
    color: #999;
}

/* === SUMMARY ITEMS (inside sidebar) === */
.summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.summary-item-tier {
    font-size: 0.8rem;
    color: #888;
}

.summary-item-events {
    font-size: 0.75rem;
    color: var(--accent-yellow);
    margin-top: 4px;
}

.summary-item-addons {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

.summary-item-price {
    font-size: 1rem;
    color: var(--accent-yellow);
}

.summary-item-price.tbd {
    color: #888;
}

.summary-item-remove {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0 0 10px;
    transition: color 0.2s ease;
}

.summary-item-remove:hover {
    color: #ff6b6b;
}

.summary-empty {
    color: #666;
    text-align: center;
    padding: 40px 0;
}

/* === SPORTS BUILDER === */
.sports-builder {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sports-activate {
    padding: 20px;
    background: rgba(232, 184, 48, 0.08);
    border: 1px solid rgba(232, 184, 48, 0.2);
    border-radius: 12px;
}

.sports-activate-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.sports-activate-label input {
    display: none;
}

.sports-activate-check {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(232, 184, 48, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sports-activate-check:after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-yellow);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sports-activate-label input:checked + .sports-activate-check {
    border-color: var(--accent-yellow);
}

.sports-activate-label input:checked + .sports-activate-check:after {
    opacity: 1;
}

.sports-activate-text {
    font-size: 1.1rem;
    color: var(--text-light);
    flex: 1;
}

.sports-activate-price {
    font-size: 0.9rem;
    color: #888;
}

.sports-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sports-included-badge {
    font-size: 0.75rem;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.sports-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.sports-item-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sports-item-name {
    font-size: 1rem;
    color: var(--text-light);
}

.sports-item-desc {
    font-size: 0.8rem;
    color: #888;
}

.sports-item-value {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sports-fixed-price {
    font-size: 1rem;
    color: var(--accent-yellow);
    min-width: 60px;
    text-align: right;
}

.sports-calc-price {
    font-size: 1rem;
    color: var(--accent-yellow);
    min-width: 60px;
    text-align: right;
}

.sports-slider-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.sports-slider {
    width: 150px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
}

.sports-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
}

.sports-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.sports-slider-value {
    font-size: 0.85rem;
    color: #ccc;
}

.sports-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.sports-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sports-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 26px;
    transition: 0.3s;
}

.sports-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #888;
    border-radius: 50%;
    transition: 0.3s;
}

.sports-toggle input:checked + .sports-toggle-slider {
    background: rgba(232, 184, 48, 0.3);
}

.sports-toggle input:checked + .sports-toggle-slider:before {
    transform: translateX(24px);
    background: var(--accent-yellow);
}

.sports-package-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(232, 184, 48, 0.1);
    border-radius: 10px;
    font-size: 1.1rem;
    margin-top: 8px;
}

.sports-package-total span:last-child {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 1.3rem;
}

.sports-package-note {
    padding: 12px 16px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #ff9999;
}

/* === CAMPAIGNS BUILDER === */
.campaigns-builder {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campaign-offer {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.campaign-offer-header {
    margin-bottom: 12px;
}

.campaign-offer-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.campaign-offer-label input {
    display: none;
}

.campaign-offer-check {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(232, 184, 48, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.campaign-offer-check:after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-yellow);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s;
}

.campaign-offer-label input:checked + .campaign-offer-check {
    border-color: var(--accent-yellow);
}

.campaign-offer-label input:checked + .campaign-offer-check:after {
    opacity: 1;
}

.campaign-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.campaign-checkbox-label input {
    display: none;
}

.campaign-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(232, 184, 48, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

.campaign-checkbox:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--accent-yellow);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.campaign-checkbox-label input:checked + .campaign-checkbox {
    border-color: var(--accent-yellow);
}

.campaign-checkbox-label input:checked + .campaign-checkbox:after {
    opacity: 1;
}

.campaign-checkbox-label .campaign-offer-info-row {
    flex: 1;
}

.campaign-offer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campaign-offer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.campaign-offer-name {
    font-size: 1.1rem;
    color: var(--text-light);
}

.campaign-offer-price {
    font-size: 1.1rem;
    color: var(--accent-yellow);
    font-weight: 700;
}

.campaign-offer-price-small {
    font-size: 0.9rem;
    color: var(--accent-yellow);
}

.campaign-offer-desc {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 16px;
}

.campaign-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.campaign-slider-label {
    font-size: 0.9rem;
    color: #888;
    min-width: 70px;
}

.campaign-slider-unit {
    font-size: 0.8rem;
    color: #666;
    margin-right: 10px;
}

.campaign-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
}

.campaign-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
}

.campaign-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.campaign-slider-value {
    font-size: 1rem;
    color: var(--text-light);
    min-width: 30px;
    text-align: center;
}

.campaign-slider-total {
    font-size: 1rem;
    color: var(--accent-yellow);
    min-width: 70px;
    text-align: right;
}

/* === SUMMARY TOTALS (inside sidebar) === */
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-line.subtotal {
    color: #999;
    font-size: 0.95rem;
}

.summary-line.gst {
    color: #888;
    font-size: 0.9rem;
}

.summary-line.discount {
    color: #4ade80;
    font-size: 0.9rem;
}

.summary-line.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.total-label {
    font-size: 1.2rem;
}

.total-amount {
    font-size: 2rem;
    color: var(--accent-yellow);
    transition: color 0.3s ease;
}

.total-amount.over-budget {
    color: #ef4444;
}

/* === CLEAR BUTTON === */
.clear-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
}

/* === BUDGET SETTER === */
.budget-setter {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.budget-label {
    font-size: 0.9rem;
    color: #999;
}

.budget-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 6px 10px;
}

.budget-currency {
    color: #888;
    margin-right: 4px;
}

.budget-input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    width: 80px;
    text-align: right;
    outline: none;
}

.budget-input::placeholder {
    color: #555;
}

.budget-input::-webkit-outer-spin-button,
.budget-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.budget-progress-container {
    margin-top: 10px;
}

.budget-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.budget-progress-fill {
    height: 100%;
    background: var(--accent-yellow);
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

.budget-progress-fill.warning {
    background: #f59e0b;
}

.budget-progress-fill.danger {
    background: #ef4444;
}

.budget-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #888;
}

.budget-gst-toggle {
    margin-top: 10px;
    margin-bottom: 10px;
}

.budget-gst-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #999;
}

.budget-gst-label input {
    display: none;
}

.budget-gst-check {
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

.budget-gst-check:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid var(--accent-yellow);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.budget-gst-label input:checked + .budget-gst-check {
    border-color: var(--accent-yellow);
}

.budget-gst-label input:checked + .budget-gst-check:after {
    opacity: 1;
}

.gst-note {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* === OVER BUDGET WARNING STATES === */
.sports-slider.over-budget,
.campaign-slider.over-budget {
    accent-color: #ef4444;
}

.sports-slider.over-budget::-webkit-slider-thumb,
.campaign-slider.over-budget::-webkit-slider-thumb {
    background: #ef4444;
}

.sports-slider.over-budget::-moz-range-thumb,
.campaign-slider.over-budget::-moz-range-thumb {
    background: #ef4444;
}

.sports-builder.over-budget .sports-calc-price,
.sports-builder.over-budget .sports-fixed-price,
.sports-builder.over-budget .sports-package-total span:last-child,
.sports-builder.over-budget .sports-activate-price {
    color: #ef4444 !important;
}

.sports-builder.over-budget .sports-activate-label input:checked + .sports-activate-check {
    border-color: #ef4444;
}

.sports-builder.over-budget .sports-activate-label input:checked + .sports-activate-check:after {
    border-color: #ef4444;
}

.sports-builder.over-budget .sports-toggle input:checked + .sports-toggle-slider {
    background: #ef4444;
}

.campaign-offer.over-budget .campaign-slider-total,
.campaign-offer.over-budget .campaign-offer-price,
.campaign-offer.over-budget .campaign-offer-price-small {
    color: #ef4444 !important;
}

.campaign-offer.over-budget .campaign-checkbox-label input:checked + .campaign-checkbox {
    border-color: #ef4444;
}

.campaign-offer.over-budget .campaign-checkbox-label input:checked + .campaign-checkbox:after {
    border-color: #ef4444;
}

/* === BUDGET EXCEEDED STATE === */
.tier-btn.budget-exceeded {
    opacity: 0.4;
    filter: grayscale(70%);
    pointer-events: none;
}

.tier-btn.budget-exceeded::after {
    content: 'Over budget';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #ef4444;
    white-space: nowrap;
}

.sports-activate.budget-exceeded {
    opacity: 0.4;
    filter: grayscale(70%);
    pointer-events: none;
}

.production-option.budget-exceeded {
    opacity: 0.4;
    filter: grayscale(70%);
    pointer-events: none;
}

.campaign-offer.budget-exceeded {
    opacity: 0.4;
    filter: grayscale(70%);
    pointer-events: none;
}

.sports-builder.budget-exceeded {
    opacity: 0.4;
    filter: grayscale(70%);
    pointer-events: none;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    background: #222;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.lightbox-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.lightbox-title span {
    color: var(--accent-gold);
}

.lightbox-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--text-light);
}

.lightbox-price {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.lightbox-details {
    list-style: none;
    padding: 0;
}

.lightbox-details li {
    font-family: var(--font-body);
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.lightbox-details li:last-child {
    border-bottom: none;
}

/* === WEBSITES & APPS SECTION === */
.section-divider span {
    color: var(--accent-yellow);
}

.section-divider-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
}

.tier-price-breakdown {
    display: block;
    font-size: 0.7rem;
    color: rgba(0,0,0,0.5);
    margin-top: 2px;
}

.dept-portal-note {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.6;
    margin-top: 15px;
    padding-left: 10px;
    border-left: 2px solid rgba(232, 184, 48, 0.3);
}

.summary-item-breakdown {
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
}

/* === LEGACY MOBILE — kept styles for internal components === */
@media (max-width: 768px) {
    /* Tier grid - 2 columns on mobile */
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tier-btn {
        padding: 12px 8px;
        min-height: 90px;
    }

    .tier-name {
        font-size: 0.85rem;
    }

    .tier-price {
        font-size: 1rem;
    }

    .tier-qty {
        transform: scale(0.9);
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    /* Productions grid */
    .productions-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .production-option {
        padding: 12px;
    }

    .production-option-name {
        font-size: 0.9rem;
    }

    .production-option-price {
        font-size: 0.8rem;
    }

    /* Sports builder / sliders */
    .sports-builder {
        border-radius: 10px;
    }

    .sports-activate {
        padding: 12px;
    }

    .sports-activate-label {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sports-activate-text {
        font-size: 0.95rem;
        flex: 1;
        min-width: 120px;
        text-align: left;
    }

    .sports-activate-price {
        font-size: 0.85rem;
    }

    .sports-options {
        padding: 12px;
    }

    .sports-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sports-item-header {
        width: 100%;
        text-align: left;
    }

    .sports-item-name {
        font-size: 0.9rem;
    }

    .sports-item-desc {
        font-size: 0.75rem;
    }

    .sports-item-value {
        width: 100%;
        justify-content: space-between;
    }

    .sports-slider-container {
        flex: 1;
        max-width: none;
    }

    .sports-slider {
        width: 100%;
    }

    .sports-calc-price {
        font-size: 1rem;
        min-width: 70px;
    }

    .sports-slider-value {
        font-size: 0.8rem;
        min-width: 70px;
    }

    .sports-package-total {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Campaign section */
    .campaign-offer {
        padding: 15px;
        border-radius: 10px;
    }

    .campaign-offer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .campaign-offer-name {
        font-size: 1rem;
        text-align: left;
    }

    .campaign-offer-price {
        font-size: 1.1rem;
    }

    .campaign-slider-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .campaign-slider-container {
        width: 100%;
    }

    .campaign-slider {
        width: 100%;
    }

    /* Info popup mobile - slide up from bottom */
    .tier-info-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        overflow-y: auto;
        padding: 20px;
        z-index: 1001;
    }

    .tier-info-popup h4 {
        font-size: 1.2rem;
    }

    .info-price {
        font-size: 1.5rem;
    }

    /* Summary items */
    .summary-item {
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .summary-item-details {
        flex: 1;
        min-width: 150px;
        text-align: left;
    }

    .summary-item-name {
        font-size: 0.9rem;
    }

    .summary-item-tier {
        font-size: 0.75rem;
    }

    .summary-item-price {
        font-size: 0.95rem;
    }

    .summary-item-remove {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    /* Summary totals */
    .summary-line {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .total-amount {
        font-size: 1.4rem;
    }

    /* Budget section */
    .budget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .budget-input-group {
        width: 100%;
    }

    .budget-input-group input {
        width: 100%;
        font-size: 1rem;
    }

    .budget-display {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }

    .budget-bar {
        height: 10px;
    }

    /* Touch-friendly improvements */
    .sports-toggle {
        transform: scale(1.1);
    }

    .sports-activate-check {
        width: 22px;
        height: 22px;
    }

    /* Improve slider touch target */
    .sports-slider, .campaign-slider {
        height: 8px;
    }

    .sports-slider::-webkit-slider-thumb,
    .campaign-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .sports-slider::-moz-range-thumb,
    .campaign-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .campaigns-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .tier-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .tier-btn {
        padding: 10px 6px;
        min-height: 80px;
    }

    .tier-name {
        font-size: 0.75rem;
    }

    .tier-price {
        font-size: 0.9rem;
    }

    .sports-activate-text {
        font-size: 0.85rem;
    }

    .total-amount {
        font-size: 1.2rem;
    }
}


/* ===================================================================
   NEW PAGE STRUCTURE — Hero, Card Grid, Sidebar, Footer
   Added as part of page overhaul (Tasks 3-7)
   =================================================================== */

/* ---------- HERO ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 177.78vh;
    height: 56.25vw;
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0.6;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero__title-text {
    background: linear-gradient(135deg, var(--accent-yellow), var(--premium-gold), #f0d878);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- PAGE LAYOUT ---------- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.main-content {
    min-width: 0;
}

/* ---------- PRODUCT SECTIONS ---------- */
.product-section {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-light);
}

.section-heading span {
    color: var(--accent-yellow);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ---------- CARD GRID ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- WEB PRODUCTS 2x2 GRID ---------- */
#web-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-inline: auto;
}

.product-card--web .card__face {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.card__icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color var(--transition-hover);
}

.product-card--web:hover .card__icon {
    color: var(--accent, #fff);
}

@media (max-width: 600px) {
    #web-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- PRODUCT CARD (new card version) ---------- */
.product-card[aria-expanded] {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
    padding: 0;
}

.product-card[aria-expanded]:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-bloom);
}

.product-card[aria-expanded="true"] {
    cursor: default;
}

/* ---------- CARD FACE ---------- */
.card__face {
    display: flex;
    flex-direction: column;
}

.card__thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
}

.card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card[aria-expanded]:hover .card__thumbnail img {
    transform: scale(1.05);
}

.card__media-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    pointer-events: none;
}

.card__title {
    font-size: 1.15rem;
    font-weight: 400;
    padding: 16px 16px 4px;
    color: var(--text-light);
}

.card__hook {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 16px 16px;
    line-height: 1.4;
}

.card__subscription-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-yellow);
    background: rgba(232, 184, 48, 0.1);
    border: 1px solid rgba(232, 184, 48, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
    margin: 0 16px 16px;
    width: fit-content;
}

/* ---------- CARD EXPANDED ---------- */
.card__expanded {
    display: none;
    padding: 24px;
}

.product-card[aria-expanded="true"] .card__expanded {
    display: block;
}

.card__expanded[aria-hidden="false"] {
    display: block;
}

.card__video-embed {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.card__description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card__tiers,
.card__custom-controls {
    /* Container for existing tier/control HTML */
}

/* ---------- SECTION DIVIDER (new version) ---------- */
.section-divider {
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(232, 184, 48, 0.05) 40%,
        rgba(232, 184, 48, 0.05) 60%,
        transparent 100%
    );
    position: relative;
    margin: 40px 0;
    text-align: center;
    font-size: 0;
    color: transparent;
    border-top: none;
    padding: 0;
}

.section-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
}

/* ---------- SITE FOOTER ---------- */
.site-footer {
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-subtle);
}

.footer__cta-text {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 30px;
}

.footer__cta-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--accent-yellow), var(--premium-gold));
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform var(--transition-hover), box-shadow var(--transition-hover);
    margin-bottom: 40px;
}

.footer__cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(232, 184, 48, 0.4);
}

.footer__logo {
    display: block;
    margin: 0 auto;
    max-height: 60px;
    opacity: 0.7;
}

/* ---------- QUOTE SIDEBAR ---------- */
.quote-sidebar {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    padding: 30px;
    border: 1px solid var(--border-subtle);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* ---------- MOBILE QUOTE BUTTON ---------- */
.mobile-quote-btn {
    display: none;
}

/* ===== RESPONSIVE — NEW LAYOUT ===== */

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    /* Sidebar becomes fixed slide-in on tablet/mobile */
    .quote-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin: 0;
        padding: 20px;
        padding-top: 10px;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 1001;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        background: #242424;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    }

    .quote-sidebar.open {
        transform: translateY(0);
    }

    .summary-panel-header {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        cursor: pointer;
    }

    .summary-drag-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .mobile-quote-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #e8b830, #d4a420);
        color: #1a1a1a;
        border: none;
        border-radius: 50px;
        padding: 12px 24px;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(232, 184, 48, 0.4);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .mobile-quote-btn:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .mobile-quote-btn.hidden {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
        pointer-events: none;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .productions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .productions-grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .page-layout {
        padding: 30px 12px;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    .card__expanded {
        padding: 16px;
    }
}

/* === RESPONSIVE POLISH === */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .hero__title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

@media (max-width: 560px) {
    .card__tiers,
    .tier-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-layout {
        padding: 40px 16px;
    }
}

/* === PRODUCT MODAL === */
.product-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.product-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    position: fixed;
    z-index: 9001;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(720px, 92vw);
    max-height: 85vh;
    background: #1e1e1e;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.product-modal__close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    margin: 12px 12px 0 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-hover);
}

.product-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.product-modal__body {
    padding: 24px;
}

.product-modal__body .card__face {
    margin-bottom: 20px;
}

.product-modal__body .card__thumbnail {
    border-radius: var(--radius-card);
    margin-bottom: 12px;
}

.product-modal__body .card__expanded {
    display: block;
    padding: 0;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .product-modal {
        width: 95vw;
        max-height: 90vh;
    }

    .product-modal__body {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-modal-backdrop {
        transition: none;
    }
    .product-modal {
        transition: none;
    }
}

/* === DEVICE MOCKUPS === */
.card__thumbnail--device {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    padding: 20px;
}

.device-mockup--laptop {
    width: 85%;
    border-radius: 8px;
    overflow: hidden;
    background: #0d0d0d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.device-mockup__toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}

.device-mockup__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.device-mockup__dot:nth-child(1) { background: #ff5f57; }
.device-mockup__dot:nth-child(2) { background: #ffbd2e; }
.device-mockup__dot:nth-child(3) { background: #28c840; }

.device-mockup__url {
    margin-left: 12px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: #666;
    background: #111;
    padding: 3px 10px;
    border-radius: 4px;
    flex: 1;
    max-width: 160px;
}

.device-mockup__screen {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
}

/* --- Recap demo --- */
.demo-recap {
    width: 100%;
    height: 100%;
    background: #111827;
    overflow: hidden;
    font-family: var(--font-body);
}

.demo-recap__hero {
    position: relative;
    height: 40%;
}

.demo-recap__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.demo-recap__hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.5em;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    line-height: 1.3;
}

.demo-recap__hero-text span {
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.8;
    display: block;
}

.demo-recap__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 4px;
}

.demo-recap__item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.demo-recap__item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.demo-recap__item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.28em;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 4px 3px 2px;
}

/* --- Website demo --- */
.demo-website {
    width: 100%;
    height: 100%;
    background: #f8fafb;
    overflow: hidden;
    font-family: var(--font-body);
    color: #1a1a1a;
}

.demo-website__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    background: #2d6a4f;
    color: white;
}

.demo-website__logo {
    font-size: 0.38em;
    font-weight: 700;
}

.demo-website__links {
    display: flex;
    gap: 6px;
    font-size: 0.25em;
    opacity: 0.85;
}

.demo-website__hero {
    position: relative;
    height: 35%;
}

.demo-website__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-website__hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45em;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    line-height: 1.3;
}

.demo-website__news {
    padding: 4px 6px;
}

.demo-website__news-title {
    font-size: 0.35em;
    font-weight: 700;
    margin-bottom: 3px;
    color: #2d6a4f;
}

.demo-website__news-item {
    display: flex;
    gap: 4px;
    margin-bottom: 3px;
    align-items: center;
}

.demo-website__news-item img {
    width: 20%;
    border-radius: 2px;
    flex-shrink: 0;
}

.demo-website__news-item div {
    display: flex;
    flex-direction: column;
}

.demo-website__news-item strong {
    font-size: 0.28em;
    color: #1a1a1a;
}

.demo-website__news-item span {
    font-size: 0.22em;
    color: #666;
}

/* --- App demo --- */
.demo-app {
    width: 100%;
    height: 100%;
    background: #111827;
    overflow: hidden;
    font-family: var(--font-body);
    color: white;
    padding: 6px 5px 4px;
}

.demo-app__header {
    font-size: 0.38em;
    font-weight: 700;
    text-align: center;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4px;
}

.demo-app__greeting {
    font-size: 0.32em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.demo-app__actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    margin-bottom: 6px;
}

.demo-app__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    font-size: 0.6em;
    position: relative;
}

.demo-app__action span {
    font-size: 0.4em;
    opacity: 0.7;
}

.demo-app__action i {
    position: absolute;
    top: 1px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.35em;
    font-style: normal;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-app__section-title {
    font-size: 0.28em;
    font-weight: 600;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.demo-app__event {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.demo-app__event-date {
    font-size: 0.28em;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    color: #2d6a4f;
    min-width: 16px;
}

.demo-app__event strong {
    font-size: 0.26em;
    display: block;
}

.demo-app__event span {
    font-size: 0.2em;
    opacity: 0.5;
}

/* --- Portal demo --- */
.demo-portal {
    width: 100%;
    height: 100%;
    display: flex;
    background: #0f172a;
    overflow: hidden;
    font-family: var(--font-body);
    color: white;
}

.demo-portal__sidebar {
    width: 28%;
    background: #1e293b;
    padding: 4px;
    border-right: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.demo-portal__sidebar-title {
    font-size: 0.3em;
    font-weight: 700;
    padding-bottom: 4px;
    margin-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.demo-portal__nav-item {
    font-size: 0.22em;
    padding: 2px 3px;
    border-radius: 2px;
    margin-bottom: 1px;
    opacity: 0.5;
}

.demo-portal__nav-item--active {
    background: rgba(45, 106, 79, 0.3);
    opacity: 1;
    color: #4ade80;
}

.demo-portal__main {
    flex: 1;
    padding: 4px 5px;
    overflow: hidden;
}

.demo-portal__stats {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
}

.demo-portal__stat {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    padding: 3px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.demo-portal__stat-num {
    font-size: 0.38em;
    font-weight: 700;
    color: #4ade80;
}

.demo-portal__stat span {
    font-size: 0.18em;
    opacity: 0.5;
}

.demo-portal__table {
    background: rgba(255,255,255,0.03);
    border-radius: 3px;
    overflow: hidden;
}

.demo-portal__row {
    display: flex;
    justify-content: space-between;
    padding: 2px 3px;
    font-size: 0.2em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.demo-portal__row--header {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
    font-size: 0.18em;
    text-transform: uppercase;
    opacity: 0.5;
}

.demo-portal__row span {
    flex: 1;
}

.demo-portal__badge {
    color: #4ade80;
    font-weight: 600;
}

.demo-portal__badge--pending {
    color: #fbbf24;
}

/* --- Portal mobile demo --- */
.demo-portal-mobile {
    width: 100%;
    height: 100%;
    background: #0f172a;
    font-family: var(--font-body);
    color: white;
    padding: 5px 4px;
    overflow: hidden;
}

.demo-portal-mobile__header {
    font-size: 0.32em;
    font-weight: 700;
    text-align: center;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4px;
}

.demo-portal-mobile__stat {
    font-size: 0.25em;
    padding: 2px 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin-bottom: 2px;
}

.demo-portal-mobile__stat strong {
    color: #4ade80;
}

.demo-portal-mobile__item {
    font-size: 0.2em;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    justify-content: space-between;
}

.demo-portal-mobile__item span {
    opacity: 0.5;
}

/* Phone mockup */
.device-mockup--phone {
    width: 40%;
    max-width: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: #0d0d0d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid #222;
    position: relative;
}

.device-mockup__notch {
    width: 40%;
    height: 6px;
    background: #0d0d0d;
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.device-mockup--phone .device-mockup__screen {
    aspect-ratio: 9 / 16;
}

/* Paired layout (laptop + phone) */
.device-mockup-pair {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.device-mockup--paired {
    width: 65%;
}

.device-mockup--paired-phone {
    width: 22%;
    max-width: 80px;
}

/* Large variants for modal showcase */
.device-mockup--large {
    width: 90%;
}

.device-mockup--large .device-mockup__url {
    font-size: 0.75rem;
}

.device-mockup-pair--large {
    padding: 20px 0;
}

.device-mockup-pair--large .device-mockup--paired {
    width: 70%;
}

.device-mockup-pair--large .device-mockup--paired-phone {
    width: 20%;
    max-width: 100px;
}

/* Showcase container in modal */
.card__device-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 200px;
}

/* === BACKGROUND TEXTURE === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        display: none;
    }
}

/* === CARD HOVER EFFECTS === */
.card__thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0;
    transition: opacity var(--transition-hover);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.product-card:hover .card__thumbnail::after {
    opacity: 0.15;
}

@media (prefers-reduced-motion: reduce) {
    .product-card:hover {
        transform: none;
    }
    .product-card:hover .card__thumbnail img {
        transform: none;
    }
    .card__thumbnail::after {
        display: none;
    }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === EXPAND CASCADE === */
.card__expanded .card__video-embed,
.card__expanded .card__description,
.card__expanded .card__tiers,
.card__expanded .card__custom-controls {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card[aria-expanded="true"] .card__video-embed,
.product-modal.active .card__video-embed {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0ms;
}

.product-card[aria-expanded="true"] .card__description,
.product-modal.active .card__description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 150ms;
}

.product-card[aria-expanded="true"] .card__tiers,
.product-card[aria-expanded="true"] .card__custom-controls,
.product-modal.active .card__tiers,
.product-modal.active .card__custom-controls {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 300ms;
}

@media (prefers-reduced-motion: reduce) {
    .card__expanded .card__video-embed,
    .card__expanded .card__description,
    .card__expanded .card__tiers,
    .card__expanded .card__custom-controls {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === VIDEO CLIP MASK TITLE === */
@media (prefers-reduced-motion: no-preference) {
    .hero.video-loaded .hero__title-text {
        mix-blend-mode: difference;
        background: white;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* === QUOTE ADD ANIMATION === */
@keyframes sidebar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 184, 48, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(232, 184, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 184, 48, 0); }
}

.quote-sidebar.pulse {
    animation: sidebar-pulse 0.6s ease;
}

@keyframes total-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.total-bump {
    display: inline-block;
    animation: total-bump 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .quote-sidebar.pulse,
    .total-bump {
        animation: none;
    }
}
