:root {
    --bg-color: #09090b; /* zinc-950 */
    --text-color: #e0e0e0;
    --accent-color: #00ff88; /* Neon Green */
    --secondary-accent: #00d9ff; /* Neon Blue */
    --surface-color: #121212;
    --border-color: #333;
    --sidebar-width: 260px;
    --ticker-height: 45px;
    --font-main: "Inter", sans-serif;
    --font-heading: "Orbitron", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    /* Removed overflow-x: hidden to allow proper mobile scrolling */
}

/* Futuristic Headings Typography */
h1, h2, h3, h4, h5, h6,
.hero-news-headline,
.admin-title,
.predictions-title,
.news-title,
.modal-title,
.sidebar-title {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography elements */
a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

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

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

.btn-neon {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-neon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-neon:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-neon:hover::before {
    width: 100%;
}

/* Sidebar Navigation */
.navbar {
    position: fixed;
    left: 0;
    top: var(--ticker-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--ticker-height));
    background-color: var(--bg-color);
    border-right: 2px solid var(--accent-color);
    box-shadow: 4px 0 20px rgba(0, 255, 136, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* Custom scrollbar for sidebar */
.navbar::-webkit-scrollbar {
    width: 6px;
}

.navbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.navbar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

.navbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Sidebar wrapper divs - Desktop */
.sidebar-top {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 0 20px;
}

.sidebar-bottom {
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    padding: 10px 0;
}

/* Custom scrollbar for sidebar-top */
.sidebar-top::-webkit-scrollbar {
    width: 6px;
}

.sidebar-top::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-top::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

.sidebar-top::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-color);
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.logo .accent {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* User Profile Info */
#user-profile-info {
    padding: 0 25px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 20px;
}

#user-name-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Nav Menu - Main Views */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: rgba(224, 224, 224, 0.7);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item span {
    font-size: 1.15rem;
    font-weight: 400;
}

.nav-item:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5), 0 0 15px rgba(0, 255, 136, 0.3);
    border-left-color: var(--accent-color);
    background: transparent;
}

.nav-item.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6), 0 0 20px rgba(0, 255, 136, 0.4);
    border-left-color: var(--accent-color);
    background: transparent;
}

/* Category Filters */
.nav-categories {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: auto;
}

.category-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(224, 224, 224, 0.4);
    padding: 0 15px 10px;
}

.category-item {
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(224, 224, 224, 0.6);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-item:hover,
.category-item.active {
    color: var(--accent-color);
    background: rgba(0, 255, 136, 0.05);
    border-left-color: var(--accent-color);
}

/* Auth Buttons in Sidebar */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.nav-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.lang-switcher .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.lang-switcher .btn.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.hamburger {
    display: none; /* Hidden on desktop, shown via media query */
    cursor: pointer;
    position: fixed;
    top: calc(var(--ticker-height) + 8px);
    left: 12px;
    z-index: 2001; /* Above sidebar (2000) */
    padding: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    min-height: 44px; /* Touch target */
    align-items: center;
    justify-content: center;
}

.hamburger:hover,
.hamburger:active {
    background: rgba(0, 255, 136, 0.2);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Main Content Container */
#main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--ticker-height);
    min-height: calc(100vh - var(--ticker-height));
    background-color: var(--bg-color);
    position: relative;
}

/* Smooth scrolling for main content */
#main-content {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--ticker-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
}

/* Hero News Container */
.hero-news-container {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Dark overlay for readability */
.hero-news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 5, 5, 0.85) 0%,
        rgba(5, 5, 5, 0.7) 50%,
        rgba(5, 5, 5, 0.85) 100%
    );
    z-index: 1;
}

