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

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #2a2a2a;
    --text-dark: #0a0a0a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --danger: #dc2626;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --gradient-start: #0a0a0a;
    --gradient-end: #1a1a1a;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --theme-name: 'default';
}

/* Theme: Ocean Blue */
[data-theme="ocean"] {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --accent-color: #0369a1;
    --text-dark: #0c4a6e;
    --text-light: #64748b;
    --bg-light: #e0f2fe;
    --bg-white: #f0f9ff;
    --border-color: #bae6fd;
    --danger: #ef4444;
    --shadow: 0 1px 2px rgba(14, 165, 233, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
    --gradient-start: #0ea5e9;
    --gradient-end: #0284c7;
    --theme-name: 'ocean';
}

/* Theme: Forest Green */
[data-theme="forest"] {
    --primary-color: #10b981;
    --secondary-color: #059669;
    --accent-color: #047857;
    --text-dark: #064e3b;
    --text-light: #6b7280;
    --bg-light: #ecfdf5;
    --bg-white: #f0fdf4;
    --border-color: #a7f3d0;
    --danger: #ef4444;
    --shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    --gradient-start: #10b981;
    --gradient-end: #059669;
    --theme-name: 'forest';
}

/* Theme: Sunset Orange */
[data-theme="sunset"] {
    --primary-color: #f97316;
    --secondary-color: #ea580c;
    --accent-color: #c2410c;
    --text-dark: #7c2d12;
    --text-light: #78716c;
    --bg-light: #fff7ed;
    --bg-white: #ffedd5;
    --border-color: #fed7aa;
    --danger: #dc2626;
    --shadow: 0 1px 2px rgba(249, 115, 22, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
    --gradient-start: #f97316;
    --gradient-end: #ea580c;
    --theme-name: 'sunset';
}

/* Theme: Royal Purple */
[data-theme="royal"] {
    --primary-color: #8b5cf6;
    --secondary-color: #7c3aed;
    --accent-color: #6d28d9;
    --text-dark: #4c1d95;
    --text-light: #6b7280;
    --bg-light: #f5f3ff;
    --bg-white: #ede9fe;
    --border-color: #ddd6fe;
    --danger: #ef4444;
    --shadow: 0 1px 2px rgba(139, 92, 246, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(139, 92, 246, 0.2);
    --gradient-start: #8b5cf6;
    --gradient-end: #7c3aed;
    --theme-name: 'royal';
}

/* Theme: Dark Mode */
[data-theme="dark"] {
    --primary-color: #f5f5f5;
    --secondary-color: #e0e0e0;
    --accent-color: #d0d0d0;
    --text-dark: #f5f5f5;
    --text-light: #a0a0a0;
    --bg-light: #1a1a1a;
    --bg-white: #0a0a0a;
    --border-color: #2a2a2a;
    --danger: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --gradient-start: #1a1a1a;
    --gradient-end: #0a0a0a;
    --theme-name: 'dark';
}

/* Stock Market Ticker Tape */
.ticker-tape {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #03202F 0%, #1E3A5F 50%, #03202F 100%);
    color: #F5F5F5;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    z-index: 1002;
    border-bottom: 2px solid #B2263D;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
}

.ticker-item {
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item .icon {
    font-size: 1rem;
}

.ticker-item .tip {
    color: #F5F5F5;
}

.ticker-item .highlight {
    color: #B2263D;
    font-weight: 700;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Theme-specific ticker styling */
[data-theme="dark"] .ticker-tape {
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-bottom-color: #333;
}

[data-theme="dark"] .ticker-item .highlight {
    color: #888;
}

[data-theme="ocean"] .ticker-tape {
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 50%, #0ea5e9 100%);
    border-bottom-color: #0369a1;
}

[data-theme="ocean"] .ticker-item .highlight {
    color: #f0f9ff;
}

[data-theme="forest"] .ticker-tape {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #10b981 100%);
    border-bottom-color: #047857;
}

[data-theme="forest"] .ticker-item .highlight {
    color: #f0fdf4;
}

[data-theme="sunset"] .ticker-tape {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 50%, #f97316 100%);
    border-bottom-color: #c2410c;
}

[data-theme="sunset"] .ticker-item .highlight {
    color: #fff7ed;
}

[data-theme="royal"] .ticker-tape {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 50%, #8b5cf6 100%);
    border-bottom-color: #6d28d9;
}

[data-theme="royal"] .ticker-item .highlight {
    color: #f5f3ff;
}

[data-theme="texans"] .ticker-tape {
    background: linear-gradient(90deg, #03202F 0%, #B2263D 50%, #03202F 100%);
    border-bottom-color: #B2263D;
}

[data-theme="texans"] .ticker-item .highlight {
    color: #F5F5F5;
}

/* Responsive ticker adjustments */
@media (max-width: 768px) {
    .ticker-tape {
        height: 35px;
        font-size: 0.75rem;
    }
    
    .ticker-item {
        padding: 0 20px;
    }
    
    .ticker-item .icon {
        font-size: 0.9rem;
    }
}
[data-theme="texans"] {
    --primary-color: #03202F;
    --secondary-color: #B2263D;
    --accent-color: #A71930;
    --text-dark: #F5F5F5;
    --text-light: #9CA3AF;
    --bg-light: #0A1620;
    --bg-white: #03202F;
    --border-color: #1E3A5F;
    --danger: #EF4444;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --gradient-start: #03202F;
    --gradient-end: #B2263D;
    --theme-name: 'texans';
}

/* Texans Dark Mode Background Pattern */
[data-theme="texans"] body {
    background-color: #03202F !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 15 C35 15 25 25 25 40 C25 55 35 65 50 65 C65 65 75 55 75 40 C75 25 65 15 50 15 Z' fill='none' stroke='%23B2263D' stroke-width='1.5' opacity='0.08'/%3E%3Cpath d='M30 25 L20 15 M70 25 L80 15' stroke='%23B2263D' stroke-width='1.5' opacity='0.08'/%3E%3Cpolygon points='50 30 52 36 58 36 53 40 55 46 50 42 45 46 47 40 42 36 48 36' fill='%23B2263D' opacity='0.06'/%3E%3Cellipse cx='50' cy='50' rx='8' ry='6' fill='none' stroke='%23B2263D' stroke-width='1' opacity='0.08'/%3E%3C/svg%3E") !important;
    background-repeat: repeat !important;
    background-size: 120px 120px !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* Texans theme styling */
[data-theme="texans"] .container,
[data-theme="texans"] .section,
[data-theme="texans"] .hero,
[data-theme="texans"] .navbar {
    background-color: rgba(3, 32, 47, 0.85) !important;
    backdrop-filter: blur(8px);
}

[data-theme="texans"] .section-alt {
    background-color: rgba(10, 22, 32, 0.85) !important;
    backdrop-filter: blur(8px);
}

[data-theme="texans"] h1,
[data-theme="texans"] h2,
[data-theme="texans"] h3,
[data-theme="texans"] h4,
[data-theme="texans"] .nav-menu a,
[data-theme="texans"] .nav-logo span {
    color: #F5F5F5 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="texans"] p,
[data-theme="texans"] .text-light {
    color: #D1D5DB !important;
}

[data-theme="texans"] .card,
[data-theme="texans"] .boost-card,
[data-theme="texans"] .stat-card {
    background-color: rgba(3, 32, 47, 0.9) !important;
    border-color: #1E3A5F !important;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #f5f5f5;
    --secondary-color: #e0e0e0;
    --accent-color: #d0d0d0;
    --text-dark: #f5f5f5;
    --text-light: #a0a0a0;
    --bg-light: #1a1a1a;
    --bg-white: #0a0a0a;
    --border-color: #2a2a2a;
    --danger: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --gradient-start: #1a1a1a;
    --gradient-end: #0a0a0a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
}

/* Force Inter font on portfolio elements */
.balance-card h2,
.balance-amount,
.stat-card,
.stat-value,
.stat-change,
.history-item,
.chart-section h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 40px;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.rax-logo {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rax-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.rax-v {
    position: relative;
    z-index: 1;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 24px solid white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Houston Texans Logo (SVG-based) */
.texans-logo {
    width: 40px;
    height: 40px;
    position: relative;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.texans-logo svg {
    width: 100%;
    height: 100%;
}

.texans-bull {
    fill: #FFFFFF;
    stroke: #FFFFFF;
    transition: fill 0.3s ease;
}

/* Texas theme - use team colors */
[data-theme="texans"] .nav-logo {
    gap: 0.5rem;
}

[data-theme="texans"] .nav-logo span {
    color: #F5F5F5;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="texans"] .nav-logo .texans-logo {
    display: flex;
    background: linear-gradient(135deg, #B2263D 0%, #03202F 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(178, 38, 61, 0.6), 0 0 20px rgba(178, 38, 61, 0.3);
}

[data-theme="texans"] .texans-bull {
    fill: #FFFFFF;
}

/* Hide RAX logo when Texans theme is active */
[data-theme="texans"] .nav-logo .rax-logo {
    display: none;
}

/* Ensure RAX logo is visible by default */
.rax-logo {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide RAX logo when Texans theme is active */
[data-theme="texans"] .nav-logo .rax-logo {
    display: none;
}

/* Dark mode adjustment for RAX logo */
[data-theme="dark"] .rax-v {
    border-bottom-color: #e5e7eb;
}

[data-theme="texans"] .nav-logo span {
    color: #03202F;
}

[data-theme="texans"] .rax-circle {
    background: linear-gradient(135deg, #B2263D 0%, #03202F 100%);
}

[data-theme="texans"] .rax-v {
    border-bottom-color: #e5e7eb;
}

.nav-logo span {
    color: var(--text-dark);
}

.nav-logo:hover {
    color: var(--primary-color);
}

.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 40px;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 20px;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.nav-menu a:hover {
    color: var(--text-dark);
}

/* Dropdown Menus */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.theme-icon {
    transition: transform 0.3s ease;
}

/* Theme Selector */
.theme-selector {
    position: relative;
    margin-right: 1rem;
}

.theme-selector-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.theme-selector-btn:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.theme-selector:hover .theme-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.theme-option:hover {
    background: var(--bg-light);
}

.theme-option.active {
    background: var(--bg-light);
    font-weight: 600;
}

.theme-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.theme-option[data-theme="default"] .theme-color {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.theme-option[data-theme="ocean"] .theme-color {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.theme-option[data-theme="forest"] .theme-color {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.theme-option[data-theme="sunset"] .theme-color {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.theme-option[data-theme="royal"] .theme-color {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.theme-option[data-theme="dark"] .theme-color {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.theme-option[data-theme="texans"] .theme-color {
    background: linear-gradient(135deg, #03202F 0%, #B2263D 100%);
}

/* Hero Section */
.hero {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 160px 0 80px;
    text-align: center;
    transition: background 0.3s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    line-height: 1.1;
    font-family: var(--font-display);
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-dark);
    transform: translateY(-1px);
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

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

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.category-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Calculator Section */
.calculator-container {
    max-width: 700px;
    margin: 0 auto;
}

.calculator-input {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.calculator-input .form-group {
    margin-bottom: 1.5rem;
}

.calculator-input input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.calculator-input input:focus {
    outline: none;
    border-color: var(--text-dark);
}

.calculator-results {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    min-height: 200px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Rating Calculator Results */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.result-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.result-card strong {
    color: var(--text-dark);
    font-weight: 600;
}

.result-card.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--accent-color);
}

.result-card.highlight h4,
.result-card.highlight p,
.result-card.highlight strong {
    color: var(--bg-white);
}

.results-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-size: 0.9rem;
}

.recommendation-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    border-left: 2px solid var(--text-dark);
    transition: background-color 0.3s ease;
}

.recommendation-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.recommendation-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.method-example {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
    border-left: 2px solid var(--text-dark);
}

.method-example strong {
    color: var(--text-dark);
}

/* Smart Recommendations Section */
.recommendations-container {
    max-width: 800px;
    margin: 0 auto;
}

.recommendation-input {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.recommendation-input .form-group {
    margin-bottom: 1.5rem;
}

.recommendation-input input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.recommendation-input input:focus {
    outline: none;
    border-color: var(--text-dark);
}

.smart-results {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.smart-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 2rem;
    font-size: 0.9rem;
}

.smart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.tier-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.balance-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recommendation-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.recommendation-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recommendation-card.priority-high {
    border-left-color: #10b981;
    border-color: #10b981;
    background: linear-gradient(135deg, #0f2d20 0%, #1e3a2f 100%);
}

.recommendation-card.priority-medium {
    border-left-color: #f59e0b;
    border-color: #f59e0b;
    background: linear-gradient(135deg, #2d200f 0%, #3a2e1e 100%);
}

.recommendation-card.priority-low {
    border-left-color: #6b7280;
    border-color: #6b7280;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rec-icon {
    font-size: 2rem;
}

.rec-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rec-title-section h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.priority-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.recommendation-card.priority-high .priority-badge {
    background: #10b981;
    color: white;
}

.recommendation-card.priority-medium .priority-badge {
    background: #f59e0b;
    color: white;
}

.recommendation-card.priority-low .priority-badge {
    background: #6b7280;
    color: white;
}

.rec-description {
    margin: 0 0 1rem 0;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 1rem;
}

.rec-action {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.smart-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* YouTube Section */
.youtube-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

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

.youtube-header h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-light);
}

#youtubeVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#youtubeVideo iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-small {
    max-width: 600px;
    margin: 0 auto;
}

.youtube-small .youtube-header h3 {
    font-size: 1rem;
}

.video-small {
    max-height: 340px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.connect-card-video {
    grid-column: span 1;
}

.video-mini-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-light);
    margin-top: 1rem;
}

.video-mini-container #youtubeVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

/* Rotating Tips Section */
.rotating-tips {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.tips-header {
    margin-bottom: 1.5rem;
}

.tips-header h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.tips-content {
    position: relative;
    min-height: 60px;
    margin-bottom: 1.5rem;
}

.tip-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.tip-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tip-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Changelog Section */
.changelog {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-entry {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.changelog-entry:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.changelog-date {
    display: none;
}

.changelog-version {
    display: inline-block;
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.changelog-entry h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.changelog-entry ul {
    list-style: none;
    padding: 0;
}

.changelog-entry li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.changelog-entry li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-dark);
    font-weight: 600;
}

/* Changelog Form */
.changelog-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.changelog-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.tips-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--text-dark);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--text-dark);
}

/* Connect Section */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.connect-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.connect-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.connect-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.connect-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.connect-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Important Info Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.info-badge {
    display: inline-block;
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.info-content {
    color: var(--text-light);
}

.info-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-content p strong {
    color: var(--text-dark);
}

.info-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Daily Boosts Section */
.admin-panel-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.admin-panel-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.admin-tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.admin-tab-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.admin-tab-btn.active {
    background: var(--primary-color);
    color: white;
}

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

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

.admin-tab-content h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.settings-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.settings-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.settings-item code {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: monospace;
}

.settings-item button {
    margin-top: 0.5rem;
}

.admin-login-section {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-section button {
    margin: 0 0.5rem;
}

.paste-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.paste-section h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.paste-instructions {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.paste-example {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.paste-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

#jsonOutputSection {
    margin-top: 2rem;
}

#jsonOutputSection h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

#jsonOutputSection textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.file-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.update-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Portfolio Tracker */
.balance-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 2rem;
}

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

.balance-header h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
}

.balance-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.balance-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.balance-value-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balance-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.balance-label {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.balance-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group button {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.balance-actions button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.balance-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.stats-section {
    margin-bottom: 2rem;
}

.stats-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-card h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-family: var(--font-primary);
}

.stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

.stat-change {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.5rem;
    font-family: var(--font-display);
    letter-spacing: -0.25px;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: var(--font-primary);
    letter-spacing: 0.25px;
}

.stat-growth {
    background: linear-gradient(135deg, #1e3a2f 0%, #0f2d20 100%);
    border: 1px solid #134e33;
}

.stat-growth .stat-icon,
.stat-growth .stat-value,
.stat-growth .stat-change {
    color: #4ade80;
}

.stat-growth .stat-header h3 {
    color: #86efac;
}

.stat-start {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2d40 100%);
    border: 1px solid #1e40af;
}

.stat-start .stat-icon,
.stat-start .stat-value {
    color: #60a5fa;
}

.stat-start .stat-header h3,
.stat-start .stat-date {
    color: #93c5fd;
}

.stat-entries {
    background: linear-gradient(135deg, #3a2e1e 0%, #2d200f 100%);
    border: 1px solid #9a3412;
}

.stat-entries .stat-icon,
.stat-entries .stat-value {
    color: #fb923c;
}

.stat-entries .stat-header h3,
.stat-entries .stat-date {
    color: #fdba74;
}

.stat-time {
    background: linear-gradient(135deg, #2e1e3a 0%, #200f2d 100%);
    border: 1px solid #7c3aed;
}

.stat-time .stat-icon,
.stat-time .stat-value {
    color: #a78bfa;
}

.stat-time .stat-header h3,
.stat-time .stat-date {
    color: #c4b5fd;
}

/* Admin Notice */
.admin-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid #f59e0b;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.notice-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.notice-text h3 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 1.5rem;
    font-weight: 700;
}

.notice-text p {
    margin: 0;
    color: #78350f;
    font-size: 1.1rem;
    line-height: 1.5;
}

.history-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

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

.history-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.history-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.history-controls button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.history-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.history-container {
    max-height: 450px;
    overflow-y: auto;
    border-radius: 8px;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
    font-style: normal;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 8px;
    align-items: center;
    border-left: 4px solid var(--border-color);
    transition: all 0.3s ease;
}

.history-item:hover {
    background: var(--bg-white);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.history-date {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.history-balance {
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    font-size: 1.1rem;
}

.history-change {
    font-weight: 700;
    text-align: right;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.history-change.positive {
    color: #10b981;
    background: #ecfdf5;
}

.history-change.negative {
    color: #ef4444;
    background: #fef2f2;
}

.chart-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

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

.chart-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-value-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-current-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.chart-current-value span:first-child {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-display);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.chart-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.chart-change.positive {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.chart-change.negative {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.chart-change span {
    font-weight: 700;
    font-family: var(--font-display);
}

.chart-time-filters {
    display: flex;
    gap: 0.5rem;
}

.time-filter {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.time-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #e2e8f0;
}

.time-filter.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.chart-controls {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.chart-container {
    position: relative;
    height: 450px;
    width: 100%;
    display: none;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chart-container.active {
    display: block;
}

.progress-chart {
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 4rem 2rem;
}

.chart-placeholder.hidden {
    display: none;
}

.chart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chart-placeholder p {
    font-size: 1.1rem;
    margin: 0;
    font-style: normal;
}

.simple-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 300px;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.chart-bar {
    flex: 1;
    min-width: 50px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chart-bar:hover {
    background: linear-gradient(180deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
    transform: scaleY(1.08) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.chart-bar.latest {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.chart-bar.latest:hover {
    background: linear-gradient(180deg, #059669 0%, #10b981 100%);
}

.chart-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    background: var(--bg-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-header {
    text-align: center;
    margin-bottom: 3rem;
}

.date-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.date-header #currentDate {
    color: var(--text-light);
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.boost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.boost-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.boost-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.boost-sport {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.boost-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.boost-type {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.boost-reason {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.boost-tier {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.boost-tier.priority-top {
    background: var(--text-dark);
    color: var(--bg-white);
}

.boost-tier.priority-high {
    background: #10b981;
    color: white;
}

.boost-tier.priority-medium {
    background: #f59e0b;
    color: white;
}

.error {
    text-align: center;
    color: #ef4444;
    font-size: 1rem;
    padding: 2rem;
}

/* Admin Panel Styles */
.admin-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-panel {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.admin-panel h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-instructions {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-dark);
}

.tab-btn.active {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
}

.tab-content {
    display: none;
}

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

.boost-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-dark);
}

.bulk-import {
    margin-bottom: 2rem;
}

.bulk-instructions {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.bulk-example {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.bulk-import textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.boost-list {
    margin-bottom: 2rem;
}

.boost-list h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.boost-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.boost-list-sport {
    font-size: 1.25rem;
    min-width: 80px;
}

.boost-list-player {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.boost-list-boost {
    padding: 0.25rem 0.5rem;
    background: var(--text-dark);
    color: var(--bg-white);
    border-radius: 4px;
    font-size: 0.75rem;
}

.boost-list-priority {
    padding: 0.25rem 0.5rem;
    background: #10b981;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
}

.btn-remove {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.btn-remove:hover {
    background: #dc2626;
}

.empty-list {
    color: var(--text-light);
    font-style: italic;
    padding: 1rem;
}

.json-output {
    margin-top: 2rem;
}

.json-output h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.json-output textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
}

.json-output button {
    margin-top: 1rem;
    margin-right: 0.5rem;
}

.file-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.browser-warning {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #f59e0b;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Card Upgrade Requirements Section */
.upgrade-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.upgrade-column {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.upgrade-column h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.upgrade-table {
    width: 100%;
    border-collapse: collapse;
}

.upgrade-table thead {
    background: var(--text-dark);
}

.upgrade-table th {
    padding: 0.75rem;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.85rem;
    text-align: left;
}

.upgrade-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dark);
}

.upgrade-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.upgrade-table tbody tr:hover {
    background: var(--border-color);
}

/* Booster Tips Section */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.tip-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pro Tip Section */
.pro-tip-card {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.pro-tip-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pro-tip-card h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.pro-tip-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.pro-tip-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pro-tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.pro-tip-emoji {
    font-size: 1.25rem;
}

.pro-tip-item span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pro-tip-conclusion {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Join Card Section */
.join-card {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.join-card h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.join-card p {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.join-card .btn {
    background: var(--text-dark);
    color: var(--bg-white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.2s ease;
    border: 1px solid var(--text-dark);
}

.join-card .btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Legendary Chances Section */
.section-credit {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legendary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.legendary-sport {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.legendary-sport:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.legendary-sport h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.legendary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legendary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.legendary-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legendary-info strong {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.base-rax {
    font-size: 0.8rem;
    color: var(--text-light);
}

.legendary-chance {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    min-width: 70px;
    text-align: center;
}

.legendary-chance.high {
    background: var(--bg-white);
    color: #10b981;
    border: 1px solid #10b981;
}

.legendary-chance.medium {
    background: var(--bg-white);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.legendary-chance.low {
    background: var(--bg-white);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Top OTD Players Section */
.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.otd-sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.otd-sport-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.otd-sport-card:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
}

.otd-sport-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.otd-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.otd-header {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--text-dark);
    color: var(--bg-white);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
}

.otd-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    align-items: center;
}

.otd-row:nth-child(even) {
    background: var(--border-color);
}

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

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

.otd-row span {
    color: var(--text-dark);
    font-weight: 500;
}

.otd-row span:last-child {
    color: var(--text-light);
    font-family: 'Inter', monospace;
}

.otd-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.otd-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Achievements Section */
.achievements-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.recent-achievements {
    max-height: 200px;
    overflow-y: auto;
}

.recent-achievement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.recent-achievement-name {
    font-weight: 500;
    color: var(--text-dark);
}

.recent-achievement-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.achievement-category {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.achievement-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.achievement-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.achievement-card.unlocked {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.achievement-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.achievement-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.achievement-progress {
    margin: 0.5rem 0;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.achievement-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-light);
}

.achievement-status.unlocked {
    background: #10b981;
    color: white;
}

.achievement-status.ready {
    background: #f59e0b;
    color: white;
}

.achievement-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.achievement-percentage {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.achievement-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.achievement-popup {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid #10b981;
    min-width: 300px;
}

.achievement-popup-icon {
    font-size: 2rem;
}

.achievement-popup-content h4 {
    margin: 0 0 0.25rem 0;
    color: #10b981;
}

.achievement-popup-content p {
    margin: 0;
    color: var(--text-dark);
}

.achievement-popup-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
}

.achievement-popup-close:hover {
    color: var(--text-dark);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info > p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-details p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.footer-section a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .categories-grid,
    .tips-container {
        grid-template-columns: 1fr;
    }

    .legendary-grid,
    .otd-sports-grid {
        grid-template-columns: 1fr;
    }

    .join-card {
        padding: 2rem;
    }

    .join-card h2 {
        font-size: 1.5rem;
    }

    .join-card p {
        font-size: 1rem;
    }

    .pro-tip-methods {
        max-width: 100%;
    }

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

    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* Native navigation button keeps the existing hamburger appearance. */
.nav-toggle { background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Account forms share the site's existing colors and button styles. */
[hidden] { display: none !important; }
.account-panel { max-width: 760px; margin: 0 auto; padding: 2rem; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-white); color: var(--text-dark); }
.account-panel h2 { margin-bottom: .75rem; }
.account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.account-fields label { display: flex; flex-direction: column; gap: .5rem; font-weight: 600; }
.account-fields input { width: 100%; min-width: 0; padding: .8rem; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-dark); background: var(--bg-light); font: inherit; }
.account-fields input:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.account-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.account-help { font-size: .9rem; margin: .75rem 0; }
.account-legacy { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border-color, #64748b); border-radius: 8px; }
#accountStatus, #balanceStatus { min-height: 1.5em; margin-top: 1rem; overflow-wrap: anywhere; }
button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 600px) { .account-panel { padding: 1.25rem; } .account-fields { grid-template-columns: 1fr; } }

/* Portfolio dashboard refresh */
.portfolio-page { background: var(--bg-light); }
.portfolio-page .portfolio-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.5rem;
    color: #f8fafc;
    text-align: left;
    background: radial-gradient(ellipse at 78% 15%, rgba(52, 211, 153, .2), transparent 34%), linear-gradient(125deg, #071b18 0%, #0c2924 52%, #123a32 100%);
}
.portfolio-hero::after {
    content: "";
    position: absolute;
    width: 24rem;
    height: 24rem;
    right: max(2rem, calc((100vw - 1120px) / 2));
    top: -13rem;
    border: 1px solid rgba(167, 243, 208, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(167, 243, 208, .025), 0 0 0 4rem rgba(167, 243, 208, .025);
    pointer-events: none;
}
.portfolio-page .portfolio-hero .container { position: relative; z-index: 1; }
.portfolio-page .portfolio-hero .hero-content { max-width: 1120px; margin: 0 auto; }
.portfolio-page .portfolio-hero .portfolio-eyebrow { color: #86efac; }
.portfolio-page .portfolio-hero h1 { margin: .55rem 0 .8rem; color: #fff; font-size: clamp(2.7rem, 6vw, 4.25rem); letter-spacing: -2px; }
.portfolio-page .portfolio-hero p:not(.portfolio-eyebrow) { max-width: 570px; margin: 0 0 1.7rem; color: #c3d6d0; font-size: 1.08rem; }
.portfolio-page .portfolio-hero .hero-buttons { justify-content: flex-start; }
.portfolio-page .portfolio-hero .btn-primary { color: var(--hero-cta-color, #08231d); background: var(--hero-cta-bg, #a7f3d0); border-color: var(--hero-cta-bg, #a7f3d0); }
.portfolio-page .portfolio-hero .btn-secondary { color: #f8fafc; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.portfolio-eyebrow { display: block; color: #16805d; font-size: .7rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
.portfolio-page > .portfolio-account-section { padding: 1.5rem 0 2rem; }
.portfolio-account-panel {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: .5rem 2.5rem;
    max-width: 1020px;
    padding: 1.75rem 2rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 72%, #16805d 28%);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(12, 41, 36, .07);
}
.account-panel-copy h2 { margin: .45rem 0 .55rem; font-size: 1.4rem; letter-spacing: -.03em; }
.account-panel-copy p { margin: 0; color: var(--text-light); font-size: .92rem; line-height: 1.6; }
.portfolio-account-panel #accountForm, .portfolio-account-panel #accountSession { grid-column: 2; grid-row: 1 / span 3; }
.portfolio-account-panel #accountStatus, .portfolio-account-panel #legacyPortfolioNotice { grid-column: 1 / -1; }
.portfolio-account-panel .account-fields { margin-top: 0; }
.portfolio-account-panel .account-fields label { color: var(--text-dark); font-size: .86rem; }
.portfolio-account-panel .account-fields input { padding: .78rem .9rem; border-radius: 10px; background: var(--bg-light); }
.portfolio-account-panel .account-actions { margin: .85rem 0 .45rem; }
.portfolio-account-panel .account-help { color: var(--text-light); line-height: 1.5; }
.portfolio-account-panel #accountStatus { margin: .4rem 0 0; font-size: .87rem; }
.portfolio-dashboard > .section { padding: 1.15rem 0; }
.portfolio-dashboard > .section-alt { background: transparent; }
.portfolio-dashboard .container { max-width: 1120px; }
.portfolio-dashboard .balance-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr);
    align-items: center;
    gap: 1rem 3rem;
    margin: 0;
    padding: 2rem 2.2rem;
    border: 1px solid rgba(167, 243, 208, .22);
    border-radius: 22px;
    background: radial-gradient(ellipse at 95% 5%, rgba(52, 211, 153, .16), transparent 34%), linear-gradient(120deg, #0b211d, #103b30);
    box-shadow: 0 18px 45px rgba(12, 41, 36, .16);
    text-align: left;
}
.portfolio-dashboard .balance-header { display: flex; align-items: center; justify-content: space-between; grid-column: 1; margin: 0; }
.portfolio-dashboard .balance-header .portfolio-eyebrow { color: #86efac; }
.portfolio-dashboard .balance-header h2 { margin: .45rem 0 .35rem; color: #fff; font-size: 1.55rem; letter-spacing: -.04em; }
.portfolio-dashboard .balance-subtitle { color: #b6cec5; font-size: .9rem; }
.portfolio-balance-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-left: 1rem; border: 1px solid rgba(167,243,208,.35); border-radius: 14px; color: #a7f3d0; font-size: 1.25rem; font-weight: 800; }
.portfolio-dashboard .balance-display { justify-content: flex-start; grid-column: 1; margin: .5rem 0 0; }
.portfolio-dashboard .balance-value-container { align-items: flex-start; }
.portfolio-dashboard .balance-amount { color: #fff; font-size: clamp(2.7rem, 5vw, 4.4rem); letter-spacing: -.065em; }
.portfolio-dashboard .balance-label { color: #a7f3d0; font-size: .9rem; font-weight: 700; letter-spacing: .14em; }
.portfolio-dashboard .balance-actions { grid-column: 2; grid-row: 1 / span 2; align-items: stretch; gap: .65rem; }
.portfolio-dashboard .input-group { max-width: none; gap: .55rem; }
.portfolio-dashboard .input-group input { flex-basis: 100%; min-width: 100%; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(3,18,15,.38); color: #fff; font-size: 1rem; }
.portfolio-dashboard .input-group input::placeholder { color: #a4b9b1; }
.portfolio-dashboard .input-group button, .portfolio-dashboard .balance-actions > button { padding: .78rem 1rem; border-radius: 10px; font-size: .85rem; }
.portfolio-dashboard .balance-actions .btn-primary { color: var(--button-primary-text, #08231d); background: var(--button-primary-bg, #a7f3d0); border-color: var(--button-primary-bg, #a7f3d0); }
.portfolio-dashboard .balance-actions .btn-success { color: #dcfce7; border: 1px solid rgba(134,239,172,.4); background: rgba(22,101,52,.42); }
.portfolio-dashboard .balance-actions .btn-danger { color: #fecaca; border: 1px solid rgba(252,165,165,.32); background: rgba(127,29,29,.32); }
.portfolio-dashboard .balance-actions .btn-secondary { color: #e2e8f0; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.portfolio-dashboard #balanceStatus { color: #cbd5e1; font-size: .82rem; }
.portfolio-dashboard #confirmClearPanel { border-color: rgba(252,165,165,.35); color: #fee2e2; }
.portfolio-section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.portfolio-section-heading h2, .portfolio-dashboard .history-header h2 { margin: .35rem 0 0; color: var(--text-dark); font-size: 1.55rem; letter-spacing: -.045em; }
.portfolio-dashboard .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 0; }
.portfolio-dashboard .stat-card { min-width: 0; padding: 1.25rem; border-radius: 16px; background: var(--bg-white); box-shadow: 0 8px 24px rgba(15,23,42,.045); text-align: left; }
.portfolio-dashboard .stat-card:hover { transform: translateY(-2px); }
.portfolio-dashboard .stat-header { justify-content: flex-start; margin-bottom: .85rem; }
.portfolio-dashboard .stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--bg-light) 70%, #a7f3d0 30%); font-size: 1rem; }
.portfolio-dashboard .stat-card h3 { font-size: .67rem; letter-spacing: .1em; }
.portfolio-dashboard .stat-value { overflow-wrap: anywhere; font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.045em; }
.portfolio-dashboard .stat-change { align-self: flex-start; padding: .25rem .55rem; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: .82rem; }
.portfolio-dashboard .history-section { margin: 0; padding: 1.5rem; border-radius: 18px; background: var(--bg-white); box-shadow: 0 8px 24px rgba(15,23,42,.045); }
.portfolio-dashboard .history-header { margin-bottom: 1.1rem; }
.portfolio-dashboard .history-header h2 { font-size: 1.45rem; }
.portfolio-dashboard .history-controls button { padding: .65rem .9rem; border-radius: 9px; font-size: .8rem; }
.portfolio-dashboard .history-item { border: 1px solid var(--border-color); border-left: 3px solid #34d399; border-radius: 12px; }
.portfolio-dashboard .history-item:hover { border-color: #a7f3d0; background: var(--bg-white); }
.portfolio-dashboard .chart-section { padding: 1.65rem; border: 1px solid rgba(167,243,208,.16); border-radius: 18px; background: linear-gradient(130deg, #0b211d, #102b27); box-shadow: 0 16px 36px rgba(12,41,36,.12); }
.portfolio-dashboard .chart-section h2 { margin: .35rem 0 0; color: #f8fafc; font-size: 1.5rem; letter-spacing: -.04em; }
.portfolio-dashboard .chart-section .portfolio-eyebrow { color: #86efac; }
.portfolio-dashboard .chart-header { align-items: end; }
.portfolio-dashboard .chart-current-value { color: #fff; }
.portfolio-dashboard .chart-currency { color: #a7f3d0; }
.portfolio-dashboard .chart-change { color: #86efac; }
.portfolio-dashboard .time-filter { border-color: rgba(255,255,255,.15); color: #cbd5e1; background: rgba(255,255,255,.06); }
.portfolio-dashboard .time-filter.active { border-color: #a7f3d0; color: #08231d; background: #a7f3d0; }
.portfolio-dashboard .chart-controls .btn { border-color: rgba(255,255,255,.18); color: #e2e8f0; background: rgba(255,255,255,.07); }
.portfolio-dashboard .chart-container { background: rgba(3,18,15,.2); box-shadow: none; }
.portfolio-dashboard .chart-placeholder { color: #cbd5e1; }
.portfolio-recommendation {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr);
    gap: 2rem;
    align-items: center;
    padding: 1.7rem 1.8rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, #34d399 30%);
    border-radius: 18px;
    background: var(--bg-white);
    box-shadow: 0 8px 24px rgba(15,23,42,.045);
}
.recommendation-tier-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: .7rem 0 .5rem; }
.recommendation-tier { padding: .35rem .65rem; border-radius: 999px; color: #065f46; background: #d1fae5; font-size: .74rem; font-weight: 800; }
.recommendation-milestone { color: var(--text-light); font-size: .8rem; font-weight: 600; }
.portfolio-recommendation h2 { margin: 0 0 .5rem; color: var(--text-dark); font-size: 1.55rem; letter-spacing: -.04em; }
.portfolio-recommendation #suggestionText { max-width: 650px; margin: 0 0 .85rem; color: var(--text-light); line-height: 1.6; }
.recommendation-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.recommendation-list li { position: relative; padding-left: 1.35rem; color: var(--text-dark); font-size: .9rem; line-height: 1.5; }
.recommendation-list li::before { content: ""; position: absolute; top: .55em; left: .1rem; width: .45rem; height: .45rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
.recommendation-links { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1.15rem; }
.recommendation-links .btn { padding: .7rem 1rem; border-radius: 9px; font-size: .82rem; }
.recommendation-links .btn-primary { border: 1px solid var(--button-primary-bg, #0f766e); color: var(--button-primary-text, #fff); background: var(--button-primary-bg, #0f766e); }
.recommendation-secondary-link { color: #0f766e; font-size: .84rem; font-weight: 700; text-decoration: none; }
.recommendation-secondary-link:hover { text-decoration: underline; }
.recommendation-progress { padding: 1.15rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-light); }
.recommendation-progress-copy { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; color: var(--text-light); font-size: .78rem; }
.recommendation-progress-copy strong { color: var(--text-dark); }
.recommendation-progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--border-color) 70%, transparent); }
.recommendation-progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #10b981, #34d399); transition: width .35s ease; }
.recommendation-progress p { margin: .8rem 0 0; color: var(--text-light); font-size: .76rem; line-height: 1.55; }
.recommendation-progress a { color: #0f766e; font-weight: 700; }
.portfolio-page .admin-notice { margin-top: 1rem; }
@media (max-width: 850px) {
    .portfolio-account-panel { grid-template-columns: 1fr; gap: .75rem; }
    .portfolio-account-panel #accountForm, .portfolio-account-panel #accountSession { grid-column: 1; grid-row: auto; }
    .portfolio-dashboard .balance-card { grid-template-columns: 1fr; gap: 1.2rem; }
    .portfolio-dashboard .balance-actions { grid-column: 1; grid-row: auto; }
    .portfolio-dashboard .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-recommendation { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
    .portfolio-page .portfolio-hero { padding: 3.5rem 0 3rem; }
    .portfolio-page .portfolio-hero h1 { letter-spacing: -1.5px; }
    .portfolio-page .portfolio-hero .hero-buttons { align-items: stretch; }
    .portfolio-account-panel { padding: 1.25rem; }
    .portfolio-dashboard > .section { padding: .7rem 0; }
    .portfolio-dashboard .balance-card { padding: 1.35rem; border-radius: 17px; }
    .portfolio-dashboard .balance-header h2 { font-size: 1.3rem; }
    .portfolio-dashboard .input-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-dashboard .input-group input { grid-column: 1 / -1; }
    .portfolio-dashboard .input-group button { width: 100%; padding: .75rem .45rem; }
    .portfolio-dashboard .input-group button:first-of-type { grid-column: 1 / -1; }
    .portfolio-dashboard .stats-grid { gap: .6rem; }
    .portfolio-dashboard .stat-card { padding: .9rem; }
    .portfolio-dashboard .stat-header { align-items: flex-start; flex-direction: column; gap: .45rem; }
    .portfolio-dashboard .stat-value { font-size: 1.12rem; }
    .portfolio-dashboard .history-section, .portfolio-dashboard .chart-section { padding: 1rem; }
    .portfolio-recommendation { padding: 1.1rem; }
    .recommendation-links { align-items: stretch; flex-direction: column; }
    .recommendation-links .btn { text-align: center; }
    .portfolio-dashboard .history-header { align-items: flex-start; flex-direction: column; }
    .portfolio-dashboard .history-controls { width: 100%; }
    .portfolio-dashboard .history-controls button { flex: 1; }
    .portfolio-dashboard .history-item { grid-template-columns: 1fr 1fr; padding: .85rem; }
    .portfolio-dashboard .history-date { grid-column: 1 / -1; }
    .portfolio-dashboard .history-balance, .portfolio-dashboard .history-change { text-align: left; }
    .portfolio-dashboard .chart-header { align-items: flex-start; }
    .portfolio-dashboard .chart-time-filters { flex-wrap: wrap; }
    .portfolio-dashboard .chart-container { height: 300px; padding: .7rem; }
}

/* Site-wide visual refresh: shared type, surfaces, navigation, and controls. */
:root {
    --primary-color: #0f766e;
    --secondary-color: #0d625b;
    --accent-color: #124b43;
    --text-dark: #14251f;
    --text-light: #61726a;
    --bg-light: #f3f7f4;
    --bg-white: #ffffff;
    --bg-dark: #ffffff;
    --border-color: #dfe8e2;
    --shadow: 0 2px 8px rgba(16, 40, 30, .05);
    --shadow-lg: 0 16px 36px rgba(16, 40, 30, .1);
    --button-primary-bg: #0f766e;
    --button-primary-text: #ffffff;
    --hero-cta-bg: #a7f3d0;
    --hero-cta-color: #0b2e24;
}
[data-theme="dark"] {
    --primary-color: #72d6b1;
    --secondary-color: #41ba90;
    --accent-color: #1c4d3e;
    --text-dark: #edf5f0;
    --text-light: #a5b7ad;
    --bg-light: #13211b;
    --bg-white: #0c1712;
    --bg-dark: #0c1712;
    --border-color: #283b31;
    --shadow: 0 2px 8px rgba(0, 0, 0, .18);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, .3);
    color-scheme: dark;
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { background: var(--bg-light); color: var(--text-dark); font-size: 15px; line-height: 1.65; }
.container { width: min(1160px, 100%); max-width: 1160px; padding-right: 24px; padding-left: 24px; }
h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.2; letter-spacing: -.035em; }
p { line-height: 1.65; }
a { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary-color) 55%, transparent); outline-offset: 3px; }
.ticker-tape { height: 34px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .77rem; }
.ticker-item { padding: 0 24px; }
.navbar { top: 34px; background: color-mix(in srgb, var(--bg-white) 92%, transparent); border-bottom-color: var(--border-color); box-shadow: 0 4px 18px rgba(13,35,27,.035); backdrop-filter: blur(14px); }
.navbar .container { min-height: 72px; padding-top: .75rem; padding-bottom: .75rem; }
.nav-logo { gap: .65rem; font-size: 1.05rem; }
.logo-image, .rax-logo { width: 36px; height: 36px; }
.nav-menu { gap: clamp(1rem, 2vw, 2rem); }
.nav-menu a { font-size: .82rem; font-weight: 600; }
.nav-menu a:hover { color: var(--primary-color); }
.dropdown-menu { min-width: 220px; padding: .45rem; border-radius: 12px; box-shadow: var(--shadow-lg); }
.dropdown-menu a { display: block; padding: .58rem .75rem; border-radius: 8px; }
.dropdown-menu a:hover { background: var(--bg-light); }
.theme-selector-btn, .theme-toggle { min-height: 38px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-white); color: var(--text-dark); }
.theme-dropdown { border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-white); box-shadow: var(--shadow-lg); }
.theme-option { border-radius: 8px; }
.theme-option:hover, .theme-option.active { background: var(--bg-light); }
.hero { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.75rem); background: radial-gradient(ellipse at 82% 10%, rgba(69, 179, 139, .2), transparent 32%), linear-gradient(125deg, #081d18, #10382f 68%, #17443a); color: #f5faf7; text-align: left; }
.hero-content { max-width: 1160px; margin: 0 auto; }
.hero-content h1 { max-width: 900px; margin-bottom: .8rem; color: #fff; font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.055em; }
.hero-content p { max-width: 680px; margin: 0 0 1.5rem; color: #c4d8cf; font-size: 1.05rem; }
.hero-buttons { justify-content: flex-start; gap: .7rem; }
.btn { min-height: 42px; padding: .7rem 1.05rem; border-radius: 10px; font-size: .88rem; font-weight: 700; }
.btn-primary { background: var(--button-primary-bg, var(--primary-color)); border-color: var(--button-primary-bg, var(--primary-color)); color: var(--button-primary-text, #fff); }
.btn-primary:hover { background: var(--secondary-color); border-color: var(--secondary-color); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-white); color: var(--text-dark); border-color: var(--border-color); }
.btn-secondary:hover { background: var(--bg-light); border-color: var(--primary-color); transform: translateY(-1px); }
.hero .btn-primary { background: var(--hero-cta-bg, #a7f3d0); border-color: var(--hero-cta-bg, #a7f3d0); color: var(--hero-cta-color, #0b2e24); }
.hero .btn-primary:hover { background: var(--hero-cta-hover-bg, #c1f8dd); border-color: var(--hero-cta-hover-bg, #c1f8dd); }
.hero .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #f5faf7; }
.hero .btn-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
.section { padding: clamp(3.25rem, 6vw, 5.25rem) 0; background: var(--bg-white); }
.section-alt { background: var(--bg-light); }
.section h2 { margin: 0 0 1.5rem; color: var(--text-dark); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 750; letter-spacing: -.045em; text-align: left; }
.section-description { max-width: 780px; margin: -.65rem 0 1.6rem; color: var(--text-light); text-align: left; }
.categories-grid, .otd-sports-grid { gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.category-card, .tip-card, .feature-card, .article-card, .connect-card, .info-card, .otd-sport-card, .upgrade-column, .boost-card, .result-card, .calculator-input, .calculator-results, .contact-form, .pro-tip-card, .account-panel, .history-section, .stat-card, .achievement-category {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}
.category-card, .tip-card, .feature-card, .article-card, .connect-card, .info-card, .otd-sport-card, .upgrade-column, .boost-card { padding: 1.55rem; }
.category-card, .tip-card, .feature-card, .article-card, .connect-card, .info-card, .otd-sport-card, .boost-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.category-card:hover, .tip-card:hover, .feature-card:hover, .article-card:hover, .connect-card:hover, .info-card:hover, .otd-sport-card:hover, .boost-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary-color) 38%, var(--border-color)); box-shadow: var(--shadow-lg); }
.category-icon, .connect-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 1rem; border-radius: 14px; background: color-mix(in srgb, var(--primary-color) 11%, var(--bg-white)); font-size: 1.55rem; }
.category-card { text-align: left; }
.category-card h3, .tip-card h3, .feature-card h3, .connect-card h3, .info-card h3, .otd-sport-card h3, .upgrade-column h3 { margin-bottom: .65rem; font-size: 1.08rem; font-weight: 750; }
.category-card p, .tip-card p, .feature-card p, .connect-card p, .info-card p { margin-bottom: .8rem; color: var(--text-light); font-size: .91rem; line-height: 1.65; }
.category-features li { padding: .42rem 0; color: var(--text-light); font-size: .88rem; }
.calculator-container { max-width: 760px; }
.calculator-input, .calculator-results, .contact-form, .pro-tip-card { padding: clamp(1.25rem, 3vw, 2rem); }
.calculator-input input, .calculator-input select, .form-group input, .form-group select, .form-group textarea, .account-fields input, .input-group input, input, select, textarea {
    color: var(--text-dark);
    background-color: var(--bg-white);
    border-color: var(--border-color);
    border-radius: 10px;
}
.calculator-input input, .calculator-input select, .form-group input, .form-group select, .form-group textarea { min-height: 44px; padding: .75rem .85rem; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-color) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 16%, transparent); outline: 0; }
.results-summary { gap: 1rem; }
.result-card { padding: 1.2rem; }
.result-card.highlight { color: #fff; background: linear-gradient(130deg, var(--primary-color), var(--secondary-color)); }
.result-card.highlight h4, .result-card.highlight p, .result-card.highlight strong { color: #fff; }
.tip-card, .feature-card, .connect-card { text-align: left; }
.pro-tip-card { text-align: left; }
.pro-tip-card > h2 { margin-bottom: .65rem; text-align: left; }
.pro-tip-text { color: var(--text-light); }
.pro-tip-item { border-radius: 10px; background: var(--bg-light); }
.otd-sport-card { padding: 1.15rem; }
.otd-sport-card h3 { margin: .2rem 0 .85rem; text-align: left; }
.otd-table { gap: .35rem; }
.otd-header { padding: .7rem .8rem; border-radius: 9px; background: #12382f; color: #effaf4; }
.otd-row { gap: .7rem; min-height: 42px; padding: .65rem .8rem; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-light); }
.otd-row:nth-child(even) { background: color-mix(in srgb, var(--bg-light) 70%, var(--primary-color) 4%); }
.otd-row span { color: var(--text-dark); }
.otd-row span:last-child { color: var(--text-light); }
.otd-link { color: var(--primary-color); font-weight: 650; text-decoration: none; }
.otd-link:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-white); }
th { padding: .75rem .9rem; background: #12382f; color: #effaf4; text-align: left; font-size: .82rem; }
td { padding: .7rem .9rem; border-top: 1px solid var(--border-color); color: var(--text-dark); font-size: .88rem; }
tr:nth-child(even) td { background: var(--bg-light); }
.footer { padding: 3rem 0 1.5rem; border-top: 0; background: #0b201a; color: #edf5f0; }
.footer-section h3, .footer-section h4 { color: #f4faf6; }
.footer-section p, .footer-section a { color: #afc2b8; }
.footer-section a:hover { color: #a7f3d0; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); color: #94aa9e; }
.admin-notice { border-radius: 14px; }
.history-container { border-radius: 12px; }
.empty-state { border: 1px dashed var(--border-color); border-radius: 14px; background: var(--bg-light); }
.time-filter, .chart-controls .btn { border-radius: 9px; }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
@media (max-width: 768px) {
    .navbar .container { min-height: 64px; }
    .nav-menu { top: 100%; gap: .2rem; padding: .6rem; border: 1px solid var(--border-color); border-radius: 0 0 14px 14px; background: var(--bg-white); }
    .nav-menu li, .nav-menu a { width: 100%; }
    .nav-menu a { display: block; padding: .65rem .75rem; border-radius: 8px; }
    .nav-menu a:hover { background: var(--bg-light); }
    .hero-content h1 { font-size: clamp(2.1rem, 9vw, 3.1rem); }
    .hero-buttons { align-items: flex-start; }
    .section { padding: 3rem 0; }
    .section h2 { margin-bottom: 1.2rem; }
}
@media (max-width: 480px) {
    .ticker-tape { height: 32px; }
    .navbar { top: 32px; }
    .container { padding-right: 18px; padding-left: 18px; }
    .hero .btn { width: auto; }
    .category-card, .tip-card, .feature-card, .article-card, .connect-card, .info-card, .otd-sport-card { padding: 1.15rem; }
    .theme-selector-btn { padding: .45rem .55rem; }
}

/* Neutral black-and-white dark mode. */
[data-theme="dark"] {
    --primary-color: #f5f5f5;
    --secondary-color: #e5e5e5;
    --accent-color: #d4d4d4;
    --text-dark: #f5f5f5;
    --text-light: #b8b8b8;
    --bg-light: #090909;
    --bg-white: #141414;
    --bg-dark: #111111;
    --border-color: #303030;
    --shadow: 0 2px 8px rgba(0, 0, 0, .28);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, .45);
    --button-primary-bg: #f2f2f2;
    --button-primary-text: #111111;
    --hero-cta-bg: #f2f2f2;
    --hero-cta-color: #111111;
    --hero-cta-hover-bg: #d8d8d8;
    color-scheme: dark;
}
[data-theme="dark"] body { background: #090909; color: #f5f5f5; }
[data-theme="dark"] .btn-primary { border-color: #f2f2f2 !important; background: #f2f2f2 !important; color: #111 !important; }
[data-theme="dark"] .navbar { background: rgba(12,12,12,.94); }
[data-theme="dark"] .hero,
[data-theme="dark"] .portfolio-page .portfolio-hero {
    background: radial-gradient(ellipse at 82% 10%, rgba(255,255,255,.07), transparent 32%), linear-gradient(125deg, #050505, #151515 68%, #202020);
}
[data-theme="dark"] .hero .btn-primary,
[data-theme="dark"] .portfolio-page .portfolio-hero .btn-primary,
[data-theme="dark"] .portfolio-dashboard .balance-actions .btn-primary,
[data-theme="dark"] .recommendation-links .btn-primary {
    border-color: #f2f2f2 !important;
    background: #f2f2f2 !important;
    color: #111 !important;
}

/* Keep the portfolio hero action neutral in dark mode, even with legacy button styles. */
html[data-theme="dark"] .portfolio-page .portfolio-hero .hero-buttons .btn-primary {
    border-color: #f2f2f2 !important;
    background: #f2f2f2 !important;
    color: #111 !important;
}
[data-theme="dark"] .hero .btn-primary:hover { border-color: #d8d8d8; background: #d8d8d8; }
[data-theme="dark"] .hero .btn-secondary,
[data-theme="dark"] .portfolio-page .portfolio-hero .btn-secondary {
    border-color: #444;
    background: rgba(255,255,255,.06);
    color: #f5f5f5;
}
[data-theme="dark"] .footer { background: #050505; }
[data-theme="dark"] .portfolio-eyebrow { color: #d0d0d0; }
[data-theme="dark"] .admin-notice { border-color: #363636; background: linear-gradient(135deg, #181818, #222); }
[data-theme="dark"] .notice-text h3 { color: #f5f5f5; }
[data-theme="dark"] .notice-text p { color: #c2c2c2; }
[data-theme="dark"] .category-icon,
[data-theme="dark"] .connect-icon { background: #242424; }
[data-theme="dark"] .portfolio-dashboard .balance-actions .btn-danger { border-color: #555; background: #292929; color: #f0f0f0; }
[data-theme="dark"] .portfolio-dashboard .history-change.negative { border-color: #454545; background: #252525; color: #ededed; }
[data-theme="dark"] .otd-header,
[data-theme="dark"] th { background: #242424; color: #f5f5f5; }
[data-theme="dark"] .result-card.highlight { border-color: #3a3a3a; background: #202020; color: #f5f5f5; }
[data-theme="dark"] .result-card.highlight h4,
[data-theme="dark"] .result-card.highlight p,
[data-theme="dark"] .result-card.highlight strong { color: #f5f5f5; }
[data-theme="dark"] .portfolio-page .portfolio-hero .portfolio-eyebrow,
[data-theme="dark"] .portfolio-dashboard .balance-header .portfolio-eyebrow,
[data-theme="dark"] .portfolio-dashboard .balance-label,
[data-theme="dark"] .portfolio-dashboard .chart-section .portfolio-eyebrow,
[data-theme="dark"] .portfolio-dashboard .chart-currency,
[data-theme="dark"] .portfolio-dashboard .chart-change { color: #dedede; }
[data-theme="dark"] .portfolio-dashboard .balance-card,
[data-theme="dark"] .portfolio-dashboard .chart-section {
    border-color: #363636;
    background: radial-gradient(ellipse at 95% 5%, rgba(255,255,255,.055), transparent 34%), linear-gradient(125deg, #090909, #1a1a1a);
}
[data-theme="dark"] .portfolio-dashboard .balance-actions .btn-success {
    border-color: #555;
    background: #252525;
    color: #f0f0f0;
}
[data-theme="dark"] .portfolio-dashboard .stat-change,
[data-theme="dark"] .recommendation-tier {
    border: 1px solid #454545;
    background: #252525;
    color: #f2f2f2;
}
[data-theme="dark"] .recommendation-list li::before { background: #d6d6d6; box-shadow: 0 0 0 3px #303030; }
[data-theme="dark"] .recommendation-secondary-link,
[data-theme="dark"] .recommendation-progress a { color: #e5e5e5; }
[data-theme="dark"] .recommendation-progress-track span { background: linear-gradient(90deg, #aaa, #f0f0f0); }
[data-theme="dark"] .portfolio-dashboard .history-item { border-left-color: #a8a8a8; }
[data-theme="dark"] .portfolio-dashboard .history-change.positive { color: #ededed; background: #282828; }

.portfolio-earnings-section { padding-top: 0; }
.portfolio-earnings-card {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
    gap: 2rem;
    align-items: start;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    background: var(--bg-white, #fff);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}
.portfolio-earnings-copy h2 { margin: .4rem 0 .6rem; color: var(--text-dark, #0f172a); font-size: 1.45rem; letter-spacing: -.04em; }
.portfolio-earnings-copy p { margin: 0 0 .6rem; color: var(--text-light, #64748b); font-size: .92rem; line-height: 1.6; }
.portfolio-earnings-copy .earnings-note { font-size: .8rem; }
.portfolio-earnings-form { display: grid; gap: .65rem; }
.portfolio-earnings-form label { color: var(--text-dark, #0f172a); font-size: .85rem; font-weight: 700; }
.portfolio-earnings-form textarea {
    width: 100%;
    min-height: 135px;
    resize: vertical;
    padding: .85rem 1rem;
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 11px;
    background: var(--bg-light, #f8fafc);
    color: var(--text-dark, #0f172a);
    font: inherit;
    line-height: 1.5;
}
.portfolio-earnings-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary-color, #0f766e) 22%, transparent); border-color: var(--primary-color, #0f766e); }
.earnings-preview { min-height: 1.4em; margin: 0; color: var(--text-light, #64748b); font-size: .85rem; }
.earnings-preview.earnings-error { color: #b91c1c; }
.portfolio-earnings-form .btn:disabled { cursor: not-allowed; opacity: .55; }
[data-theme="dark"] .portfolio-earnings-card { border-color: #303030; background: #141414; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
[data-theme="dark"] .portfolio-earnings-copy h2,
[data-theme="dark"] .portfolio-earnings-form label { color: #f5f5f5; }
[data-theme="dark"] .portfolio-earnings-copy p,
[data-theme="dark"] .earnings-preview { color: #bdbdbd; }
[data-theme="dark"] .portfolio-earnings-form textarea { border-color: #424242; background: #090909; color: #f5f5f5; }
[data-theme="dark"] .earnings-preview.earnings-error { color: #ff9b9b; }
@media (max-width: 760px) {
    .portfolio-earnings-card { grid-template-columns: 1fr; gap: 1rem; }
}

/* Keep the portfolio focused on the balance, daily entry, and key totals. */
.portfolio-dashboard > .section { padding: .7rem 0; }
.portfolio-dashboard .balance-card { box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.portfolio-dashboard .stats-grid { gap: .65rem; }
.portfolio-dashboard .stat-card { border: 1px solid var(--border-color); box-shadow: none; }
.portfolio-dashboard .stat-card:hover { transform: none; }
.portfolio-dashboard .stat-icon { display: none; }
.portfolio-dashboard .stat-header { margin-bottom: .45rem; }
.portfolio-earnings-card { gap: 1.25rem; box-shadow: none; }
.portfolio-earnings-form textarea { min-height: 92px; }
.portfolio-earnings-copy h2 { margin-top: .25rem; }
.portfolio-earnings-copy .earnings-note { margin-top: -.35rem; }

.portfolio-disclosure { min-width: 0; }
.portfolio-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    list-style: none;
    cursor: pointer;
}
.portfolio-disclosure > summary::-webkit-details-marker { display: none; }
.portfolio-disclosure > summary::before {
    content: "+";
    display: grid;
    place-items: center;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    opacity: .65;
    order: 2;
}
.portfolio-disclosure[open] > summary::before { content: "−"; }
.portfolio-disclosure > summary span { margin-left: auto; color: var(--text-light, #64748b); font-size: .8rem; font-weight: 500; text-align: right; }
.portfolio-tools { display: block; align-self: start; padding: 0; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; }
.portfolio-tools > summary { padding: .75rem .85rem; color: #f2f2f2; font-size: .82rem; font-weight: 700; }
.portfolio-tools .portfolio-disclosure-body { display: grid; gap: .65rem; padding: 0 .85rem .85rem; }
.portfolio-dashboard .portfolio-tools .input-group { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.portfolio-dashboard .portfolio-tools .input-group input { grid-column: 1 / -1; }
.portfolio-detail-section { overflow: hidden; border: 1px solid var(--border-color, #e2e8f0); border-radius: 15px; background: var(--bg-white, #fff); }
.portfolio-detail-section > summary { padding: .9rem 1rem; color: var(--text-dark, #0f172a); font-size: .9rem; font-weight: 750; }
.portfolio-detail-section[open] > summary { border-bottom: 1px solid var(--border-color, #e2e8f0); }
.portfolio-detail-section > .portfolio-recommendation,
.portfolio-detail-section > .history-section,
.portfolio-detail-section > .chart-section { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.portfolio-dashboard .chart-section { padding: 1rem; background: transparent; }
.portfolio-dashboard .chart-section h2,
.portfolio-dashboard .chart-current-value { color: var(--text-dark, #0f172a); }
.portfolio-dashboard .chart-time-filters { gap: .35rem; }
.portfolio-dashboard .time-filter { padding: .4rem .65rem; }
.portfolio-dashboard .chart-controls { margin: .55rem 0; }
.portfolio-dashboard .chart-controls .btn { padding: .55rem .75rem; }
[data-theme="dark"] .portfolio-detail-section { border-color: #303030; background: #141414; }
[data-theme="dark"] .portfolio-detail-section > summary { color: #f2f2f2; }
[data-theme="dark"] .portfolio-detail-section[open] > summary { border-bottom-color: #303030; }
[data-theme="dark"] .portfolio-detail-section > summary span { color: #aaa; }
[data-theme="dark"] .portfolio-dashboard .chart-section { background: transparent; }
[data-theme="dark"] .portfolio-dashboard .chart-section h2,
[data-theme="dark"] .portfolio-dashboard .chart-current-value { color: #f5f5f5; }

.portfolio-sport-breakdown { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(250px, 1.3fr); align-items: center; gap: 1.5rem; margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-light); }
.portfolio-sport-breakdown-heading h3 { margin: .25rem 0 .35rem; color: var(--text-dark); font-size: 1.15rem; }
.portfolio-sport-breakdown-heading p { margin: 0; color: var(--text-light); font-size: .9rem; }
.sport-breakdown-chart-container { position: relative; min-height: 250px; }
.sport-breakdown-chart-container canvas { display: block; width: 100% !important; max-height: 280px; }
.sport-breakdown-chart-container canvas.hidden { display: none; }
.sport-breakdown-chart-container .chart-placeholder { min-height: 200px; margin: 0; padding: 1rem; border-radius: 10px; background: var(--bg-white); }
[data-theme="dark"] .portfolio-sport-breakdown { border-color: #3a3a3a; background: #171717; }
[data-theme="dark"] .portfolio-sport-breakdown-heading h3 { color: #f5f5f5; }
@media (max-width: 680px) { .portfolio-sport-breakdown { grid-template-columns: 1fr; gap: .5rem; padding: 1rem; } .sport-breakdown-chart-container { min-height: 230px; } }

/* Beginner guide */
.beginner-hero .hero-content { max-width: 760px; }
.beginner-intro { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.beginner-note { display: flex; align-items: flex-start; gap: 1rem; max-width: 960px; margin: auto; padding: 1.25rem 1.5rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-white); color: var(--text-dark); }
.beginner-note p { margin: 0; line-height: 1.7; }
.beginner-note-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; border: 1px solid var(--border-color); border-radius: 50%; color: var(--text-dark); font-weight: 800; }
.beginner-steps { display: grid; gap: .85rem; max-width: 960px; margin: 1.5rem auto 0; }
.beginner-step { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.35rem; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-white); color: var(--text-dark); }
.beginner-step-number { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: 12px; background: var(--bg-light); color: var(--text-dark); font-size: .9rem; font-weight: 800; }
.beginner-step h3, .beginner-topic h3 { margin: 0 0 .4rem; color: var(--text-dark); font-size: 1.1rem; }
.beginner-step p { margin: 0 0 .7rem; color: var(--text-light); line-height: 1.7; }
.beginner-step p a { color: var(--text-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.beginner-step-link { color: var(--text-dark); font-size: .9rem; font-weight: 750; text-decoration: none; }
.beginner-step-link span { margin-left: .2rem; transition: margin .18s ease; }
.beginner-step-link:hover span { margin-left: .45rem; }
.beginner-topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.beginner-topic { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: start; gap: .8rem; min-height: 130px; padding: 1.2rem; border: 1px solid var(--border-color); border-radius: 15px; background: var(--bg-white); color: var(--text-dark); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.beginner-topic:hover { transform: translateY(-2px); border-color: var(--text-light); }
.beginner-topic > span:first-child { font-size: 1.5rem; }
.beginner-topic p { margin: 0; color: var(--text-light); font-size: .92rem; line-height: 1.55; }
.beginner-topic-arrow { color: var(--text-light); }
.beginner-glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .75rem; margin: 1.25rem 0 0; }
.beginner-glossary > div { padding: 1.1rem 1.2rem; border: 1px solid var(--border-color); border-radius: 13px; background: var(--bg-white); }
.beginner-glossary dt { margin-bottom: .3rem; color: var(--text-dark); font-weight: 800; }
.beginner-glossary dd { margin: 0; color: var(--text-light); line-height: 1.55; }
.beginner-caution { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-white); }
.beginner-caution h2 { margin: .3rem 0 .5rem; color: var(--text-dark); font-size: 1.35rem; }
.beginner-caution p { max-width: 760px; margin: 0; color: var(--text-light); line-height: 1.65; }
.beginner-caution .btn { flex: 0 0 auto; }
[data-theme="dark"] .beginner-note, [data-theme="dark"] .beginner-step, [data-theme="dark"] .beginner-topic, [data-theme="dark"] .beginner-glossary > div, [data-theme="dark"] .beginner-caution { border-color: #383838; background: #151515; }
[data-theme="dark"] .beginner-step-number { background: #242424; }
@media (max-width: 680px) { .beginner-step { grid-template-columns: 2.5rem 1fr; gap: .7rem; padding: 1rem; } .beginner-step-number { width: 2.3rem; height: 2.3rem; } .beginner-caution { align-items: flex-start; flex-direction: column; } .beginner-caution .btn { width: 100%; } }
[data-theme="dark"] .portfolio-tools { border-color: #3a3a3a; }
[data-theme="dark"] .portfolio-tools > summary { color: #f2f2f2; }

/* Consistent headshots for the player lists and boost cards. */
.otd-row .player-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-width: 1px; }
.otd-link-with-headshot { display: inline-flex; min-width: 0; align-items: center; gap: .6rem; }
.otd-link-with-headshot .player-avatar { border-color: var(--border-color, #d1d5db); }
.player-info { min-width: 0; }
.boost-name.has-player-headshot { display: flex; align-items: center; gap: .65rem; }
.boost-headshot { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--border-color, #d1d5db); border-radius: 50%; object-fit: cover; background: #e5e7eb; }
[data-theme="dark"] .otd-row .player-avatar,
[data-theme="dark"] .boost-headshot { border-color: #555; }

html[data-theme="dark"] body.portfolio-page section.portfolio-hero .hero-buttons > a.btn.btn-primary {
    border-color: #f2f2f2 !important;
    background-color: #f2f2f2 !important;
    color: #111 !important;
}
html[data-theme="dark"] body.portfolio-page .portfolio-account-panel button.btn-primary {
    border-color: #f2f2f2 !important;
    background-color: #f2f2f2 !important;
    color: #111 !important;
}
html[data-theme="dark"] section.portfolio-hero a.btn-primary {
    border-color: #f2f2f2 !important;
    background: #f2f2f2 !important;
    color: #111 !important;
}
.buy-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin: 1.5rem 0; }
.buy-list-tabs { display: inline-flex; gap: .35rem; padding: .3rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-light); }
.buy-list-tab { min-height: 42px; padding: .6rem 1rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-light); font: inherit; font-weight: 700; }
.buy-list-tab[aria-selected="true"] { background: var(--bg-white); color: var(--text-dark); box-shadow: var(--shadow); }
.buy-list-search { flex: 1 1 240px; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--border-color); border-radius: 10px; }
.buy-list-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: 1rem 0; color: var(--text-light); font-size: .9rem; }
.buy-list-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-white); box-shadow: var(--shadow); }
.buy-list-header, .buy-list-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(140px, 210px); align-items: center; gap: 1rem; }
.buy-list-header { padding: .85rem 1.1rem; background: #12382f; color: #effaf4; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.buy-list-row { min-height: 58px; padding: .7rem 1.1rem; border-top: 1px solid var(--border-color); }
.buy-list-row:nth-child(odd) { background: var(--bg-light); }
.buy-list-rank { color: var(--text-light); font-size: .86rem; font-variant-numeric: tabular-nums; }
.buy-list-player { color: var(--text-dark); font-weight: 650; }
.buy-list-earnings { color: var(--text-light); font-size: .9rem; text-align: right; }
.buy-list-note { display: block; margin-top: .12rem; color: #a33d32; font-size: .78rem; font-weight: 550; }
.buy-list-disclaimer { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-light); color: var(--text-light); font-size: .88rem; }
.buy-list-empty { padding: 2rem 1rem; color: var(--text-light); text-align: center; }
@media (max-width: 600px) { .buy-list-header, .buy-list-row { grid-template-columns: 42px minmax(0, 1fr) 105px; gap: .6rem; padding-right: .75rem; padding-left: .75rem; } .buy-list-header { font-size: .68rem; } .buy-list-earnings { font-size: .8rem; } }
