/* ==========================================================================
   RISKCOIN Stylesheet - Cleaned & Simplified Design System
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Clean Monochrome & Emerald Theme */
    --color-bg-dark: #070709;
    --color-bg-card: rgba(18, 18, 24, 0.4);
    --color-border: rgba(255, 255, 255, 0.08);
    
    --color-text-primary: #f3f4f6;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    
    --color-accent: #10b981; /* Emerald Green */
    --color-accent-rgb: 16, 185, 129;
    --color-accent-red: #ef4444;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* --- Base Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(7, 7, 9, 0.95);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

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

p.paragraph {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* --- Video Background (High Visibility & Crispness) --- */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Clean, non-blurry, high-visibility output */
    filter: brightness(0.75) contrast(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter overlay to show background video clearly, while keeping white text legible */
    background: radial-gradient(
        circle at center,
        rgba(7, 7, 9, 0.15) 0%,
        rgba(7, 7, 9, 0.45) 50%,
        rgba(7, 7, 9, 0.75) 100%
    );
    z-index: -1;
}

/* --- Layout Containers --- */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.section-title {
    font-size: 2.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 40%, #c8c8c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

.accent-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- Glassmorphic Card Patterns --- */
.glass-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 9, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(7, 7, 9, 0.85);
    padding: 0.25rem 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.3rem;
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.logo-highlight {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2.25rem;
}

.nav-item {
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #070709;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    background: #14b8a6; /* Simple, clean teal green hover, no rainbows */
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full-width {
    width: 100%;
}

.icon-arrow {
    transition: transform 0.2s ease;
}

.btn-primary:hover .icon-arrow {
    transform: translateY(2px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* --- Mobile Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: rgba(10, 10, 14, 0.98);
    border-left: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-item {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    z-index: 1;
}

.hero-container {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.animate-pulse {
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #ffffff;
}

.glow-text {
    /* Clean white-to-green gradient instead of rainbow */
    background: linear-gradient(to right, #ffffff, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
}

.hero-ca-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    gap: 0.75rem;
    font-size: 0.85rem;
    margin-top: 1.75rem;
    max-width: 95%;
    transition: var(--transition-fast);
}

.hero-ca-wrap:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.ca-label {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
}

.ca-address {
    font-family: monospace;
    color: var(--color-text-secondary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 280px;
}

.btn-copy-ca {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.btn-copy-ca:hover {
    color: var(--color-accent);
}

.btn-copy-ca:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
}

.mouse-icon {
    width: 18px;
    height: 28px;
    border: 1.5px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-icon .wheel {
    width: 3px;
    height: 6px;
    background-color: var(--color-text-muted);
    border-radius: 1px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { top: 5px; opacity: 1; }
    50% { top: 12px; opacity: 0.2; }
    100% { top: 5px; opacity: 1; }
}

.scroll-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.stat-change {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-accent);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-accent-red);
}

.stat-value {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-accent {
    color: var(--color-accent);
}

/* --- Risk Simulator --- */
.simulator-wrapper {
    padding: 2.5rem;
}

.sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.sim-panel-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.control-group {
    margin-bottom: 1.75rem;
}

.control-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
}

.input-wrapper:focus-within {
    border-color: var(--color-accent);
}

.input-prefix, .input-suffix {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-muted);
}

.input-field {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    margin: 0 0.5rem;
}

.amount-presets {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.btn-preset {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-preset:hover, .btn-preset.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--color-accent);
    color: #ffffff;
}

.risk-tiers-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.risk-tier-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.risk-tier-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: transparent;
    transition: var(--transition-fast);
}

.risk-tier-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.risk-tier-card.active {
    background: rgba(255, 255, 255, 0.04);
}

/* Cleaner accent colors: No blue/purple, just shades of white, gray, green */
.risk-tier-card.active[data-tier="conservative"] { border-color: #e5e7eb; }
.risk-tier-card.active[data-tier="conservative"]::before { background-color: #e5e7eb; }

.risk-tier-card.active[data-tier="adrenaline"] { border-color: #6ee7b7; }
.risk-tier-card.active[data-tier="adrenaline"]::before { background-color: #6ee7b7; }

.risk-tier-card.active[data-tier="degenerate"] { border-color: var(--color-accent); }
.risk-tier-card.active[data-tier="degenerate"]::before { background-color: var(--color-accent); }

.tier-badge-wrap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.15rem;
}

.tier-level {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--color-text-muted);
}

.tier-name {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.tier-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Results Panel */
.sim-results {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.terminal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 9, 0.94);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.terminal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(16, 185, 129, 0.1);
    border-top: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.75rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.result-outcome-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.result-outcome-card.profit {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.result-outcome-card.loss {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.02);
}

.outcome-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.outcome-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.15rem;
}

.outcome-delta {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.outcome-delta.up { color: var(--color-accent); }
.outcome-delta.down { color: var(--color-accent-red); }

.sim-visual-meter {
    margin-bottom: 1.5rem;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
}

.meter-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    /* Simplified gradients, no rainbows */
    background: linear-gradient(90deg, #6ee7b7, var(--color-accent), var(--color-accent-red));
    width: 0%;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-narrative-box {
    background: rgba(0, 0, 0, 0.15);
    border-left: 2px solid var(--color-accent);
    padding: 0.85rem 1.1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.narrative-label {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.narrative-content {
    color: var(--color-text-secondary);
}

.mock-graph-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.graph-svg {
    width: 100%;
    height: 90px;
    overflow: visible;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-family: monospace;
    margin-top: 0.35rem;
}

/* --- Virality Hub Section --- */
.virality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.virality-card {
    text-decoration: none;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-radius: 12px;
}

.virality-card:hover {
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-3px);
    background: rgba(18, 18, 24, 0.55);
}

.card-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #ffffff;
}

.card-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.card-action-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
    background: rgba(4, 4, 6, 0.95);
    border-top: 1px solid var(--color-border);
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    max-width: 250px;
}

.footer-links-group {
    display: flex;
    gap: 3rem;
    justify-content: flex-end;
}

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

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* --- Modal Backdrop --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
    transform: translateY(15px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* --- Disclaimer modal --- */
.disclaimer-content {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.disclaimer-content p {
    margin-bottom: 0.5rem;
}

.disclaimer-content p:last-child {
    margin-bottom: 0;
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.1rem;
    color: var(--color-accent);
}

.toast-message {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .sim-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-container {
        padding: 3.5rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .simulator-wrapper {
        padding: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links-group {
        justify-content: flex-start;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .stat-value {
        font-size: 1.65rem;
    }
}

/* --- Live Chart Section --- */
.chart-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.chart-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .chart-wrapper {
        height: 450px;
    }
}

/* --- Mock Wallet Connection --- */
.nav-actions {
    display: flex;
    align-items: center;
}

.btn-connect {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-connect:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-connect.connected {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.btn-connect.connected:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-accent);
}

.btn-connect-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6b7280; /* Gray when disconnected */
    transition: var(--transition-fast);
}

.btn-connect.connected .btn-connect-dot {
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    animation: pulse 1.5s infinite ease-in-out;
}

.wallet-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-wallet-option {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #ffffff;
    width: 100%;
    font-family: var(--font-body);
}

.btn-wallet-option:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.btn-wallet-option.connecting {
    border-color: var(--color-accent);
    background: rgba(16, 185, 129, 0.05);
}

.wallet-icon {
    font-size: 1.25rem;
    margin-right: 0.85rem;
}

.wallet-name {
    font-weight: 600;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: left;
}

.wallet-status {
    font-size: 0.75rem;
    color: var(--color-accent);
    background: rgba(16, 185, 129, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 500;
}

/* --- Leverage Slider --- */
.leverage-slider-container {
    margin: 0.75rem 0;
}

.leverage-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: background 0.3s;
}

.leverage-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    transition: transform 0.15s, background-color 0.15s;
}

.leverage-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: var(--color-accent);
}

.leverage-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    transition: transform 0.15s, background-color 0.15s;
}

.leverage-slider::-moz-range-thumb:hover {
    transform: scale(1.25);
    background: var(--color-accent);
}

.leverage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

.leverage-warning-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent-red);
}

.warning-blink {
    animation: flashRed 1s infinite alternate;
}

@keyframes flashRed {
    0% { opacity: 0.5; }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
}

/* --- Live Speculation Feed --- */
.feed-wrapper {
    padding: 0;
    overflow: hidden;
}

.feed-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
    padding: 0.95rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.feed-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
    align-items: center;
    animation: slideInTx 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes slideInTx {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        background: rgba(16, 185, 129, 0.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background: transparent;
    }
}

.col-wallet {
    font-family: monospace;
    color: var(--color-text-secondary);
}

.col-action {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feed-buy {
    color: var(--color-accent);
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
}

.feed-sell {
    color: var(--color-accent-red);
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
}

.feed-liq {
    color: #f59e0b; /* Amber/Orange for Liquidations */
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.2);
    font-weight: 800;
}

.col-amount {
    font-weight: 600;
    color: var(--color-text-primary);
}

.col-leverage {
    font-weight: 700;
    color: var(--color-text-secondary);
}

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

@media (max-width: 768px) {
    .nav-actions {
        display: none; /* In drawer on mobile */
    }
    .feed-header, .feed-item {
        grid-template-columns: 2fr 1fr 1.5fr 1fr;
    }
    .col-time {
        display: none;
    }
}
