@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Color Variables and Theme System */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Global Brand Color Palette (Sapa Holding / Premium Creative Violet & Amber) */
    --hue-primary: 262;     /* Violet */
    --hue-secondary: 24;    /* Amber/Gold */
    
    /* Default Theme: Dark (Premium Creative Theme) */
    --bg-base: #0a0514;
    --bg-surface: rgba(22, 14, 38, 0.7);
    --bg-surface-solid: #160e26;
    --bg-surface-hover: #22173b;
    --text-primary: #f3f0f7;
    --text-secondary: #a9a2b8;
    --text-muted: #6e6582;
    --border-color: rgba(147, 51, 234, 0.15);
    --border-hover: rgba(147, 51, 234, 0.35);
    
    --color-primary: hsl(var(--hue-primary), 85%, 60%);
    --color-primary-hover: hsl(var(--hue-primary), 90%, 65%);
    --color-primary-light: rgba(139, 92, 246, 0.15);
    
    --color-accent: hsl(var(--hue-secondary), 95%, 55%);
    --color-accent-hover: hsl(var(--hue-secondary), 100%, 60%);
    --color-accent-light: rgba(245, 158, 11, 0.15);

    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px -4px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px -6px rgba(0, 0, 0, 0.8);
    --glow: 0 0 20px rgba(139, 92, 246, 0.25);
    
    --glass-blur: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

[data-theme="light"] {
    --bg-base: #f9f8fc;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-solid: #ffffff;
    --bg-surface-hover: #f1ecf9;
    --text-primary: #120921;
    --text-secondary: #5a5266;
    --text-muted: #8e859b;
    --border-color: rgba(139, 92, 246, 0.12);
    --border-hover: rgba(139, 92, 246, 0.28);
    
    --color-primary: hsl(var(--hue-primary), 75%, 50%);
    --color-primary-hover: hsl(var(--hue-primary), 80%, 55%);
    --color-primary-light: rgba(124, 58, 237, 0.1);
    
    --color-accent: hsl(var(--hue-secondary), 90%, 48%);
    --color-accent-hover: hsl(var(--hue-secondary), 95%, 52%);
    --color-accent-light: rgba(217, 119, 6, 0.1);

    --shadow-sm: 0 2px 8px -2px rgba(124, 58, 237, 0.08);
    --shadow-md: 0 8px 30px -4px rgba(124, 58, 237, 0.12);
    --shadow-lg: 0 16px 40px -6px rgba(124, 58, 237, 0.18);
    --glow: 0 0 20px rgba(124, 58, 237, 0.15);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: var(--transition-smooth);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* Glowing background circles for visual depth */
.glow-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(var(--glass-blur));
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sapa {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: -4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

/* Bordered profile card in navigation bar */
.nav-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-solid);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.nav-profile-trigger:hover {
    border-color: var(--color-primary);
    background: var(--bg-surface-hover);
    transform: translateY(-1px);
}

.nav-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.nav-profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Google-Style Profile Popup Menu */
.profile-popup {
    position: absolute;
    top: 60px;
    right: 0;
    width: 320px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    animation: popupFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.popup-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.popup-balance-badge {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* Premium Dashboard Loading Screen Overlay */
.dashboard-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-base);
    z-index: 9999;
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease-out;
}
/* Spinner removed in favor of dots loading animation */

.loading-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

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

.loading-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Public Creator Profile Card Styles */
.creator-profile-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
}

.creator-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}

.creator-details {
    flex: 1;
}

.creator-name-title {
    font-size: 2.25rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.creator-bio-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

.creator-stat-badge-group {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.creator-stat-badge {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .creator-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    .creator-stat-badge-group {
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), hsl(var(--hue-primary), 80%, 50%));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow);
}

.btn-secondary {
    background: var(--bg-surface-solid);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.btn-icon:hover {
    border-color: var(--border-hover);
    color: var(--color-primary);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
}

.badge-sapa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
}

