/* Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --primary-rgb: 139, 92, 246;
    --black: #0a0a0a;
    --dark: #111113;
    --gray: #1f1f23;
    --light-gray: #2a2a30;
    --white: #f8fafc;
    --text: #cbd5e1;
}

/* Enable scrolling on all pages */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loading-spinner {
    margin-bottom: 2rem;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(var(--primary-rgb), 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.loading-progress {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 2px;
    width: 0%;
    animation: progressLoad 2s ease-in-out forwards;
}

@keyframes progressLoad {
    0% { width: 0%; }
    20% { width: 30%; }
    40% { width: 60%; }
    60% { width: 80%; }
    80% { width: 95%; }
    100% { width: 100%; }
}

/* Enhanced spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background - Minimal */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: -2;
}

/* Settings Link */
.settings-link {
    position: fixed;
    bottom: 7rem;
    left: 2rem;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Chat Link - placed to the right of settings */
.chat-link {
    position: fixed;
    bottom: 7rem;
    left: calc(2rem + 50px + 0.75rem);
    z-index: 999;
    width: 50px;
    height: 50px;
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    font-size: 1.3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chat-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.settings-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

/* Enhanced Canvas Styles */
#canvas-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

#canvas-container:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
}

#floating-canvas {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

/* Canvas Overlay Text */
.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.7);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 14px;
}

.canvas-overlay i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

#canvas-container:hover .canvas-overlay {
    opacity: 1;
    visibility: visible;
}

/* Admin Key Button */
.admin-key {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.admin-key:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.1);
}

.admin-key i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.admin-key:hover i {
    color: var(--primary-light);
    transform: rotate(15deg);
}

.admin-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    margin-top: 10px;
    z-index: 1000;
}

.admin-key:hover .admin-tooltip {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
}

.admin-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--dark);
}

/* Admin Console Styles */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.admin-modal.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal-content {
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-header {
    background: var(--black);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.admin-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.admin-close:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.admin-tabs {
    display: flex;
    background: var(--black);
    border-bottom: 1px solid var(--light-gray);
}

.admin-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-weight: 600;
}

.admin-tab:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}

.admin-tab.active {
    background: var(--primary);
    color: var(--white);
}

.admin-content {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Key Management Styles */
.key-actions {
    margin-bottom: 2rem;
}

.add-key-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-input {
    flex: 1;
    padding: 1rem;
    background: var(--black);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Inter', monospace;
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.admin-btn.primary:hover {
    background: var(--primary-dark);
}

.admin-btn.secondary {
    background: var(--gray);
    color: var(--white);
    border: 1px solid var(--light-gray);
}

.admin-btn.secondary:hover {
    background: var(--light-gray);
}

.admin-btn.danger {
    background: #ef4444;
    color: var(--white);
}

.admin-btn.danger:hover {
    background: #dc2626;
}

.keys-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--black);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.key-item:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.key-text {
    font-family: 'Inter', monospace;
    font-weight: 600;
    color: var(--primary);
}

.key-actions {
    display: flex;
    gap: 0.5rem;
}

.key-action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.key-action-btn.copy:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.key-action-btn.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Statistics Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--black);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text);
    font-size: 0.9rem;
}

/* Tools Styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: var(--black);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text);
}

.tool-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-2px);
}

.tool-card i {
    font-size: 2rem;
    color: var(--primary);
}

.danger-zone {
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .add-key-section {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .key-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Main Content */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Animated Title */
#title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: titleFloat 4s ease-in-out infinite, titlePulse 8s ease-in-out infinite;
    cursor: default;
    position: relative;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

#title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    animation: titleShimmer 3s ease-in-out infinite, titleGlow 6s ease-in-out infinite;
    text-shadow: 0 0 30px var(--primary);
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.01);
    }
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5);
    }
}

@keyframes titleShimmer {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.02);
    }
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

@keyframes titleRotate {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(10deg);
    }
}

.subtitle {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.stat-card {
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.3));
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Credits Stat Box */
.credits-stat-box, .credits-stat-box:visited, .credits-stat-box:active, .credits-stat-box:focus {
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 1.5rem;
    color: var(--text);
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 140px;
    min-height: 80px;
    outline: none;
    flex-shrink: 0;
}