/* News content wrapper - Glassmorphism Card */
.hero-news-content {
    position: relative;
    z-index: 2;
    padding: 30px 40px;
    text-align: left;
    max-width: 800px;
    width: fit-content;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-left: 3px solid #00ff88;
    margin: 0;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

/* News Excerpt */
.hero-news-excerpt {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 650px;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

/* Breaking badge */
.breaking-badge {
    display: inline-block;
    background: var(--secondary-accent);
    color: #000;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    animation: pulse 2.5s infinite;
    margin-bottom: 25px;
}

/* Hero news headline */
.hero-news-headline {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-color);
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    margin: 0;
    max-width: 700px;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CTA Button positioning */
.hero-news-container .hero-cta {
    position: absolute;
    bottom: 50px;
    z-index: 3;
}

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

/* Responsive adjustments */
@media (max-width: 960px) {
    .hero-news-container {
        height: 50vh;
        min-height: 400px;
        align-items: flex-end; /* Ensure bottom alignment on tablet */
        justify-content: flex-start;
        padding: 30px;
    }
    
    .hero-news-headline {
        font-size: 1.75rem; /* Scaled down for tablet/small laptop */
    }
    
    .hero-news-excerpt {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-news-content {
        padding: 25px 30px;
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .hero-news-container {
        height: 45vh;
        min-height: 350px;
        padding: 20px;
    }
    
    .hero-news-headline {
        font-size: 1.4rem; /* Mobile optimized size */
        line-height: 1.35;
    }
    
    .hero-news-excerpt {
        font-size: 0.9rem;
        margin-top: 10px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limit excerpt lines on mobile */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-news-content {
        padding: 20px 20px;
        width: 100%;
        max-width: 100%;
        border-left-width: 2px;
        border-radius: 0 6px 6px 0;
        backdrop-filter: blur(8px); /* Reduce blur for performance on mobile */
    }
    
    .breaking-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
        margin-bottom: 15px;
    }
    
    .hero-news-container .hero-cta {
        bottom: 30px;
    }
}

/* Background Grid Effect */
.hero-background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Ticker Bar */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-bottom: 2px solid #00ff88;
    height: var(--ticker-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500; /* Lower than sidebar so sidebar can overlay on mobile */
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 140s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: #00ff88;
    font-family: var(--font-mono);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
    display: flex;
    align-items: center;
}

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

.admin-section {
    min-height: calc(100vh - var(--ticker-height));
    padding: 60px 40px;
    background-color: var(--bg-color);
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    color: var(--accent-color);
}

.panel-subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--text-color);
}

.admin-panel {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    padding: 40px;
    border-radius: 0;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.admin-form label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.admin-form input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.admin-form input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.admin-form input[type="file"]::file-selector-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--accent-color);
}

.admin-form textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300ff88' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.admin-form button[type="submit"] {
    margin-top: 10px;
    width: 100%;
}

/* Predictions Feed Section */
.predictions-section {
    min-height: calc(100vh - var(--ticker-height));
    padding: 60px 40px;
    background-color: var(--bg-color);
}

.predictions-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-color);
}

.predictions-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .predictions-feed {
        grid-template-columns: 1fr;
    }
}

.prediction-card {
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 200px;
}

.prediction-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15), 0 0 40px rgba(0, 255, 136, 0.08);
}

/* Card Left Side - Image & Asset Info */
.card-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-color);
    position: relative;
}

.card-left .prediction-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border: none;
    margin: 0;
}

.card-left .asset-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Card Right Side - Content */
.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 70px 20px 24px;
    position: relative;
}

.prediction-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

.prediction-asset {
    font-size: 1.3rem;
    font-weight: 400;
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 0;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    background: none;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Trend Indicator Arrow */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
    animation: glowPulse 2s ease-in-out infinite;
}

.trend-indicator.up {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.trend-indicator.down {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.prediction-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 0;
    border: none;
}

.prediction-card:hover .prediction-image {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.prediction-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(224, 224, 224, 0.85);
    margin-bottom: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 120px;
    padding-right: 8px;
}

.prediction-text::-webkit-scrollbar {
    width: 4px;
}

.prediction-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.prediction-text::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 2px;
}

.prediction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    border-top: none;
    gap: 16px;
    margin-top: auto;
}

