:root {
    --primary-gradient: linear-gradient(-45deg, #2b2b91, #681a98, #b2146c, #4a1a6b);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(130, 36, 227, 0.4);
    --purple-accent: #a855f7;
    --purple-dark: #6d28d9;
    --text-dark: #1e1b2e;
    --text-muted: #6b6488;
    --border-color: rgba(255, 255, 255, 0.3);
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
    --bg-pinkish: #f8f0ff;
}

.hidden {
    display: none !important;
}

* {
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-animated {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateZ(0);
}

.bg-animated .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: floatAround 25s infinite alternate ease-in-out;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
    -webkit-transform: translate3d(0,0,0);
}

.bg-animated .orb:nth-child(1) {
    width: 700px;
    height: 700px;
    background: #a855f7;
    top: -20%;
    left: -20%;
}

.bg-animated .orb:nth-child(2) {
    width: 800px;
    height: 800px;
    background: #7c3aed;
    bottom: -20%;
    right: -20%;
    animation-delay: -7s;
}

.bg-animated .orb:nth-child(3) {
    width: 600px;
    height: 600px;
    background: #4c1d95;
    top: 30%;
    left: 30%;
    animation-delay: -12s;
}

.bg-animated .orb-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse at 50% 50%, rgba(130, 36, 227, 0.3), transparent 70%);
    filter: blur(60px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 80px) scale(1.3);
    }
}

.mobile-wrapper {
    position: relative;
    z-index: 1;
    background: var(--bg-pinkish);
    box-shadow: 0 0 120px rgba(130, 36, 227, 0.5);
    width: 100%;
    max-width: 415px;
    height: 94vh;
    max-height: 840px;
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: appEntrance 0.6s var(--transition-smooth) both;
}

@keyframes appEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.view {
    display: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
    width: 100%;
    background: radial-gradient(ellipse at 50% 80%, rgba(130, 36, 227, 0.15) 0%, rgba(255, 255, 255, 0.7) 70%);
}

.view.active {
    display: flex;
    flex-direction: column;
}

.view::-webkit-scrollbar {
    width: 3px;
}

.view::-webkit-scrollbar-thumb {
    background: rgba(130, 36, 227, 0.25);
    border-radius: 4px;
}

.wheel-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px 0;
    width: 100%;
    gap: 4px;
    position: relative;
    perspective: 1000px;
}

.wheel-title-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
    z-index: 2;
}

.title-bubble {
    position: relative;
    background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
    padding: 8px 24px 10px 24px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
    min-width: 120px;
}

.title-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 60%, transparent 100%);
    pointer-events: none;
}

.title-bubble::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 18px solid #5b21b6;
    filter: drop-shadow(0 4px 10px rgba(91, 33, 182, 0.3));
}

.wheel-title {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.wheel-title i {
    font-size: 18px;
    margin-left: 6px;
    color: #fcd34d;
    text-shadow: 0 0 16px rgba(252, 211, 77, 0.4);
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 6px 0 14px 0;
    padding: 0 10px;
}

.subtitle-line {
    flex: 1;
    height: 2px;
    max-width: 40px;
    background: linear-gradient(90deg, transparent, #7c3aed, transparent);
    border-radius: 2px;
    opacity: 0.7;
    animation: linePulse 2s ease-in-out infinite;
}

.subtitle-line.right {
    background: linear-gradient(90deg, transparent, #7c3aed, transparent);
    animation-delay: 0.5s;
}

@keyframes linePulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

.subtitle-text {
    font-size: 14px;
    font-weight: 600;
    color: #2d1b4e;
    margin: 4px 0 16px 0;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.wheel-container {
    position: relative;
    width: 85vw;
    max-width: 360px;
    height: 85vw;
    max-height: 360px;
    flex-shrink: 0;
    margin: 0 auto 4px auto;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.wheel-container::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 45%, rgba(130, 36, 227, 0.2), transparent 70%);
    box-shadow: 0 0 12px 3px rgb(151 67 225 / 0.4), 0 0 20px -10px rgb(51 17 85 / 0.5);
    z-index: 0;
    pointer-events: none;
    filter: blur(8px);
}

.wheel-container::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgb(151 67 225 / 0.4), 0 20px 20px -10px rgb(51 17 85 / 0.5);
    z-index: 1;
    pointer-events: none;
}

.blinking-lights {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
}

.blink-light {
    position: absolute;
    pointer-events: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.2px solid #7c3aed;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.8), 0 0 24px 8px rgba(168, 85, 247, 0.4);
    animation: blinkLight 1.5s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes blinkLight {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
        box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.3), 0 0 16px 4px rgba(168, 85, 247, 0.2);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.95), 0 0 40px 14px rgba(168, 85, 247, 0.7);
    }
}

