* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #00a046;
    --green-dark: #008a3b;
    --green-darker: #006e2e;
    --green-light: #e6f7ed;
    --green-glow: rgba(0, 160, 70, .25);
    --bg: #f3f4f6;
    --bg-warm: #fafafa;
    --white: #ffffff;
    --dark: #111827;
    --dark-soft: #1f2937;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f3f4f6;
    --red: #dc2626;
    --gold: #f59e0b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .12);
    --shadow-xl: 0 32px 80px rgba(0, 0, 0, .18);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--green);
    height: 56px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 160, 70, .35);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    height: 36px;
}

.header__logo-icon {
    height: 36px;
    width: 36px;
    display: block;
    flex-shrink: 0;
}

.header__logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 36px;
    display: block;
}


/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #009640 0%, #00c853 50%, #00a046 100%);
    padding: 56px 0 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .12) 0%, transparent 60%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: 16px;
    opacity: .85;
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.hero__stat-icon {
    width: 24px;
    height: 24px;
    opacity: .7;
}

.hero__stat-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.hero__stat-label {
    font-size: 12px;
    opacity: .7;
    font-weight: 500;
}

/* ===== WHEEL ===== */
.wheel-section {
    padding: 56px 0 40px;
    background: var(--bg-warm);
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-stage {
    position: relative;
    display: inline-block;
    margin-bottom: 36px;
}

.wheel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.wheel-outer-ring {
    position: relative;
    z-index: 1;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
    padding: 12px;
    box-shadow:
        0 0 0 3px rgba(0, 160, 70, .2),
        0 8px 40px rgba(0, 0, 0, .15),
        inset 0 2px 4px rgba(255, 255, 255, .8);
}

.wheel-pointer-wrap {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.wheel-ticks {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
}

.wheel-tick {
    position: absolute;
    width: 4px;
    height: 12px;
    background: rgba(0, 0, 0, .12);
    border-radius: 2px;
    top: 3px;
    left: 50%;
    transform-origin: 50% 250px;
}

.wheel-tick--accent {
    background: var(--green);
    height: 14px;
    width: 5px;
}

#wheelCanvas {
    display: block;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, .12),
        0 0 0 4px rgba(0, 160, 70, .15);
}

.wheel-center__logo {
    width: 50px;
    height: 50px;
}

/* Spin button */
.spin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--green) 0%, #00c853 100%);
    color: #fff;
    border: none;
    padding: 20px 56px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: .3px;
    box-shadow:
        0 6px 24px rgba(0, 160, 70, .35),
        0 2px 8px rgba(0, 160, 70, .2);
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.spin-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, .15), transparent);
    pointer-events: none;
}

.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 36px rgba(0, 160, 70, .4),
        0 4px 12px rgba(0, 160, 70, .25);
}

.spin-btn:active {
    transform: translateY(-1px);
}

.spin-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0, 160, 70, .2);
}

.spin-btn__icon {
    width: 20px;
    height: 20px;
}

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalIn .4s cubic-bezier(.16, 1, .3, 1);
    margin: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gray-lighter);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray);
    transition: background .2s;
}

.modal__close:hover {
    background: var(--gray-light);
}

.modal__close i {
    width: 18px;
    height: 18px;
}

.modal__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green) 0%, #00c853 100%);
    color: #fff;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.modal__title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.modal__prize {
    background: linear-gradient(135deg, var(--green-light) 0%, #d1fae5 100%);
    border: 2px solid var(--green);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0 20px;
}

.modal__prize-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.modal__prize-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--green);
}

.modal__desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal__success-icon {
    width: 72px;
    height: 72px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--green);
}

.modal__success-icon i {
    width: 36px;
    height: 36px;
}

.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-soft);
}

.form-label__icon {
    width: 14px;
    height: 14px;
    color: var(--gray);
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all .2s;
    background: var(--white);
}

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all .2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--gray-lighter);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-soft);
    border-right: 2px solid var(--gray-light);
    white-space: nowrap;
}

.form-input--phone {
    border: none;
    border-radius: 0;
}

.form-input--phone:focus {
    border: none;
    box-shadow: none;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.form-submit__icon {
    width: 18px;
    height: 18px;
}

.form-submit:hover {
    background: var(--green-dark);
}

.form-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.form-note {
    font-size: 12px;
    color: var(--gray);
    margin-top: 12px;
}


.modal__order-id {
    margin-top: 24px;
    padding: 16px;
    background: var(--gray-lighter);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-icon {
    width: 16px;
    height: 16px;
}

/* ===== WINNERS ===== */
.winners-section {
    padding: 48px 0;
    background: var(--white);
}

.winners-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--dark);
}

.winners-title__icon {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
}

.winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--gray-lighter);
    border-radius: 12px;
    font-size: 14px;
    animation: winnerIn .5s cubic-bezier(.16, 1, .3, 1);
}

@keyframes winnerIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.winner-item__name {
    font-weight: 600;
    color: var(--dark-soft);
}

.winner-item__prize {
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
}

.winner-item__time {
    color: var(--gray);
    font-size: 12px;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .4);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero {
        padding: 40px 0 36px;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__stats {
        gap: 20px;
    }

    .hero__stat {
        gap: 8px;
    }

    .hero__stat-value {
        font-size: 15px;
    }

    .wheel-outer-ring {
        width: 340px;
        height: 340px;
        padding: 8px;
    }

    .wheel-glow {
        width: 380px;
        height: 380px;
    }

    .wheel-tick {
        transform-origin: 50% 170px;
        height: 8px;
        width: 3px;
    }

    .wheel-tick--accent {
        height: 10px;
        width: 4px;
    }

    .wheel-center {
        width: 56px;
        height: 56px;
    }

    .wheel-center__logo {
        width: 34px;
        height: 34px;
    }

    .spin-btn {
        padding: 16px 40px;
        font-size: 16px;
    }

    .modal {
        padding: 28px 20px;
    }

    .header__logo-icon {
        height: 30px;
        width: 30px;
    }

    .header__logo-text {
        font-size: 18px;
    }

    .header__promo-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .winners-list {
        gap: 6px;
    }

    .winner-item {
        padding: 12px 14px;
        font-size: 13px;
        flex-wrap: wrap;
        gap: 4px;
    }
}

@media (max-width: 420px) {
    .wheel-outer-ring {
        width: 300px;
        height: 300px;
    }

    .wheel-glow {
        width: 340px;
        height: 340px;
    }

    .wheel-tick {
        transform-origin: 50% 150px;
    }

    .wheel-center {
        width: 48px;
        height: 48px;
    }

    .wheel-center__logo {
        width: 30px;
        height: 30px;
    }
}
