:root {
    --bg-accent: #6b21a8;
    --bg-accent2: #2563eb;
    --glass-bg: rgba(18, 18, 24, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-dim: #9ca3af;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-ambient: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.video-background {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index: -3;
    opacity: 0.55;
    filter: brightness(0.45) saturate(1.3) blur(1px);
    transition: transform 0.2s ease-out;
    pointer-events: none;
}

.video-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.025;
    pointer-events: none;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    filter: contrast(150%) brightness(150%);
    mix-blend-mode: overlay;
}

.video-scanlines {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.015), rgba(0, 0, 255, 0.04));
    background-size: 100% 2px, 3px 100%;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 70% 50% at 50% 30%, transparent 0%, rgba(0, 0, 0, 0.5) 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
    pointer-events: none;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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


.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
    background-size: 300% 100%;
    width: 0%;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
    transition: width 0.1s;
    animation: progressShimmer 4s linear infinite;
}

@keyframes progressShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
}


#entry-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.boot-logo {
    text-align: center;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.boot-logo-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    }
}

.boot-logo-icon i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.boot-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.boot-subtitle {
    font-size: 1rem;
    color: #a1a1aa;
    margin-top: 5px;
    font-weight: 300;
    letter-spacing: 1px;
}

.log-container {
    width: 90%;
    max-width: 400px;
    background: transparent;
    padding: 20px;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #6ee7b7;
    height: 160px;
    overflow: hidden;
    text-align: left;
    margin: 20px 0;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.log-line {
    opacity: 0;
    margin-bottom: 8px;
    transform: translateY(10px);
    transition: all 0.5s ease;
    text-shadow: 0 0 5px rgba(110, 231, 183, 0.5);
}

.log-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.boot-tap-hint {
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.2);
    }
}


#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


#main-app {
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    position: relative;
    background: transparent;
    opacity: 0;
    transition: opacity 1s ease;
}

@media (min-width: 1024px) {
    #main-app {
        height: 90vh;
        margin: 5vh auto;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            0 30px 80px -20px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        background: var(--glass-bg);
        backdrop-filter: blur(30px) saturate(1.2);
        -webkit-backdrop-filter: blur(30px) saturate(1.2);
    }
}


.sidebar {
    width: 280px;
    background: rgba(8, 8, 14, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(50px) saturate(1.1);
    -webkit-backdrop-filter: blur(50px) saturate(1.1);
    padding-bottom: 20px;
    z-index: 100;
    position: relative;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, transparent 30%, transparent 70%, rgba(139, 92, 246, 0.15) 100%);
    pointer-events: none;
}

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

.sidebar-header {
    padding: 40px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.sidebar-title {
    padding: 24px 24px 8px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

@media (max-width: 1023px) {

    .sidebar-item,
    .sidebar-title,
    .sidebar-search,
    .sidebar-header {
        opacity: 0;
        transform: translateX(-15px);
    }
}

.sidebar-item {
    padding: 12px 20px;
    margin: 4px 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    position: relative;
}

.sidebar-item i {
    width: 32px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    transition: inherit;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.sidebar-item:hover i {
    color: #ffffff;
}

.sidebar-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-item.active i {
    color: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8), 0 0 4px rgba(139, 92, 246, 0.5);
}


.sidebar-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    margin: 10px 15px;
    height: 44px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-search:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.sidebar-search i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-search input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 12px;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}


.main-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 30px;
    scroll-behavior: smooth;
}


.iphone-status {
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 100;
}


.card-nav {
    padding: 0 18px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 8, 14, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hamburger {
    display: none;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.hamburger:active {
    transform: scale(0.96);
}

.nav-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
}

.modify-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.modify-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}


.section-header {
    padding: 25px 20px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}


.detail-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin: 0 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.detail-group-transparent {
    background: transparent;
    border: none;
    box-shadow: none;
}

.pkg-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pkg-list-item:last-child {
    border-bottom: none;
}


.pkg-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    border-radius: 12px;
}

.pkg-list-item:hover .pkg-list-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.pkg-list-item:hover .chevron {
    transform: translateX(5px);
    color: #fff;
}


.pkg-list-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
}


.cat-ai .pkg-list-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(168, 85, 247, 0.1));
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.cat-anime .pkg-list-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.cat-movies .pkg-list-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.cat-browser .pkg-list-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(14, 165, 233, 0.1));
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.cat-tools .pkg-list-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.cat-scripts .pkg-list-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.cat-social .pkg-list-icon {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.4), rgba(88, 101, 242, 0.1));
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
}

.cat-kurdish .pkg-list-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(234, 179, 8, 0.2), rgba(239, 68, 68, 0.4));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.cat-cartoon .pkg-list-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(251, 191, 36, 0.1));
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.cat-games .pkg-list-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.cat-mods .pkg-list-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(6, 182, 212, 0.1));
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.cat-livetv .pkg-list-icon {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.4), rgba(225, 29, 72, 0.1));
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.2);
}

.cat-sports .pkg-list-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.4), rgba(20, 184, 166, 0.1));
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

.cat-ads .pkg-list-icon {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.4), rgba(75, 85, 99, 0.1));
    border-color: rgba(75, 85, 99, 0.3);
    box-shadow: 0 0 15px rgba(75, 85, 99, 0.2);
}

.pkg-list-info {
    flex: 1;
    min-width: 0;
}

.pkg-list-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.pkg-list-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 300;
}

.chevron {
    color: #6b7280;
    font-size: 1.2rem;
    margin-left: 10px;
    transition: var(--transition);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #d1d5db;
}

.val {
    color: #60a5fa;
    font-weight: 500;
}


/* Premium Clock Widget */
.clock-widget {
    margin: 40px 20px 20px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    animation: floatAvatar 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.clock-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    z-index: -1;
    transition: opacity 0.5s;
}