.credits-stat-box:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-color);
    text-decoration: none !important;
}

.credits-stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.credits-stat-content {
    display: flex;
    flex-direction: column;
}

.credits-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.credits-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.credits-stat-box:hover .credits-stat-value {
    color: var(--white);
}

.credits-stat-box:hover .credits-stat-label {
    opacity: 1;
}

/* Categories Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
}

/* Make category boxes proper links */
.categories a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-box {
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.category-box:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

/* Remove any default link styles */
.category-box:visited,
.category-box:active,
.category-box:focus {
    color: inherit;
    text-decoration: none;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.3));
}

.category-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.category-box p {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Box Glow Effects */
.box-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-box:hover .box-glow {
    opacity: 1;
    animation: boxPulse 2s ease-in-out infinite;
}

@keyframes boxPulse {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.1), 0 0 20px rgba(var(--primary-rgb), 0.1);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.2), 0 0 30px rgba(var(--primary-rgb), 0.2);
    }
}

/* Key System Styles */
.key-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.key-popup.active {
    display: flex;
}

.key-popup-content {
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.key-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.key-popup-header h2 {
    margin: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.key-close-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.key-close-btn:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.key-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.key-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.key-submit-btn.loading {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.key-input-container {
    position: relative;
    margin: 1.5rem 0;
}

.key-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--dark);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', monospace;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.key-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.key-input::placeholder {
    color: var(--text);
    opacity: 0.7;
}

.show-key-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.show-key-btn:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.key-status {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.key-status.show {
    opacity: 1;
    transform: translateY(0);
}

.key-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.key-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.key-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.key-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-info i {
    color: var(--primary);
}

/* SPINNER ANIMATION - FIXED */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Loading animation */
.loading {
    animation: spin 1s linear infinite;
}

/* Discord Button */
.discord-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 101;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.discord-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 16px 16px 0 0;
}

.popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-content p {
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Buttons */
.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
    border: 1px solid var(--light-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* Footer */
footer {
    position: fixed;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    color: var(--text);
    font-size: 0.9rem;
    z-index: 10000;
}

/* Responsive */
@media (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .discord-btn {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: center;
    }
    
    .popup-content {
        padding: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    #canvas-container {
        top: 10px;
        right: 10px;
    }
    
    /* Mobile scrolling improvements */
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Help Modal */
.help-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--primary-light);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--glow-color, rgba(139, 92, 246, 0.4));
    z-index: 100;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px var(--glow-color, rgba(139, 92, 246, 0.4)));
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--glow-color, rgba(139, 92, 246, 0.6));
    background: var(--primary-light);
    filter: drop-shadow(0 0 20px var(--glow-color, rgba(139, 92, 246, 0.7)));
}

.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.help-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.help-modal-content {
    background: var(--dark);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.help-modal-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-modal-close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.help-modal-close:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.help-modal-body {
    padding: 2rem;
}

.shortcut-group {
    margin-bottom: 2rem;
}

.shortcut-group:last-child {
    margin-bottom: 0;
}

.shortcut-group h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.shortcut-keys {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.shortcut-keys kbd {
    background: var(--light-gray);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shortcut-desc {
    color: var(--text);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .help-button {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .help-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .help-modal-header,
    .help-modal-body {
        padding: 1.5rem;
    }
    
    .shortcut-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Dynamic Glow Effects */
.category-box:hover .box-glow {
    opacity: 1;
}

.game-card:hover {
    box-shadow: 0 10px 30px var(--glow-color);
}

.tool-card:hover {
    box-shadow: 0 10px 30px var(--glow-color);
}

.btn-primary {
    box-shadow: 0 4px 15px var(--glow-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-color);
}

.discord-btn {
    box-shadow: 0 4px 15px var(--glow-color);
    transition: all 0.3s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-color);
}

/* Theme-specific glow adjustments */
[data-theme="christmas"] .category-box:hover .box-glow {
    animation: christmas-glow 2s ease-in-out infinite;
}

@keyframes christmas-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Announcement Modal */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
}

.announcement-modal.active {
    display: flex;
    opacity: 1;
}

.announcement-content {
    background: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    text-align: center;
    animation: announcementSlideIn 0.6s ease-out;
}

@keyframes announcementSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.announcement-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
    border-radius: 20px 20px 0 0;
}

.announcement-header {
    margin-bottom: 2rem;
    position: relative;
}

.announcement-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.announcement-subtitle {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.announcement-body {
    margin-bottom: 2rem;
    color: var(--text);
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: left;
}

.announcement-body p {
    margin-bottom: 1rem;
}

.announcement-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.announcement-body li {
    margin-bottom: 0.5rem;
    position: relative;
}

.announcement-body li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.author-role {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.announcement-ok-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--glow-color);
}

.announcement-ok-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-color);
}