/* AI Intelligence Metrics */
.ai-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 4px;
}

.ai-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai-metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-metric-value {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-color);
}

/* Confidence Meter */
.confidence-meter {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00ff88 70%, #00ffea 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fillBar 1.2s ease-out;
}

@keyframes fillBar {
    from { width: 0 !important; }
}

.confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

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

/* Live Price Display */
.live-price-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 3px;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.price-label {
    font-size: 0.7rem;
    color: rgba(224, 224, 224, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.prediction-tier {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 255, 136, 0.7);
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 3px;
}

.prediction-timestamp {
    font-size: 0.75rem;
    color: rgba(224, 224, 224, 0.4);
    font-family: var(--font-mono);
}

.no-predictions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
    grid-column: 1 / -1;
    width: 100%;
}

/* =====================
   NEWS SECTION
   ===================== */
.news-section {
    min-height: calc(100vh - var(--ticker-height));
    padding: 60px 40px;
    background-color: var(--bg-color);
}

.news-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-color);
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1), 0 0 40px rgba(0, 255, 136, 0.05);
}

.news-card h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: #00ffea;
}

.news-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.news-card .news-date {
    color: #888;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card img {
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.news-card:hover img {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .news-section {
        padding: 40px 20px;
    }
    
    .news-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .news-card {
        padding: 16px;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
    }
    
    .news-card div[style*="display: flex"] {
        display: block !important;
    }
    
    .news-card div[style*="flex-shrink: 0"] {
        margin-bottom: 15px !important;
    }
    
    .news-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px;
        object-fit: cover;
    }
}