.clock-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: clockSheen 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes clockSheen {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.clock-time {
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 0 60px rgba(59, 130, 246, 0.1);
    line-height: 1;
}

.clock-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Enhanced Hero Section */
.hero-section {
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 25px;
}

.hero-avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #3b82f6);
    padding: 3px;
    animation: rotateRing 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: blur(0.5px);
}

@keyframes rotateRing {
    to { transform: rotate(360deg); }
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-avatar-container:hover .hero-avatar {
    transform: scale(1.06) translateY(-5px);
}

.hero-name {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.hero-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.app-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.app-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.app-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(59, 130, 246, 0.08);
}

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

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

.clock-widget:hover {
    transform: scale(1.01) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.06);
}


.search-bar-wrap {
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.search-box-mobile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-box-mobile:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.search-box-mobile i {
    color: rgba(255, 255, 255, 0.4);
    margin-right: 12px;
    font-size: 0.9rem;
}

.search-box-mobile input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 4px 0;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.search-box-mobile input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.search-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.2;
}

.search-empty-state p {
    font-size: 1rem;
    font-weight: 500;
}


.tool-container {
    padding: 30px 15px;
}

.tool-hero {
    text-align: center;
    margin-bottom: 30px;
}

.tool-hero i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.tool-hero h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.tool-hero p {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 300;
}

.tool-input-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.tool-input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 12px;
    color: #fff;
    transition: var(--transition);
}

.tool-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.tool-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.tool-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.tool-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}


.loader {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.loader i {
    font-size: 2.5rem;
    color: #fff;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


.tiktok-result-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(105, 201, 208, 0.1);
    margin-top: 35px;
    display: none;
    animation: ttSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.tiktok-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(105, 201, 208, 0.1) 90deg, transparent 180deg);
    animation: ttRotate 10s linear infinite;
    pointer-events: none;
}

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

@keyframes ttSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.tiktok-result-card.visible {
    display: block;
}

.tt-video-preview {
    width: 100%;
    height: 320px;
    background: #000;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.tt-custom-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    display: none;
}

.tt-pulse-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #69C9D0, #EE1D52);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    animation: ttPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(105, 201, 208, 0.4);
}

@keyframes ttPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(105, 201, 208, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(105, 201, 208, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(105, 201, 208, 0); }
}

.tt-loading-text {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    animation: ttTextPulse 1.5s ease-in-out infinite;
}

@keyframes ttTextPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.tt-info {
    padding: 20px;
}

.tt-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.tt-author {
    color: #69C9D0;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.tt-stats {
    display: flex;
    gap: 25px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.tt-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tt-stats i {
    color: #3b82f6;
}

.tt-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


@media (min-width: 768px) {
    .detail-group {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 15px;
        background: transparent;
        border: none;
        padding: 0 15px;
        box-shadow: none;
    }

    .pkg-list-item {
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(10px);
    }
}

@media (min-width: 1024px) {
    .sidebar {
        display: flex;
    }

    .iphone-status {
        display: none;
    }

    .hamburger {
        display: none;
    }
}

@media (max-width: 1023px) {
    .sidebar {
        display: flex;
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 2000;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: 24px 0 60px rgba(0, 0, 0, 0.7);
    }

    .sidebar.active {
        transform: translateX(280px);
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 600px) {
    .tool-input-wrap {
        flex-direction: column;
    }

    .tool-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    .tt-stats {
        flex-direction: column;
        gap: 8px;
    }

    .hero-section {
        padding: 20px 10px;
    }
}


.view-content {
    display: none;
}

.view-content.active {
    display: block;
    animation: fadeView 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeView {
    from {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(4px);
    }

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


.audio-fab {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.audio-fab:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

#spatial-lock {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.face-scan-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.face-scan-frame {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 40px;
}

.face-scan-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid #3b82f6;
    border-radius: 40px;
    clip-path: polygon(0 0, 30% 0, 30% 10%, 10% 10%, 10% 30%, 0 30%, 0 0, 70% 0, 70% 10%, 90% 10%, 90% 30%, 100% 30%, 100% 0, 70% 0, 100% 100%, 70% 100%, 70% 90%, 90% 90%, 90% 70%, 100% 70%, 100% 100%, 0 100%, 30% 100%, 30% 90%, 10% 90%, 10% 70%, 0 70%, 0 100%);
}

.face-scan-line {
    position: absolute;
    width: 180px;
    height: 2px;
    background: #3b82f6;
    box-shadow: 0 0 15px #3b82f6;
    top: 20%;
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 25%; opacity: 0; }
    50% { top: 70%; opacity: 1; }
}

.lock-status {
    margin-top: 240px;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
    animation: pulse-op 2s infinite;
}

@keyframes pulse-op {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Redesigned Biometric Lock */
.scan-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(59, 130, 246, 0.4);
    border-bottom: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: rotateRing 4s linear infinite;
}

.scan-ring::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: rotateRing 8s linear reverse infinite;
}

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

.biometric-dots {
    position: absolute;
    width: 140px;
    height: 140px;
    pointer-events: none;
}

.bio-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
}

@keyframes bioPulse {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

.face-scan-success {
    position: absolute;
    font-size: 5rem;
    color: #4ade80;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 30px rgba(74, 222, 128, 0.5));
    z-index: 5;
}

.face-scan-container.verified .face-scan-success {
    opacity: 1;
    transform: scale(1);
}

.face-scan-container.verified .face-scan-line,
.face-scan-container.verified .biometric-dots,
.face-scan-container.verified .scan-ring {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.face-scan-container.verified .face-scan-frame {
    border-color: #4ade80;
    box-shadow: 0 0 50px rgba(74, 222, 128, 0.3);
    transform: scale(1.05);
    transition: all 0.6s ease;
}

.face-scan-container.verified .face-scan-frame::before {
    border-color: #4ade80;
}

.drop-zone {
    width: 100%;
    max-width: 500px;
    height: 200px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    margin: 0 auto;
}

.drop-zone:hover, .drop-zone--over {
    color: #fff;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.drop-zone__input {
    display: none;
}

.drop-zone__thumb {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.anime-result-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 107, 107, 0.1);
    margin-top: 35px;
    animation: ttSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.anime-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 107, 107, 0.1) 90deg, transparent 180deg);
    animation: ttRotate 10s linear infinite;
    pointer-events: none;
}

