/* Scoped styles for the Start Page Feature - Matched to App Theme */
#start-page-view {
    background-color: var(--bg-color);
    /* #0f172a */
    color: var(--text-main);
    font-family: var(--font-main, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    margin: 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    z-index: 5000;
    display: none;
}

#start-page-view .gold {
    color: var(--brand-yellow);
}

#start-page-view .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 120px 20px 100px 20px;
    position: relative;
}

#start-page-view header {
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

#start-page-view .logo {
    max-width: 250px;
    height: auto;
}

/* --- SPLIT LAYOUT --- */
#start-page-view .split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    align-items: flex-start;
    text-align: left;
}

/* Left Content Styles - VALUE PROPOSITION */
#start-page-view .left-content {
    margin-top: 40px;
}

#start-page-view h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

#start-page-view .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

/* Games Grid */
#start-page-view .games-grid-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
}

#start-page-view .games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

#start-page-view .game-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    height: 110px;
    transition: all 0.2s;
}

#start-page-view .game-card.active {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #002244 100%);
    border-color: var(--brand-yellow);
    box-shadow: 0 0 20px rgba(0, 66, 122, 0.4);
}

#start-page-view .game-card.locked {
    opacity: 0.6;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

#start-page-view .provider-logo {
    height: 18px;
    width: auto;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Specific Size for Svenska Spel as requested */
#start-page-view .provider-logo[src*="svenskaspel"] {
    height: 24px;
    /* Increased from 18px */
}

#start-page-view .game-name {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

#start-page-view .game-badge {
    position: absolute;
    top: -8px;
    background: var(--brand-yellow);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

#start-page-view .coming-soon {
    font-size: 0.7rem;
    font-style: italic;
    margin-top: 4px;
    color: var(--text-muted);
}

#start-page-view .locked i {
    font-size: 1rem;
    margin-bottom: 4px;
    opacity: 0.5;
}

/* Right Content Styles - OFFER & FORM */
#start-page-view .right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    /* Aligned with left */
}

/* Offer Box */
#start-page-view .offer-box {
    background: var(--panel-color);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    backdrop-filter: blur(10px);
    text-align: center;
    /* Center Content inside box */
}

#start-page-view .offer-box h2 {
    display: block;
    /* Make sure it's visible now */
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
}

#start-page-view .offer-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

#start-page-view .offer-text strong {
    color: var(--brand-yellow);
}

/* Inputs */
#start-page-view input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

#start-page-view input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(0, 66, 122, 0.3);
}

/* Primary Button - GOLD Conversion Button */
#start-page-view button[type="submit"] {
    background: var(--brand-yellow);
    /* GOLD */
    color: #000;
    /* Dark Text for Contrast on Gold */
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    margin-top: 5px;
    width: 100%;
    display: block;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    /* Gold Glow */
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#start-page-view button[type="submit"]:hover {
    background-color: #e6b800;
    /* Darker Gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

/* Scarcity inside Card */
#start-page-view .scarcity-card {
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

#start-page-view .scarcity-card span {
    color: var(--brand-yellow);
    /* Highlight count */
}

#start-page-view .social-login {
    margin-top: 0;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    text-align: center;
    /* Use grid for 2x2 layout */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#start-page-view .social-login p {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
    /* Force paragraph to take full width */
}

#start-page-view .btn-google,
#start-page-view .btn-discord {
    width: calc(50% - 5px);
    /* 2 per row with 10px gap */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    height: 42px;
    box-sizing: border-box;
    border: none;
    color: #fff;
    /* Default text color for colored buttons */
}

/* Google Button - WHITE */
#start-page-view .btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

/* Discord - Purple/Blue */
#start-page-view .btn-discord {
    background: #5865F2;
}

#start-page-view .btn-discord:hover {
    background: #4752c4;
}

/* Google Icon - Multicolor Gradient */
#start-page-view .btn-google i {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4285F4 0%, #EA4335 25%, #FBBC05 50%, #34A853 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback if gradient clipping fails */
    -webkit-text-fill-color: transparent;
}