/* Prediction Action Buttons */
.prediction-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.btn-icon {
    background-color: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-edit:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.btn-delete:hover {
    background-color: #ff4444;
    border-color: #ff4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--accent-color);
}

/* HTML5 Dialog Styling */
.modal-dialog {
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
    border-radius: 0;
    padding: 0;
    max-width: 600px;
    width: 90%;
}

.modal-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-dialog .modal-content {
    background-color: var(--surface-color);
    padding: 40px;
    position: relative;
}

/* =====================
   ADMIN SECTION
   ===================== */
.admin-section {
    padding: 80px 0;
    border-top: 1px solid #1a1a1a;
}

.admin-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.admin-form {
    max-width: 640px;
}

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

.form-group label {
    display: block;
    color: #888;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00ff88;
}

.form-group input[type="file"] {
    padding: 10px;
    color: #888;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* =====================
   AUTH MODAL
   ===================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #111;
    border: 1px solid #2a2a2a;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: #00ff88;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #00ff88;
    border-bottom-color: #00ff88;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.auth-form.active {
    display: flex;
}

.auth-message {
    font-size: 0.9rem;
    min-height: 20px;
    text-align: center;
}

.auth-message.success { color: #00ff88; }
.auth-message.error   { color: #ff4444; }

/* Tier select styling */
.tier-select-group {
    margin-top: 8px;
}

/* =====================
   RESPONSIVE
   ===================== */

/* Mobile menu backdrop - dims content when sidebar is open */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: var(--ticker-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--ticker-height));
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999; /* Just below sidebar (2000) */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 960px) {
    :root {
        --ticker-height: 35px; /* Smaller ticker on mobile */
        --sidebar-width: 260px;
    }

    /* Hamburger visible only on mobile */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        min-height: 44px; /* Touch target */
    }

    /* Sidebar hidden by default, slides in from left - FLEX LAYOUT */
    .navbar {
        position: fixed;
        left: -260px; /* Hidden off-screen */
        width: 260px;
        top: var(--ticker-height);
        height: calc(100dvh - var(--ticker-height)); /* Dynamic viewport height */
        transition: left 0.3s ease;
        border-right: 2px solid var(--accent-color);
        z-index: 2000; /* Above everything including ticker */
        padding: 0;
        background-color: var(--bg-color);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Nav at top, buttons at bottom */
    }

    .navbar.active {
        left: 0;
    }

    /* Scrollable top section of sidebar */
    .sidebar-top {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 15px 0;
    }

    /* Fixed bottom section for auth buttons */
    .sidebar-bottom {
        flex-shrink: 0;
        padding: 15px 0;
        border-top: 1px solid rgba(0, 255, 136, 0.2);
        background-color: var(--bg-color);
    }

    /* Remove left margin on mobile */
    #main-content {
        margin-left: 0;
    }

    /* Compact navigation on mobile */
    .logo {
        font-size: 1.2rem;
        padding: 15px 20px;
        margin-bottom: 10px;
    }

    .nav-menu {
        margin-bottom: 15px;
    }

    .nav-item {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .nav-categories {
        padding: 0 20px 15px;
    }

    .category-label {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .category-item {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .lang-switcher {
        padding: 12px 20px !important;
        margin-bottom: 8px !important;
    }

    .lang-switcher button {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        min-height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-buttons {
        padding: 0 20px 15px;
    }

    .nav-buttons .btn {
        padding: 12px 18px;
        font-size: 0.85rem;
        margin-bottom: 10px;
        min-height: 44px; /* Touch target for mobile */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-item {
        min-height: 44px; /* Touch target for mobile */
        display: flex;
        align-items: center;
        padding: 12px 20px;
    }

    .category-item {
        min-height: 44px; /* Touch target for mobile */
        display: flex;
        align-items: center;
        padding: 10px 15px;
    }

    /* All buttons need 44px min height for touch */
    .btn {
        min-height: 44px;
    }

    /* User profile compact on mobile */
    #user-profile-info {
        padding: 10px 20px;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Ensure text doesn't overflow */
    .nav-item span,
    .category-item,
    .btn {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Stack prediction cards vertically on tablet */
    .prediction-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-left {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .card-left .prediction-image {
        height: 180px;
    }

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-news-headline {
        font-size: 2rem; /* Better readability on tablets */
    }

    .hero-news-content {
        padding: 30px 20px;
    }

    .predictions-section,
    .admin-section {
        padding: 40px 20px;
    }

    /* Modal touch-friendly on mobile */
    .modal-content {
        margin: 15px;
        padding: 30px 20px;
        max-width: 100%;
    }

    .tab-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    :root {
        --ticker-height: 30px; /* Even smaller on phones */
    }

    .container {
        padding: 0 15px;
    }

    /* Smaller ticker text on mobile */
    .ticker-item {
        font-size: 0.75rem;
        padding: 0 15px;
    }

    .ticker-wrap {
        height: 30px;
    }

    /* Sidebar for small phones */
    .navbar {
        width: 85vw; /* Use viewport width for better fit */
        max-width: 280px;
        left: -85vw;
    }

    .navbar.active {
        left: 0;
    }

    .logo {
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    .nav-item {
        padding: 12px 15px;
        font-size: 0.85rem;
        min-height: 44px; /* Touch target */
    }

    .nav-categories,
    .nav-buttons,
    .lang-switcher {
        padding-left: 15px;
        padding-right: 15px;
    }

    .category-item {
        font-size: 0.8rem;
        min-height: 44px; /* Touch target */
    }

    #user-profile-info {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    /* Hero headline for phones: 1.5-2rem as requested */
    .hero-news-headline {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .breaking-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }

    .hero-news-container .hero-cta {
        bottom: 20px;
    }

    .btn-large {
        width: 100%;
        display: block;
        min-height: 44px; /* Touch target */
    }

    /* Compact modal on mobile */
    .modal-content {
        margin: 10px;
        padding: 20px 15px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .news-section,
    .predictions-section,
    .admin-section {
        padding: 30px 15px;
    }

    .news-title,
    .predictions-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    /* Hero adjustments for small screens */
    .hero {
        padding: 20px 15px;
    }

    .hero-news-container {
        min-height: 300px;
        height: 40vh;
    }

    .hero-news-content {
        padding: 20px 15px;
    }

    /* Prediction cards full width */
    .predictions-feed {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prediction-card {
        flex-direction: column;
    }

    .card-left {
        width: 100%;
        flex: 0 0 auto;
    }

    .card-right {
        padding: 16px;
    }
}

/* Lock icon styling for premium categories */
.lock-icon {
    font-size: 0.75rem;
    margin-right: 6px;
    opacity: 0.7;
}

.category-item:hover .lock-icon {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.tab-btn.active {
    opacity: 1;
    color: var(--accent-color);
}

.tab-btn:hover {
    opacity: 0.8;
}

/* Auth Form Styles */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group input::placeholder {
    color: #555;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.auth-message {
    padding: 0;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.auth-message.error {
    color: #ff4d4d;
}

.auth-message.success {
    color: var(--accent-color);
}

#logout-btn {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

#logout-btn:hover {
    background-color: #ff4d4d;
    color: var(--bg-color);
}


/* ============================================================
   PREDICTION & NEWS DETAILS — PAGE-SWAP SECTION
   ============================================================ */

#prediction-details,
#news-details {
    display: none;
    min-height: calc(100vh - var(--ticker-height));
    background: var(--bg-color);
    padding: 60px 40px;
    opacity: 0;
}

#prediction-details.active,
#news-details.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: detailsFadeIn 0.4s ease forwards;
}

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

/* Outer wrapper */
.details-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
}

/* Back button row */
.details-back-row {
    padding: 12px 0 16px;
    flex-shrink: 0;
}

/* Vertical card: image on top, text below */
.details-grid {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid rgba(0, 255, 136, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Top — image pane */
.details-left {
    width: 100%;
    height: clamp(240px, 52vh, 540px);
    overflow: hidden;
    background: #07070a;
    position: relative;
    flex-shrink: 0;
}

.details-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.details-left:hover img {
    transform: scale(1.04);
    filter: brightness(1.05) saturate(1.15);
}

/* Neon inset glow on hover */
.details-left::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 0 rgba(0, 255, 136, 0);
    transition: box-shadow 0.35s ease;
    pointer-events: none;
}

.details-left:hover::after {
    box-shadow: inset 0 0 40px rgba(0, 255, 136, 0.1);
}

/* No-image placeholder */
.details-left.no-image {
    height: 80px;
    background: repeating-linear-gradient(
        -45deg,
        #0a0a0a,
        #0a0a0a 10px,
        #0d0d10 10px,
        #0d0d10 20px
    );
}

.details-left.no-image::before {
    content: 'PHI';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: rgba(0, 255, 136, 0.08);
    pointer-events: none;
}

/* Bottom — text pane */
.details-right {
    display: flex;
    flex-direction: column;
    padding: 36px 44px 44px;
}

/* Lightbox overlay */
.img-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lightboxIn 0.2s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.img-lightbox img {
    max-width: 93vw;
    max-height: 93vh;
    object-fit: contain;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

/* Back to Feed button */
.back-to-feed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent-color);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 9px 20px;
    cursor: pointer;
    margin-bottom: 36px;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.back-to-feed-btn:hover {
    background: rgba(0, 255, 136, 0.07);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35), 0 0 6px rgba(0, 255, 136, 0.15);
    color: #fff;
    border-color: var(--accent-color);
}

/* Neon category tag */
.details-category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 136, 0.4);
    padding: 4px 14px;
    margin-bottom: 22px;
    background: rgba(0, 255, 136, 0.06);
}

/* Asset headline */
.details-asset {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    word-break: break-word;
}

/* Live price indicator */
.live-price-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.04);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.live-price-indicator.live {
    border-color: rgba(0, 255, 136, 0.45);
    color: var(--accent-color);
}

.live-price-indicator.stale {
    border-color: rgba(255, 200, 0, 0.35);
    color: #ffc800;
}

.live-price-indicator.error {
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.live-price-indicator.live .live-dot {
    animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.7); }
}

.live-price-indicator.loading .live-dot {
    animation: pulseDot 0.8s ease-in-out infinite;
    background: #555;
}

.live-note {
    font-size: 0.68rem;
    opacity: 0.6;
    margin-left: 4px;
}

/* Meta row: tier badge + date */
.details-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.details-tier-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.15);
    color: #aaa;
    background: rgba(255,255,255,0.04);
}

.details-tier-badge.tier-gold {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.06);
}