.anime-video-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.anime-loader-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    display: none;
}

.anime-pulse-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    animation: ttPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4);
}

.anime-info-body {
    padding: 20px;
}

.anime-title-jp {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.anime-title-en {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.anime-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.anime-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anime-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
}

.anime-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b82f6;
}

/* API Hub Styles */
.api-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.api-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.api-tab.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.api-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.api-pane.active {
    display: block;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #d1d5db;
    position: relative;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: pre;
}

.code-block::before {
    content: 'JSON / RAW';
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
}

.api-tester-ui {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.api-method-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 10px;
    font-weight: 600;
    outline: none;
}

.api-response-viewer {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 18px;
    padding: 20px;
    font-family: monospace;
    color: #4ade80;
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

/* Clock Widget Styles */
.clock-widget {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
    animation: slideUpFade 0.8s ease;
}

.clock-time {
    font-size: 4.5rem;
    font-weight: 200;
    letter-spacing: -2px;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.clock-date {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Custom Context Menu */
.custom-menu {
    position: fixed;
    z-index: 9999;
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 220px;
    padding: 8px;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.menu-item {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.menu-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item:hover i {
    color: #3b82f6;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 4px;
}

.menu-item:active {
    transform: scale(0.98);
}

/* Mouse Animation: Pointer Trails & Lona Label */
.pointer-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
    animation: particleFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes particleFade {
    0% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 0px))) scale(0);
        opacity: 0;
    }
}
/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast i {
    color: #3b82f6;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 80px;
        width: 90%;
    }
    .toast {
        width: 100%;
        justify-content: center;
    }
}

/* KurdStream Styles */
.ks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 15px;
}

.ks-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ks-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ks-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.1);
}

.ks-card:hover::after {
    opacity: 0.9;
}

.ks-card-img-container {
    position: relative;
    padding-top: 150%;
    background: #111;
    overflow: hidden;
}

.ks-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.ks-card:hover img {
    transform: scale(1.1);
}

.ks-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(245, 158, 11, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ks-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 5;
}

.ks-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ks-card-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.ks-details-view {
    padding: 0 15px 30px;
    animation: ksFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.ks-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.ks-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.ks-hero-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    max-height: 400px;
}

@media (max-width: 600px) {
    .ks-hero-container {
        aspect-ratio: 1/1;
    }
}

.ks-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.2);
}

.ks-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.ks-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ks-hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ks-meta-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ks-meta-tag.year { color: #f59e0b; }
.ks-meta-tag.genre { color: #60a5fa; }

.ks-desc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.ks-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 15px;
}

.ks-server-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.ks-server-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    border-color: rgba(245, 158, 11, 0.3);
}

.ks-server-btn i {
    font-size: 1.2rem;
    color: #f59e0b;
}

.ks-server-btn.active-server {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2) !important;
}

.ks-ep-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ks-ep-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ks-ep-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
    border-color: rgba(239, 68, 68, 0.3);
}

.ks-ep-item.active-episode {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.ks-ep-title {
    font-weight: 700;
    color: #fff;
}

.ks-ep-icon {
    font-size: 1.2rem;
    color: #ef4444;
}

#ks-player-overlay {
    backdrop-filter: blur(40px) brightness(0.2);
    -webkit-backdrop-filter: blur(40px) brightness(0.2);
    background: rgba(0, 0, 0, 0.8) !important;
}

#ks-player-title {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.ks-mini-server-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.ks-mini-server-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ks-mini-server-btn.active {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.ks-player-close-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ks-player-close-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.05);
}

#ks-iframe {
    background: #000;
}

/* Fake Debugger Bar */
#fake-debugger-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    border: 1px solid #555555;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 4px 12px;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eeeeee;
    font-size: 13px;
    pointer-events: all;
    display: none; /* Hidden by default, triggered by anti-debug */
}

.debug-controls {
    display: flex;
    gap: 10px;
    border-right: 1px solid #555555;
    padding-right: 12px;
}

.debug-btn {
    cursor: pointer;
    color: #888888;
    transition: color 0.2s;
}

.debug-btn:hover {
    color: #ffffff;
}

.debug-btn.resume {
    color: #57ab5a;
}

.debug-btn.resume:hover {
    color: #6ed172;
}

.debug-message {
    font-weight: 400;
}



/* KurdDoblazh Styles */
.kd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 15px;
}

.kd-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.kd-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.kd-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(24, 98, 222, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(24, 98, 222, 0.1);
}

.kd-card:hover::after {
    opacity: 0.9;
}

.kd-card-img-container {
    position: relative;
    padding-top: 150%;
    background: #111;
    overflow: hidden;
}

.kd-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.kd-card:hover img {
    transform: scale(1.1);
}

.kd-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(24, 98, 222, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.kd-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 5;
}

.kd-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.kd-details-view {
    padding: 0 15px 30px;
    animation: kdFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.kd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.kd-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    border-color: #1862de;
}

.kd-hero-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    max-height: 400px;
}

.kd-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.2);
}

