
body.cabinet-page {
    background-color: #0a0a0a !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: initial !important;
    background-attachment: initial !important;
    background-repeat: initial !important;
    position: relative;
}

body.cabinet-page::before {
    display: none !important;
    content: none !important;
}



div[class*="bg-[#0a0a0a"]:not(.feature-block),
div[class*="bg-gradient-to-br"] {
    position: relative !important;
    overflow: hidden !important;
    background-color: #0a0a0a !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}



div[class*="bg-[#0a0a0a"]:not(.feature-block)::before,
div[class*="bg-gradient-to-br"]::before {
    content: '' !important;
    position: absolute !important;
    top: -100px !important;
    right: -100px !important;
    width: 300px !important;
    height: 300px !important;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 25%, rgba(139, 92, 246, 0.08) 45%, rgba(139, 92, 246, 0.03) 65%, rgba(10, 10, 10, 0.6) 85%, rgba(10, 10, 10, 1) 100%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    border-radius: 50% !important;
    filter: blur(60px) !important;
    opacity: 0.9 !important;
}



div[class*="bg-[#0a0a0a"]:not(.feature-block)::after,
div[class*="bg-gradient-to-br"]::after {
    content: '' !important;
    position: absolute !important;
    bottom: -100px !important;
    left: -100px !important;
    width: 300px !important;
    height: 300px !important;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 25%, rgba(139, 92, 246, 0.08) 45%, rgba(139, 92, 246, 0.03) 65%, rgba(10, 10, 10, 0.6) 85%, rgba(10, 10, 10, 1) 100%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    border-radius: 50% !important;
    filter: blur(60px) !important;
    opacity: 0.9 !important;
}

div[class*="bg-[#0a0a0a"]:not(.feature-block) > *,
div[class*="bg-gradient-to-br"] > * {
    position: relative !important;
    z-index: 1 !important;
}


.feature-block {
    background-color: #0a0a0a !important;
    background-image: none !important;
}

.feature-block::before,
.feature-block::after {
    display: none !important;
}

#users-table td,
#active-codes td,
#used-codes td {
    padding: 0.75rem 1.5rem;
    background-color: #0a0a0a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.05);
}

#users-table td:hover,
#active-codes td:hover,
#used-codes td:hover {
    background-color: #111111;
}

#users-table tr:hover,
#active-codes tr:hover,
#used-codes tr:hover {
    background-color: rgba(139, 92, 246, 0.05);
}


#active-codes svg,
#used-codes svg,
#active-codes td svg,
#used-codes td svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}


.promo-code-info svg,
.copy-btn svg,
.empty-state svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

.promo-success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.promo-success-icon svg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}


.promo-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.promo-success-card .promo-success-icon {
    width: 64px;
    height: 64px;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.promo-success-card .promo-code-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    font-family: 'Courier New', monospace;
    margin: 0.5rem 0;
}

.promo-success-card .promo-info {
    text-align: center;
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

.promo-success-card .promo-info strong {
    color: #ffffff;
    font-weight: 600;
}

#result {
    min-height: 0;
    transition: min-height 0.3s ease-out;
}


#result .promo-success-card {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    font-size: 0.875rem;
}

#result .promo-success-card * {
    margin: 0;
    padding: 0;
}

#result .promo-success-card .promo-success-icon {
    width: 20px !important;
    height: 20px !important;
    color: #8b5cf6;
    flex-shrink: 0;
}

#result .promo-success-card .promo-success-icon svg {
    width: 20px !important;
    height: 20px !important;
}

#result .promo-success-card .promo-success-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

#result .promo-success-card .promo-code-display {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace;
    margin: 0;
}

#result .promo-success-card .promo-info {
    display: none;
}

#result .promo-success-card .copy-btn {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0.25rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

#result .promo-success-card .copy-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
}

#result .promo-success-card .copy-btn svg {
    width: 14px !important;
    height: 14px !important;
}


.admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-actions button {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    border: 1px solid;
    cursor: pointer;
}

.admin-actions button:first-child {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
}

.admin-actions button:first-child:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
}

.admin-actions button:last-child {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.admin-actions button:last-child:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}


#edit-modal {
    z-index: 9999;
}

#edit-modal > div {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#edit-modal input,
#edit-modal select {
    background-color: #000000;
    border-color: rgba(255, 255, 255, 0.1);
}

#edit-modal input:focus,
#edit-modal select:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}


.bg-\[#0a0a0a\] h3,
.bg-gradient-to-br.from-\[#0a0a0a\] h3 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


#subscription-container.has-active-subscription {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    border: 2px solid #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

#subscription-container:not(.has-active-subscription) {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
}


#role-container.role-user {
    background-color: rgba(107, 114, 128, 0.2) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
}

#role-container.role-premium {
    background-color: rgba(234, 179, 8, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(234, 179, 8, 0.4) !important;
}

#role-container.role-beta {
    background-color: rgba(249, 115, 22, 0.2) !important;
    color: #fb923c !important;
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
}

#role-container.role-developer {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

#role-container.role-admin {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

#role-container.role-moderator {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

#role-container.role-trueadmin {
    background-color: rgba(220, 38, 38, 0.3) !important;
    color: #ef4444 !important;
    border: 2px solid rgba(220, 38, 38, 0.6) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3) !important;
}

#role-container.role-youtube {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}


.role-badge.role-user {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(107, 114, 128, 0.2) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-badge.role-premium {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(234, 179, 8, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(234, 179, 8, 0.4) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-badge.role-beta {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(249, 115, 22, 0.2) !important;
    color: #fb923c !important;
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-badge.role-developer {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-badge.role-admin {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-badge.role-moderator {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-badge.role-trueadmin {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(220, 38, 38, 0.3) !important;
    color: #ef4444 !important;
    border: 2px solid rgba(220, 38, 38, 0.6) !important;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3) !important;
}

.role-badge.role-youtube {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    font-size: 0.875rem;
    font-weight: 500;
}


#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: snowfall linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(var(--drift, 0px)) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift, 0px)) rotate(360deg);
        opacity: 0;
    }
}


.snow-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.5);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 28px;
    line-height: 1;
}

.snow-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.8);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.snow-toggle-btn.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    animation: snowGlow 2s ease-in-out infinite;
}

.snow-toggle-btn:not(.active) {
    opacity: 0.5;
}

@keyframes snowGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
    }
}


body.cabinet-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
