/* ==========================================================================
   CERITA KOSMOS DESIGN SYSTEM - PREMIUM COSMIC THEME
   ========================================================================== */

:root {
    /* Color Tokens (matching the Android App) */
    --cosmic-void: #0A0E14;
    --cosmic-surface: #0F1520;
    --cosmic-surface-variant: #1E2533;
    --celestial-pink: #FF6B9D;
    --aurora-cyan: #00D4FF;
    --constellation-gold: #FFD700;
    --void-white: #F5F0F9;
    --cosmic-gray: #8892A4;
    --bento-purple: #6B48CA;
    --bento-purple-light: #B39DFF;
    --bento-coral: #FF6B4A;
    
    /* Font Stack */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows & Glows */
    --cyan-glow: 0 0 15px rgba(0, 212, 255, 0.4);
    --purple-glow: 0 0 15px rgba(107, 72, 202, 0.4);
    --pink-glow: 0 0 15px rgba(255, 107, 157, 0.4);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Layout */
    --header-height: 72px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cosmic-void);
    color: var(--void-white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Star canvas background */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

a {
    color: var(--aurora-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--bento-purple-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--aurora-cyan) 0%, var(--bento-purple-light) 50%, var(--celestial-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   COMPONENTS - BUTTONS & BADGES
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--bento-purple);
    color: var(--void-white);
    box-shadow: var(--purple-glow);
}

.btn-primary:hover {
    background-color: #7b58db;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(107, 72, 202, 0.6);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--bento-purple) 0%, var(--aurora-cyan) 100%);
    color: var(--void-white);
    box-shadow: var(--cyan-glow);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #7b58db 0%, #33e0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--cosmic-surface-variant);
    color: var(--void-white);
}

.btn-outline:hover {
    border-color: var(--aurora-cyan);
    color: var(--aurora-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cosmic-surface-variant);
    color: var(--void-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--aurora-cyan);
    color: var(--cosmic-void);
    transform: scale(1.08);
}

.badge-premium {
    background: linear-gradient(135deg, var(--constellation-gold), var(--celestial-pink));
    color: var(--cosmic-void);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-left: 4px;
}

.badge-category {
    background-color: var(--bento-purple);
    color: var(--void-white);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* ==========================================================================
   GLASSMORPHIC CARDS
   ========================================================================== */

.card {
    background: rgba(15, 21, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

/* ==========================================================================
   HEADER / STICKY NAV
   ========================================================================== */

.main-header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--void-white);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.brand .emoji {
    font-size: 24px;
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--aurora-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--cosmic-gray);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--aurora-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* User Badge */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cosmic-surface-variant);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile-badge .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--bento-purple);
    color: var(--void-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.user-profile-badge .username {
    font-size: 13px;
    font-weight: 600;
    color: var(--void-white);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--void-white);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Glow overlays behind hero */
.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.pink-glow {
    top: 20%;
    left: 25%;
    background-color: var(--celestial-pink);
}

.cyan-glow {
    bottom: 20%;
    right: 25%;
    background-color: var(--aurora-cyan);
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    color: var(--aurora-cyan);
    letter-spacing: 0.25em;
    margin-bottom: 16px;
    text-shadow: var(--cyan-glow);
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--cosmic-gray);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   DAILY FACTS SECTION
   ========================================================================== */

.fact-section {
    margin-bottom: 48px;
}

.fact-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 20px;
    background: linear-gradient(135deg, rgba(107, 72, 202, 0.1) 0%, rgba(15, 21, 32, 0.7) 100%);
    border: 1px solid rgba(179, 157, 255, 0.15);
}

.fact-icon {
    font-size: 32px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.fact-content {
    flex: 1;
}

.fact-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--constellation-gold);
    font-size: 14px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fact-text {
    font-size: 15px;
    color: var(--void-white);
}

/* ==========================================================================
   MAIN CONTENT AREA & TABS
   ========================================================================== */

.main-content-area {
    margin-bottom: 100px;
}

.content-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.section-title {
    font-size: 24px;
    color: var(--void-white);
    margin-bottom: 4px;
}

.section-subtitle {
    color: var(--cosmic-gray);
    font-size: 13px;
}

/* ==========================================================================
   VIDEO CARD GRID
   ========================================================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1f));
    gap: 24px;
}

.video-card {
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.04);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(10, 14, 20, 0.85);
    color: var(--void-white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-premium-lock-badge {
    background: linear-gradient(135deg, var(--bento-purple), var(--celestial-pink));
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.video-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--void-white);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-channel {
    font-size: 12px;
    color: var(--cosmic-gray);
    margin-top: auto;
}

/* ==========================================================================
   SHORTS CARD GRID
   ========================================================================== */

.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.short-card {
    aspect-ratio: 9/16;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.short-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.25);
}

