/* ============================================================
   Ekip Cark — Main CSS  |  betekip Color Scheme
   Deep Black + Bright Red (#CC0000) + White
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #CC0000;
    --red-dark: #990000;
    --red-light: #E60000;
    --gold: #F5A623;
    --gold-light: #FFD080;
    --black: #0D0D0D;
    --dark: #111111;
    --dark2: #181818;
    --dark3: #222222;
    --dark4: #2A2A2A;
    --white: #FFFFFF;
    --gray: #888899;
    --gray-light: #AAAAAA;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font: 'Outfit', sans-serif;
}

html,
body {
    min-height: 100vh;
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.5;
}

/* --- Particles --- */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--red);
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-110vh) rotate(720deg);
        opacity: 0;
    }
}

/* --- Utility --- */
.hidden {
    display: none !important;
}

/* ===========================
   LOGO
   =========================== */
.site-logo-text {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-bet {
    color: #FFFFFF;
}

.logo-ekip {
    color: var(--red);
}

/* ===========================
   LOGIN PAGE
   =========================== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at 30% 40%, rgba(180, 0, 0, 0.18) 0%, transparent 55%),
        linear-gradient(160deg, #0D0D0D 0%, #141414 100%);
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: #111111;
    border: 1px solid rgba(204, 0, 0, 0.35);
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: 0 0 60px rgba(204, 0, 0, 0.08), 0 30px 60px rgba(0, 0, 0, 0.7);
    animation: card-appear 0.5s ease-out;
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo-img {
    width: 160px;
    margin: 0 auto 12px;
    display: block;
}

.login-brand {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 0.82rem;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Alerts --- */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(204, 0, 0, 0.12);
    border: 1px solid rgba(204, 0, 0, 0.4);
    color: #FF8080;
    animation: shake 0.35s ease;
}

.alert-success {
    background: rgba(0, 180, 80, 0.1);
    border: 1px solid rgba(0, 180, 80, 0.35);
    color: #60DD90;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* --- Form --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: #1A1A1A;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.97rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input::placeholder {
    color: var(--gray);
}

.form-input:focus {
    border-color: var(--red);
    background: #1E1010;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 3px 16px rgba(204, 0, 0, 0.4);
}

.btn-primary:hover {
    background: var(--red-light);
    box-shadow: 0 6px 24px rgba(204, 0, 0, 0.55);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.18s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-glow {
    animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 3px 16px rgba(204, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 32px rgba(204, 0, 0, 0.7);
    }
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
}

.login-footer strong {
    color: var(--gold);
}

/* ===========================
   WHEEL PAGE
   =========================== */
.wheel-body {
    background: #0D0D0D;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Casino background image */
.casino-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('/cark/assets/img/casino-bg.png') center center / cover no-repeat;
    opacity: 0.45;
    pointer-events: none;
}

.casino-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(204, 0, 0, 0.18) 0%, transparent 55%),
        linear-gradient(180deg,
            rgba(13, 13, 13, 0.55) 0%,
            rgba(13, 13, 13, 0.35) 40%,
            rgba(13, 13, 13, 0.7) 100%);
    pointer-events: none;
}

/* Glass card (code entry card) */
.glass-card {
    background: rgba(13, 13, 13, 0.72) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(204, 0, 0, 0.3) !important;
    box-shadow:
        0 0 80px rgba(204, 0, 0, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* --- Header --- */
.wheel-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(204, 0, 0, 0.28);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-text {
    font-size: 1.6rem;
}

.header-logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 10px;
    margin-left: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-site-link {
    padding: 7px 18px;
    background: rgba(204, 0, 0, 0.14);
    border: 1px solid rgba(204, 0, 0, 0.32);
    border-radius: 7px;
    color: #FF7777;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
}

.header-site-link:hover {
    background: rgba(204, 0, 0, 0.25);
    border-color: var(--red);
    color: var(--white);
}

/* Keep logout for admin */
.btn-logout {
    padding: 6px 16px;
    background: rgba(204, 0, 0, 0.15);
    border: 1px solid rgba(204, 0, 0, 0.35);
    border-radius: 7px;
    color: #FF6666;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
}

.btn-logout:hover {
    background: rgba(204, 0, 0, 0.28);
    border-color: var(--red);
}

/* --- Main --- */
.wheel-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 40px;
    position: relative;
    z-index: 1;
}

.stage {
    width: 100%;
    max-width: 540px;
}

/* --- Stage 1: Code Entry --- */
.stage-card {
    background: #111111;
    border: 1px solid rgba(204, 0, 0, 0.25);
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    animation: card-appear 0.45s ease-out;
}

.code-header {
    text-align: center;
    margin-bottom: 32px;
}

/* Code logo area */
.code-logo-area {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.code-logo-brand {
    font-size: 2rem;
}

.code-logo-label {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--gray);
    text-transform: uppercase;
}

/* Keep icon wrap for backwards compat */
.code-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: rgba(204, 0, 0, 0.1);
    border: 1px solid rgba(204, 0, 0, 0.35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-border 2.2s ease-in-out infinite;
}

.code-icon-wrap img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(204, 0, 0, 0);
    }
}