#wheelCanvas {
    position: absolute;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    z-index: 2;
    display: block;
    will-change: transform;
    transform: translateZ(0);
    image-rendering: auto;
    border: 16px solid #ffffff;
    box-shadow: 0 10px 10px 2px #7c3aed,
    0 0 0 12px rgba(130, 36, 227, 0.12),
    inset 0 0 10px 2px #7c3aed,
    inset 0 0 18px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(0, 0, 0, 0.15),
    inset 0 0 30px rgba(130, 36, 227, 0.15);
}

.pointer-img {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(251, 191, 36, 0.4));
    pointer-events: none;
    image-rendering: auto;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24%;
    max-width: 76px;
    aspect-ratio: 1/1;
    background: radial-gradient(circle at 40% 35%, #fff, #f0e6ff);
    border-radius: 50%;
    z-index: 15;
    border: 4px solid #fbbf24;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(251, 191, 36, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-logo-img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.spin-btn {
    font-size: 20px;
    font-weight: 900;
    padding: 12px 32px;
    margin: 16px 0 16px 0;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, #7c3aed 35%, #4c1d95 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 0 #2e1065, 0 10px 30px rgba(91, 33, 182, 0.45);
    transition: all 0.1s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 200px;
    user-select: none;
}

.spin-btn::before {
    content: '';
    position: absolute;
    inset: 3px 3px 6px 3px;
    border-radius: 48px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.spin-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #2e1065, 0 6px 24px rgba(91, 33, 182, 0.35);
}

.spin-btn:disabled {
    opacity: 0.5;
    transform: translateY(3px);
    box-shadow: 0 3px 0 #2e1065;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.status-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 6px;
}

.status-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 8px 14px 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(130, 36, 227, 0.08), 0 6px 20px rgba(0, 0, 0, 0.04);
    flex: 1;
    min-width: 110px;
    max-width: 180px;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(25deg);
    animation: glareMove 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes glareMove {
    0%,
    100% {
        left: -40%;
    }
    50% {
        left: 110%;
    }
}

.status-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.status-icon.star {
    color: #fbbf24;
}

.status-icon.clock {
    color: #7c3aed;
}

.status-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.status-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b6488;
    line-height: 1.2;
}

.status-value {
    font-size: 20px;
    font-weight: 900;
    color: #6d28d9;
    line-height: 1.2;
    direction: ltr;
    font-family: 'Vazir', monospace;
}

.daily-prizes-preview {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(130, 36, 227, 0.05);
}

.daily-prizes-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e1b2e;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.daily-prizes-title i {
    color: #1e1b2e;
    font-size: 16px;
}

.prize-tags-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: thin;
}

.prize-tags-container::-webkit-scrollbar {
    height: 3px;
}

.prize-tags-container::-webkit-scrollbar-thumb {
    background: rgba(130, 36, 227, 0.2);
    border-radius: 4px;
}

