/* ===== CSS Variables ===== */
:root {
    --bg-primary: #000000;
    --bg-secondary: #050508;
    --bg-card: #0a0a10;
    --purple: #8b00ff;
    --purple-dark: #6a00cc;
    --purple-light: #a855f7;
    --purple-glow: #8b00ff;
    --neon-glow: 0 0 10px var(--purple), 0 0 20px var(--purple), 0 0 30px var(--purple-dark);
    --neon-glow-sm: 0 0 5px var(--purple), 0 0 10px var(--purple-dark);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #505060;
    --border-color: #1a1a2a;
    --border-neon: 1px solid var(--purple);
    --success: #00ff88;
    --error: #ff0055;
    --warning: #ffaa00;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

#app {
    height: 100%;
    width: 100%;
    position: relative;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.screen.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* ===== Loading Screen ===== */
#loading-screen {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    z-index: 1000;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: var(--neon-glow-sm);
}

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

#loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== No Subscription Screen ===== */
#no-sub-screen {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    padding: 40px;
}

.no-sub-container {
    text-align: center;
    max-width: 300px;
}

.no-sub-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px var(--purple));
}

.no-sub-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.no-sub-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    border: 2px solid var(--purple-light);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: var(--neon-glow-sm);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

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

/* ===== PIN Screens ===== */
#pin-setup-screen,
#pin-enter-screen {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    padding: 20px;
}

.pin-container {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.pin-header {
    margin-bottom: 30px;
}

.pin-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px var(--purple));
}

.pin-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pin-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* PIN Type Selector */
.pin-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.pin-type-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pin-type-btn.active {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(139, 0, 255, 0.15);
    box-shadow: var(--neon-glow-sm);
}

/* PIN Display */
.pin-display {
    margin-bottom: 16px;
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    transition: all 0.2s ease;
}

.pin-dot.filled {
    background: var(--purple);
    border-color: var(--purple);
    box-shadow: 0 0 8px var(--purple), 0 0 15px var(--purple-dark);
}

.pin-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 20px;
}

.pin-hint.confirm {
    color: var(--purple-light);
}

.pin-error {
    color: var(--error);
    font-size: 14px;
    margin-bottom: 16px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* PIN Keypad */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 260px;
    margin: 0 auto;
}

.pin-key {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-key:hover {
    background: var(--bg-secondary);
    border-color: var(--purple-dark);
}

.pin-key:active {
    background: var(--purple);
    transform: scale(0.95);
    box-shadow: var(--neon-glow-sm);
}

.pin-key-empty {
    background: transparent;
    cursor: default;
}

.pin-key-empty:hover,
.pin-key-empty:active {
    background: transparent;
    transform: none;
}

.pin-key-del {
    font-size: 20px;
    color: var(--text-secondary);
}

.btn-skip {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    margin-top: 24px;
    padding: 10px;
    transition: color 0.3s ease;
}

.btn-skip:hover {
    color: var(--text-secondary);
}

/* ===== Main Screen ===== */
#main-screen {
    background: var(--bg-primary);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--purple-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(139, 0, 255, 0.2);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--purple-light);
    text-shadow: 0 0 10px var(--purple), 0 0 20px var(--purple-dark);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Content */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.4), 0 8px 25px rgba(0, 0, 0, 0.5);
}

.category-card:active {
    transform: scale(0.98);
}

.category-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--purple-dark) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 1;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.category-count {
    font-size: 11px;
    color: var(--purple-light);
    text-shadow: 0 0 8px var(--purple);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.4), 0 8px 25px rgba(0, 0, 0, 0.5);
}

.video-card:active {
    transform: scale(0.98);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--purple-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-thumbnail::after {
    content: '▶';
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-info {
    padding: 10px;
}

.video-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin-bottom: 4px;
}

.video-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.page-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--purple-dark);
}

