/* ====================================================
   KARTOOS CHEATS — Unified Core CSS Design System
   ==================================================== */

:root {
    /* Colors - Sleek Obsidian + Cyber Toxic Green Theme */
    --bg-primary: #040807;
    /* Extremely dark, high-end emerald black */
    --bg-secondary: #08100e;
    /* Deep pine-obsidian grey */
    --bg-card: #0c1613;
    /* Glassy emerald card backdrop */
    --bg-input: #060c0a;
    /* Input fields backdrop */
    --border-default: #0c4a6e;
    /* Sleek dark green boundary */
    --border-focus: #38bdf8;
    /* Glowing emerald border focus */

    --text-primary: #f2f7f5;
    /* Mint white for ultra clarity */
    --text-secondary: #8ba89f;
    /* Muted sage/mint text */
    --text-muted: #536e65;
    /* Forest grey for secondary info */
    --text-label: #0ea5e9;
    /* Emerald/Mint highlights for form labels */

    --accent-purple: #38bdf8;
    /* Remap purple actions to emerald green */
    --accent-violet: #0284c7;
    /* Remap violet to deep emerald */
    --accent-magenta: #0ea5e9;
    /* Remap magenta to high-vis bright mint */
    --accent-pink: #0284c7;
    /* Remap pink to forest green */
    --accent-green: #38bdf8;
    --accent-green-bright: #0ea5e9;

    --gradient-btn: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #0ea5e9 100%);
    --gradient-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(14, 165, 233, 0.4));
    --gradient-green-glow: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.35s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 100px 20px 80px;
    /* Accommodate fixed navbar & footer */
}

/* ===========================
   Header Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(8, 8, 17, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(28, 28, 56, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    z-index: 100;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    user-select: none;
}

.logo-k-glow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 10px rgba(56, 189, 248, 0.8),
        0 0 20px rgba(56, 189, 248, 0.4);
    animation: greenPulse 2.5s ease-in-out infinite;
}

.logo-k-glow::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-sm);
    background: var(--gradient-green-glow);
    filter: blur(8px);
    z-index: -1;
    opacity: 0.8;
}

@keyframes greenPulse {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(56, 189, 248, 0.8),
            0 0 20px rgba(56, 189, 248, 0.4);
        transform: scale(1);
    }

    50% {
        text-shadow:
            0 0 18px rgba(56, 189, 248, 1),
            0 0 35px rgba(14, 165, 233, 0.7);
        transform: scale(1.06);
    }
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-accent {
    font-weight: 400;
    color: var(--text-secondary);
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.navbar__user-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-default);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.btn-register-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 var(--space-lg);
    background: var(--gradient-btn);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
}

.btn-register-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-register-nav:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.btn-register-nav:hover::before {
    opacity: 1;
}

.btn-register-nav:active {
    transform: translateY(0);
}

/* ===========================
   Animated Background
   =========================== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: floatGlow1 12s ease-in-out infinite;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: floatGlow2 15s ease-in-out infinite;
}

.bg-glow--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatGlow3 10s ease-in-out infinite;
}

@keyframes floatGlow1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.95);
    }
}

@keyframes floatGlow2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, -20px) scale(1.05);
    }

    66% {
        transform: translate(30px, -40px) scale(1.1);
    }
}

@keyframes floatGlow3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1);
    }
}

/* ===========================
   Brand Watermark
   =========================== */
.brand-watermark {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.6em;
    color: rgba(56, 189, 248, 0.08);
    z-index: 0;
    user-select: none;
}

/* ===========================
   Card Styles (Login & Register Panels)
   =========================== */
.card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: cardEntrance 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(99, 102, 241, 0.03);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(99, 102, 241, 0.04) 0%,
            transparent 40%);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gradient-btn);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    opacity: 0.5;
}

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

/* Close Button */
.card__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 5;
}

.card__close:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.06);
    transform: rotate(90deg);
}

/* Header Avatar Icon */
.card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.15));
    border-radius: var(--radius-lg);
    color: var(--accent-purple);
    position: relative;
    animation: iconPulse 3s ease-in-out infinite;
}