.kd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.kd-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.kd-meta-tag {
    background: rgba(24, 98, 222, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #60a5fa;
    border: 1px solid rgba(24, 98, 222, 0.3);
}

.kd-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.kd-server-btn {
    background: rgba(24, 98, 222, 0.1);
    border: 1px solid rgba(24, 98, 222, 0.2);
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.kd-server-btn:hover {
    background: rgba(24, 98, 222, 0.2);
    transform: scale(1.02);
    border-color: #1862de;
}

.kd-server-btn i {
    font-size: 1.2rem;
    color: #1862de;
}
.kd-labels-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.kd-labels-container::-webkit-scrollbar {
    display: none;
}

.kd-label-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kd-label-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.kd-label-chip.active {
    background: #1862de;
    color: #fff;
    border-color: #1862de;
    box-shadow: 0 0 15px rgba(24, 98, 222, 0.4);
}

/* Home Dashboard Widgets */
.home-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 640px) {
    .home-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.spatial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.spatial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transition: left 0.8s;
    pointer-events: none;
}

.spatial-card:hover::before {
    left: 150%;
}

.spatial-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.05);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.widget-header i {
    font-size: 1rem;
    color: #3b82f6;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.widget-info {
    flex: 1;
}

.widget-name {
    font-weight: 700;
    font-size: 1rem;
}

.widget-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.stat-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}

#bio-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

#bio-text:hover {
    opacity: 1;
}

/* FAQ Accordion Design */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 10px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-q-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-question span {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.chevron-state {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .chevron-state {
    transform: rotate(180deg);
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 5px 20px 25px 71px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* About Page Design */
.about-spatial-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 50px;
    text-align: center;
    gap: 25px;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.15), transparent 70%);
    position: relative;
    overflow: hidden;
}

.about-spatial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 50%);
    pointer-events: none;
}

.spatial-logo {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #fff;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.spatial-logo:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.spatial-pulse {
    position: absolute;
    inset: -15px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 40px;
    opacity: 0;
    animation: spatialPulse 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes spatialPulse {
    0% { transform: scale(0.9); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0; }
}

.about-title-group h2 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-title-group p {
    color: #3b82f6;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 20px 35px;
}

.about-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 25px 15px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.about-stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: 0.3s;
}

.about-stat-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-stat-box:hover::before {
    opacity: 1;
}

.about-stat-box i {
    font-size: 1.4rem;
    color: #3b82f6;
    margin-bottom: 12px;
    transition: 0.3s;
}

.about-stat-box:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Privacy Dashboard Design */
.privacy-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
    gap: 20px;
}

.privacy-shield-icon {
    width: 90px;
    height: 90px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #10b981;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.shield-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: shieldRotate 10s linear infinite;
}

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

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px 30px;
}

@media (max-width: 640px) {
    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

.privacy-footer-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 0 10px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #10b981;
    font-size: 0.9rem;
    justify-content: center;
}

.privacy-footer-card i {
    font-size: 1.2rem;
    animation: ttPulse 1.5s infinite;
}

/* Connectivity Hub Design */
.contact-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
    gap: 15px;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 70%);
}

.contact-icon-box {
    width: 90px;
    height: 90px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #f59e0b;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(245, 158, 11, 0.1);
    transform-style: preserve-3d;
    transition: var(--transition);
}

.contact-icon-box:hover {
    transform: translateY(-5px) rotateY(10deg);
}

.ping-wave {
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 32px;
    animation: pingWave 2.5s infinite;
    opacity: 0;
}

@keyframes pingWave {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px 30px;
}

@media (max-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: 0.3s;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(255,255,255,0.15);
}

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

.brand-icon-large {
    font-size: 3.5rem;
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 0.05;
    transform: rotate(15deg);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover .brand-icon-large {
    opacity: 0.15;
    transform: rotate(0deg) scale(1.2);
}

.email-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .email-block {
        flex-direction: column;
        text-align: center;
    }
}

.email-info {
    flex: 1;
}

.email-address {
    font-weight: 800;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.email-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-status-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    margin: 0 20px 40px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.support-status-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4ade80, transparent);
    opacity: 0.3;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
}

.status-dot.online::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid #4ade80;
    border-radius: 50%;
    animation: statusRing 2s infinite;
}

@keyframes statusRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.status-stats {
    display: flex;
    gap: 30px;
}

.s-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.s-stat-val {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

.s-stat-lbl {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Monitoring Dashboard Design */
.status-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
    gap: 20px;
}

.pulse-ring-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 15px #4ade80;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.pulse-ring-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s infinite 1s;
}

@keyframes statusPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.status-summary-card {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin: 0 10px 30px;
}

.summary-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 12px;
}

.summary-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px 30px;
}

@media (max-width: 640px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}

