/* LK MODS - Royal Purple & Cyber Violet Bento Glass Theme */

:root {
    --bg-dark: #07060c;
    --bento-bg: linear-gradient(180deg, rgba(28, 18, 48, 0.55) 0%, rgba(11, 8, 22, 0.72) 100%);
    --bento-border: rgba(168, 85, 247, 0.15);
    --bento-highlight: inset 0 1px 0 0 rgba(216, 180, 254, 0.22);
    --purple-primary: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.35);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    letter-spacing: -0.01em;
}

.font-mono {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

/* Custom Purple Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* Particle Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Vibrant Purple Nebula Lighting Orbs */
@keyframes nebulaDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.2); }
    100% { transform: translate(-30px, 30px) scale(0.9); }
}

.nebula-orb-1 { animation: nebulaDrift 20s infinite ease-in-out alternate; }
.nebula-orb-2 { animation: nebulaDrift 24s infinite ease-in-out alternate-reverse; }
.nebula-orb-3 { animation: nebulaDrift 16s infinite ease-in-out alternate; }

/* ================================================= */
/* BENTO CARDS (PURPLE FROSTED GLASS)                */
/* ================================================= */

.bento-card {
    background: var(--bento-bg);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid var(--bento-border);
    border-top: 1px solid rgba(216, 180, 254, 0.28);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), var(--bento-highlight);
    border-radius: 18px;
    transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    border-top-color: rgba(216, 180, 254, 0.45);
    box-shadow: 0 25px 55px -10px rgba(147, 51, 234, 0.15), inset 0 1px 0 0 rgba(216, 180, 254, 0.35);
}

/* ================================================= */
/* ENHANCED INTERACTIVE HOVER ON TILES               */
/* ================================================= */

.bento-tile {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-top: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Smooth Lift + Purple Radial Glow on Hover */
.bento-tile:hover {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.12) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-color: rgba(192, 132, 252, 0.45);
    border-top-color: rgba(233, 213, 255, 0.6);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 30px -8px rgba(147, 51, 234, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

.bento-tile:hover .tile-icon {
    transform: scale(1.12) rotate(6deg);
    border-color: rgba(192, 132, 252, 0.6);
    background-color: rgba(168, 85, 247, 0.25);
    color: #e9d5ff;
}

.tile-icon {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Selected State */
.bento-tile.selected {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.26) 0%, rgba(126, 34, 206, 0.12) 100%) !important;
    border-color: rgba(192, 132, 252, 0.8) !important;
    border-top-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.bento-tile.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c084fc, #9333ea, #60a5fa);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.8);
}

.bento-tile.selected .tile-icon {
    border-color: rgba(216, 180, 254, 0.8);
    background-color: rgba(168, 85, 247, 0.3);
    color: #f3e8ff;
}

/* ================================================= */
/* DURATION PILLS (PURPLE HOVER & SELECTION)         */
/* ================================================= */

.bento-dur-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-dur-btn:hover {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(192, 132, 252, 0.4);
    transform: translateY(-2px);
    color: #f3e8ff;
    box-shadow: 0 6px 18px -4px rgba(147, 51, 234, 0.25);
}

.bento-dur-btn.selected {
    background: rgba(168, 85, 247, 0.28) !important;
    border-color: #c084fc !important;
    border-top-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

/* ================================================= */
/* ULTRA-LUXURY NAVBAR GLASS DOCK                    */
/* ================================================= */

.navbar-glass {
    background: linear-gradient(180deg, rgba(28, 16, 54, 0.52) 0%, rgba(11, 7, 24, 0.65) 100%);
    backdrop-filter: blur(32px) saturate(210%);
    -webkit-backdrop-filter: blur(32px) saturate(210%);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75), 0 0 35px -5px rgba(168, 85, 247, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-glass:hover {
    border-color: rgba(192, 132, 252, 0.35);
    box-shadow: 0 24px 55px -10px rgba(0, 0, 0, 0.8), 0 0 45px -5px rgba(168, 85, 247, 0.32), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.nav-dock-glass {
    background: rgba(6, 4, 15, 0.52);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 4px;
}

.bento-nav-item {
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    color: #d8b4fe;
    border-radius: 12px;
    position: relative;
    font-weight: 600;
}

.bento-nav-item:hover {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.18);
    transform: translateY(-1.5px);
    text-shadow: 0 0 14px rgba(216, 180, 254, 0.7);
}

.bento-nav-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.32) 0%, rgba(126, 34, 206, 0.28) 100%);
    border: 1px solid rgba(216, 180, 254, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 0 10px rgba(233, 213, 255, 0.5);
}

/* ================================================= */
/* ULTRA-AESTHETIC TRANSPARENT GLASS MODAL           */
/* ================================================= */

.modal-glass-backdrop {
    background: radial-gradient(circle at 50% 35%, rgba(107, 33, 168, 0.28) 0%, rgba(14, 8, 30, 0.65) 60%, rgba(4, 3, 9, 0.78) 100%) !important;
    backdrop-filter: blur(28px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(220%) !important;
}

.modal-glass-card {
    background: linear-gradient(165deg, rgba(32, 18, 62, 0.5) 0%, rgba(14, 8, 30, 0.66) 55%, rgba(26, 12, 50, 0.55) 100%) !important;
    backdrop-filter: blur(42px) saturate(240%) !important;
    -webkit-backdrop-filter: blur(42px) saturate(240%) !important;
    border: 1px solid rgba(192, 132, 252, 0.28) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.48) !important;
    box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.85), 0 0 60px -10px rgba(168, 85, 247, 0.38), inset 0 1px 0 0 rgba(255, 255, 255, 0.25) !important;
    border-radius: 26px !important;
    position: relative;
    overflow: hidden;
}