.short-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 14, 20, 0.9) 100%);
}

.short-play-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 107, 74, 0.85);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.short-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--void-white);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   EXCLUSIVE PREMIUM LOCK SECTION
   ========================================================================== */

.exclusive-lock-container {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.lock-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: var(--bento-purple);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

.lock-card {
    max-width: 500px;
    width: 100%;
    padding: 32px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(179, 157, 255, 0.2);
    background: linear-gradient(135deg, rgba(15, 21, 32, 0.9) 0%, rgba(10, 14, 20, 0.95) 100%);
    box-shadow: var(--card-shadow);
    z-index: 2;
}

.lock-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(107, 72, 202, 0.15);
    color: var(--bento-purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(179, 157, 255, 0.15);
}

.lock-svg {
    filter: drop-shadow(0 0 8px rgba(179, 157, 255, 0.5));
}

.lock-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--void-white);
}

.lock-description {
    color: var(--cosmic-gray);
    font-size: 13px;
    margin-bottom: 24px;
}

.perks-list {
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--void-white);
}

.perk-check {
    color: var(--aurora-cyan);
    font-weight: bold;
}

.subscription-offer {
    background: var(--cosmic-surface-variant);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-label {
    font-weight: 500;
    color: var(--cosmic-gray);
    font-size: 13px;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--constellation-gold);
}

.price-period {
    font-size: 12px;
    color: var(--cosmic-gray);
    font-weight: 500;
}

.login-warning {
    color: var(--bento-coral);
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

/* Premium active state */
.premium-banner {
    background: linear-gradient(135deg, rgba(107, 72, 202, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid var(--aurora-cyan);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.premium-banner-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--aurora-cyan);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.premium-banner p {
    font-size: 13px;
    color: var(--void-white);
}

/* ==========================================================================
   DISCUSSION SCREEN
   ========================================================================== */

.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discussion-card {
    padding: 20px;
}

.discussion-card:hover {
    border-color: rgba(255, 215, 0, 0.15);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bento-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.avatar-blue { background-color: #0088cc; }
.avatar-pink { background-color: #cc0066; }
.avatar-gold { background-color: #d4a373; }

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--aurora-cyan);
}

.post-category-tag {
    background: rgba(255, 215, 0, 0.15);
    color: var(--constellation-gold);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.post-time {
    font-size: 10px;
    color: var(--cosmic-gray);
}

.post-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--void-white);
    margin-bottom: 8px;
}

.post-content {
    font-size: 14px;
    color: var(--cosmic-gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.post-stats {
    display: flex;
    gap: 16px;
}

.post-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cosmic-gray);
    cursor: pointer;
    background: transparent;
    border: none;
}

.post-stat-item:hover {
    color: var(--aurora-cyan);
}

.btn-play-related {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--aurora-cyan);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-play-related:hover {
    background-color: var(--aurora-cyan);
    color: var(--cosmic-void);
}

/* ==========================================================================
   ASTRONOMICAL CALENDAR TIMELINE
   ========================================================================== */

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--cosmic-surface-variant);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 20px;
}

.timeline-marker {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 13px;
    background-color: var(--cosmic-void);
    border: 3px solid var(--aurora-cyan);
    top: 16px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--cyan-glow);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--aurora-cyan);
    transform: scale(1.25);
}

.timeline-card {
    padding: 16px 20px;
}

.timeline-date {
    display: inline-block;
    background-color: rgba(107, 72, 202, 0.2);
    color: var(--bento-purple-light);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--void-white);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 12px;
    color: var(--cosmic-gray);
}

/* ==========================================================================
   MODAL WINDOW STYLES
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    background-color: var(--cosmic-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
    z-index: 2;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: var(--cosmic-gray);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--void-white);
    background-color: var(--cosmic-surface-variant);
}

/* Video Modal Specific */
.video-modal-card {
    width: 100%;
    max-width: 800px;
}

.video-iframe-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    overflow: hidden;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
}

.video-modal-info {
    padding: 24px;
}

.video-modal-info h3 {
    font-size: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--void-white);
}

.video-description {
    color: var(--cosmic-gray);
    font-size: 13px;
    margin-bottom: 24px;
}