/* Showcase Grid */
.grid-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-work {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card-work:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.work-media {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #15092a, #080312); /* Fixed Dark Gradient for maximum contrast of artistic cover */
    color: #f3f0f7; /* White text always, since background is always dark */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.work-media h3 {
    color: #f3f0f7 !important; /* Forces light text on dark banner */
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-work:hover .work-media img {
    transform: scale(1.05);
}

.work-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(10, 5, 20, 0.85);
    color: #f3f0f7 !important; /* Force readable text */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.work-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.work-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.work-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.likes-container {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: var(--bg-surface-solid);
    text-align: center;
    color: var(--text-secondary);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-sponsored {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Floating theme switch widget */
.theme-switch-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Login/Register splitscreen styling with High Contrast fixes */
.auth-page {
    display: flex;
    min-height: 100vh;
}

.auth-sidebar {
    flex: 1;
    background: linear-gradient(135deg, #1f0b40 0%, #0c021c 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    color: #f3f0f7 !important;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    0% { transform: translate(-25%, -25%) rotate(0deg); }
    100% { transform: translate(-25%, -25%) rotate(360deg); }
}

.auth-sidebar-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
    text-align: center;
}

/* Explicit high-contrast overrides for Sidebar in Login Page */
.auth-sidebar-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #ffffff !important;
}

.auth-sidebar-content p {
    color: #e2daf0 !important;
    margin-top: 16px;
}

.auth-sidebar-content .logo-container {
    background: linear-gradient(135deg, #ffffff 40%, var(--color-primary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.auth-sidebar-content .logo-sapa {
    color: #fbbf24 !important;
}

.auth-main {
    width: 500px;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    border-left: 1px solid var(--border-color);
}

.auth-card {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-solid);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-google:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Blocked Red Page Styling */
.blocked-page {
    min-height: 100vh;
    background: radial-gradient(circle at center, #991b1b 0%, #450a0a 100%);
    color: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.blocked-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(248, 113, 113, 0.2);
    backdrop-filter: blur(12px);
    padding: 48px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.blocked-card h1 {
    color: #ffffff !important;
    font-size: 2.5rem;
    margin: 16px 0;
}

.blocked-card p {
    color: #fca5a5;
    margin-bottom: 32px;
}

/* Dashboard Styling */
.admin-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-surface-solid);
    border-right: 1px solid var(--border-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-menu {
    list-style: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.admin-menu-link:hover, .admin-menu-link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.admin-main {
    padding: 40px 60px;
    background: var(--bg-base);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-solid);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.admin-profile:hover {
    border-color: var(--color-primary);
    background: var(--bg-surface-hover);
}

.admin-profile-text {
    display: flex;
    flex-direction: column;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-card-value {
    font-size: 2.25rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.chart-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
}

.chart-title {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* User Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.role-pembaca { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.role-kreator { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.role-admin { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.role-developer { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.role-blokir { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }
.role-moderator { background: rgba(20, 184, 166, 0.15); color: #14b8a6; border: 1px solid rgba(20, 184, 166, 0.3); }

/* Collapsible Section Styling */
.collapsible-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.collapsible-content.open {
    max-height: 1200px;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    text-align: left;
}

.admin-table th {
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Submission Form in Dashboard */
.form-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Responsive adjustments */
@media(max-width: 992px) {
    .auth-page {
        flex-direction: column;
    }
    .auth-sidebar {
        padding: 40px 24px;
        min-height: 300px;
    }
    .auth-main {
        width: 100%;
        padding: 40px 24px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    .admin-sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .admin-main {
        padding: 30px 20px;
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
}

/* Hover effects for Creator profile links */
.author-info-clickable {
    cursor: pointer;
    transition: var(--transition-smooth);
}
.author-info-clickable:hover .author-name {
    color: var(--color-primary);
}
#creator-link {
    transition: var(--transition-smooth);
}
#creator-link:hover #work-creator {
    color: var(--color-primary);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.gallery-card-preview {
    width: 100%;
    height: 150px;
    background: #05020a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.gallery-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.gallery-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

/* Novel reading & management styles */
.novel-cover-preview {
    width: 120px;
    height: 180px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.novel-cover-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 180px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.novel-cover-upload-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Blogger-like Embedded Content Container */
.blogger-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.blogger-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
}

.blogger-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    border: none;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.blogger-content p {
    margin-bottom: 16px;
}

/* Chapters Table List */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.chapter-item {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chapter-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.chapter-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.chapter-title {
    font-weight: 600;
    color: var(--text-primary);
}

/* Page Transition Loading Overlay */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.loading-dots span {
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}
.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

/* Image Loaders (CSS-only initial state with JS cleanup) */
.work-media, .gallery-card-preview, .novel-cover-wrapper, .shared-image-container {
    position: relative;
    background: var(--bg-surface-solid);
}

.work-media::after, .gallery-card-preview::after, .novel-cover-wrapper::after, .shared-image-container::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.work-media.img-loaded::after, 
.gallery-card-preview.img-loaded::after, 
.novel-cover-wrapper.img-loaded::after,
.shared-image-container.img-loaded::after {
    opacity: 0;
}

.work-media img, .gallery-card-preview img, .novel-cover-wrapper img, .shared-image-container img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-media img.loaded, .gallery-card-preview img.loaded, .novel-cover-wrapper img.loaded, .shared-image-container img.loaded {
    opacity: 1;
}

/* Modal Styling for Editing Images */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

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

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

/* Shared Image Page Specifics */
.shared-image-container {
    width: 100%;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #030105;
}

.shared-image-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.image-lock-screen {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 100%;
    margin: 40px auto;
    box-shadow: var(--shadow-lg);
}

/* Interactive Rating Stars & User Badges */
.rating-star-btn {
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}
.rating-star-btn.active {
    color: var(--color-accent) !important;
}
.rating-star-btn.active i {
    fill: var(--color-accent);
}
.rating-star-btn:hover {
    transform: scale(1.2);
    color: var(--color-accent) !important;
}
.badge-icon-verified, .badge-icon-populer, .badge-icon-wealth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    position: relative;
    top: -1px;
}

/* ============================================================
   VIEW PAGE — Work Article Layout
   ============================================================ */

.view-main {
    max-width: 820px;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
}

.work-article-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.work-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.work-age-badge {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
}

.work-title-heading {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 16px;
    word-break: break-word;
}

.work-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.work-creator-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.work-creator-name {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.work-creator-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.work-stats-row {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}

.work-rating-block {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid var(--border-color);
    padding-left: 12px;
    margin-left: 4px;
}

.work-rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--color-accent);
}

.work-rating-count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.work-content-panel {
    padding: 4px 0;
}

/* Novel Overview Grid */
.novel-overview-grid {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 36px;
    align-items: flex-start;
}

/* Chapter Navigation */
.chapter-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.chapter-nav-btn {
    padding: 8px 14px;
    font-size: 0.88rem;
}

.chapter-reader-title {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

.chapter-footer-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .view-main {
        max-width: 100%;
    }

    .work-creator-name {
        max-width: 120px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    /* Nav */
    header .nav-links {
        display: none;
    }

    .nav-wrapper {
        padding: 0 16px;
    }

    .logo-container div {
        font-size: 1.1rem;
    }

    /* Kids mode label on mobile */
    .kids-mode-container span:not(.slider) {
        display: none;
    }

    /* View page main */
    .view-main {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 24px;
        padding-bottom: 40px;
    }

    /* Work title */
    .work-title-heading {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 14px;
    }

    /* Work meta — stack creator and stats */
    .work-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .work-stats-row {
        width: 100%;
        gap: 8px;
        font-size: 0.85rem;
    }

    .work-rating-block {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 10px;
        width: 100%;
    }

    .work-creator-name {
        max-width: 180px;
    }

    /* Novel overview — stack on mobile */
    .novel-overview-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .novel-overview-grid .novel-cover-wrapper {
        width: 100px !important;
        height: 150px !important;
    }

    /* Chapter navigation */
    .chapter-nav-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .chapter-nav-bar > div {
        justify-content: flex-end;
    }

    .chapter-nav-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .chapter-reader-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .chapter-footer-nav {
        flex-direction: row;
        gap: 8px;
    }

    .chapter-footer-nav .btn {
        flex: 1;
        justify-content: center;
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    /* Content panel */
    .work-content-panel {
        font-size: 1rem !important;
        line-height: 1.85;
    }

    /* Lock panel */
    #lock-panel {
        padding: 30px 20px !important;
    }

    #lock-panel h2 {
        font-size: 1.3rem;
    }

    /* Creator page responsive */
    .creator-profile-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 24px 16px;
        gap: 16px;
    }

    .creator-stat-badge-group {
        justify-content: center;
    }

    .creator-avatar-lg {
        width: 80px !important;
        height: 80px !important;
    }

    /* Works grid on mobile */
    .grid-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Section padding */
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Hero */
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    /* Badges row on mobile */
    .work-badges-row {
        gap: 6px;
    }

    .role-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ============================================================
   RESPONSIVE — Extra small (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
    .work-title-heading {
        font-size: 1.4rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 9px 14px;
    }

    .nav-profile-name {
        display: none;
    }
}

/* ============================================================
   COMPACT MANAGEMENT LISTS (admin.html)
   ============================================================ */
.compact-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.compact-manager-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.compact-manager-card[open] {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.compact-manager-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-weight: 600;
}

.compact-manager-summary::-webkit-details-marker {
    display: none;
}

.compact-manager-summary .summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.compact-manager-summary .summary-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-manager-summary .expand-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.compact-manager-card[open] .compact-manager-summary .expand-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.compact-manager-details {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.details-grid strong {
    color: var(--text-primary);
}

.actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ============================================================
   INSTAGRAM-LIKE STYLE (image.html)
   ============================================================ */
.instagram-post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.instagram-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.instagram-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.instagram-username {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.instagram-username:hover {
    color: var(--color-primary);
}

.instagram-media-container {
    background: #000;
    width: 100%;
}

.instagram-carousel-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.carousel-slide-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 14px;
}

.next-btn {
    right: 14px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.instagram-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.instagram-actions-bar .actions-left {
    display: flex;
    gap: 18px;
}

.instagram-actions-bar .action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.instagram-actions-bar .action-btn:hover {
    transform: scale(1.15);
    color: var(--color-primary);
}

.instagram-actions-bar .action-btn.liked {
    color: #ef4444;
}

.instagram-actions-bar .action-btn.liked i {
    fill: #ef4444;
}

.instagram-post-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.likes-count {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.instagram-caption {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.post-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instagram-comments-section {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.05);
}

.comments-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding-right: 6px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 8px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.comment-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
