/* Afford It - Custom Styles */
/* Works with Tailwind CDN - no @apply directives */

/* ====================================
   CSS CUSTOM PROPERTIES (Variables)
   ==================================== */
:root {
    /* Colors */
    --color-dark-900: #0f1419;
    --color-dark-800: #1a2332;
    --color-dark-700: #243044;
    --color-dark-600: #2d3a4f;
    --color-dark-500: #3d4a5c;
    --color-cyan-400: #00d4d4;
    --color-cyan-500: #00bfbf;
    --color-cyan-600: #00a3a3;
    --color-cyan-glow: rgba(0, 212, 212, 0.4);

    /* Gradients */
    --gradient-cyan: linear-gradient(135deg, #00d4d4 0%, #00bfbf 50%, #00a3a3 100%);
    --gradient-cyan-soft: linear-gradient(135deg, rgba(0, 212, 212, 0.15) 0%, rgba(0, 163, 163, 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    --gradient-card: linear-gradient(145deg, #2d3a4f 0%, #243044 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 212, 212, 0.1) 0%, transparent 50%, rgba(0, 163, 163, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-cyan: 0 4px 20px rgba(0, 212, 212, 0.25);
    --shadow-cyan-lg: 0 8px 40px rgba(0, 212, 212, 0.35);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* ====================================
   BASE STYLES
   ==================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gradient-dark);
    min-height: 100vh;
}

/* Selection styling */
::selection {
    background: rgba(0, 212, 212, 0.3);
    color: white;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-cyan-400);
    outline-offset: 2px;
}

/* ====================================
   CALCULATOR CARDS (Landing Page)
   ==================================== */
.calculator-card {
    position: relative;
    background: linear-gradient(145deg, rgba(45, 58, 79, 0.6) 0%, rgba(36, 48, 68, 0.8) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid rgba(61, 74, 92, 0.5);
    transition: all var(--transition-base);
    cursor: pointer;
    min-height: 120px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

/* Card inner glow effect */
.calculator-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 212, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

/* Card shine effect on hover */
.calculator-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

@media (min-width: 768px) {
    .calculator-card {
        min-height: 140px;
    }
}

.calculator-card:hover {
    background: linear-gradient(145deg, rgba(45, 58, 79, 0.9) 0%, rgba(36, 48, 68, 1) 100%);
    border-color: rgba(0, 212, 212, 0.3);
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 212, 212, 0.1);
}

.calculator-card:hover::before {
    opacity: 1;
}

.calculator-card:hover::after {
    transform: translateX(100%) rotate(45deg);
}

.calculator-card:active {
    transform: translateY(-2px) scale(0.98);
}

.calculator-card[data-active="true"] {
    border-color: var(--color-cyan-400);
    background: linear-gradient(145deg, rgba(0, 212, 212, 0.12) 0%, rgba(36, 48, 68, 0.95) 100%);
    box-shadow:
        0 4px 20px rgba(0, 212, 212, 0.2),
        inset 0 1px 0 rgba(0, 212, 212, 0.1);
}

.calculator-card[data-active="true"]::before {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 212, 0.15) 0%, transparent 60%);
}

.calculator-card[data-active="true"] .card-icon {
    color: var(--color-cyan-400);
    filter: drop-shadow(0 0 8px rgba(0, 212, 212, 0.5));
}

.card-icon {
    color: #9ca3af;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.calculator-card:hover .card-icon {
    color: var(--color-cyan-400);
    transform: scale(1.1);
}

.card-label {
    font-size: 0.875rem;
    color: #d1d5db;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .card-label {
        font-size: 1rem;
    }
}

.card-coming-soon {
    font-size: 0.625rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(107, 114, 128, 0.2);
    border-radius: var(--radius-full);
}

/* ====================================
   CTA BUTTON
   ==================================== */
