/* VIP Progress 2.0 - Complete Styles
   Color Theme: Purple/Violet aligned with Shuffle branding
   Typography: Inter with accessible sizing (min 14px)
   ========================================================= */

:root {
    /* Primary Purple Palette */
    --vip-primary: #8b5cf6;
    --vip-primary-light: #a78bfa;
    --vip-primary-dark: #7c3aed;
    --vip-primary-glow: rgba(139, 92, 246, 0.4);

    /* Secondary Purple Shades */
    --vip-secondary: #6366f1;
    --vip-secondary-light: #818cf8;

    /* Background Colors */
    --vip-bg: #0f0f1a;
    --vip-card-bg: #1a1a2e;
    --vip-input-bg: #0d0d14;

    /* Text Colors */
    --vip-text: #f8fafc;
    --vip-text-muted: #a1a1aa;
    --vip-text-dim: #71717a;

    /* Borders */
    --vip-border: rgba(139, 92, 246, 0.15);
    --vip-border-hover: rgba(139, 92, 246, 0.4);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography Scale (minimum 14px for accessibility) */
    --font-xs: 0.875rem;    /* 14px - minimum accessible size */
    --font-sm: 0.9375rem;   /* 15px */
    --font-base: 1rem;      /* 16px */
    --font-md: 1.0625rem;   /* 17px */
    --font-lg: 1.125rem;    /* 18px */
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.vip-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    color: var(--vip-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER SECTION
   ============================================ */

.vip-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.vip-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #fff 0%, var(--vip-primary-light) 50%, var(--vip-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.vip-subtitle {
    font-size: clamp(var(--font-base), 2vw, var(--font-lg));
    color: var(--vip-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   CALCULATOR CARD
   ============================================ */

.vip-calculator-card {
    background: var(--vip-card-bg);
    border-radius: 20px;
    border: 1px solid var(--vip-border);
    padding: var(--space-xl);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    margin-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.vip-card-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.vip-calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    position: relative;
    z-index: 2;
}

/* ============================================
   INPUT SECTION
   ============================================ */

.vip-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.vip-input-group {
    display: flex;
    flex-direction: column;
}

.vip-input-group label {
    display: block;
    color: var(--vip-text);
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.vip-helper-text {
    font-size: var(--font-xs);
    color: var(--vip-text-dim);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

.vip-select-wrapper,
.vip-input-wrapper {
    position: relative;
}

.vip-input,
.vip-select {
    width: 100%;
    background: var(--vip-input-bg);
    border: 2px solid var(--vip-border);
    border-radius: 12px;
    padding: var(--space-md);
    color: var(--vip-text);
    font-family: inherit;
    font-size: var(--font-base);
    font-weight: 600;
    line-height: 1.5;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.vip-input:hover,
.vip-select:hover {
    border-color: var(--vip-border-hover);
}

.vip-input:focus,
.vip-select:focus {
    outline: none;
    border-color: var(--vip-primary);
    box-shadow: 0 0 0 3px var(--vip-primary-glow);
}

.vip-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: 3rem;
}

/* Range Slider - All Browsers */
.vip-range-wrapper {
    margin-top: var(--space-md);
    padding: var(--space-xs) 0;
}

.vip-range {
    width: 100%;
    height: 8px;
    background: var(--vip-input-bg);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* WebKit (Chrome, Safari, Edge) */
.vip-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--vip-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px var(--vip-primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid var(--vip-primary-light);
}

.vip-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--vip-primary-glow);
}

.vip-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--vip-primary-glow);
}

/* Firefox */
.vip-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--vip-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px var(--vip-primary-glow);
    border: 2px solid var(--vip-primary-light);
    transition: transform 0.2s;
}

.vip-range::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.vip-range::-moz-range-track {
    background: var(--vip-input-bg);
    height: 8px;
    border-radius: 4px;
}

/* Betting Mode Toggle */
.vip-bet-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    background: var(--vip-input-bg);
    padding: var(--space-xs);
    border-radius: 14px;
    border: 1px solid var(--vip-border);
}

.bet-type-option {
    padding: var(--space-md);
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: transparent;
    color: var(--vip-text-muted);
    font-family: inherit;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bet-type-option:hover {
    background: rgba(139, 92, 246, 0.05);
    color: var(--vip-text);
}

.bet-type-option:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--vip-primary-glow);
}

.bet-type-option.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--vip-primary);
    color: var(--vip-primary-light);
}

.bet-type-title {
    font-weight: 700;
    font-size: var(--font-base);
    display: block;
    margin-bottom: var(--space-xs);
}

.bet-type-desc {
    font-size: var(--font-xs);
    color: var(--vip-text-dim);
    line-height: 1.4;
}