.code-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.code-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.code-form {
    margin-bottom: 22px;
}

.code-input-wrapper .form-input {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

.code-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

.info-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

/* --- Stage 2: Wheel --- */
.wheel-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: card-appear 0.45s ease-out;
}

.wheel-title-area {
    text-align: center;
}

.wheel-page-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.wheel-page-title-suffix {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--gray);
    align-self: flex-end;
    margin-bottom: 4px;
}

.wheel-page-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 6px;
}

/* --- Wheel Scene --- */
.wheel-scene {
    position: relative;
    width: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: ring-pulse 2.8s ease-in-out infinite;
}

.ring-1 {
    width: 500px;
    height: 500px;
    border-color: rgba(204, 0, 0, 0.3);
    animation-delay: 0s;
}

.ring-2 {
    width: 520px;
    height: 520px;
    border-color: rgba(204, 0, 0, 0.12);
    animation-delay: 0.5s;
}

.ring-3 {
    width: 540px;
    height: 540px;
    border-color: rgba(204, 0, 0, 0.05);
    animation-delay: 1s;
}

@keyframes ring-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.01);
    }
}

.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid var(--red);
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(204, 0, 0, 0.8));
}

.wheel-canvas-wrap {
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 5px rgba(204, 0, 0, 0.5),
        0 0 0 8px rgba(204, 0, 0, 0.15),
        0 0 50px rgba(204, 0, 0, 0.25),
        0 0 100px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.3s;
}

.wheel-canvas-wrap.spinning {
    animation: spin-border 0.15s linear infinite;
}

@keyframes spin-border {
    0% {
        box-shadow: 0 0 0 5px rgba(204, 0, 0, 0.7), 0 0 0 10px rgba(245, 166, 35, 0.2), 0 0 80px rgba(204, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(245, 166, 35, 0.6), 0 0 0 12px rgba(204, 0, 0, 0.15), 0 0 100px rgba(245, 166, 35, 0.3);
    }

    100% {
        box-shadow: 0 0 0 5px rgba(204, 0, 0, 0.7), 0 0 0 10px rgba(245, 166, 35, 0.2), 0 0 80px rgba(204, 0, 0, 0.4);
    }
}

#wheelCanvas {
    display: block;
}

/* --- Spin Button --- */
.btn-spin {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red-dark) 100%);
    border: none;
    border-radius: 50px;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(204, 0, 0, 0.5), 0 0 0 2px rgba(204, 0, 0, 0.3);
    animation: spin-btn-pulse 2.2s ease-in-out infinite;
}

@keyframes spin-btn-pulse {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(204, 0, 0, 0.5), 0 0 0 2px rgba(204, 0, 0, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 40px rgba(204, 0, 0, 0.8), 0 0 0 4px rgba(204, 0, 0, 0.5);
        transform: scale(1.02);
    }
}

.btn-spin:hover {
    transform: scale(1.05);
}

.btn-spin:active {
    transform: scale(0.97);
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
    transform: none;
}

.spin-btn-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--white);
}

.spin-icon {
    font-size: 1.3rem;
}

.spin-hint {
    font-size: 0.82rem;
    color: var(--gray);
    text-align: center;
}

/* ===========================
   WIN OVERLAY
   =========================== */
.win-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
    animation: overlay-appear 0.35s ease-out;
}