/* Google Hover Effect */
#start-page-view .btn-google:hover,
#start-page-view .btn-discord:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Comparison Section */
#start-page-view .comparison-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

#start-page-view .comparison {
    width: 100%;
    max-width: 900px;
}

#start-page-view .comparison h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-main);
    text-align: center;
    border: none;
}

#start-page-view .grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    text-align: left;
}

#start-page-view .grid>div {
    flex: 1;
    padding: 30px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#start-page-view .grid h4 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#start-page-view .grid ul {
    list-style: none;
    padding: 0;
}

#start-page-view .grid li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#start-page-view .pain {
    background: transparent;
    /* Remove background */
    opacity: 0.6;
    /* Fade out */
    border: none;
    /* No border */
}

#start-page-view .pain h4 {
    font-style: normal;
}

#start-page-view .solution {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    /* Metallic Gradient */
    border: 1px solid var(--brand-yellow);
    /* 1px Solid Gold Border */
    box-shadow: 0px 0px 30px rgba(255, 215, 0, 0.15);
    /* Gold Drop Shadow Glow */
    transform: scale(1.02);
    /* Slight pop */
}

#start-page-view .solution h4 {
    color: var(--brand-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    font-style: normal;
    /* Upright / Trustworthy */
}

#start-page-view .pain li::before {
    content: "✕";
    color: var(--danger);
    font-weight: 800;
}

#start-page-view .solution li::before {
    content: "✓";
    color: var(--brand-yellow);
    /* Gold Checkmarks */
    font-weight: 800;
}

/* Validation Error Styles */
#start-page-view input.error {
    border-color: var(--danger, #ef4444);
    background-color: rgba(239, 68, 68, 0.05);
}

#start-page-view input.error:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

#start-page-view .error-msg {
    color: var(--danger, #ef4444);
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: left;
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    #start-page-view .hero {
        padding-top: 80px;
    }

    #start-page-view .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #start-page-view .logo {
        margin: 0 auto;
    }

    #start-page-view .left-content {
        order: 1;
        text-align: center;
        margin-top: 20px;
        padding: 0 10px;
    }

    #start-page-view .right-content {
        order: 2;
        margin-top: 20px;
    }

    #start-page-view .tagline {
        margin-left: auto;
        margin-right: auto;
    }

    #start-page-view .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #start-page-view .comparison-container {
        margin-top: 40px;
    }

    #start-page-view .grid {
        flex-direction: column;
    }
}

/* Success Message Styles */
.signup-success-message {
    background: rgba(30, 41, 59, 0.5);
    /* Subtle dark container */
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: none !important;
    /* Force remove any side borders */
    border-right: none !important;
    /* Subtle Gold border */
    color: var(--text-main);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    animation: fadeIn 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.signup-success-message h3 {
    color: var(--brand-yellow);
    /* Gold Headline */
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 800;
}

.signup-success-message i {
    font-size: 2rem;
    margin-right: 10px;
    color: var(--brand-yellow);
    /* Gold Icon */
}

.signup-success-message .highlight-gold {
    color: var(--brand-yellow);
    font-weight: 700;
}

/* Referral Section */
.referral-section {
    margin-top: 20px;
    width: 100%;
}

.referral-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: left;
}

.referral-box {
    display: flex;
    gap: 8px;
    width: 100%;
}

.referral-box input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: text;
}

.referral-box input:focus {
    border-color: var(--brand-yellow);
}

.referral-box button.copy-btn {
    width: 42px;
    height: 42px;
    /* Force square */
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--brand-yellow);
    color: var(--brand-yellow);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 0;
    /* Kill line-height interference */
}

.referral-box button.copy-btn i {
    display: block;
    /* Ensure icon is block to accept transform/margins correctly */
    margin: 0;
    padding: 0;
    line-height: 1;
}

.referral-box button.copy-btn:hover {
    background: var(--brand-yellow);
    color: #1a1a1a;
}

.referral-box button.copy-btn.copied {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    /* Neon Green Checkmark */
}

.referral-box button.copy-btn.pop-effect {
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}