.page-btn.active {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
    box-shadow: var(--neon-glow-sm);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.nav-btn {
    font-size: 12px;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 4px;
}

/* ===== Side Menu ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.visible {
    opacity: 1;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 30px rgba(139, 0, 255, 0.3);
    border-left: 1px solid var(--purple-dark);
}

.side-menu.open {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--purple-dark);
}

.menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-avatar {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid var(--purple-dark);
    box-shadow: 0 0 10px rgba(139, 0, 255, 0.3);
}

.menu-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-status {
    font-size: 12px;
    color: var(--text-muted);
}

.menu-status.premium {
    color: var(--purple-light);
    text-shadow: 0 0 8px var(--purple);
}

.menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.menu-close:hover {
    color: var(--text-primary);
}

.menu-items {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.menu-item.active {
    background: rgba(139, 0, 255, 0.2);
    color: var(--purple-light);
    border-right: 3px solid var(--purple);
    box-shadow: inset -3px 0 10px rgba(139, 0, 255, 0.2);
}

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-text {
    font-size: 15px;
}

.menu-footer {
    border-top: 1px solid var(--purple-dark);
    padding: 8px 0;
}

/* ===== Back Button ===== */
.back-btn {
    background: none;
    border: none;
    color: var(--purple-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: var(--purple);
    text-shadow: var(--neon-glow-sm);
}

.header-spacer {
    width: 40px;
}

/* ===== Settings Sections ===== */
.settings-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.settings-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header .settings-title {
    margin-bottom: 0;
}

/* ===== Settings Options (Radio) ===== */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.settings-option:hover {
    border-color: var(--purple-dark);
}

.settings-option input {
    display: none;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.settings-option input:checked + .option-radio {
    border-color: var(--purple);
    box-shadow: 0 0 8px rgba(139, 0, 255, 0.4);
}

.settings-option input:checked + .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--purple);
}

.option-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== Clear Button ===== */
.btn-clear {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: var(--error);
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

/* ===== History List ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--purple-dark);
}

.history-thumb {
    width: 80px;
    height: 45px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--purple-dark) 100%);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

.history-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-date {
    font-size: 11px;
    color: var(--text-muted);
}

.history-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    align-self: center;
}

.history-delete:hover {
    color: var(--error);
}

/* ===== Empty States ===== */
.history-empty,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.history-empty p,
.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--purple-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
    box-shadow: 0 0 5px var(--purple);
}

/* ===== Responsive ===== */
@media (max-width: 360px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .pin-keypad {
        max-width: 220px;
    }
    
    .pin-key {
        font-size: 20px;
    }
}

/* ===== Video Card Extended ===== */
.video-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.video-save-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.video-save-btn:active {
    transform: scale(1.2);
}

.video-save-btn.saved {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.video-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--success);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.video-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.video-tag:active {
    background: var(--purple-dark);
    border-color: var(--purple);
}

.tag-saved-animation {
    animation: tagSaved 0.5s ease;
    background: var(--purple) !important;
    color: white !important;
}

@keyframes tagSaved {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===== Saved Tabs ===== */
.saved-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.saved-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.saved-tab.active {
    color: var(--purple-light);
    border-bottom-color: var(--purple);
}

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

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

/* ===== Saved Tags Grid ===== */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.saved-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--purple-dark);
    border-radius: 20px;
    padding: 8px 12px;
}

.tag-name {
    color: var(--text-primary);
    font-size: 13px;
}

.tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.tag-remove:hover {
    color: var(--error);
}

/* ===== Empty State Hint ===== */
.empty-hint {
    font-size: 12px;
    margin-top: 8px !important;
    opacity: 0.7;
}

/* ===== Screen Subtitle ===== */
.screen-subtitle {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    margin-bottom: 16px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--purple);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--neon-glow-sm);
    z-index: 2000;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-icon {
    color: var(--success);
    font-size: 16px;
}

.toast-text {
    color: var(--text-primary);
    font-size: 14px;
}

/* ===== Admin Panel ===== */
.admin-content {
    padding: 16px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--purple-light);
    display: block;
    text-shadow: var(--neon-glow-sm);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.admin-section {
    margin-bottom: 24px;
}

.admin-section h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

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

.section-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 13px;
}

.section-stat span:last-child {
    color: var(--purple-light);
    font-weight: bold;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 13px;
}

.popular-item span:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

.no-data {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

/* ===== Loading Small ===== */
.loading-small {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