.uptime-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.u-bar {
    flex: 1;
    height: 15px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.u-bar.active { background: #4ade80; }
.u-bar.warning { background: #f59e0b; }

.status-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.online-label {
    color: #4ade80;
    font-weight: 800;
    text-transform: uppercase;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.data-val {
    font-weight: 800;
    font-size: 0.9rem;
}

/* Extended About Page Styles */
.dev-spotlight {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 0;
    transition: var(--transition);
}

.dev-spotlight:hover {
    transform: translateX(10px);
}

.dev-mini-avatar {
    width: 85px;
    height: 85px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-spotlight:hover .dev-mini-avatar {
    transform: scale(1.1) rotate(-5deg);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.dev-info {
    flex: 1;
}

.dev-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.dev-role {
    font-size: 0.8rem;
    color: #3b82f6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-role::before {
    content: '';
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.dev-socials {
    display: flex;
    gap: 15px;
}

.dev-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.dev-socials a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0 20px 25px;
}

.platform-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.platform-item i {
    font-size: 1.5rem;
    color: #3b82f6;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

.changelog-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin: 0 20px 40px;
    padding: 5px;
    backdrop-filter: blur(20px);
}

.changelog-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
    border-radius: 20px;
}

.changelog-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.changelog-item:last-child {
    border-bottom: none;
}

.cl-version {
    font-size: 0.7rem;
    font-weight: 900;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cl-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 500;
}

/* Public form input styles */
#public-submit-form input[type="text"],
#public-submit-form input[type="url"],
#public-submit-form select {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#public-submit-form input[type="text"]:focus,
#public-submit-form input[type="url"]:focus,
#public-submit-form select:focus {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Public form icon button styles */
.pub-icon-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.pub-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05);
}

.pub-icon-btn.selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
    transform: scale(1.05);
}

/* Select dropdown option styling */
#pub-cat option {
    background-color: #0c0c12 !important;
    color: #fff !important;
    padding: 12px;
}

/* VIDEASY & TMDB Advanced Styles */
.ks-source-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ks-source-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ks-source-tab.active {
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

/* VIDEASY Settings Customizer */
.videasy-settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.videasy-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.videasy-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.videasy-setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.videasy-setting-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.videasy-setting-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Modern Switch Checkbox */
.switch-control {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-control input:checked + .switch-slider {
    background-color: #f59e0b;
}

.switch-control input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Theme color selector */
.videasy-color-picker {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 15px;
}

.videasy-color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.videasy-color-dot:hover {
    transform: scale(1.15);
}

.videasy-color-dot.active {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Cast lists and credits */
.cast-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.cast-card {
    flex: 0 0 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
    transition: transform 0.2s ease;
}

.cast-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.cast-photo {
    width: 100px;
    height: 120px;
    object-fit: cover;
    background: #111;
}

.cast-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-top: 8px;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TV Episode Grid */
.tv-episodes-section {
    margin-top: 30px;
}

.season-select-wrapper {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.season-select-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.season-select-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.season-select-btn.active {
    background: linear-gradient(45deg, #f59e0b, #ef4444);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.tv-episode-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tv-ep-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.tv-ep-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.tv-ep-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #111;
    overflow: hidden;
}

.tv-ep-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tv-ep-card:hover .tv-ep-thumb {
    transform: scale(1.05);
}

.tv-ep-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tv-ep-card:hover .tv-ep-play-overlay {
    opacity: 1;
}

.tv-ep-play-overlay i {
    font-size: 2.2rem;
    color: #fff;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.tv-ep-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tv-ep-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.tv-ep-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: #f59e0b;
    text-transform: uppercase;
}

.tv-ep-airdate {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.tv-ep-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.tv-ep-overview {
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* Resume Watch Progress Bar Widget */
.resume-playback-wrapper {
    margin: 20px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resume-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.45);
    filter: brightness(1.1);
}

.resume-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.resume-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #10b981, #34d399);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: width 0.3s ease;
}

.resume-info-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

/* ==========================================================================
   PREMIUM CUSTOM PLAYER CONTROLS & PARAMS SYSTEM
   ========================================================================== */

/* Premium Input Fields and Selects in settings panel */
.ks-details-input {
    width: 100%;
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ks-details-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.ks-details-input:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.ks-details-input:focus {
    background: rgba(0, 0, 0, 0.55) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-1px);
}

/* Styled options for select menu */
select.ks-details-input option {
    background: #0c0c10;
    color: #fff;
    padding: 10px;
}

/* Premium Streaming Server Chips */
.kd-label-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.kd-label-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.18);
}

.kd-label-chip.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.04);
}

/* Improve Settings Card Visuals */
.videasy-settings-card {
    background: rgba(12, 12, 18, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

.videasy-setting-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.01);
}

.videasy-setting-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Glowing accent presets */
.videasy-color-dot {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
}

.videasy-color-dot:hover {
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.videasy-color-dot.active {
    box-shadow: 0 0 25px var(--accent-glow), 0 0 0 2px #fff !important;
    transform: scale(1.15) !important;
    border-color: transparent !important;
}

/* ==========================================================================
   DEVELOPER API HUB & TESTER UPGRADES
   ========================================================================== */

/* API Try-Now Preset Buttons */
.api-preset-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-preset-badge:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-1px);
}

/* API Tester Layout Tweaks */
.api-tester-ui {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

/* Dynamic Headers List Styles */
.api-headers-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-header-btn {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-header-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #c084fc;
    color: #fff;
}

.api-headers-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.api-header-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.api-header-row input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.8rem;
    outline: none;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-header-row input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.05);
}

.remove-header-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.remove-header-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #fff;
}

/* API Request Body Styles */
.api-body-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.api-body-header {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-body-header i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.api-body-header.collapsed i {
    transform: rotate(-90deg);
}

.api-body-container {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-body-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: #34d399;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    padding: 12px;
    width: 100%;
    min-height: 100px;
    outline: none;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-body-textarea:focus {
    border-color: #10b981;
    background: rgba(0, 0, 0, 0.55);
}

/* Response Diagnostics Styles */
.api-metrics-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.metric-item strong {
    color: #fff;
}

/* Badges for HTTP status */
.badge-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* Controls inside Response area */
.api-response-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.api-ctrl-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   CATEGORIES HUB PAGE VIEW SYSTEM
   ========================================================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 var(--glass-highlight);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateY(-3px) scale(1.025);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.03);
}

.category-card-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category-card-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 3px;
    text-align: left;
}

.category-card-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.category-card-count {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-dim);
}

.category-card-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 300;
}

.category-card:hover .category-card-arrow {
    color: var(--text-main);
    transform: translateX(4px) scale(1.1);
}

/* === FAQ Center Upgrades === */
.faq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.faq-tabs::-webkit-scrollbar {
    display: none;
}

.faq-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item.hidden-cat,
.faq-item.hidden-search {
    display: none !important;
}

/* ==========================================================================
   AI SEARCH ASSISTANT HUB STYLES
   ========================================================================== */

