:root {
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --white: #ffffff;
    --gray: #888888;
    --red: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* ✅ Header fixed olduğu üçün kontenti aşağı salır */
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    padding: 100px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.countdown-item {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px 30px;
    min-width: 100px;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
}

/* Features */
.features {
    background: var(--black-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

/* =========================
   ✅ WHEEL (TAM YUMRU FIX)
   ========================= */

/* Wheel container: mərkəz + səliqəli boşluqlar */
.wheel-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

/* Wheel-in kvadrat konteyneri (tam dairə fırlansın) */
.wheel-wrap{
    position: relative;
    width: min(420px, 92vw);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

/* Wheel şəkli: 100% / 100% + object-fit => yamulmasın */
.wheel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    transform-origin: 50% 50%;
    will-change: transform;
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Ortadakı SPIN düyməsi */
.spin-btn{
    position: absolute;
    inset: 0;
    margin: auto;
    width: 32%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: clamp(16px, 4vw, 22px);
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #ff4b4b, #b30000 55%, #2b0000);
    box-shadow: 0 10px 25px rgba(0,0,0,.45), 0 0 25px rgba(255,215,0,.2);
    z-index: 5;
}

.spin-btn:active{
    transform: scale(.98);
}

.spin-btn[disabled]{
    opacity: .75;
    cursor: not-allowed;
}

/* Aşağıdakı “fırlat” buttonun boşluğu */
.wheel-btn {
    margin-top: 0;
}

.wheel-result {
    margin-top: 10px;
    font-size: 1.5rem;
    color: var(--gold);
    min-height: 40px;
}

/* Gift */
.gift-container {
    text-align: center;
}

.gift-image {
    max-width: 300px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s;
}

.gift-image:hover {
    transform: scale(1.05);
}

.gift-hint {
    color: var(--gray);
    margin-top: 20px;
}

.gift-result {
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--gold);
    min-height: 40px;
}

/* Daily Bonus */
.daily-bonus {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
}

.daily-bonus-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.daily-bonus-card h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--black-light);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-toggle {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.05);
}

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--black-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-panel.active {
    display: flex;
}

.chat-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.chat-message.guest {
    margin-left: auto;
    text-align: right;
}

.chat-message.admin {
    margin-right: auto;
}

.chat-message-bubble {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 10px 15px;
    display: inline-block;
    word-break: break-word;
}

.chat-message.guest .chat-message-bubble {
    background: rgba(255, 215, 0, 0.2);
}

.chat-message-time {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 5px;
}

.chat-message img {
    max-width: 100%;
    border-radius: 10px;
}

.chat-message audio {
    width: 100%;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.chat-nickname {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    color: var(--white);
    margin-bottom: 10px;
}

.chat-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold);
    font-size: 18px;
}

.chat-text-input {
    display: flex;
    gap: 10px;
}

.chat-text-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--white);
}

.chat-send {
    background: var(--gold);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-recording {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--red);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: var(--red);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--black-light);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
}

.modal-content h2 {
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--white);
    margin-bottom: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--black-light);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px 20px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .chat-panel {
        width: 90vw;
        right: -15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .wheel-wrap{
        width: min(360px, 92vw);
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.spinning {
    animation: pulse 0.5s infinite;
}
