:root {
    --brand-primary: #00dc82;
    --brand-secondary: #0099ff;
    --brand-dark: #050607;
    --brand-panel: #0b111d;
    --brand-border: rgba(255, 255, 255, 0.08);
    --text-main: #f5f7fb;
    --text-muted: #9ba7c4;
}

* {
    box-sizing: border-box;
}

body {
    background-color: black;
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
}

input,
button,
textarea,
select {
    font-family: 'Vazirmatn', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    padding: 0.4rem clamp(1.5rem, 6vw, 6rem);
    display: flex;
    justify-content: start;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #04070f36;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.site-header__brand img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.site-header nav {
    margin-right: 5%;
    display: flex;
    gap: 1.2rem;
    font-weight: 600;
}

.hero {
    min-height: 90vh;
    padding: 4rem clamp(1.5rem, 6vw, 6rem) 3rem;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #03070f 0%, rgba(3, 7, 15, 0.95) 55%, rgba(4, 7, 15, 0.7) 100%);
}

.hero__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: clamp(1rem, 1.8vw, 2rem);
    background: rgba(5, 10, 18, 0.8);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.hero__grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 50%, rgba(0, 220, 130, 0.15), transparent 55%);
    pointer-events: none;
}

.hero__wheel {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.wheel-panel {
    align-items: center;
    width: 100%;
    background: rgba(5, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.8rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.wheel-panel__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    justify-content: center;
}

.wheel-shell {
    position: relative;
    width: min(460px, 85vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #0ce48d, #017c6f 70%);
    padding: 2.6rem;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35), 0 0 120px rgba(0, 220, 130, 0.25);
}

.wheel-shell::before {
    content: '';
    position: absolute;
    inset: 1.1rem;
    border-radius: 50%;
    border: 16px solid rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.wheel-shell canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-panel__layout .otp-card {
    flex: 1 1 260px;
    max-width: 320px;
    align-self: center;
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 30%, #fff6d6, #f7a531);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    color: #2b1700;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.spin-button--ready {
    animation: spinReadyPulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 35px rgba(0, 220, 130, 0.45);
}

.spin-button--done,
.spin-button--disabled {
    background: radial-gradient(circle at 30% 30%, #d9d9d9, #8a8a8a);
    color: #2b2b2b;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.spin-button[aria-disabled="true"] {
    cursor: not-allowed;
}

.otp-card--locked input,
.otp-card--locked textarea {
    opacity: 0.7;
}

.otp-card--locked .otp-card__input button {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.wheel-shell__lights {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wheel-shell__lights span {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #fef5c7 65%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 0 16px rgba(255, 214, 0, 0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--index) * 60deg)) translateY(calc(-1 * min(22vw, 210px)));
    animation: wheelBlink calc(4s + (var(--index) * 0.8s)) ease-in-out infinite;
}

.wheel-pointer {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 78px;
    background: linear-gradient(180deg, #ffd166, #ffb703);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.wheel-pointer span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.spin-meta {
    text-align: center;
    max-width: 360px;
}

.spin-meta strong {
    display: block;
    font-size: 1.1rem;
}

.hero__info {
    flex: 1 1 420px;
    /*max-width: 520px;*/
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(3, 8, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 1.8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.hero__panel {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

.hero__panel .wheel-panel,
.hero__info {
    height: 100%;
}

@media (min-width: 1280px) {
    .hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        padding: 2rem;
    }
}

.hero__tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    display: inline-flex;
    width: fit-content;
}

.hero__info h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin: 0;
}

.hero__bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero__bullets li {
    position: relative;
    padding-right: 1.2rem;
    color: var(--text-muted);
}

.hero__bullets li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.55rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-secondary);
}

.hero__copy-extra {
    margin: 0;
    color: var(--text-muted);
}

.content-rich {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-rich__copy a {
    color: var(--brand-secondary);
}

.content-rich__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.content-rich__grid article {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 1.2rem;
}

.hero__cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

.hero__note a {
    color: var(--brand-primary);
    font-weight: 600;
}

.cta-primary,
.cta-primary:visited {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #03150f;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
}

.cta-primary--wide {
    width: 100%;
}

.cta-muted {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-main);
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-ghost {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
}

.btn-ghost--light {
    border-style: dashed;
}

.btn-ghost--inline {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    border-style: dashed;
    cursor: pointer;
}

.otp-card {
    background: var(--brand-panel);
    border: 1px solid var(--brand-border);
    border-radius: 1.2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.otp-card__verified {
    margin: 0;
    font-weight: 600;
    color: #fdfcf7;
}

.otp-card__status-text {
    margin: 0;
    font-size: 0.95rem;
}

.otp-card__previous {
    margin-top: 0.4rem;
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.otp-card__previous-prize {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.otp-card__previous-prize span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.otp-card__previous-prize strong {
    font-size: 1.05rem;
}

.otp-card__previous-prize code {
    align-self: flex-start;
    background: rgba(0, 220, 130, 0.12);
    color: #7fffd4;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
}

.otp-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.otp-card__input {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.otp-card__input input,
.otp-card__code input {
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    padding: 0.85rem 1rem;
}

.otp-card__input button {
    min-width: 140px;
    flex-shrink: 0;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff7b00, #ff006e);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 0.85rem 1.2rem;
}

.otp-card__code {
    display: none;
}

.otp-card.otp-card--code .otp-card__code {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.otp-card__feedback {
    min-height: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.otp-card__countdown {
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: var(--brand-secondary);
}

.winners-board {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--brand-border);
    border-radius: 1.2rem;
    padding: 1.3rem;
}

.winners-board__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.winners-board ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.winners-board li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
}

.winner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent, var(--brand-primary)), rgba(255, 255, 255, 0.12));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.winners-board li strong {
    display: block;
}

.badge {
    margin-left: auto;
    background: rgba(0, 220, 130, 0.15);
    color: var(--brand-primary);
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-size: 0.85rem;
}

main {
    background: radial-gradient(circle at top, rgba(0, 220, 130, 0.08), #04070f 55%);
    padding: 3rem clamp(1.5rem, 6vw, 6rem) 5rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.promo-grid article {
    border: 1px solid var(--brand-border);
    border-radius: 1.4rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.promo-grid img {
    border-radius: 1rem;
}

.discounts {
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1.8rem;
    padding: 2.5rem;
    border: 1px solid var(--brand-border);
}

.discounts__grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.discounts__grid article {
    padding: 1.4rem;
    border-radius: 1.2rem;
    border: 1px solid var(--brand-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.discounts__grid img {
    border-radius: 1rem;
}

.discounts__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

code {
    font-family: 'Vazirmatn', sans-serif;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    padding: 0.35rem 0.75rem;
}

.visual-grid {
    margin-top: 4rem;
}

.visual-grid__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.visual-grid figure {
    margin: 0;
    border-radius: 1.4rem;
    border: 1px solid var(--brand-border);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.visual-grid figcaption {
    padding: 0.8rem 1rem;
    color: var(--text-muted);
}

.faq {
    margin-top: 4rem;
}

.faq details {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--brand-border);
}

.footer {
    padding: 2rem clamp(1.5rem, 6vw, 6rem);
    border-top: 1px solid var(--brand-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    z-index: 2;
    background: #050608;
    border: 1px solid var(--brand-border);
    border-radius: 1.4rem;
    padding: 1.6rem;
    width: min(420px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
}

.modal--stacked .modal__dialog {
    text-align: center;
}

.modal__close {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.prize-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.prize-list li {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prize-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--prize-accent, #ff4d6d), rgba(255, 255, 255, 0.1));
}

.prize-icon i {
    font-size: 1.4rem;
}

.prize-list::-webkit-scrollbar {
    width: 6px;
}

.prize-list::-webkit-scrollbar-track {
    background: transparent;
}

.prize-list::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand-primary), var(--brand-secondary));
    border-radius: 999px;
}

.win-code {
    display: block;
    margin: 1rem auto 0;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--brand-border);
}

.textheading {
    font-size: 2rem;
    text-align : center !important;
}
.btnheading {
    text-align : center !important;
}
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }

    #spinBtn {
        max-width: 320px;
    }

    .otp-card__input {
        flex-direction: column;
    }

    .cta-primary--wide {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    
        .hero {
        padding: 0.2rem;
    }
}

@keyframes wheelBlink {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) rotate(calc(var(--index) * 60deg)) translateY(calc(-1 * min(22vw, 210px)));
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(calc(var(--index) * 60deg + 2deg)) translateY(calc(-1 * min(22vw, 210px)));
    }
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) rotate(calc(var(--index) * 60deg)) translateY(calc(-1 * min(22vw, 210px)));
    }
}

.winner-ticker {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    overflow: hidden;
    position: relative;
}

.winner-ticker__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.winner-ticker__text {
    margin: 0;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.winner-ticker__text--slide {
    animation: tickerElevator 0.6s ease;
}

.winner-phone {
    direction: ltr;
    unicode-bidi: bidi-override;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.9);
    color: #05121a;
    border-radius: 10px;
    padding: 0.15rem 0.65rem;
}

.winner-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.winner-prize {
    font-weight: 600;
}

@keyframes tickerElevator {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes otpPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.otp-card--highlight {
    animation: otpPulse 0.6s ease;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 220, 130, 0.4);
}

.spin-button:disabled {
    filter: grayscale(0.3);
    opacity: 0.7;
    cursor: not-allowed;
}

.spin-button:disabled span {
    opacity: 0.8;
}

@keyframes spinReadyPulse {
    0% {
        transform: translate(-50%, -50%);
        box-shadow: 0 0 20px rgba(0, 220, 130, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.04);
        box-shadow: 0 0 40px rgba(0, 153, 255, 0.6);
    }
    100% {
        transform: translate(-50%, -50%);
        box-shadow: 0 0 20px rgba(0, 220, 130, 0.4);
    }
}

.win-modal__code {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
}

.win-modal__code code {
    flex: 1;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.win-modal__code button {
    border: none;
    border-radius: 0.8rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #03150f;
    font-weight: 700;
    cursor: pointer;
}