.details-tier-badge.tier-silver {
    color: #c0c0c0;
    border-color: rgba(192, 192, 192, 0.35);
    background: rgba(192, 192, 192, 0.06);
}

.details-tier-badge.tier-bronze {
    color: #cd7f32;
    border-color: rgba(205, 127, 50, 0.35);
    background: rgba(205, 127, 50, 0.06);
}

.details-date {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: #555;
    letter-spacing: 0.5px;
}

/* Accent divider */
.details-divider {
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin-bottom: 32px;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.55);
}

/* Prediction body text */
.details-prediction-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #c8c8c8;
    letter-spacing: 0.2px;
    white-space: pre-wrap;
    max-height: 28vh;
    overflow-y: auto;
}

/* Clickable cards */
.prediction-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prediction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .details-left {
        height: clamp(180px, 40vw, 320px);
    }

    .details-right {
        padding: 24px 20px 32px;
    }

    .details-asset {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
    }
}

@media (max-width: 480px) {
    .details-right {
        padding: 18px 16px 26px;
    }

    .details-asset {
        font-size: 1.3rem;
    }
}


/* Watchlist Star Button on prediction cards */
.watchlist-star-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(9, 9, 11, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(224, 224, 224, 0.5);
    width: 34px;
    height: 34px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    padding: 0;
}

