/* ========== CRAZY THEME OVERRIDES ========== */

/* Animated neon background */
body {
    background: #050510 !important;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255,0,128,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,255,200,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(100,0,255,0.15) 0%, transparent 50%);
    z-index: -2;
    animation: bgShift 8s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(60deg); }
}

/* Floating bg glows - animated */
.bg-glow {
    animation: floatGlow1 6s ease-in-out infinite alternate !important;
    background: radial-gradient(circle, rgba(255,0,200,0.4) 0%, transparent 70%) !important;
    filter: blur(100px) !important;
}
.bg-glow-2 {
    animation: floatGlow2 7s ease-in-out infinite alternate !important;
    background: radial-gradient(circle, rgba(0,255,150,0.3) 0%, transparent 70%) !important;
    filter: blur(80px) !important;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 80px) scale(1.3); }
}
@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -60px) scale(1.5); }
}

/* ===== SPLASH SCREEN ===== */
#crazy-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050510;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
#crazy-splash.hide {
    opacity: 0;
    transform: scale(1.2);
    pointer-events: none;
}
#crazy-splash .splash-logo {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ff006e, #00f5d4, #8338ec, #ff006e);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 2s linear infinite, slamIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
#crazy-splash .splash-sub {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    margin-top: 1rem;
    animation: fadeUp 0.8s 0.4s ease forwards;
    opacity: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
}
#crazy-splash .splash-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 2rem;
    overflow: hidden;
    animation: fadeUp 0.8s 0.6s ease forwards;
    opacity: 0;
}
#crazy-splash .splash-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff006e, #00f5d4, #8338ec);
    border-radius: 3px;
    animation: loadBar 2s 0.8s ease forwards;
}

@keyframes slamIn {
    0% { transform: scale(3) rotate(-10deg); opacity: 0; }
    60% { transform: scale(0.9) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(20px); }
}
@keyframes loadBar {
    to { width: 100%; }
}
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ===== SIDEBAR CRAZY ===== */
.sidebar {
    background: rgba(10, 5, 30, 0.85) !important;
    border-right: 1px solid rgba(255, 0, 200, 0.15) !important;
    backdrop-filter: blur(30px) !important;
}

.logo-icon {
    background: linear-gradient(135deg, #ff006e, #8338ec) !important;
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.5), 0 0 50px rgba(131, 56, 236, 0.3) !important;
    animation: logoPulse 2s ease-in-out infinite !important;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 0, 110, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 110, 0.8), 0 0 80px rgba(131, 56, 236, 0.4); transform: scale(1.05); }
}

.logo-text {
    background: linear-gradient(90deg, #ff006e, #00f5d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link:hover {
    background: rgba(255, 0, 110, 0.1) !important;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}
.nav-link.active {
    background: linear-gradient(90deg, rgba(255, 0, 110, 0.15), transparent) !important;
    border-left: 3px solid #ff006e !important;
    box-shadow: inset 0 0 20px rgba(255, 0, 110, 0.05);
}
.nav-link.active i {
    animation: iconBounce 0.6s ease;
    color: #ff006e;
}
@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(10deg); }
}

/* ===== CARDS - GLASSMORPHISM NEON ===== */
.card {
    background: rgba(15, 10, 40, 0.6) !important;
    border: 1px solid rgba(255, 0, 200, 0.08) !important;
    backdrop-filter: blur(15px) !important;
    animation: cardAppear 0.5s ease forwards;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,0,110,0.03), transparent, rgba(0,245,212,0.03), transparent);
    animation: cardRotate 10s linear infinite;
    z-index: -1;
}
@keyframes cardRotate {
    to { transform: rotate(360deg); }
}
@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(255, 0, 110, 0.3) !important;
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.1), 0 0 30px rgba(131, 56, 236, 0.05) !important;
}

/* Stagger card animations */
.dashboard-grid .card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid .card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-grid .card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-grid .card:nth-child(4) { animation-delay: 0.4s; }