.modal-glass-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.modal-glass-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.modal-input-glass {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(192, 132, 252, 0.22) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.22s ease !important;
}

.modal-input-glass:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(216, 180, 254, 0.75) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.25) !important;
}

/* Vault Inset Input */
.vault-input {
    background: rgba(6, 4, 12, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-top: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.vault-input:focus {
    border-color: rgba(192, 132, 252, 0.7);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ================================================= */
/* GLOWING PURPLE ACTION BUTTON                      */
/* ================================================= */

.btn-purple-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 50%, #6b21a8 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-purple-glow:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7e22ce 100%);
    transform: translateY(-2px) scale(1.008);
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    filter: brightness(1.08);
}

.btn-purple-glow:active {
    transform: scale(0.98);
}

/* Shimmer pass across the button */
.btn-purple-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    transition: all 0.7s ease;
    opacity: 0;
}

.btn-purple-glow:hover::after {
    opacity: 1;
    transform: rotate(30deg) translate(50%, 50%);
}

/* Table Row Hover */
.table-row-hover {
    transition: all 0.18s ease;
}

.table-row-hover:hover {
    background-color: rgba(168, 85, 247, 0.08);
}

/* Animations */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
    animation: fadeSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes keyReveal {
    0% { opacity: 0; transform: scale(0.96) translateY(6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.anim-key-reveal {
    animation: keyReveal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes activePurplePulse {
    0%, 100% {
        border-color: rgba(168, 85, 247, 0.4);
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    }
    50% {
        border-color: rgba(192, 132, 252, 0.9);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    }
}
.border-purple-pulse {
    animation: activePurplePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.5; }
}
.anim-live-dot {
    animation: livePulse 2s infinite ease-in-out;
}

.toast-anim {
    animation: fadeSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Add Duration Tier Card styling to style.css */

/* ================================================= */
/* PREMIUM DURATION TIER CARDS                       */
/* ================================================= */

.dur-tier-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.14);
    border-top: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dur-tier-card:hover {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.14) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(192, 132, 252, 0.5);
    border-top-color: rgba(233, 213, 255, 0.65);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px -6px rgba(147, 51, 234, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

.dur-tier-card.selected {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.3) 0%, rgba(126, 34, 206, 0.15) 100%) !important;
    border-color: rgba(192, 132, 252, 0.85) !important;
    border-top-color: rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.dur-tier-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c084fc, #a855f7, #38bdf8);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
}

/* Floating Popular / Value Badge */
.dur-badge-floating {
    position: absolute;
    top: -1px;
    right: 8px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 0 0 6px 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
}
/* ================================================= */
/* CIRCULAR VAULT PORTAL & RADAR ORBIT ANIMATIONS    */
/* ================================================= */

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes radarWave {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
        border-color: rgba(192, 132, 252, 0.7);
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
        border-color: rgba(147, 51, 234, 0);
    }
}

@keyframes spherePulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), inset 0 0 20px rgba(147, 51, 234, 0.2);
        border-color: rgba(192, 132, 252, 0.5);
    }
    50% {
        box-shadow: 0 0 45px rgba(192, 132, 252, 0.65), inset 0 0 30px rgba(168, 85, 247, 0.4);
        border-color: rgba(233, 213, 255, 0.9);
        transform: scale(1.03);
    }
}

.anim-spin-cw {
    animation: spinClockwise 18s linear infinite;
}

.anim-spin-ccw {
    animation: spinCounter 12s linear infinite;
}

.anim-radar-wave {
    animation: radarWave 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.sphere-core-pulse {
    animation: spherePulse 2.8s infinite ease-in-out;
}

/* Fast spin during extraction */
.anim-spin-fast {
    animation: spinClockwise 1.2s linear infinite !important;
}

.anim-spin-fast-ccw {
    animation: spinCounter 0.9s linear infinite !important;
}