.card__icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), transparent);
    z-index: -1;
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes iconGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Card Titles */
.card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.card__title--login {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-glow {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.card__subtitle {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.card__subtitle--login {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    font-weight: 400;
    margin-bottom: var(--space-2xl);
    text-transform: none;
}

/* ===========================
   Form Core Elements
   =========================== */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    animation: fieldSlideIn 0.6s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(15px);
}

.form__group:nth-child(1) {
    animation-delay: 0.15s;
}

.form__group:nth-child(2) {
    animation-delay: 0.25s;
}

.form__group:nth-child(3) {
    animation-delay: 0.35s;
}

.form__group:nth-child(4) {
    animation-delay: 0.45s;
}

.form__group:nth-child(5) {
    animation-delay: 0.55s;
}

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

.form__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-label);
    padding-left: 2px;
}

.form__forgot-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.form__forgot-link:hover {
    color: var(--accent-purple);
}

.form__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form__input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    pointer-events: none;
    z-index: 2;
}

.form__input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.form__input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form__input:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(99, 102, 241, 0.04);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.08),
        0 0 20px rgba(99, 102, 241, 0.06);
}

.form__input:focus~.form__input-glow {
    opacity: 1;
}

.form__input-wrap:focus-within .form__input-icon {
    color: var(--accent-purple);
}

.form__input-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    background: var(--gradient-glow);
    opacity: 0;
    z-index: 0;
    filter: blur(12px);
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

/* Toggle Password Visibility Button */
.form__toggle-pass {
    position: absolute;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    z-index: 2;
}

.form__toggle-pass:hover {
    color: var(--accent-purple);
    background: rgba(99, 102, 241, 0.08);
}

/* Glassmorphic Checkbox Styles */
.form__remember-me {
    display: flex;
    align-items: center;
    margin: var(--space-xs) 0;
    animation: fieldSlideIn 0.6s var(--ease-out) 0.45s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.form__checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    user-select: none;
}

.form__checkbox-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form__checkbox-box {
    width: 20px;
    height: 20px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-default);
    border-radius: 6px;
    position: relative;
    transition: all var(--transition-fast);
}

.form__checkbox-label:hover input~.form__checkbox-box {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.04);
}

.form__checkbox-label input:checked~.form__checkbox-box {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.form__checkbox-box::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form__checkbox-label input:checked~.form__checkbox-box::after {
    display: block;
}

.form__checkbox-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.form__checkbox-label:hover .form__checkbox-text {
    color: var(--text-primary);
}

/* Submit Buttons */
.form__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    height: 56px;
    margin-top: var(--space-sm);
    background: var(--gradient-btn);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: btnSlideIn 0.6s var(--ease-out) 0.65s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.form__submit--login {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

.form__submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.form__submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(168, 85, 247, 0.35),
        0 4px 15px rgba(236, 72, 153, 0.25);
}

.form__submit:hover::before {
    opacity: 1;
}

.form__submit:active {
    transform: translateY(0) scale(0.98);
}

.form__submit-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    40%,
    100% {
        left: 100%;
    }
}

/* Card Footers */
.card__footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--space-lg);
    animation: fadeIn 0.6s var(--ease-out) 0.8s forwards;
    opacity: 0;
}

.card__footer--login {
    margin-top: var(--space-xl);
    font-size: 0.85rem;
}