.bet-type-option.active .bet-type-desc {
    color: var(--vip-primary);
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.vip-results {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-radius: 16px;
    padding: var(--space-xl);
    border: 1px solid var(--vip-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

.result-main {
    text-align: center;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-label {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--vip-text-muted);
    margin-bottom: var(--space-sm);
}

.result-value {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, var(--vip-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    white-space: nowrap;
}

.result-xp {
    font-size: var(--font-base);
    color: var(--vip-primary);
    font-weight: 600;
}

/* Progress Bar */
.progress-visual {
    width: 100%;
}

.progress-bar-bg {
    height: 10px;
    background: var(--vip-input-bg);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vip-primary-dark), var(--vip-primary), var(--vip-primary-light));
    border-radius: 5px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--vip-text-muted);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits-section {
    background: var(--vip-card-bg);
    border: 1px solid var(--vip-border);
    border-radius: 20px;
    padding: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.benefits-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.benefits-subtitle {
    text-align: center;
    color: var(--vip-text-muted);
    margin-bottom: var(--space-xl);
    font-size: var(--font-base);
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.benefit-card {
    background: var(--vip-input-bg);
    border: 1px solid var(--vip-border);
    border-radius: 14px;
    padding: var(--space-lg);
    transition: all 0.2s ease;
}

.benefit-card:hover {
    border-color: var(--vip-border-hover);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.benefit-title {
    font-size: var(--font-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--vip-text);
}

.benefit-desc {
    font-size: var(--font-sm);
    color: var(--vip-text-muted);
    line-height: 1.65;
}

/* ============================================
   INFO SECTION
   ============================================ */

.info-section {
    background: var(--vip-card-bg);
    border: 1px solid var(--vip-border);
    border-radius: 20px;
    padding: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.info-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--vip-text);
}

.info-section h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--vip-primary-light);
}

.info-section p {
    color: var(--vip-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-md);
    font-size: var(--font-base);
}

.info-section ul {
    color: var(--vip-text-muted);
    padding-left: var(--space-lg);
    line-height: 1.75;
    font-size: var(--font-base);
}

.info-section li {
    margin-bottom: var(--space-sm);
}

.info-section strong {
    color: var(--vip-text);
    font-weight: 600;
}

/* ============================================
   TIERS SECTION
   ============================================ */

.tiers-section {
    margin-bottom: var(--space-3xl);
}

.tiers-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.tier-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-sm);
}

.tier-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--vip-card-bg);
    border: 1px solid var(--vip-border);
    border-radius: 25px;
    color: var(--vip-text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: var(--font-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tier-btn:hover {
    border-color: var(--vip-border-hover);
    color: var(--vip-text);
}

.tier-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--vip-primary-glow);
}

.tier-btn.active {
    background: var(--vip-primary);
    color: white;
    border-color: var(--vip-primary);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.tier-card {
    background: var(--vip-card-bg);
    border: 1px solid var(--vip-border);
    border-radius: 14px;
    padding: var(--space-md);
    text-align: center;
    transition: all 0.2s ease;
}

.tier-card:hover {
    transform: translateY(-3px);
    border-color: var(--vip-border-hover);
}

.tier-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.tier-name {
    font-weight: 700;
    font-size: var(--font-sm);
    margin-bottom: var(--space-xs);
    color: var(--vip-text);
}

.tier-req {
    font-size: var(--font-xs);
    color: var(--vip-text-muted);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    padding: 0 var(--space-sm);
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: var(--space-xl);
}

/* ============================================
   RELATED TOOLS SECTION
   ============================================ */

.related-tools-section {
    margin-bottom: var(--space-3xl);
}

.related-tools-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.related-tools-subtitle {
    text-align: center;
    color: var(--vip-text-muted);
    margin-bottom: var(--space-xl);
    font-size: var(--font-base);
    line-height: 1.6;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 500px) {
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-tool-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--vip-card-bg);
    border: 1px solid var(--vip-border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-tool-card:hover {
    border-color: var(--vip-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.related-tool-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--vip-primary-glow);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    color: var(--vip-primary);
}

.tool-card-content {
    flex: 1;
    min-width: 0;
}

.tool-card-content h3 {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--vip-text);
    margin-bottom: var(--space-xs);
}

.tool-card-content p {
    font-size: var(--font-xs);
    color: var(--vip-text-muted);
    margin: 0;
    line-height: 1.5;
}

.tool-card-arrow {
    color: var(--vip-primary);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.related-tool-card:hover .tool-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE - TABLET (600px+)
   ============================================ */

@media (min-width: 600px) {
    .vip-calculator-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .vip-calculator-card {
        padding: var(--space-2xl);
    }

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

    .tiers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .result-value {
        font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (900px+)
   ============================================ */

@media (min-width: 900px) {
    .vip-container {
        padding: 0 var(--space-xl);
    }

    .vip-calculator-card {
        padding: var(--space-2xl) var(--space-3xl);
        border-radius: 24px;
    }

    .vip-calculator-grid {
        gap: var(--space-3xl);
    }

    .benefits-section,
    .info-section {
        padding: var(--space-2xl);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .tiers-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .vip-results {
        min-height: 320px;
    }

    .result-value {
        font-size: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE - LARGE DESKTOP (1200px+)
   ============================================ */

@media (min-width: 1200px) {
    .tiers-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .vip-calculator-grid {
        gap: 5rem;
    }

    .result-value {
        font-size: 2.75rem;
    }
}

/* ============================================
   FOCUS VISIBLE (Keyboard Navigation)
   ============================================ */

.vip-input:focus-visible,
.vip-select:focus-visible,
.bet-type-option:focus-visible,
.tier-btn:focus-visible,
.related-tool-card:focus-visible {
    outline: 2px solid var(--vip-primary);
    outline-offset: 2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .vip-card-decoration,
    .tier-filters,
    .related-tools-section {
        display: none;
    }

    .vip-calculator-card,
    .benefits-section,
    .info-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
