:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-sidebar: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-gold: #ffd700;
    --accent-silver: #e0e0e0;
    --success: #4ade80;
    --error: #ef4444;
    --border-color: #333;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-silver {
    background: linear-gradient(180deg, #6b6b6b 0%, #e0e0e0 50%, #6b6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-gold {
    background: linear-gradient(180deg, #8b7020 0%, #ffd700 50%, #8b7020 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-link {
    text-decoration: none;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.view {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.view.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

/* Ensure Engage and Indices views are visible */
#engage-view.active,
#indices-view.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

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

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

.view-header {
    margin-bottom: 2rem;
}

.view-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.view-header p {
    color: var(--text-secondary);
}

/* Ensure Engage and Indices headers are visible */
#engage-view .view-header,
#indices-view .view-header {
    display: block !important;
    opacity: 1 !important;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoin-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    /* Fallback style if image fails to load */
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
    border-radius: 50%;
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Course List */
.course-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.course-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}

.course-icon svg {
    width: 30px;
    height: 30px;
}

.course-info {
    flex: 1;
}

.course-info h3 {
    margin-bottom: 0.5rem;
}

.course-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.progress-bar {
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 3px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: #000;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Course View Styles */
.btn-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-back:hover {
    color: var(--text-primary);
}

.btn-back svg {
    width: 16px;
    height: 16px;
}

.lesson-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: calc(100vh - 200px);
}

.question-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scenario-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    text-align: left;
}

.option-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.option-btn.selected {
    border-color: var(--accent-gold);
    background-color: rgba(255, 215, 0, 0.1);
}

.option-btn.correct {
    border-color: var(--success);
    background-color: rgba(74, 222, 128, 0.1);
}

.option-btn.incorrect {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.1);
}