.card__footer-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.card__footer-link:hover {
    color: var(--accent-magenta);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Global Page Footer */
.footer {
    position: relative;
    z-index: 10;
    margin-top: auto;
    text-align: center;
    padding: var(--space-xl) 0 var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-highlight {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   Success Transition Overlays
   =========================== */
.success-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
    border-radius: var(--radius-xl);
}

.success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-check {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green-bright);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: scale(0);
}

.success-overlay.active .success-check {
    animation: checkBounce 0.6s var(--ease-spring) forwards;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-overlay h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.success-overlay p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===========================
   Validation Visual Indicators
   =========================== */
.form__group.error .form__input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form__group.error .form__label {
    color: #ef4444;
}

.form__group.success .form__input {
    border-color: var(--accent-green-bright);
}

.form__error-msg {
    font-size: 0.72rem;
    color: #ef4444;
    padding-left: 2px;
    margin-top: 2px;
    animation: errorSlide 0.3s var(--ease-out);
}

@keyframes errorSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* ===========================
   Loading States
   =========================== */
.form__submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.form__submit.loading span,
.form__submit.loading svg {
    opacity: 0;
}

.form__submit.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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


/* ====================================================
   KARTOOS CHEATS — Dashboard Glassmorphic Layouts
   ==================================================== */

.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    width: 100%;
    max-width: 1300px;
    min-height: calc(100vh - 200px);
    margin: 0 auto;
    position: relative;
    z-index: 10;
    animation: cardEntrance 0.8s var(--ease-out) forwards;
}

/* Sidebar Menu Panel */
.dashboard-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid var(--border-default);
    padding-bottom: var(--space-lg);
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.sidebar-user-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-user-details p {
    font-size: 0.75rem;
    color: var(--accent-green-bright);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    height: 48px;
    padding: 0 var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.menu-item svg {
    transition: transform var(--transition-fast);
}

.menu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.menu-item.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.05);
}

.menu-item.active svg {
    color: var(--accent-purple);
    transform: scale(1.05);
}

/* Workspace Display Area */
.dashboard-workspace {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.workspace-tab {
    display: none;
    flex-direction: column;
    gap: var(--space-xl);
    animation: fadeIn 0.4s var(--ease-out) forwards;
}

.workspace-tab.active {
    display: flex;
}

.tab-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tab-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-default);
}

.stat-card__icon.text-purple {
    color: var(--accent-purple);
    border-color: rgba(14, 165, 233, 0.2);
    background: rgba(14, 165, 233, 0.05);
}

.stat-card__icon.text-green {
    color: var(--accent-green-bright);
    border-color: rgba(14, 165, 233, 0.2);
    background: rgba(14, 165, 233, 0.05);
}

.stat-card__icon.text-magenta {
    color: var(--accent-magenta);
    border-color: rgba(217, 70, 239, 0.2);
    background: rgba(217, 70, 239, 0.05);
}

.stat-card__details h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card__details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Panel Containers */
.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dashboard-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: var(--space-xl);
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

/* Premium Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 var(--space-xl);
    background: var(--gradient-btn);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary.btn-sm {
    height: 38px;
    padding: 0 var(--space-lg);
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-logout {
    height: 36px;
    padding: 0 var(--space-md);
    background: transparent;
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: rgba(14, 165, 233, 0.08);
}

/* Forms & Select Dropdowns */
.quick-action-row {
    display: flex;
    align-items: flex-end;
    gap: var(--space-md);
}

.width-300 {
    width: 300px;
}