.announcement-ok-btn:active {
    transform: translateY(0);
}

/* Feature highlights within announcement */
.feature-highlight {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.feature-highlight h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-highlight ul {
    margin: 0;
    padding-left: 1rem;
}

.feature-highlight li {
    margin-bottom: 0.5rem;
}

/* Responsive Design for Announcement */
@media (max-width: 768px) {
    .announcement-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .announcement-title {
        font-size: 2rem;
    }
    
    .announcement-subtitle {
        font-size: 1.1rem;
    }
    
    .announcement-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .announcement-author {
        justify-content: center;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .announcement-ok-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .announcement-content {
        padding: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.8rem;
    }
    
    .announcement-subtitle {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .announcement-ok-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Theme-specific adjustments for announcement */
[data-theme="christmas"] .announcement-content {
    border-color: #dc2626;
    box-shadow: 
        0 20px 60px rgba(220, 38, 38, 0.3),
        0 0 0 1px rgba(220, 38, 38, 0.1);
}

[data-theme="christmas"] .announcement-content::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}

[data-theme="christmas"] .announcement-title {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Row Responsive - only stack on very small screens */
@media (max-width: 480px) {
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card, .credits-stat-box {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        text-align: center;
    }
}

/* ===== SMOOTH GRAPHED AUTH OVERLAY ===== */
.purge-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.purge-auth-overlay.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.auth-container {
    width: 100%;
    height: 200%;
    transition: transform 2s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.auth-container.scrolled {
    transform: translateY(-100vh);
}

/* Welcome Section - Smooth Graphed Animations */
.welcome-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.welcome-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: titleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.welcome-text {
    color: var(--text);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    animation: smoothFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.purge-glow {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: glowSlideIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
    text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.3);
}

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

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

@keyframes glowSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 60px rgba(var(--primary-rgb), 0.5);
    }
}

.welcome-subtitle {
    color: var(--text);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: smoothFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s forwards;
    font-weight: 300;
}

.scroll-indicator {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: scrollBounce 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s forwards;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.6;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleY(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scaleY(1.2);
    }
}

.scroll-indicator:hover {
    color: var(--primary-light);
    transform: translateY(-5px) scale(1.1);
}

.scroll-indicator:hover::before {
    opacity: 1;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
}

/* Key Section - Clean & Theme-Aware */
.key-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-container.scrolled .key-section {
    opacity: 1;
}

.key-content {
    background: var(--dark);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.key-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.key-description {
    color: var(--text);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Key Input - Clean & Theme-Aware */
.key-input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.auth-key-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-right: 4rem;
    background: var(--gray);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 12px;
    color: var(--white);
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.auth-key-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.auth-key-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-show-key-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.auth-show-key-btn:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

/* Key Hints - Clean & Theme-Aware */
.key-hints {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.key-hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gray);
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s ease;
}

.key-hint:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.key-hint i {
    color: var(--primary);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.key-hint div {
    flex: 1;
    text-align: left;
}

.key-hint strong {
    color: var(--primary);
    font-weight: 600;
    display: block;
}

.key-hint small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Auth Status - Clean */
.auth-status {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.auth-status.show {
    opacity: 1;
}

.auth-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.auth-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Auth Button - Clean & Theme-Aware */
.auth-submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
}

.auth-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    /* No animation - keep it clean and professional */
}

/* Fade out */
.purge-auth-overlay.fade-out {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .key-content {
        padding: 2rem;
        margin: 1rem;
    }

    .auth-key-input {
        padding: 1rem 1.2rem;
        padding-right: 3.5rem;
        font-size: 1rem;
    }

    .auth-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}