/* Comments section inside Modal */
.modal-comments-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.modal-comments-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--aurora-cyan);
}

.comment-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-input-area input {
    flex: 1;
    background-color: var(--cosmic-void);
    border: 1px solid var(--cosmic-surface-variant);
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--void-white);
    font-size: 13px;
    transition: all 0.2s ease;
}

.comment-input-area input:focus {
    outline: none;
    border-color: var(--aurora-cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.modal-comments-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bento-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.comment-bubble {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.comment-username {
    font-size: 12px;
    font-weight: 600;
    color: var(--aurora-cyan);
}

.comment-date {
    font-size: 9px;
    color: var(--cosmic-gray);
}

.comment-text {
    font-size: 12px;
    color: var(--void-white);
    line-height: 1.4;
}

/* Auth Modal Specific */
.auth-modal-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--cosmic-gray);
    margin-bottom: 24px;
    text-align: center;
}

.auth-demo-accounts {
    margin-bottom: 24px;
}

.account-selector-title {
    font-size: 12px;
    color: var(--cosmic-gray);
    font-weight: 600;
    margin-bottom: 10px;
}

.demo-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--cosmic-void);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-user-card:hover {
    border-color: var(--bento-purple-light);
}

.demo-user-card.active {
    border-color: var(--aurora-cyan);
    background-color: rgba(0, 212, 255, 0.05);
}

.demo-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.avatar-1 { background-color: rgba(107, 72, 202, 0.15); }
.avatar-2 { background-color: rgba(0, 212, 255, 0.15); }

.demo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--void-white);
}

.demo-level {
    font-size: 10px;
    color: var(--cosmic-gray);
}

/* ==========================================================================
   DUITKU SIMULATOR CHECKOUT PORTAL
   ========================================================================== */

.payment-modal-card {
    width: 100%;
    max-width: 480px;
    background-color: #f7f9fa;
    color: #333333;
    padding: 0;
    overflow: hidden;
}

.payment-modal-card .modal-close {
    color: #999;
}

.payment-modal-card .modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.payment-header {
    background-color: #ffffff;
    padding: 20px 24px;
    border-bottom: 1.5px solid #eef2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duitku-logo-container {
    display: flex;
    flex-direction: column;
}

.duitku-logo {
    font-size: 22px;
    font-weight: 900;
    color: #ea5b29;
    letter-spacing: -0.04em;
    font-family: var(--font-heading);
}

.payment-gateway-sub {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    font-weight: 700;
}

.transaction-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.invoice-num {
    font-size: 11px;
    color: #777;
}

.invoice-amount {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.simulated-payment-body {
    padding: 24px;
    max-height: 450px;
    overflow-y: auto;
}

.simulated-payment-body h4 {
    font-size: 14px;
    color: #444;
    margin-bottom: 16px;
}

.payment-method-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-item:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.payment-method-item.selected {
    border-color: #ea5b29;
    background-color: rgba(234, 91, 41, 0.04);
}

.method-icon {
    font-size: 24px;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.method-fee {
    font-size: 10px;
    color: #64748b;
}

/* Simulated QRIS Screen */
.btn-back-payment {
    background: transparent;
    border: none;
    color: #ea5b29;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.qris-checkout-container, .va-checkout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.checkout-product {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    margin-bottom: 16px;
}

.qr-code-box {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.qr-scanner-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #ea5b29;
    opacity: 0.8;
    left: 0;
    animation: qrScan 2s infinite linear;
}

.simulated-qr {
    width: 160px;
    height: 160px;
    border: 1px solid #ddd;
    position: relative;
    background-image: 
        radial-gradient(#000 25%, transparent 25%),
        radial-gradient(#000 25%, transparent 25%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

.qr-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 6px solid #000;
    background-color: #fff;
}

.qr-top-left { top: 0; left: 0; }
.qr-top-right { top: 0; right: 0; }
.qr-bottom-left { bottom: 0; left: 0; }

.qr-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1.5px solid #000;
}

.qr-timer {
    font-size: 13px;
    font-weight: 600;
    color: #d946ef;
    margin-bottom: 16px;
}

.qris-tips {
    text-align: left;
    background-color: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 11px;
    color: #475569;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* VA checkout screen styling */
.va-number-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    margin-bottom: 16px;
    text-align: left;
}

.va-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.va-number-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.va-number {
    font-family: monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #0f172a;
}

.btn-copy {
    background-color: #f1f5f9;
    border: none;
    color: #ea5b29;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.va-instructions {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ==========================================================================
   SETTINGS MODAL & FORM
   ========================================================================== */

.settings-modal-card {
    width: 100%;
    max-width: 460px;
    padding: 32px;
}

.settings-desc {
    font-size: 13px;
    color: var(--cosmic-gray);
    margin-bottom: 24px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--aurora-cyan);
}

.form-group input[type="text"], .form-group input[type="password"] {
    background-color: var(--cosmic-void);
    border: 1px solid var(--cosmic-surface-variant);
    border-radius: 12px;
    padding: 12px;
    color: var(--void-white);
    font-size: 13px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--aurora-cyan);
}

.form-group.row-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--cosmic-surface-variant);
    padding: 12px;
    border-radius: 12px;
}