.form__select {
    padding-right: var(--space-xl);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237e7b9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.generated-key-box {
    margin-top: var(--space-lg);
    background: var(--bg-input);
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: fit-content;
    animation: fadeIn 0.3s var(--ease-out);
}

.generated-key-box span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.generated-key-box strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.hidden {
    display: none !important;
}

/* Database Data Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-input);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.dashboard-table th {
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-label);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1.5px solid var(--border-default);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(28, 28, 56, 0.5);
    color: var(--text-primary);
    font-weight: 400;
}

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

.dashboard-table tbody tr {
    transition: background var(--transition-fast);
}

.dashboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

/* Badge Layouts */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-green {
    background: rgba(56, 189, 248, 0.12);
    color: #0ea5e9;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-purple {
    background: rgba(14, 165, 233, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-magenta {
    background: rgba(217, 70, 239, 0.12);
    color: #f472b6;
    border: 1px solid rgba(217, 70, 239, 0.2);
}

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

/* Layout Helpers */
.margin-top-lg {
    margin-top: var(--space-xl);
}

.text-center {
    text-align: center !important;
}

/* ===========================================
   Global Mobile Application View (under 768px)
   =========================================== */

/* Global Hamburger Button hidden on desktop */
.hamburger-btn {
    display: none;
}

/* Global Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    body {
        padding-top: 64px !important;
        padding-bottom: 0 !important; /* Zero bottom padding, completely freeing vertical scroll screen space! */
    }

    /* Fixed top navigation bar with Hamburger on left */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 50px !important;
        padding: 0 var(--space-md) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Left-aligned to make room for hamburger next to logo */
        z-index: 10000 !important;
        background: rgba(10, 10, 14, 0.85) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-bottom: 1px solid var(--border-default) !important;
    }

    /* Show hamburger menu toggle in navbar header on mobile devices */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 15px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10001;
        padding: 0;
        margin-right: var(--space-md);
    }

    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* High-fidelity full-screen dark clean overlay backdrop (NO heavy blurs to maximize performance and avoid blackout!) */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4) !important; /* Soft, clean transparent dimming */
        backdrop-filter: none !important; /* Disables heavy blur filter to guarantee 60 FPS transitions */
        -webkit-backdrop-filter: none !important;
        z-index: 10001 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: block !important;
    }

    .sidebar-backdrop.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Clean compact header text */
    .logo-k-glow {
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    /* Clean header tags */
    #nav-user-tag {
        display: none !important; /* Hide username tag inside top bar on mobile */
    }
    
    .navbar__nav {
        margin-left: auto !important; /* Pushes balance/logout to absolute right */
        gap: var(--space-xs) !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #nav-balance-tag {
        font-size: 0.8rem !important;
        padding: 3px var(--space-xs) !important;
    }
    
    .btn-logout {
        padding: 3px var(--space-xs) !important;
        font-size: 0.75rem !important;
        height: 26px !important;
    }

    /* 📱 100% Mobile Fluid Workspace (Breaks the desktop relative stacking context on mobile) */
    .dashboard-container {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-md) !important;
        padding: 0 var(--space-sm) !important;
        width: 100% !important;
        position: static !important; /* Disables relative positioning on mobile to escape stacking context! */
        z-index: auto !important; /* Resets z-index context globally on mobile */
        animation: none !important; /* Disables entrance animation on mobile to prevent stacking context! */
        transform: none !important; /* Disables transforms on mobile to prevent stacking context! */
    }

    /* 💎 Premium Slide-Over Solid Dark Left Drawer */
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 270px !important;
        height: 100vh !important;
        background: #0a0a0f !important; /* Opaque solid dark theme background color to ensure perfect contrast and zero background bleed! */
        backdrop-filter: none !important; /* Disables transparent blur on drawer itself */
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-right: 1px solid var(--border-default) !important;
        border-radius: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 10002 !important; /* Layers globally above the backdrop */
        padding: var(--space-xl) var(--space-md) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-xl) !important;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8) !important;
    }

    .dashboard-sidebar.open {
        transform: translateX(0) !important;
    }

    /* Drawer Header */
    .sidebar-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: var(--space-sm) !important;
        border-bottom: 1px solid var(--border-default) !important;
        padding-bottom: var(--space-md) !important;
        width: 100% !important;
    }

    .sidebar-avatar {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
    }

    .sidebar-user-details {
        display: block !important;
    }

    /* Drawer Vertical List Options Menu */
    .sidebar-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: var(--space-xs) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-item {
        width: 100% !important;
        height: 44px !important;
        min-width: unset !important;
        border-radius: var(--radius-md) !important;
        padding: 0 var(--space-md) !important;
        justify-content: flex-start !important;
        flex-direction: row !important;
        gap: var(--space-sm) !important;
        background: none !important;
        border: 1px solid transparent !important;
        color: var(--text-muted) !important;
        flex-shrink: 0 !important;
    }

    .menu-item span {
        display: inline-block !important; /* Show clean compact labels below icons */
        font-size: 0.85rem !important;
        font-family: 'Space Grotesk', sans-serif !important;
        color: var(--text-primary) !important;
    }

    .menu-item svg {
        margin: 0 !important;
        width: 18px !important;
        height: 18px !important;
        color: inherit !important;
        transition: none !important;
    }

    .menu-item.active {
        background: var(--bg-hover) !important;
        color: var(--accent-green-bright) !important;
        border: 1px solid var(--border-default) !important;
    }

    .menu-item.active svg {
        transform: none !important;
        filter: drop-shadow(0 0 6px var(--accent-green-bright));
    }

    /* 🧱 Snug Spacing & Grid Adjustments */
    .dashboard-workspace {
        gap: var(--space-md) !important;
    }

    .dashboard-panel {
        padding: var(--space-md) !important;
        border-radius: var(--radius-lg) !important;
        margin-bottom: var(--space-sm) !important;
    }

    .overview-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    /* 📋 Stacking Rows & Fluid Button Flows */
    .quick-action-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--space-sm) !important;
    }

    .quick-action-row .form__group {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Stretches flex button rows inside key generators */
    div[style*="display: flex; gap: var(--space-md)"], 
    div[style*="display: flex; gap: var(--space-md); align-items: flex-end; width: 100%"] {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: var(--space-xs) !important;
    }

    .quick-action-row button,
    .quick-action-row .btn-primary,
    .quick-action-row .btn-secondary,
    .dashboard-panel button,
    .form__submit {
        width: 100% !important;
        margin-left: 0 !important;
        align-self: stretch !important;
    }

    /* 🏷️ Result Key Display Adjustments */
    .generated-key-box {
        flex-direction: column !important;
        align-items: center !important;
        gap: var(--space-sm) !important;
        padding: var(--space-md) !important;
        text-align: center !important;
        border-radius: var(--radius-md) !important;
    }

    .generated-key-box strong {
        font-size: 0.9rem !important;
        word-break: break-all !important;
    }

    .generated-key-box button {
        width: 100% !important;
        margin-left: 0 !important;
        height: 38px !important;
        justify-content: center;
    }

    /* 🔒 Login / Register Portal mobile scaling */
    .card {
        width: calc(100% - 24px) !important;
        max-width: 400px !important;
        margin: var(--space-xl) auto !important;
        padding: var(--space-xl) var(--space-md) var(--space-lg) !important;
    }

    .card__title {
        font-size: 1.35rem;
    }

    .card__title--login {
        font-size: 1.55rem;
    }

    .form__input {
        height: 44px;
        font-size: 0.8rem;
    }

    .form__submit {
        height: 46px;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .card {
        padding: var(--space-lg) var(--space-md) var(--space-md);
        border-radius: var(--radius-lg);
    }

    .card__icon {
        width: 60px;
        height: 60px;
    }

    .card__title {
        font-size: 1.3rem;
    }
}

/* ===========================
   Scrollbars
   =========================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ===========================
   Selection
   =========================== */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* ===========================
   📢 Announcement Alert Banner
   =========================== */
.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(217, 70, 239, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    margin-bottom: var(--space-lg);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.08), inset 0 0 10px rgba(217, 70, 239, 0.05);
    backdrop-filter: blur(8px);
    animation: pulseGlowBorder 3s infinite alternate;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

@keyframes pulseGlowBorder {
    0% {
        border-color: rgba(56, 189, 248, 0.25);
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.05);
    }

    100% {
        border-color: rgba(217, 70, 239, 0.45);
        box-shadow: 0 0 25px rgba(217, 70, 239, 0.15);
    }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: #f3f4f6;
    font-weight: 500;
    line-height: 1.5;
}