/* Segmented Switcher Control */
.ai-search-modes {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px;
    margin-bottom: 25px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-mode-tab {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-mode-tab i {
    font-size: 1rem;
}

.ai-mode-tab:hover {
    color: #fff;
}

.ai-mode-tab.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* AI Panels */
.ai-search-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-search-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Suggestion Pills */
.ai-suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.02);
}

.suggestion-chip:active {
    transform: translateY(0);
}

/* AI Results Box */
.ai-chat-results {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px;
    min-height: 250px;
    max-height: 520px;
    overflow-y: auto;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    scroll-behavior: smooth;
}

.ai-chat-results::-webkit-scrollbar {
    width: 6px;
}
.ai-chat-results::-webkit-scrollbar-track {
    background: transparent;
}
.ai-chat-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.ai-chat-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Welcome Screen */
.ai-chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 10px;
}

.welcome-brain {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
    animation: brainPulse 3s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)); }
    50% { transform: scale(1.1) rotate(5deg); filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.8)); }
}

.ai-chat-welcome h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.ai-chat-welcome p {
    max-width: 460px;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Thinking Indicator */
.ai-thinking-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 20px;
}

.ai-thinking-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.thinking-dots {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.thinking-dots span {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.thinking-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* AI Response Card */
.ai-response-card {
    animation: ttSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-card-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    margin-right: 15px;
}

.ai-title-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-name {
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}

.ai-status {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4ade80;
}

.ai-response-actions {
    display: flex;
    gap: 8px;
}

.ai-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ai-action-btn:active {
    transform: scale(0.95);
}

/* AI Response Typography */
.ai-response-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.ai-response-body p {
    margin-bottom: 15px;
}

.ai-response-body strong {
    font-weight: 700;
    color: #fff;
}

.ai-response-body ul, .ai-response-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.ai-response-body li {
    margin-bottom: 8px;
}

.ai-response-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 25px 0 10px 0;
}

.ai-response-body code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 3px 6px;
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    color: #f472b6;
}

.ai-response-body pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0 25px 0;
    overflow-x: auto;
}

.ai-response-body pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #cbd5e1;
    line-height: 1.5;
}

.ai-response-body a {
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 500;
}

.ai-response-body a:hover {
    color: #93c5fd;
}

/* Citation Links inside answer text */
.citation-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.72rem;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    font-weight: 700;
    margin: 0 3px;
    cursor: pointer;
    vertical-align: text-top;
    transition: all 0.3s;
}