.prize-tag {
    background: rgba(130, 36, 227, 0.08);
    border: 1px solid rgba(130, 36, 227, 0.15);
    color: #4c1d95;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.prizes-view,
.rules-view,
.admin-view {
    padding: 20px 18px 10px;
    flex: 1;
    width: 100%;
    background: radial-gradient(ellipse at 50% 80%, rgba(130, 36, 227, 0.12) 0%, rgba(255, 255, 255, 0.7) 70%);
}

.prizes-view h2,
.rules-view h2,
.admin-view h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.prizes-view h2 i,
.rules-view h2 i,
.admin-view h2 i {
    color: var(--purple-accent);
}

.premium-rules-list {
    list-style: none;
    padding: 0;
}

.premium-rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 18px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.rule-icon {
    background: rgba(130, 36, 227, 0.12);
    color: var(--purple-accent);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.rule-text {
    font-size: 15px;
    color: #2d1b4e;
    line-height: 1.7;
    padding-top: 4px;
}

.prize-list-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 4px solid var(--purple-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.prize-list-item .prize-img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--border-color);
}

.prize-list-item .prize-info {
    flex: 1;
}

.prize-list-item .prize-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.prize-list-item .prize-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a0a0a0;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    width: 25%;
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-item i {
    font-size: 22px;
    transition: 0.2s;
}

.nav-item.active {
    color: var(--purple-accent);
    font-weight: 700;
}

.nav-item.active i {
    transform: scale(1.1);
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 10, 46, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.custom-modal {
    background: rgba(255, 255, 255, 0.96);
    width: 90%;
    max-width: 340px;
    border-radius: 32px;
    padding: 32px 22px 26px;
    text-align: center;
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.3);
}

.modal-img-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.modal-title-bold {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #111;
}

.modal-prize-box {
    background: rgba(130, 36, 227, 0.08);
    border: 1px dashed rgba(130, 36, 227, 0.2);
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 16px;
    text-align: right;
}

.modal-prize-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--purple-accent);
    line-height: 1.6;
}

.modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 22px;
    padding: 0 6px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    margin-bottom: 10px;
    transition: 0.2s;
}

.btn-primary.filled {
    background: linear-gradient(135deg, var(--purple-accent), var(--purple-dark));
    color: #fff;
    box-shadow: 0 6px 20px rgba(130, 36, 227, 0.3);
}

.btn-primary.filled:active {
    transform: scale(0.97);
}

.btn-primary.outlined {
    background: transparent;
    color: var(--purple-accent);
    border: 1.5px solid var(--purple-accent);
}

.btn-primary.outlined:active {
    background: rgba(130, 36, 227, 0.05);
}

.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.admin-tab {
    flex: 1;
    min-width: 65px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    transition: all 0.25s ease;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.admin-tab i {
    font-size: 14px;
    color: inherit;
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--purple-accent), #6d28d9);
    color: #fff;
    box-shadow: 0 4px 20px rgba(130, 36, 227, 0.3);
}

.admin-tab.active i {
    color: #fff;
}

.admin-panel {
    display: none;
    animation: fadeSlideUp 0.35s ease;
}