.announcement-content svg {
    color: var(--accent-green-bright);
    filter: drop-shadow(0 0 4px var(--accent-green-bright));
    animation: flashInfo 1.5s infinite;
    flex-shrink: 0;
}

@keyframes flashInfo {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.btn-close-announcement {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-announcement:hover {
    color: var(--accent-magenta);
}

/* ====================================================
   💎 Premium Metallic Transparent 'K' Logo Image Styling
   ==================================================== */
.logo-img-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 0px;
    background: transparent;
    transition: all 0.35s var(--ease-out);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}

.logo-img-wrapper:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 14px rgba(14, 165, 233, 0.75));
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

/* Large Logo on top of login & register cards */
.logo-img-wrapper--large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 0px;
    background: transparent;
    /* Beautiful radial emerald aura glow behind the K */
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.5));
    animation: premiumLogoFloatImg 4.5s ease-in-out infinite;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-normal);
}

.logo-img-wrapper--large:hover {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(14, 165, 233, 0.85));
}

.logo-img--large {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: contrast(1.15) brightness(1.05);
}

/* Sidebar Logo */
.logo-img-wrapper--sidebar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 0px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 75%);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.4));
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: sidebarLogoPulse 4s ease-in-out infinite alternate;
}

.logo-img--sidebar {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

@keyframes premiumLogoFloatImg {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.5));
    }
    50% {
        transform: translateY(-8px) scale(1.04) rotate(1.5deg);
        filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 35px rgba(14, 165, 233, 0.75));
    }
}