@keyframes overlay-appear {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.win-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.win-card {
    position: relative;
    background: #111111;
    border: 2px solid rgba(204, 0, 0, 0.5);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(204, 0, 0, 0.2), 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: win-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes win-bounce {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.win-reward-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.win-card-body {
    padding: 32px 36px 36px;
    text-align: center;
}

.win-congrats {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 4px;
    animation: text-glow 1.5s ease-in-out infinite;
}

@keyframes text-glow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
    }

    50% {
        text-shadow: 0 0 28px rgba(204, 0, 0, 0.9);
    }
}

.win-subtitle {
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: var(--gray-light);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.win-reward-box {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(245, 166, 35, 0.06));
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 18px;
    animation: reward-appear 0.45s ease-out 0.4s both;
}

@keyframes reward-appear {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.win-reward-type {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gray-light);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.win-reward-amount {
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--gold);
    filter: drop-shadow(0 0 14px rgba(245, 166, 35, 0.5));
    line-height: 1;
    animation: amount-pop 0.6s ease-out 0.6s both;
}

@keyframes amount-pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.win-message {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 24px;
}

.btn-win-close {
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 0.97rem;
}

/* ===========================
   ADMIN BASE
   =========================== */
.admin-body {
    background: #0D0D0D;
    min-height: 100vh;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width:600px) {

    .login-card,
    .stage-card {
        padding: 28px 20px;
    }

    .wheel-scene {
        width: 320px;
        height: 320px;
    }

    .ring-1 {
        width: 300px;
        height: 300px;
    }

    .ring-2 {
        width: 320px;
        height: 320px;
    }

    .ring-3 {
        width: 340px;
        height: 340px;
    }

    #wheelCanvas {
        width: 280px !important;
        height: 280px !important;
    }

    .wheel-page-title {
        font-size: 1.6rem;
    }

    .spin-btn-inner {
        padding: 14px 30px;
    }

    .win-card-body {
        padding: 24px 20px;
    }

    .win-congrats {
        font-size: 1.9rem;
    }

    .win-reward-amount {
        font-size: 2.8rem;
    }
}

/* ═══════════════════════════════════════════
   BLURLU ARKA PLAN
   ═══════════════════════════════════════════ */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(8px) brightness(0.4) saturate(1.2);
    transform: scale(1.05);
}

.page-bg-blur {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, 0.45);
}

.page-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(180, 0, 0, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.7) 0%, transparent 55%);
}

/* ═══════════════════════════════════════════
   SITE SLIDER
   ═══════════════════════════════════════════ */
.site-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
    /* header height */
    background: #000;
    flex-shrink: 0;
}

.slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    display: block;
    line-height: 0;
}

.slider-slide img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.slider-btn:hover {
    background: rgba(204, 0, 0, 0.7);
    border-color: rgba(204, 0, 0, 0.6);
}

.slider-btn-prev {
    left: 14px;
}

.slider-btn-next {
    right: 14px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.22s;
    padding: 0;
}

.slider-dot.active {
    background: var(--red);
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(204, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════
   WHEEL MAIN (slider varken padding düzelt)
   ═══════════════════════════════════════════ */
.wheel-main {
    padding-top: 24px !important;
}

.code-input-wrap {
    position: relative;
}

.code-input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    z-index: 2;
}

.code-input {
    padding-left: 42px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.win-sparkles {
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 4px;
}

/* ═══════════════════════════════════════════
   WIN OVERLAY - Görsel büyüt ve düzelt
   ═══════════════════════════════════════════ */
.win-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.win-reward-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    background: #111;
    padding: 10px;
}

/* ═══════════════════════════════════════════
   ADMIN SLIDER MANAGEMENT
   ═══════════════════════════════════════════ */
.slider-admin-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slider-admin-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.14s;
}

.slider-admin-item:last-child {
    border-bottom: none;
}

.slider-admin-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.sai-thumb {
    width: 140px;
    height: 38px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a1a;
}

.sai-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sai-info {
    flex: 1;
    min-width: 0;
}

.sai-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--white);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sai-meta {
    display: flex;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--gray);
}

.sai-meta code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.74rem;
}

.sai-status {
    flex-shrink: 0;
}

.sai-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.slider-edit-row {
    background: rgba(245, 166, 35, 0.03);
    border-top: none;
}

.slider-edit-form {
    padding: 16px 18px;
}

/* ═══════════════════════════════════════════
   FILE UPLOAD AREA
   ═══════════════════════════════════════════ */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-area:hover {
    border-color: rgba(204, 0, 0, 0.4);
    background: rgba(204, 0, 0, 0.03);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.file-upload-icon {
    font-size: 2rem;
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--gray-light);
    font-weight: 500;
}

.file-upload-hint {
    font-size: 0.78rem;
    color: var(--gray);
}

/* ═══════════════════════════════════════════
   RESPONSIVE - Slider
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
    .slider-slide img {
        max-height: 160px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .win-img-wrap {
        height: 180px;
    }
}

/* Slider fix - sabit yukseklik */
.slider-slide img {
    height: 200px !important;
    max-height: 200px !important;
}

@media (min-width: 768px) {
    .slider-slide img {
        height: 260px !important;
        max-height: 260px !important;
    }
}

@media (min-width: 1200px) {
    .slider-slide img {
        height: 300px !important;
        max-height: 300px !important;
    }
}

/* ═══════════════════════════════════════════
   SLIDER ASPECT RATIO FIX (2400x653)
   ═══════════════════════════════════════════ */
.slider-slide img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 2400 / 653;
    object-fit: cover;
}

