/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Primary Orange Theme */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --primary-lighter: #ffedd5;
    --primary-lightest: #fff7ed;
    
    /* Secondary */
    --secondary: #fbbf24;
    --accent: #f59e0b;
    
    /* Neutral Colors */
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;
    
    /* White & Dark */
    --white: #ffffff;
    --dark: #0c0a09;
    
    /* Status Colors */
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-orange: 0 4px 14px 0 rgba(249, 115, 22, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Navbar Terpisah */
.header {
    background: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 8px 0;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-lighter);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.logo-link:hover .logo {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-lg);
}

.nav-link {
    padding: 10px 20px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--gray-900);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    padding: 14px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* Main Content */
.main {
    flex: 1;
    padding-bottom: 60px;
}

/* Page System */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    padding: 80px 0 100px;
    margin-bottom: -40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 80px 0;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-orange);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

/* Page Header */
.page-header {
    background: var(--white);
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-title h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.page-title p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Category Selector - Modern Style */
.category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-option {
    position: relative;
}

.category-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.category-label:hover {
    border-color: var(--primary-light);
    color: var(--gray-800);
}

.category-option input[type="radio"]:checked + .category-label {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.category-option input[type="radio"]:checked + .category-label .category-icon {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

/* Search Bar */
.search-container {
    margin-bottom: 32px;
}

.search-wrapper {
    position: relative;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.search-input::placeholder {
    color: var(--gray-400);
}

/* Category Content */
.category-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.category-content.active {
    display: block;
}

/* Mapel Grid */
.mapel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    justify-items: stretch;
}

/* Mapel Card */
.mapel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.mapel-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.mapel-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.mapel-card:hover::before {
    opacity: 1;
}

.mapel-card.has-link {
    border-color: var(--success);
}

.mapel-card.has-link::before {
    opacity: 1;
    background: var(--success);
}

.mapel-card.hidden {
    display: none;
}

.mapel-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-orange);
}

.mapel-card.has-link .mapel-icon {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.mapel-info {
    flex: 1;
    min-width: 0;
}

.mapel-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mapel-status {
    font-size: 0.8125rem;
    color: var(--gray-400);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mapel-card.has-link .mapel-status {
    color: var(--success);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

.mapel-card.has-link .status-dot {
    background: var(--success);
}

.mapel-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    flex-shrink: 0;
    transition: all var(--transition);
}

.mapel-card:hover .mapel-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.mapel-card.has-link:hover .mapel-arrow {
    color: var(--success);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a1a 100%);
    padding: 48px 0 0;
    margin-top: auto;
    color: var(--gray-300);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.footer-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.footer-brand-text h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-brand-text p {
    font-size: 0.9375rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    color: var(--white);
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateX(-4px);
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-credit {
    color: var(--primary) !important;
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-800);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .page-title h2 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .mapel-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-content {
        height: 64px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-logo {
        width: 90px;
        height: 90px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 24px 0;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
    }
    
    .category-label {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .mapel-grid {
        grid-template-columns: 1fr;
    }
    
    .mapel-card {
        padding: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .footer-brand {
        flex-direction: column;
    }
    
    .footer-contact {
        align-items: center;
        width: 100%;
    }
    
    .contact-item {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    .contact-item:hover {
        transform: translateX(0);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .category-selector,
    .search-container {
        display: none !important;
    }
    
    .page {
        display: block !important;
    }
    
    .mapel-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Focus Visible for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SKELETON LOADING STYLES
   ============================================ */

/* Base Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Global Page Loader */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.global-loader-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--primary-lighter);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.global-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: loader-spin 0.8s linear infinite;
}

.global-loader-text {
    font-size: 0.9375rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Skeleton Base */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

/* Skeleton Variants */
.skeleton-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    border-radius: var(--radius-sm);
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.skeleton-arrow {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Skeleton Card */
.skeleton-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.skeleton-card-content {
    flex: 1;
    min-width: 0;
}

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    justify-items: stretch;
}

@media (max-width: 768px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Skeleton Container */
.skeleton-container {
    display: none;
}

.skeleton-container.active {
    display: grid;
}

/* Hide content while loading */
.content-loading {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.content-loading.loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Category Transition Loading */
.category-loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.category-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.category-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: loader-spin 0.8s linear infinite;
}

/* ============================================
   TOKEN MODAL STYLES
   ============================================ */

.token-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.token-modal.show {
    opacity: 1;
    visibility: visible;
}

.token-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.token-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
    z-index: 1001;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.token-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.token-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-orange);
}

.token-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.token-modal-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.token-modal-body {
    margin-bottom: 24px;
}

.token-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.token-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all var(--transition);
}

.token-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.token-input::placeholder {
    color: var(--gray-400);
    text-transform: none;
    letter-spacing: normal;
}

.token-submit-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-orange);
    flex-shrink: 0;
}

.token-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.token-submit-btn:active {
    transform: scale(0.95);
}

.token-error {
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    display: none;
}

.token-hint {
    color: var(--gray-400);
    font-size: 0.8125rem;
    text-align: center;
}

.token-cancel-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.token-cancel-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

/* ============================================
   CATEGORY LOCKED STATE STYLES
   ============================================ */

.category-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--gray-300);
    padding: 40px;
}

.locked-content {
    text-align: center;
    max-width: 320px;
}

.locked-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    opacity: 0.8;
}

.locked-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.locked-content p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.category-unlocked-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

/* Responsive Token Modal */
@media (max-width: 768px) {
    .token-modal-content {
        padding: 32px 24px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .token-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .token-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .token-input {
        padding: 12px 16px;
        font-size: 0.9375rem;
    }
    
    .token-submit-btn {
        width: 48px;
        height: 48px;
    }
    
    .category-locked {
        min-height: 300px;
        padding: 32px 24px;
    }
    
    .locked-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}