.citation-number:hover {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* AI Citations Container Section */
.ai-citations-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.citations-header {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.citations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.citation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.citation-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.citation-badge {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #c084fc;
    font-weight: 700;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.citation-info {
    flex: 1;
    min-width: 0;
}

.citation-name {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.citation-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.citation-action {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: color 0.3s;
}

.citation-card:hover .citation-action {
    color: #60a5fa;
}

@media (max-width: 600px) {
    .ai-suggestions-grid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-chat-results {
        padding: 20px 15px;
    }
    
    .citations-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONVERSATIONAL LOG & PREMIUM BUBBLE STYLES
   ========================================================================== */

.chat-message-user {
    align-self: flex-end;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 5px;
    animation: chatFadeInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-bubble-user {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 18px 18px 4px 18px;
    padding: 12px 18px;
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    word-wrap: break-word;
    text-align: left;
}

.chat-avatar-user {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.chat-message-copilot {
    align-self: flex-start;
    width: 100%;
    display: flex;
    gap: 15px;
    margin-top: 10px;
    animation: chatFadeInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-message-copilot .ai-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.chat-bubble-copilot {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px 18px 18px 18px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    min-width: 0;
}

.chat-bubble-copilot p:last-child {
    margin-bottom: 0;
}

/* Premium Terminal Code Block CSS */
.terminal-code-block {
    background: rgba(10, 10, 14, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    margin: 15px 0 20px 0;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-lang {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terminal-copy-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.terminal-copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.terminal-copy-btn.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.terminal-code-content {
    padding: 15px;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow-x: auto;
}

.terminal-code-content code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #e2e8f0 !important;
    font-family: Consolas, 'Courier New', Courier, monospace !important;
    font-size: 0.82rem !important;
    line-height: 1.5;
}

@keyframes chatFadeInRight {
    from { opacity: 0; transform: translateX(20px) translateY(5px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes chatFadeInLeft {
    from { opacity: 0; transform: translateX(-20px) translateY(5px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}

/* ==========================================================================
   GOOGLE WEB SEARCH UPGRADES (INLINE SERP)
   ========================================================================== */

.google-results-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: ttSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.google-result-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 16px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.google-result-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.google-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.google-result-favicon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: rgba(255,255,255,0.05);
}

.google-result-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.google-result-title:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.google-result-snippet {
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.google-result-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.google-action-link {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.google-action-link:hover {
    color: #60a5fa;
}


/* ==========================================================================
   PREMIUM HOME DASHBOARD STYLES (SPATIAL UPGRADE)
   ========================================================================== */

/* Outer spinning orbit ring */
.hero-avatar-orbit-outer {
    position: absolute;
    inset: -12px;
    border: 1px dashed rgba(168, 85, 247, 0.25);
    border-radius: 50%;
    animation: rotateRing 15s linear infinite;
    pointer-events: none;
}

/* Inner reverse spinning orbit ring */
.hero-avatar-orbit-inner {
    position: absolute;
    inset: -6px;
    border: 1px dotted rgba(96, 165, 250, 0.35);
    border-radius: 50%;
    animation: rotateRing 8s linear reverse infinite;
    pointer-events: none;
}

/* Glowing green pulse dot */
.pulse-glow-green {
    box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74, 222, 128, 0.4);
    animation: greenPulse 1.8s ease-in-out infinite;
}

@keyframes greenPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.55; }
}

/* Glassmorphic custom tag badges */
.home-tag-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.home-tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
}

/* Premium Mini stat boxes inside Registry breakdown */
.stat-box-mini {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
}

.stat-box-mini:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.stat-box-mini .mini-val {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 8px currentColor);
}

.stat-box-mini .mini-lbl {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dynamic glow effect for the AI Quick input container */
.home-ai-widget:hover {
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.08), 0 0 25px rgba(168, 85, 247, 0.04) !important;
    transform: translateY(-2px);
}

/* Glassmorphic overlay effect on active widget hover */
.home-widgets-grid .spatial-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-widgets-grid .spatial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   AI ASSISTANT ENHANCEMENTS (SETTINGS MODAL, SPEECH, STATUS)
   ========================================================================== */

/* AI Core Status Indicator */
.ai-core-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74, 222, 128, 0.4);
    animation: greenPulse 1.8s ease-in-out infinite;
}

.status-dot.local-mode {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24, 0 0 20px rgba(251, 191, 36, 0.4);
    animation: amberPulse 1.8s ease-in-out infinite;
}

.status-dot.processing {
    background: #a855f7;
    box-shadow: 0 0 10px #a855f7, 0 0 20px rgba(168, 85, 247, 0.4);
    animation: purplePulse 1s ease-in-out infinite;
}

@keyframes amberPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.55; }
}

@keyframes purplePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.45; }
}

/* Glassmorphic AI Settings Modal */
.ai-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.ai-settings-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-settings-modal-content {
    background: linear-gradient(135deg, rgba(25, 25, 30, 0.95), rgba(15, 15, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 100%;
    max-width: 520px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateY(20px) scale(0.95);
    animation: modalContentSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalContentSlide {
    to { transform: translateY(0) scale(1); }
}

.ai-settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ai-settings-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.ai-settings-modal-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-settings-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.ai-settings-form-group {
    margin-bottom: 18px;
}

.ai-settings-form-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ai-settings-input, .ai-settings-select, .ai-settings-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.ai-settings-input:focus, .ai-settings-select:focus, .ai-settings-textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
    background: rgba(0, 0, 0, 0.45);
}

.ai-settings-textarea {
    resize: vertical;
    min-height: 80px;
}

.ai-settings-select option {
    background: #111116;
    color: #fff;
}

/* Voice Integration Features */
.mic-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
}

.mic-btn:hover {
    color: #60a5fa;
    background: rgba(255,255,255,0.04);
}

.mic-btn.recording {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    animation: micPulse 1.2s ease-in-out infinite;
}

@keyframes micPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.15); }
}

/* TTS Speaking Highlight Overlay */
.chat-message-copilot.speaking {
    border-color: rgba(168, 85, 247, 0.35) !important;
    background: rgba(168, 85, 247, 0.02) !important;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.05), inset 0 0 10px rgba(168, 85, 247, 0.02) !important;
}

.ai-speak-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-speak-btn:hover {
    color: #c084fc;
    background: rgba(255, 255, 255, 0.04);
}

.ai-speak-btn.speaking {
    color: #c084fc;
    animation: ttsWave 1s ease-in-out infinite alternate;
}

@keyframes ttsWave {
    from { opacity: 0.6; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}


/* ==========================================================================
   REGISTRY CATEGORIES HUB & GLASSMORPHIC CARDS
   ========================================================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0 30px;
    width: 100%;
}

.category-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.25), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.category-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.category-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
}

.category-card-count {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.category-card-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 300;
    margin-left: 8px;
    user-select: none;
}

/* Hover States & Glowing Border Effects */
.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--cat-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.45), 
        0 0 25px rgba(var(--cat-color-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.category-card:hover .category-card-glow {
    opacity: 1;
    transform: scale(1.15);
}

.category-card:hover .category-card-icon {
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 0 22px var(--cat-color);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.category-card:hover .category-card-name {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.category-card:hover .category-card-count {
    color: rgba(255, 255, 255, 0.65);
}

.category-card:hover .category-card-arrow {
    color: var(--cat-color);
    transform: translateX(5px) scale(1.15);
    text-shadow: 0 0 10px var(--cat-color);
}

/* Responsive Rules */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 16px;
        padding: 10px 5px 20px;
    }
    
    .category-card {
        padding: 16px;
        border-radius: 18px;
    }

    .category-card-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
        margin-right: 12px;
    }
    
    .category-card-name {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-card {
        padding: 14px 16px;
    }
}


/* ==========================================================================
   FREE GAMES TRACKER
   ========================================================================== */

/* Premium Segment Control Filter Bar */
.fg-filter-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 580px;
    width: 100%;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.fg-filter-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for clean visual appearance */
}

.fg-filter-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    user-select: none;
    border: 1px solid transparent;
}

.fg-filter-item i {
    font-size: 0.95rem;
    transition: transform 0.3s;
}

.fg-filter-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.fg-filter-item:hover i {
    transform: scale(1.1);
}

/* Custom platform selector active state overrides */
#fg-filter-epic.active {
    background: rgba(0, 120, 242, 0.12) !important;
    border-color: rgba(0, 120, 242, 0.25) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 120, 242, 0.2) !important;
}
#fg-filter-steam.active {
    background: rgba(102, 192, 244, 0.12) !important;
    border-color: rgba(102, 192, 244, 0.25) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(102, 192, 244, 0.2) !important;
}
#fg-filter-gog.active {
    background: rgba(155, 81, 224, 0.12) !important;
    border-color: rgba(155, 81, 224, 0.25) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(155, 81, 224, 0.2) !important;
}
#fg-filter-f2p.active {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}
#fg-filter-all.active {
    background: rgba(168, 85, 247, 0.12) !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2) !important;
}

/* Stats Dashboard Panel */
.fg-stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
    width: 100%;
}