@keyframes sidebarLogoPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(14, 165, 233, 0.65));
    }
}

.card-logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -10px;
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   ✨ PREMIUM GLASSMORPHIC TOAST NOTIFICATION WIDGET
   ========================================================================== */
.premium-toast-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 420px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.premium-toast {
    background: rgba(8, 18, 36, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-2xl), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
    align-items: flex-start;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.premium-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
}

/* Success theme colors */
.premium-toast--success::before {
    background: var(--gradient-btn);
}
.premium-toast--success {
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: var(--shadow-2xl), 0 0 25px rgba(56, 189, 248, 0.15);
}

/* Blocked/Deleted theme colors */
.premium-toast--danger::before {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
}
.premium-toast--danger {
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: var(--shadow-2xl), 0 0 25px rgba(239, 68, 68, 0.15);
}

/* Extended theme colors */
.premium-toast--info::before {
    background: linear-gradient(180deg, #a855f7, #7c3aed);
}
.premium-toast--info {
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: var(--shadow-2xl), 0 0 25px rgba(14, 165, 233, 0.15);
}

@keyframes toastSlideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.premium-toast.toast-dismiss {
    animation: toastSlideOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
}

.premium-toast__icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-toast--success .premium-toast__icon {
    color: var(--accent-green-bright);
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.15);
}

.premium-toast--danger .premium-toast__icon {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
}

.premium-toast--info .premium-toast__icon {
    color: var(--accent-purple-bright);
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.15);
}

.premium-toast__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.premium-toast__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.premium-toast__desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.premium-toast__close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 4px;
}

.premium-toast__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* ====================================================
   🔥 Premium BGMI Key Logo Style
   ==================================================== */
.generated-key-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(251, 191, 36, 0.45);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.35));
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.3);
}

.generated-key-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.75));
    border-color: rgba(251, 191, 36, 0.85);
}

/* -----------------------------------------------
   Session Countdown Timer — Pulse animation
   (fires when < 30 minutes remain in session)
----------------------------------------------- */
@keyframes pulseGlow {
    0%   { opacity: 1;   box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
    50%  { opacity: 0.7; box-shadow: 0 0 22px rgba(239, 68, 68, 0.8); }
    100% { opacity: 1;   box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
}

/* ==========================================================================
   🎬 CINEMATIC INTRO OVERLAY
   ========================================================================== */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #020504; /* Ultra dark emerald-black */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

/* Cinematic large logo image in the center */
.intro-logo-wrapper {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.03);
    border: 2px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1), inset 0 0 15px rgba(56, 189, 248, 0.05);
    transform: scale(0.5);
    opacity: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.intro-overlay--active .intro-logo-wrapper {
    animation: introLogoImpact 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.intro-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.intro-text-wrapper {
    opacity: 0;
    transform: translateY(20px);
}

.intro-overlay--active .intro-text-wrapper {
    animation: introTextFadeUp 1s ease 1.2s forwards;
}

.intro-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.intro-highlight {
    color: var(--accent-green-bright);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.intro-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.intro-skip {
    position: absolute;
    bottom: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: introSkipFadeIn 1s ease 3s forwards;
}

.intro-skip:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--accent-green);
    color: #fff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

/* Animations */
@keyframes introLogoImpact {
    0% {
        transform: scale(0.5) rotate(-15deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        box-shadow: 0 0 50px rgba(56, 189, 248, 0.35), inset 0 0 30px rgba(56, 189, 248, 0.15);
        border-color: var(--accent-green);
    }
}

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

@keyframes introSkipFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Click to enter prompt style */
.intro-prompt {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    z-index: 10005;
    transition: all 0.5s ease;
}

.intro-overlay--active .intro-prompt {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.9);
}

.intro-prompt-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green-bright);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
    animation: promptPulse 1.8s ease-in-out infinite;
}

.intro-prompt-pulse {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    position: relative;
    animation: pulseRing 1.8s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes promptPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

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