.watchlist-star-btn:hover {
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4), 0 0 4px rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.08);
}

.watchlist-star-btn.in-watchlist {
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
    background: rgba(255, 215, 0, 0.06);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
}

.watchlist-star-btn.in-watchlist:hover {
    border-color: rgba(255, 68, 68, 0.5);
    color: #ff4444;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.06);
}

/* =====================
   WATCHLIST SIDEBAR
   ===================== */
.watchlist-section {
    padding: 20px 15px 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    margin-top: 10px;
}

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

.watchlist-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 255, 136, 0.7);
}

.watchlist-add-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: var(--accent-color);
    width: 22px;
    height: 22px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.watchlist-add-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.watchlist-add-row {
    display: none;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
}

.watchlist-input {
    flex: 1;
    padding: 6px 10px;
    background: var(--bg-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    outline: none;
    text-transform: uppercase;
    min-width: 0;
    transition: border-color 0.2s ease;
}

.watchlist-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.watchlist-confirm-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 6px 10px;
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.watchlist-confirm-btn:hover {
    background: transparent;
    color: var(--accent-color);
    outline: 1px solid var(--accent-color);
}

.watchlist-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
}

.watchlist-items::-webkit-scrollbar {
    width: 4px;
}

.watchlist-items::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 2px;
}

.watchlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.watchlist-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.07);
}

.watchlist-symbol {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.watchlist-nav-link {
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.watchlist-nav-link:hover {
    color: #fff;
    text-decoration-color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.watchlist-remove-btn {
    background: none;
    border: none;
    color: rgba(224, 224, 224, 0.35);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.watchlist-remove-btn:hover {
    color: #ff4444;
}

.watchlist-login-msg,
.watchlist-empty,
.watchlist-loading {
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: rgba(224, 224, 224, 0.35);
    padding: 8px 0;
    font-style: italic;
}

/* Pulse animation for breaking badge */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 217, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0); }
}

/* =====================
   NEWS IMAGE STYLES
   ===================== */
/* Ensure news images look good without cropping */
.hero-news-container {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

/* News feed thumbnail images */
.news-image,
.news-thumbnail {
    object-fit: cover;
    object-position: center;
}
