/* =========================================
   RYUKI8 - SHARED STYLES
   ========================================= */

/* --- GLOBAL RESETS & FONTS --- */
body {
    background-color: #050505;
    color: #F0F0F0;
    font-family: 'Oxanium', sans-serif;
    overflow-x: hidden;
    position: relative;
    /* Selection color */
    /* Note: Tailwind 'selection:' classes handle this, but adding fallback */
}

/* --- SCROLLBAR CUSTOMIZATION --- */
/* Webkit (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0514;
}

::-webkit-scrollbar-thumb {
    background: #2d1b4e;
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #665797;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* --- BACKGROUND LAYERS --- */
canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    /* Let clicks pass through if needed, though JS usually handles mousemove */
}

.bg-gradient-base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, #180b26 0%, #050505 80%);
    z-index: -20;
}

/* --- GLASSMORPHISM & PANELS --- */
.glass-panel {
    background: rgba(10, 5, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-modal {
    background: rgba(5, 5, 10, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* --- NAVIGATION STYLES --- */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00F0FF;
    transition: width 0.3s;
    box-shadow: 0 0 10px #00F0FF;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Dropdown Animation */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --- ANIMATIONS & EFFECTS --- */

/* Pulse Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00F0FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #00F0FF;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 240, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* Neon Text */
.neon-text {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Card Hover Effects */
.card-hover {
    background: rgba(24, 11, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 80, 150, 0.8);
    box-shadow: 0 0 30px rgba(102, 87, 151, 0.2);
}

.card-hover:hover .icon-glow {
    filter: drop-shadow(0 0 8px currentColor);
    transform: scale(1.1);
}

/* Modern Card (Onboarding/General) */
.modern-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Neon Buttons and Inputs */
.neon-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.neon-input:focus {
    outline: none;
    border-color: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.05);
}

.btn-neon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn-neon:hover::after {
    left: 100%;
}

.btn-neon:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.05);
}

/* Table Styles */
.ryuki-table {
    width: 100%;
    border-collapse: collapse;
}

.ryuki-table th {
    color: #00F0FF;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid rgba(102, 87, 151, 0.3);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
}

.ryuki-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    vertical-align: middle;
    transition: all 0.2s;
}

.ryuki-table tr:hover td {
    color: white;
    background: rgba(0, 240, 255, 0.05);
}

.ryuki-table tr:last-child td {
    border-bottom: none;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, #00F0FF, #665797, #00F0FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- LOGIN PAGE SPECIFIC STYLES --- */
.login-glass-panel {
    background: rgba(15, 10, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-neon-button {
    background: linear-gradient(90deg, #665797 0%, #180b26 100%);
    border: 1px solid #665797;
    color: white;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.login-neon-button:hover {
    background: #00F0FF;
    color: #050505;
    border-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* --- ONBOARDING STEPS --- */
.step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-content.active {
    display: flex;
    opacity: 1;
}

/* --- TAB ANIMATIONS --- */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}