.form-group.row-group label {
    color: var(--void-white);
    font-size: 13px;
    font-weight: 500;
}

.settings-help {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--cosmic-gray);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.domain-text {
    color: var(--aurora-cyan);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.main-footer {
    background-color: var(--cosmic-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.footer-brand p {
    color: var(--cosmic-gray);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item {
    color: var(--cosmic-gray);
    font-size: 13px;
}

.footer-link-item:hover {
    color: var(--aurora-cyan);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--cosmic-gray);
}

.domain-link {
    font-weight: 600;
}

.btn-settings-link {
    background: transparent;
    border: none;
    color: var(--cosmic-gray);
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s ease;
}

.btn-settings-link:hover {
    color: var(--aurora-cyan);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(15, 21, 32, 0.9);
    border: 1px solid var(--aurora-cyan);
    color: var(--void-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    z-index: 10000;
    box-shadow: var(--cyan-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(50px);
    pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes qrScan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 900px) {
    .hero-title {
        font-size: 44px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Navigation drawer for mobile */
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--cosmic-void);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        font-size: 16px;
        padding: 10px 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .timeline::after {
        left: 14px;
    }
    
    .timeline-item {
        padding-left: 30px;
        padding-right: 0;
    }
    
    .timeline-marker {
        left: 7px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SYNC STATUS & VIDEO COUNT BADGES
   ========================================================================== */

.section-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sync-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--cosmic-gray);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    transition: color 0.3s ease;
    font-family: var(--font-body);
}

.sync-status:has-text('✅') {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.2);
}

.video-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--aurora-cyan);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .section-header-meta {
        display: none;
    }
}

/* ==========================================================================
   GOOGLE SIGN-IN BUTTON & REAL AVATARS
   ========================================================================== */

.btn-google {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--void-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.btn-google:active {
    transform: translateY(1px);
}

.google-icon {
    flex-shrink: 0;
}

/* User Badge Avatar Image Override */
.user-profile-badge .avatar {
    overflow: hidden;
    position: relative;
}

.user-profile-badge .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ==========================================================================
   INLINE DISCUSSION COMMENTS
   ========================================================================== */

.post-comments-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.comments-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), transparent);
    margin-bottom: 12px;
}

.comments-loading {
    color: var(--cosmic-gray);
    font-size: 11px;
    text-align: center;
    padding: 8px;
}

.comments-list-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar for comments list */
.comments-list-inline::-webkit-scrollbar {
    width: 4px;
}
.comments-list-inline::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

.inline-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 10px !important;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 22px;
}

.inline-bubble {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    flex-grow: 1;
}

.inline-comment-input-area {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.input-inline-comment {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--void-white);
    font-size: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.input-inline-comment:focus {
    border-color: var(--aurora-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.btn-submit-inline-comment {
    font-size: 11px !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    height: auto !important;
}

.hidden {
    display: none !important;
}

/* Profile Tab CSS Styles */
.avatar-large {
    font-family: var(--font-primary);
    color: var(--void-white);
}

.profile-info-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6), rgba(15, 12, 30, 0.8)) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

.badges-grid {
    margin-top: 10px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 6px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.05);
}

.badge-item.unlocked {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.25);
}

.badge-item.unlocked .badge-emoji {
    filter: none !important;
    opacity: 1 !important;
}

.xp-progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   PUBLIC PROFILE CLICKABILITY STYLES
   ========================================================================== */
.comment-avatar, .inline-avatar, .post-avatar, .comment-username, .post-author-name {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.comment-username:hover, .post-author-name:hover {
    color: var(--aurora-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.comment-avatar:hover, .inline-avatar:hover, .post-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5) !important;
    border-color: var(--aurora-cyan) !important;
}