.admin-panel.active {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.stat-card .stat-icon {
    font-size: 26px;
    margin-bottom: 4px;
    display: block;
    color: var(--purple-accent);
}

.stat-card span:first-child {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--purple-dark);
    display: block;
    background: linear-gradient(135deg, var(--purple-dark), #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1.5px solid rgba(200, 200, 200, 0.3);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    min-width: 120px;
    font-weight: 500;
}

.admin-input:focus {
    border-color: var(--purple-accent);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(130, 36, 227, 0.08);
}

.admin-btn {
    padding: 12px 20px;
    border-radius: 16px;
    border: none;
    background: rgba(130, 36, 227, 0.06);
    color: var(--purple-dark);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid rgba(130, 36, 227, 0.06);
    backdrop-filter: blur(4px);
}

.admin-btn i {
    color: var(--purple-accent);
}

.admin-btn.primary {
    background: linear-gradient(135deg, var(--purple-accent), #6d28d9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(130, 36, 227, 0.2);
}

.admin-btn.primary i {
    color: #fff;
}

.admin-btn.primary:active {
    transform: scale(0.97);
}

.admin-btn:active:not(.primary) {
    transform: scale(0.97);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.admin-list::-webkit-scrollbar {
    width: 3px;
}

.admin-list::-webkit-scrollbar-thumb {
    background: rgba(130, 36, 227, 0.15);
    border-radius: 4px;
}

.admin-list-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    transition: all 0.2s ease;
}

.admin-list-item .info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.admin-list-item .info .title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-list-item .info .title .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.admin-list-item .info .title .badge.inactive {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.admin-list-item .info .sub {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-list-item .actions {
    display: flex;
    gap: 6px;
}

.admin-list-item .actions button {
    padding: 6px 16px;
    border-radius: 12px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-list-item .actions .edit {
    background: rgba(46, 204, 113, 0.12);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.1);
}

.admin-list-item .actions .delete {
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.08);
}

.admin-list-item .actions button:active {
    transform: scale(0.94);
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.admin-pagination button {
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(130, 36, 227, 0.15);
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    color: var(--purple-dark);
    min-width: 36px;
}

.admin-pagination button:hover {
    background: rgba(130, 36, 227, 0.08);
}

.admin-pagination button.active {
    background: var(--purple-accent);
    color: #fff;
    border-color: var(--purple-accent);
}

.paper-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.paper-confetti img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes fall-3d {
    0% {
        transform: translateZ(-250px) translateY(-120%) rotate(0deg) scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: translateZ(450px) translateY(150%) rotate(720deg) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 380px) {
    .wheel-container {
        width: 80vw;
        height: 80vw;
        max-width: 280px;
        max-height: 280px;
    }

    .spin-btn {
        font-size: 17px;
        padding: 10px 24px;
        min-width: 200px;
    }

    .status-card {
        padding: 6px 10px;
        min-width: 90px;
    }

    .status-value {
        font-size: 17px;
    }

    .title-bubble {
        padding: 6px 18px 8px 18px;
        border-radius: 14px;
        min-width: 90px;
    }

    .title-bubble::after {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 14px;
        bottom: -11px;
    }

    .wheel-title {
        font-size: 16px;
    }

    .wheel-title i {
        font-size: 14px;
    }

    .subtitle-text {
        font-size: 12px;
    }

    .pointer-img {
        width: 64px;
        height: 64px;
        top: -16px;
    }

    #wheelCanvas {
        border-width: 14px;
    }

    .blink-light {
        width: 8px;
        height: 8px;
        box-shadow: 16px 0 0 rgb(255 255 255);
    }
}

@media (max-height: 720px) {
    .wheel-container {
        width: 80vw;
        height: 80vw;
        max-width: 300px;
        max-height: 300px;
        margin-bottom: 4px;
    }

    .spin-btn {
        font-size: 18px;
        padding: 10px 28px;
        min-width: 200px;
    }

    .pointer-img {
        width: 64px;
        height: 64px;
        top: -16px;
    }

    .title-bubble {
        padding: 6px 20px 8px 20px;
    }

    .wheel-title {
        font-size: 17px;
    }

    .title-bubble::after {
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 15px;
        bottom: -12px;
    }

    .subtitle-text {
        font-size: 12px;
    }

    #wheelCanvas {
        border-width: 14px;
    }

    .status-row {
        gap: 12px;
    }

    .status-card {
        padding: 6px 10px;
    }

    .status-value {
        font-size: 17px;
    }

    .blink-light {
        width: 8px;
        height: 8px;
        box-shadow: 16px 0 0 rgb(255 255 255);
    }
}

@media (max-height: 640px) {
    .wheel-container {
        width: 74vw;
        height: 74vw;
        max-width: 250px;
        max-height: 250px;
        margin-bottom: 4px;
    }

    .wheel-center {
        width: 22%;
        max-width: 52px;
        max-height: 52px;
        border-width: 3px;
    }

    .spin-btn {
        font-size: 16px;
        padding: 8px 20px;
        min-width: 100px;
    }

    .wheel-title {
        font-size: 15px;
    }

    .title-bubble {
        padding: 5px 14px 6px 14px;
        border-radius: 12px;
        min-width: 70px;
    }

    .title-bubble::after {
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 11px;
        bottom: -9px;
    }

    .subtitle-text {
        font-size: 11px;
    }

    #wheelCanvas {
        border-width: 12px;
    }

    .daily-prizes-preview {
        padding: 6px 10px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .status-card {
        padding: 4px 8px;
        min-width: 70px;
        gap: 6px;
    }

    .status-value {
        font-size: 14px;
    }

    .status-label {
        font-size: 9px;
    }

    .status-icon {
        font-size: 16px;
        width: 24px;
    }

    .pointer-img {
        width: 64px;
        height: 64px;
        top: -16px;
    }

    .blink-light {
        width: 4px;
        height: 4px;
        border: 2px solid #7c3aed;
        box-shadow: 16px 0 0 rgb(255 255 255);
    }
}
@media (max-width: 420px) {
    .blink-light {
        animation: none;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.95), 0 0 40px 14px rgba(168, 85, 247, 0.7);
    }
}