.option-label {
    background-color: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.feedback {
    margin-top: auto;
    padding: 1rem;
    border-radius: 8px;
    animation: slideUp 0.3s ease;
}

.feedback.hidden {
    display: none;
}

.feedback.success {
    background-color: rgba(74, 222, 128, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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






/* Character Container */
.character-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.character-avatar {
    width: 180px;
    height: 250px;
}

.character-avatar .head {
    transform-origin: center;
}




/* Character Animations */

@keyframes eyelashBlink {

    0%,
    20%,
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }

    25%,
    95% {
        transform: translateY(2px) scaleY(0.1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(3px) scaleY(0);
        opacity: 0.5;
    }
}

@keyframes wiggleHead {
    0% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(-1deg);
    }

    10% {
        transform: rotate(1deg);
    }

    15%,
    100% {
        transform: rotate(0deg);
    }
}

@keyframes moveProp {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    7% {
        transform: translateY(-3px) rotate(2deg);
    }

    15%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.character-avatar .head {
    animation: wiggleHead 6s ease-in-out infinite;
    transform-origin: center bottom;
}

.character-avatar .prop {
    animation: moveProp 7s ease-in-out infinite;
}

.character-avatar .eyelashes {
    animation: eyelashBlink 4s infinite;
    transform-origin: center;
}

.visualization-panel {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chart-container {
    flex: 1;
    position: relative;
    margin-top: 1rem;
}

.legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.nominal {
    background-color: rgba(255, 215, 0, 0.5);
    border: 2px solid var(--accent-gold);
}

.dot.real {
    background-color: rgba(74, 222, 128, 0.5);
    border: 2px solid var(--success);
}

/* Indices Feed Styles */
.indices-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: auto;
    max-width: 100%;
}

.index-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.index-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

.index-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.finfluencer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.finfluencer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.finfluencer-info h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.finfluencer-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.index-return {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.index-return.positive {
    background-color: rgba(74, 222, 128, 0.1);
    color: var(--success);
}

.index-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.index-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.holdings {
    display: flex;
    gap: 0.5rem;
}

.holding-tag {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.risk-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.risk-badge.high {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.risk-badge.very-high {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.risk-badge.medium {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
}

.risk-badge.low {
    background-color: rgba(74, 222, 128, 0.1);
    color: var(--success);
}

.btn-invest {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-invest:hover {
    background-color: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* Indices Grid Layout */
.indices-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.indices-main h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Upvaloo Managed Indices Sidebar */
.upvaloo-indices-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.upvaloo-indices-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Upvaloo Index Cards */
.upvaloo-index-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.upvaloo-index-card:last-child {
    margin-bottom: 0;
}

.upvaloo-index-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.upvaloo-index-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.upvaloo-index-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ticker-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.upvaloo-badge {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.optimization-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Course Header Updates */
.course-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.question-progress {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-next {
    margin-top: 1rem;
    width: 100%;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-center {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.dashboard-center h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.dashboard-course-preview {
    margin-bottom: 2rem;
}

.dashboard-course-preview h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.mini-engage-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.indices-overview {
    height: fit-content;
}

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

.section-header h2 {
    font-size: 1.2rem;
}

.view-all {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.mini-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.index-card.mini {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.index-card.mini .index-header {
    margin-bottom: 0;
}

.finfluencer-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

/* Course Grid (Landing View) */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-card.locked {
    opacity: 0.7;
    border-style: dashed;
}

.course-card.locked .course-icon {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.status-text {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Course Status Badge */
.course-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.course-status.completed {
    background-color: rgba(74, 222, 128, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

/* Retake Button Styling */
.btn-start.retake {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

/* Time Machine Styles */
.tm-landing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tm-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tm-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tm-card.past:hover {
    border-color: #60a5fa;
    /* Blue for past */
}

.tm-card.future:hover {
    border-color: #a78bfa;
    /* Purple for future */
}

.tm-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.tm-card:hover .tm-icon {
    transform: scale(1.1);
}

.tm-card.past .tm-icon {
    color: #60a5fa;
    background-color: rgba(96, 165, 250, 0.1);
}

.tm-card.future .tm-icon {
    color: #a78bfa;
    background-color: rgba(167, 139, 250, 0.1);
}

.tm-card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tm-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.reward-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.reward-badge.gold {
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Time Machine Modes */
.tm-mode.hidden {
    display: none;
}

.mode-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-badge.past {
    background-color: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.mode-badge.future {
    background-color: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.chart-caption {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Active Bets List */
.bets-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bet-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bet-question {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.bet-choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.bet-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.days-left {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Bet Finfluencer Section */
.bet-finfluencer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.finfluencer-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.finfluencer-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    width: fit-content;
}

.finfluencer-tag:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
    transform: translateX(2px);
}

.avatar-small {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.75rem;
}

/* Related Content (in Bets) */
.related-content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.related-link:hover {
    color: var(--accent-gold);
}

.mini-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #000;
    font-weight: bold;
}

/* Engage Section Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    width: auto;
    max-width: 100%;
}

/* Content Cards (Videos & Blogs) */
.content-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.content-card.blog:hover {
    border-color: #60a5fa;
}

.content-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2a2a2a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card.blog .content-thumbnail {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.content-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
}

.content-card.blog .content-type-badge {
    color: #60a5fa;
}

.content-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.play-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.content-card.blog .play-icon {
    background-color: rgba(96, 165, 250, 0.2);
}

.content-details {
    padding: 1rem;
}

.content-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.content-timestamp {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.views-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Legacy support for video-card */
.video-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2a2a2a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-details {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.finfluencer-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
}

/* Watch Mode Styles */
.watch-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.video-player-container {
    margin-bottom: 2rem;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2a2a2a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-button-large:hover {
    transform: scale(1.1);
}

.video-info h2 {
    margin-bottom: 0.75rem;
}

.comments-section {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.comments-section h3 {
    margin-bottom: 1.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-user {
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

.comment-input-area {
    display: flex;
    gap: 0.75rem;
}

.comment-input-area input {
    flex: 1;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

.comment-input-area input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Video Detail Page Styles */
.video-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-player-large {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-info-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.video-info-section h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.video-meta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.video-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.forum-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.forum-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.forum-section .comment-input-area {
    margin-bottom: 2rem;
}

.forum-section .comments-list {
    max-height: 500px;
    overflow-y: auto;
}

.video-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.related-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.related-indices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-index-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.related-index-card:hover {
    background-color: rgba(255, 215, 0, 0.05);
    border-color: var(--accent-gold);
    transform: translateX(4px);
}

.related-index-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-index-card .finfluencer-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.related-index-card .index-return {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .video-detail-container {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}