/* ===== STAT VALUES - NEON GLOW ===== */
.stat-value {
    background: linear-gradient(90deg, #ff006e, #00f5d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonFlicker 3s ease-in-out infinite;
}
@keyframes neonFlicker {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* ===== BUTTONS - CRAZY GLOW ===== */
.btn-primary {
    background: linear-gradient(135deg, #ff006e, #8338ec) !important;
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.4) !important;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(255, 0, 110, 0.6), 0 0 60px rgba(131, 56, 236, 0.3) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.btn-outline {
    border-color: rgba(255, 0, 110, 0.3) !important;
}
.btn-outline:hover {
    border-color: #ff006e !important;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.2) !important;
    background: rgba(255, 0, 110, 0.05) !important;
}

/* ===== HEADER ===== */
header h1 {
    background: linear-gradient(90deg, #fff, #ff006e, #00f5d4);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 4s linear infinite;
}

.user-profile {
    border: 1px solid rgba(255, 0, 200, 0.15) !important;
    animation: profileGlow 3s ease-in-out infinite alternate;
}
@keyframes profileGlow {
    0% { box-shadow: 0 0 10px rgba(255, 0, 110, 0.1); }
    100% { box-shadow: 0 0 25px rgba(0, 245, 212, 0.15); }
}

.user-avatar {
    border: 2px solid #ff006e;
    animation: avatarSpin 10s linear infinite;
}
@keyframes avatarSpin {
    0% { border-color: #ff006e; }
    33% { border-color: #00f5d4; }
    66% { border-color: #8338ec; }
    100% { border-color: #ff006e; }
}

/* ===== TOASTS ===== */
.toast {
    background: rgba(10, 5, 30, 0.9) !important;
    border: 1px solid rgba(255, 0, 110, 0.2) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 110, 0.1) !important;
}

/* ===== SECTION TITLES - GLITCH ===== */
.section-title {
    position: relative;
    animation: glitchTitle 5s ease-in-out infinite;
}
@keyframes glitchTitle {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, -1px); }
    98% { transform: translate(1px, 1px); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff006e, #8338ec); border-radius: 3px; }

/* ===== INPUTS ===== */
input, select, textarea {
    border-color: rgba(255, 0, 200, 0.15) !important;
    transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: #ff006e !important;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.15) !important;
    outline: none;
}

/* ===== NAV LABEL ===== */
.nav-label {
    color: #ff006e !important;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== CURSOR TRAIL ===== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #ff006e;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    box-shadow: 0 0 10px #ff006e, 0 0 20px rgba(255, 0, 110, 0.5);
    transition: transform 0.1s ease;
}
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 0, 110, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
}

/* ===== TABLES ===== */
th { color: #ff006e !important; }
td { border-color: rgba(255, 0, 200, 0.08) !important; }
tr:hover td { background: rgba(255, 0, 110, 0.03); }

/* ===== TREND COLORS ===== */
.trend-up { color: #00f5d4 !important; }

/* ===== VK KEY overrides ===== */
.vk-key {
    border-color: rgba(255, 0, 200, 0.1) !important;
}
.vk-key.vk-active {
    background: linear-gradient(135deg, #ff006e, #8338ec) !important;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5), 0 0 40px rgba(131, 56, 236, 0.3) !important;
}
.vk-key.vk-tested {
    border-color: rgba(0, 245, 212, 0.5) !important;
    color: #00f5d4 !important;
    background: rgba(0, 245, 212, 0.08) !important;
}

/* Camera Filter Active State */
.cam-filter-btn.active {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2)) !important;
    border-color: #ff006e !important;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.4) !important;
    color: white !important;
}
/* ===== MARKETPLACE & ISSUE CARDS ===== */
.issue-card-live {
    border-left-width: 5px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.issue-card-live:hover {
    transform: scale(1.02) translateX(5px) !important;
}

.tech-card-premium {
    background: rgba(10, 5, 40, 0.7) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}
.tech-card-premium:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 15px 45px rgba(99, 102, 241, 0.15) !important;
}

/* ===== SUBSCRIPTION PLANS ===== */
.plan-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem !important;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05) !important;
}
.plan-header h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}
.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary);
}
.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
}
.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex: 1;
}
.plan-features li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.plan-features i {
    width: 20px;
    color: #10b981;
}

.featured-plan {
    border: 2px solid var(--primary) !important;
    transform: scale(1.05);
    background: rgba(99, 102, 241, 0.08) !important;
    z-index: 10;
}
.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ===== FORM ENHANCEMENTS ===== */
.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.radio-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    font-size: 0.85rem;
}
.radio-tag:has(input:checked) {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: white;
}

.upload-box {
    border: 2px dashed rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
}
.upload-box:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    color: white;
}
.upload-box i { font-size: 1.5rem; }

/* Custom Scrollbar for small areas */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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