@media (max-width: 600px) {
    .slider-slide img {
        min-height: 120px;
        object-fit: contain;
        /* telefonda tam görünsün ama kesilmesin */
        background: #000;
    }
}

/* ═══════════════════════════════════════════
   CODE MODAL
   ═══════════════════════════════════════════ */
@keyframes modal-bounce {
    0% {
        transform: scale(0.6) translateY(50px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(204, 0, 0, 0.8);
    border-color: #CC0000;
    transform: rotate(90deg);
}

#btn-open-code-modal {
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.6), 0 0 0 4px rgba(204, 0, 0, 0.3);
    transition: all 0.25s;
}

#btn-open-code-modal:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(204, 0, 0, 0.8), 0 0 0 6px rgba(204, 0, 0, 0.4);
}

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
    background: #080808;
    border-top: 2px solid rgba(204, 0, 0, 0.2);
    padding: 60px 20px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 5;
    color: var(--gray);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-list li {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-list strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

.footer-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    background: rgba(204, 0, 0, 0.15);
    color: var(--red);
    font-weight: 800;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(204, 0, 0, 0.4);
}

.step-text strong {
    display: inline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-light);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════ PREMIUM TRIGGER BUTTON ═══════════════ */
.trigger-stage {
    margin: 60px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.trigger-area {
    position: relative;
    z-index: 10;
}

#btn-open-code-modal.btn-premium-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 64px;
    background: linear-gradient(145deg, #181818 0%, #0a0a0a 100%);
    border: 2px solid rgba(220, 0, 0, 0.3);
    border-radius: 60px;
    color: var(--white);
    font-family: var(--font);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 0 5px rgba(204, 0, 0, 0.1);
}

#btn-open-code-modal.btn-premium-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(204, 0, 0, 0.45) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

#btn-open-code-modal.btn-premium-trigger:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 30, 30, 0.9);
    box-shadow: 0 20px 50px rgba(204, 0, 0, 0.6), 0 0 0 8px rgba(204, 0, 0, 0.2);
    color: #fff;
    text-shadow: 0 0 12px rgba(204, 0, 0, 0.9);
}

#btn-open-code-modal.btn-premium-trigger:hover::after {
    opacity: 1;
}

#btn-open-code-modal.btn-premium-trigger .trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 0, 0, 0.15);
    border: 1px solid rgba(204, 0, 0, 0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

#btn-open-code-modal.btn-premium-trigger:hover .trigger-icon {
    transform: translateX(8px) scale(1.1);
    background: var(--red);
    border-color: var(--red-light);
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.8);
}

.trigger-hint {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ═══════════════ MOBILE RESPONSIVE ═══════════════ */
@media (max-width: 768px) {

    /* Header adjustments */
    .header-inner {
        flex-direction: column;
        padding: 10px 15px;
        gap: 12px;
    }

    .site-slider {
        margin-top: 90px;
    }

    .header-logo-text {
        font-size: 1.4rem;
    }

    .header-logo-sub {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    /* Slider Button Adjustments */
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }

    /* Code Button Adjustments */
    .trigger-stage {
        margin: 40px auto;
        padding: 0 15px;
    }

    #btn-open-code-modal.btn-premium-trigger {
        padding: 20px 32px;
        font-size: 1.2rem;
        gap: 12px;
        width: 100%;
    }

    .trigger-hint {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    #btn-open-code-modal.btn-premium-trigger .trigger-icon {
        width: 36px;
        height: 36px;
    }

    #btn-open-code-modal.btn-premium-trigger .trigger-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Wheel title adjustments */
    .wheel-page-title {
        font-size: 1.7rem;
    }

    /* Code Modal adjustments */
    .glass-card,
    .stage-card {
        padding: 30px 20px;
        margin-top: 20px;
    }

    .code-title {
        font-size: 1.25rem;
    }

    .code-subtitle {
        font-size: 0.85rem;
    }

    .form-input.code-input {
        font-size: 1rem !important;
        letter-spacing: 2px !important;
    }

    .btn-full {
        padding: 16px;
        font-size: 1rem;
    }

    /* Footer adjustments */
    .site-footer {
        padding: 40px 15px 20px;
        margin-top: 40px;
    }

    .footer-col {
        gap: 12px;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-text,
    .footer-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    /* Extreme small devices */
    #btn-open-code-modal.btn-premium-trigger {
        font-size: 1.05rem;
        padding: 16px 20px;
        letter-spacing: 2px;
    }

    .trigger-hint {
        font-size: 0.75rem;
    }

    .win-congrats {
        font-size: 2rem;
    }

    .win-reward-amount {
        font-size: 2.5rem;
    }
}