.fg-stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2), 
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fg-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 18px 38px rgba(0, 0, 0, 0.35), 
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fg-stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.fg-stat-active .fg-stat-icon-wrapper {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.fg-stat-savings .fg-stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.fg-stat-platform .fg-stat-icon-wrapper {
    background: rgba(0, 120, 242, 0.12);
    border: 1px solid rgba(0, 120, 242, 0.25);
    color: #0078f2;
    text-shadow: 0 0 10px rgba(0, 120, 242, 0.3);
}

.fg-stat-content {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.fg-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.fg-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.fg-stat-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    bottom: -50px;
    right: -50px;
    transition: all 0.4s;
}

.fg-stat-active .fg-stat-glow {
    background: #a855f7;
}

.fg-stat-savings .fg-stat-glow {
    background: #10b981;
}

.fg-stat-platform .fg-stat-glow {
    background: #0078f2;
}

.fg-stat-card:hover .fg-stat-glow {
    opacity: 0.35;
    transform: scale(1.25);
}

/* Controls Bar (Filter, Search, Sort) */
.fg-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.fg-search-sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.fg-search-wrapper {
    position: relative;
    flex-grow: 1;
}

.fg-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.3s;
}

#fg-search-input {
    width: 100%;
    padding: 11px 36px 11px 36px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#fg-search-input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 
        0 0 0 3px rgba(16, 185, 129, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

#fg-search-input:focus + .fg-search-icon {
    color: #10b981;
}

.fg-search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-search-clear-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fg-sort-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fg-sort-icon {
    position: absolute;
    left: 14px;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    z-index: 2;
}

#fg-sort-select {
    padding: 11px 32px 11px 34px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    min-width: 170px;
    z-index: 1;
}

#fg-sort-select:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

#fg-sort-select:focus {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

#fg-sort-select option {
    background: #0f0f15;
    color: #fff;
}

.fg-sort-wrapper::after {
    content: "\f0d7";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    font-size: 0.8rem;
    z-index: 2;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 10px 0 30px;
    width: 100%;
}

/* Premium Card & Radial Glow */
.game-card {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(var(--game-color-rgb), 0.12),
        transparent 50%
    );
    transition: opacity 0.5s;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--game-color-rgb), 0.3);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.5), 
        0 0 25px rgba(var(--game-color-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.game-card:hover .game-card-glow {
    opacity: 1;
}

.game-card-image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.game-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-card-image {
    transform: scale(1.05);
}

.game-card-worth-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card-content {
    position: relative;
    z-index: 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.game-card-platform {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.game-card:hover .game-card-platform {
    color: var(--game-color);
}

.game-card-type {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--game-color);
    background: rgba(var(--game-color-rgb), 0.08);
    border: 1px solid rgba(var(--game-color-rgb), 0.2);
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.game-card:hover .game-card-type {
    background: rgba(var(--game-color-rgb), 0.15);
    border-color: rgba(var(--game-color-rgb), 0.4);
    box-shadow: 0 0 10px rgba(var(--game-color-rgb), 0.2);
}

.game-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s;
}

.game-card:hover .game-card-title {
    color: var(--game-color);
}

.game-card-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    transition: color 0.3s;
}

.game-card:hover .game-card-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Card Footer Storefront Metadata */
.game-card-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 18px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.worth-saved {
    color: var(--game-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 0 10px rgba(var(--game-color-rgb), 0.1);
}

.game-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: greenPulse 1.8s infinite;
}

.game-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card-btn:hover {
    background: var(--game-color);
    color: #000;
    border-color: var(--game-color);
    box-shadow: 0 8px 25px rgba(var(--game-color-rgb), 0.35);
    transform: translateY(-2px);
}

/* Dynamic Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.game-card.animated-card {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Claimed State Styles */
.game-card.claimed {
    opacity: 0.45;
    filter: grayscale(50%);
    border-color: rgba(16, 185, 129, 0.2) !important;
    background: rgba(10, 10, 15, 0.3);
}

.game-card.claimed:hover {
    opacity: 0.8;
    filter: grayscale(10%);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.game-card-claimed-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fg-claim-toggle-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.fg-claim-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.fg-claim-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.fg-claim-toggle i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.fg-claim-toggle:hover i {
    transform: scale(1.15);
}

.game-card.claimed .fg-claim-toggle {
    color: #10b981;
}

.game-card.claimed .game-card-btn {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.game-card.claimed .game-card-btn:hover {
    background: #10b981;
    color: #000;
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* Skeleton Loading Shimmer CSS */
.skeleton-card {
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.008) !important;
}

.skeleton-image {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.skeleton-text {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    height: 12px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.skeleton-text.skeleton-badge {
    width: 60px;
    height: 18px;
    border-radius: 8px;
    margin-bottom: 0;
}

.skeleton-text.skeleton-title {
    width: 75%;
    height: 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    margin-top: 6px;
}

.skeleton-text.skeleton-desc {
    width: 100%;
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-text.skeleton-footer-item {
    width: 80px;
    height: 14px;
    border-radius: 4px;
    margin-bottom: 0;
}

.skeleton-button {
    width: 100%;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

/* Shimmer animation bar */
.skeleton-image::after,
.skeleton-text::after,
.skeleton-button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 20%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .fg-stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    .fg-stats-panel .fg-stat-platform {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .fg-stats-panel {
        grid-template-columns: 1fr;
    }
    .fg-stats-panel .fg-stat-platform {
        grid-column: span 1;
    }
    .fg-search-sort-bar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .fg-search-wrapper, .fg-sort-wrapper, #fg-sort-select {
        max-width: 100%;
        width: 100%;
    }
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .fg-filter-bar {
        padding: 4px;
    }
    
    .fg-filter-item {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    
    .fg-filter-item i {
        font-size: 0.85rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