.cta-button {
    position: relative;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    color: white;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    transform: scale(1);
    background: linear-gradient(135deg, #00d4d4 0%, #00bfbf 40%, #00a3a3 100%);
    box-shadow:
        0 4px 20px rgba(0, 212, 212, 0.35),
        0 0 0 1px rgba(0, 212, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    overflow: hidden;
}

/* Animated gradient shimmer */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

/* Glow ring effect */
.cta-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, #00d4d4 0%, #00a3a3 100%);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(0, 212, 212, 0.45),
        0 0 0 1px rgba(0, 212, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    opacity: 0.6;
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 2px 12px rgba(0, 212, 212, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pulse animation for emphasis */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(0, 212, 212, 0.35),
            0 0 0 0 rgba(0, 212, 212, 0.4);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(0, 212, 212, 0.35),
            0 0 0 8px rgba(0, 212, 212, 0);
    }
}

.cta-button.pulse {
    animation: ctaPulse 2s ease-in-out infinite;
}

/* ====================================
   SECONDARY & OUTLINE BUTTONS
   ==================================== */
.btn-secondary {
    position: relative;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-cyan-400);
    border: 1px solid rgba(0, 212, 212, 0.5);
    background: rgba(0, 212, 212, 0.08);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 212, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--color-cyan-400);
    color: var(--color-dark-900);
    border-color: var(--color-cyan-400);
    box-shadow: 0 4px 16px rgba(0, 212, 212, 0.3);
    transform: translateY(-1px);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-outline {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    color: #d1d5db;
    border: 1px solid rgba(61, 74, 92, 0.8);
    background: rgba(45, 58, 79, 0.3);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: var(--color-cyan-400);
    color: var(--color-cyan-400);
    background: rgba(0, 212, 212, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 212, 0.1);
}

.btn-outline:active {
    background: rgba(0, 212, 212, 0.15);
}

/* ====================================
   INPUT CARDS
   ==================================== */
.input-card {
    position: relative;
    background: linear-gradient(145deg, rgba(36, 48, 68, 0.9) 0%, rgba(26, 35, 50, 0.9) 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid rgba(61, 74, 92, 0.4);
    transition: all var(--transition-base);
}

.input-card:hover {
    border-color: rgba(61, 74, 92, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.input-card:focus-within {
    border-color: rgba(0, 212, 212, 0.4);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 212, 212, 0.1);
}

@media (min-width: 768px) {
    .input-card {
        padding: 1.5rem;
    }
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.input-label svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-cyan-400);
    opacity: 0.8;
}

.input-field {
    width: 100%;
    background: rgba(45, 58, 79, 0.6);
    border: 1px solid rgba(61, 74, 92, 0.6);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.input-field::placeholder {
    color: rgba(107, 114, 128, 0.8);
    font-weight: 400;
}

.input-field:hover {
    border-color: rgba(61, 74, 92, 0.8);
    background: rgba(45, 58, 79, 0.8);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-cyan-400);
    background: rgba(45, 58, 79, 0.9);
    box-shadow:
        0 0 0 3px rgba(0, 212, 212, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.input-field[type="number"] {
    -moz-appearance: textfield;
}

/* ====================================
   CHIP SELECTORS
   ==================================== */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(61, 74, 92, 0.6);
    background: rgba(45, 58, 79, 0.5);
    color: #9ca3af;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 212, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.chip:hover {
    color: white;
    background: rgba(45, 58, 79, 0.8);
    border-color: rgba(156, 163, 175, 0.4);
    transform: translateY(-1px);
}

.chip:active {
    transform: translateY(0) scale(0.98);
}

.chip[data-selected="true"] {
    background: linear-gradient(135deg, var(--color-cyan-400) 0%, var(--color-cyan-500) 100%);
    color: var(--color-dark-900);
    border-color: transparent;
    box-shadow:
        0 2px 8px rgba(0, 212, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chip[data-selected="true"]::before {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.chip[data-selected="true"]:hover {
    box-shadow:
        0 4px 12px rgba(0, 212, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chip-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

.chip-hint {
    font-size: 0.75rem;
    color: rgba(107, 114, 128, 0.8);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Custom Chip Input */
.chip-custom-input {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.25rem;
}

.chip-custom-field {
    width: 70px;
    padding: 0.4rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background-color: #2d3a4f;
    border: 2px solid #00d4d4;
    color: white;
    text-align: center;
}

.chip-custom-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 212, 212, 0.3);
}

.chip-custom-field::-webkit-inner-spin-button,
.chip-custom-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.chip-custom-field[type="number"] {
    -moz-appearance: textfield;
}

.chip-custom-confirm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #00d4d4;
    color: #0f1419;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chip-custom-confirm:hover {
    background-color: #00bfbf;
    transform: scale(1.05);
}

/* Result Card */
.result-card {
    background-color: #243044;
    border-radius: 1rem;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .result-card {
        padding: 1.5rem;
    }
}

.result-header {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: 0.5rem;
}

.result-subheader {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: 0.75rem;
}

.result-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #00d4d4;
}

@media (min-width: 768px) {
    .result-value {
        font-size: 3rem;
    }
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #2d3a4f;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.result-amount {
    color: #00d4d4;
    font-weight: 600;
}

.result-amount.negative {
    color: #f87171;
}

/* Affordability Badge */
.affordability-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.affordability-badge.very-comfortable {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.affordability-badge.comfortable {
    background-color: rgba(0, 212, 212, 0.2);
    color: #00d4d4;
    border: 1px solid rgba(0, 212, 212, 0.3);
}

.affordability-badge.meh {
    background-color: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.affordability-badge.uncomfortable {
    background-color: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.affordability-badge.risky,
.affordability-badge.shouldnt {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Income Slider */
.income-slider-container {
    margin-top: 1rem;
}

.income-slider {
    width: 100%;
    height: 0.5rem;
    border-radius: 9999px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: linear-gradient(to right, #00d4d4 0%, #00d4d4 var(--value, 50%), #3d4a5c var(--value, 50%), #3d4a5c 100%);
}

.income-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.income-slider::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Recommendation Box */
.recommendation-box {
    background-color: rgba(45, 58, 79, 0.5);
    border: 1px solid rgba(0, 212, 212, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.recommendation-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00d4d4;
    margin-bottom: 0.5rem;
}

/* Smart Tips */
.smart-tips {
    background-color: #243044;
    border-radius: 1rem;
    padding: 1.25rem;
}

.smart-tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.smart-tips-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #facc15;
}

.smart-tip {
    font-size: 0.875rem;
    color: #9ca3af;
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
}

.smart-tip::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00d4d4;
}

/* Lender Card */
.lender-card {
    background-color: #243044;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lender-card.featured {
    border: 1px solid rgba(0, 212, 212, 0.3);
}

.lender-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: #2d3a4f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.lender-info {
    flex: 1;
}

.lender-name {
    color: white;
    font-weight: 600;
}

.lender-details {
    font-size: 0.875rem;
    color: #9ca3af;
}

.lender-details .apr {
    color: #00d4d4;
}

.lender-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.lender-savings {
    font-size: 0.75rem;
    color: #34d399;
}

/* Product Card */
.product-card {
    background-color: #243044;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.product-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem;
    color: #00d4d4;
}

.product-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-price {
    color: #00d4d4;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Checklist */
.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #2d3a4f;
    cursor: pointer;
    margin: 0 -0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.checklist-item:hover {
    background-color: rgba(36, 48, 68, 0.5);
}

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

.checklist-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    margin-right: 0.75rem;
}

.checklist-text {
    flex: 1;
    color: #d1d5db;
}

.checklist-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 1rem;
}

.section-header svg {
    width: 1rem;
    height: 1rem;
}

/* Header Nav */
.calculator-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(4px);
    z-index: 50;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #243044;
}

.menu-button,
.back-button,
.home-button {
    padding: 0.5rem;
    color: #00d4d4;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button:hover,
.back-button:hover,
.home-button:hover {
    color: white;
}

/* Mobile: show hamburger, hide back button */
@media (max-width: 767px) {
    .back-button {
        display: none;
    }
    .menu-button {
        display: flex;
    }
}

/* Desktop: show back button, hide hamburger */
@media (min-width: 768px) {
    .menu-button {
        display: none;
    }
    .back-button {
        display: flex;
    }
    .home-button {
        display: none;
    }
}

.header-title {
    color: white;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

/* Mobile Navigation Menu */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 20, 25, 0.95);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background-color: #1a2332;
    z-index: 101;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #243044;
}

.mobile-nav-title {
    color: #00d4d4;
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-nav-close {
    padding: 0.5rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-nav-close:hover {
    color: white;
}

.mobile-nav-links {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #243044;
    color: white;
}

.mobile-nav-link.active {
    background-color: rgba(0, 212, 212, 0.1);
    color: #00d4d4;
    border: 1px solid rgba(0, 212, 212, 0.3);
}

.mobile-nav-link svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.mobile-nav-link span {
    font-weight: 500;
}

/* Page Layout */
.calculator-page {
    padding-top: 5rem;
    padding-bottom: 2rem;
    min-height: 100vh;
}

.calculator-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

.calculator-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 400px 1fr;
    }
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.results-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Category Card (Credit Cards) */
.category-card {
    background-color: #243044;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    background-color: #2d3a4f;
}

.category-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Credit Card Result */
.approval-section {
    margin-bottom: 1.5rem;
}

.approval-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.approval-header.likely {
    color: #34d399;
}

.approval-header.maybe {
    color: #facc15;
}

.approval-header.unlikely {
    color: #f87171;
}

.credit-card-item {
    background-color: #243044;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.card-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-tag.cashback {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.card-tag.travel {
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
}

.card-bonus {
    color: #00d4d4;
    font-weight: 600;
}

/* Budget Breakdown (Move-Out) */
.budget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.budget-label {
    color: #9ca3af;
}

.budget-amount {
    color: white;
    font-weight: 600;
}

/* Watch Suggestions */
.watch-card {
    background-color: #243044;
    border-radius: 0.75rem;
    padding: 1rem;
}

.watch-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.watch-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.watch-price {
    color: #00d4d4;
    font-weight: 700;
}

.watch-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    float: right;
}

.watch-tag.best-value {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.watch-tag.popular {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.watch-tag.trending {
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

/* Calculator Footer */
.calculator-footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .calculator-footer {
        padding-bottom: 1rem;
    }
}

/* Currency Particle Animation */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0.06;
    font-size: 1.5rem;
    color: #00d4d4;
    animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 15%; animation-delay: -5s; animation-duration: 22s; }
.particle:nth-child(3) { left: 25%; animation-delay: -2s; animation-duration: 28s; }
.particle:nth-child(4) { left: 35%; animation-delay: -7s; animation-duration: 24s; }
.particle:nth-child(5) { left: 45%; animation-delay: -3s; animation-duration: 26s; }
.particle:nth-child(6) { left: 55%; animation-delay: -8s; animation-duration: 23s; }
.particle:nth-child(7) { left: 65%; animation-delay: -4s; animation-duration: 27s; }
.particle:nth-child(8) { left: 75%; animation-delay: -6s; animation-duration: 21s; }
.particle:nth-child(9) { left: 85%; animation-delay: -1s; animation-duration: 29s; }
.particle:nth-child(10) { left: 95%; animation-delay: -9s; animation-duration: 25s; }

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile Collapsible Input Section */
.input-section-header {
    display: none;
}

@media (max-width: 1023px) {
    .input-section.collapsible .input-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background-color: #243044;
        border-radius: 1rem;
        cursor: pointer;
        margin-bottom: 1rem;
    }

    .input-section.collapsible .input-section-header .header-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: white;
        font-weight: 600;
    }

    .input-section.collapsible .input-section-header .toggle-icon {
        color: #00d4d4;
        transition: transform 0.3s ease;
    }

    .input-section.collapsible.collapsed .input-section-header .toggle-icon {
        transform: rotate(180deg);
    }

    .input-section.collapsible .input-cards-wrapper {
        max-height: 2000px;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        opacity: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .input-section.collapsible.collapsed .input-cards-wrapper {
        max-height: 0;
        opacity: 0;
        gap: 0;
    }

    .input-section.collapsible.collapsed .input-section-header {
        margin-bottom: 0;
    }
}

/* Email Capture */
.email-capture {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.email-input {
    flex: 1;
    background-color: #2d3a4f;
    border: 1px solid #3d4a5c;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
}

.email-input::placeholder {
    color: #6b7280;
}

.email-input:focus {
    outline: none;
    border-color: #00d4d4;
}

.email-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #00d4d4 0%, #00a3a3 100%);
}

/* Placeholder / Skeleton States */
.placeholder-section {
    position: relative;
    border: 2px dashed #3d4a5c;
    background-color: rgba(36, 48, 68, 0.5);
}

.placeholder-badge {
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    background-color: #f59e0b;
    color: #0f1419;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 10;
}

.placeholder-content {
    opacity: 0.6;
}

.placeholder-text {
    background: linear-gradient(90deg, #3d4a5c 0%, #4d5a6c 50%, #3d4a5c 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.25rem;
    color: transparent !important;
}

.placeholder-block {
    background: linear-gradient(90deg, #3d4a5c 0%, #4d5a6c 50%, #3d4a5c 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
    min-height: 3rem;
}

.placeholder-avatar {
    background: linear-gradient(90deg, #3d4a5c 0%, #4d5a6c 50%, #3d4a5c 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.placeholder-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

.placeholder-note-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.placeholder-note-text {
    font-size: 0.75rem;
    color: #f59e0b;
}

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

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a2332;
}

::-webkit-scrollbar-thumb {
    background: #3d4a5c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4d5a6c;
}
