/* ==========================================================================
   Fire Game Landing Page - Modern CSS Stylesheet
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-orange: #ff4500;
    --primary-red: #ff2a00;
    --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ff1a00 100%);
    --gold-gradient: linear-gradient(135deg, #ffe066 0%, #f59e0b 100%);
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    
    /* Dark Theme Surfaces */
    --bg-dark: #0a0b10;
    --bg-card: rgba(22, 24, 35, 0.75);
    --bg-card-border: rgba(255, 255, 255, 0.12);
    --bg-input: rgba(15, 17, 26, 0.85);

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-danger: #ef4444;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --glow-orange: 0 0 25px rgba(255, 69, 0, 0.45);
    --glow-gold: 0 0 25px rgba(245, 158, 11, 0.4);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 70px; /* Space for mobile floating bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Background Effects */
.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 10%, rgba(255, 77, 0, 0.18) 0%, rgba(10, 11, 16, 0.95) 70%);
    pointer-events: none;
    z-index: -2;
}

.glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.sphere-1 {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: rgba(255, 69, 0, 0.35);
}

.sphere-2 {
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: rgba(245, 158, 11, 0.2);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header Navbar */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.header-banner-logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.top-logo-img {
    height: 44px;
    width: auto;
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.35));
    transition: transform 0.3s ease;
}

.top-logo-img:hover {
    transform: scale(1.03);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-telegram-btn,
.nav-download-btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .top-logo-img {
        height: 34px;
        max-height: 38px;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .nav-telegram-btn,
    .nav-download-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    outline: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: var(--glow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 69, 0, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-sm:hover {
    background: var(--gold-gradient);
    color: #000;
}

.glowing-btn {
    animation: btnGlowPulse 2.5s infinite;
}

@keyframes btnGlowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 69, 0, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 100, 0, 0.8); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Hero Section */
.hero-section {
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.badge-container {
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff7733;
}

.pulsing {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

.text-gradient {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Hero Banner Graphic */
.hero-banner-container {
    max-width: 480px;
    margin: 0 auto 1.75rem;
    text-align: center;
    padding: 0 0.5rem;
}

.hero-banner-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(255, 69, 0, 0.45));
    animation: floatingBanner 4s ease-in-out infinite;
}

@keyframes floatingBanner {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Form Card */
.form-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: left;
    position: relative;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Inputs */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.25);
}

.input-prefix {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 3rem;
    background: rgba(255, 255, 255, 0.03);
}

.flag-icon {
    width: 20px;
    border-radius: 2px;
}

.form-control {
    width: 100%;
    height: 3rem;
    padding: 0 2.5rem 0 0.85rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.code-input {
    padding-left: 0.85rem;
    font-family: monospace;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-gold);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.error-msg {
    display: block;
    font-size: 0.75rem;
    color: var(--text-danger);
    margin-top: 0.3rem;
}

.field-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--accent-green);
    margin-top: 0.4rem;
}

.form-info {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(255, 69, 0, 0.08);
    border: 1px dashed rgba(255, 69, 0, 0.3);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.form-info i {
    color: var(--primary-orange);
    margin-top: 0.15rem;
    font-size: 0.9rem;
}

.trust-pills {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pill {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.text-warning { color: var(--accent-gold); }
.text-success { color: var(--accent-green); }
.text-info { color: var(--accent-blue); }

/* Live Winners Ticker Bar */
.ticker-section {
    padding: 1.5rem 0;
}

.ticker-box {
    background: rgba(15, 17, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.ticker-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    color: var(--accent-gold);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 0.85rem;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: tickerSlide 15s linear infinite;
    white-space: nowrap;
}

@keyframes tickerSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.winner-phone {
    color: var(--text-main);
    font-weight: 600;
}

.winner-amount {
    color: var(--accent-green);
    font-weight: 700;
}

/* Sections Global */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Games Section */
.games-section {
    padding: 3rem 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 69, 0, 0.5);
}

.game-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    background: var(--primary-red);
    color: #fff;
    border-radius: var(--radius-full);
}

.game-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
}

.aviator-bg { background: linear-gradient(135deg, #ef4444, #991b1b); }
.color-bg { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.dragon-bg { background: linear-gradient(135deg, #f59e0b, #b45309); }
.rummy-bg { background: linear-gradient(135deg, #10b981, #047857); }

.game-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.game-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

/* Features Section */
.features-section {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: rgba(15, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 69, 0, 0.15);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
}

.faq-accordion {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(22, 24, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.age-badge {
    background: var(--primary-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Telegram Button Styles */
.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
    font-weight: 700;
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #0099e6 0%, #1ab2ff 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.7);
}

.nav-telegram-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
}

.telegram-banner-box {
    margin-top: 1rem;
}

.glowing-telegram-btn {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    text-align: center;
    border-radius: var(--radius-md);
    animation: tgGlowPulse 2.5s infinite;
}

@keyframes tgGlowPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 136, 204, 0.5); }
    50% { box-shadow: 0 0 25px rgba(0, 168, 255, 0.9); }
}

.telegram-footer-text {
    margin-bottom: 0.75rem;
}

.telegram-footer-link {
    color: #00a8ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.telegram-footer-link:hover {
    color: #33beff;
    text-decoration: underline;
}

/* Referral Highlight Box */
.referral-highlight-box {
    background: rgba(255, 153, 0, 0.08);
    border: 1px dashed rgba(255, 170, 0, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.ref-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.ref-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.5rem;
}

.ref-code {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
}

.btn-copy-code {
    background: var(--gold-gradient);
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-copy-code:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.ref-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
}

/* Floating Mobile CTA Bar */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 0.6rem 0.75rem;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 99;
}

.mobile-cta-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mobile-tg-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.88rem;
}

.mobile-dl-btn {
    flex: 1.8;
    padding: 0.75rem 0.5rem;
    font-size: 0.92rem;
}

@media (min-width: 768px) {
    .mobile-cta-bar {
        display: none;
    }
}

.btn-block {
    width: 100%;
}

/* Modal Loading Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 340px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 69, 0, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Toast Notification Popup */
.toast-notification {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-gold);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.4);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90vw;
    text-align: center;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}
