/*
Theme Name: Moodbot
Theme URI: https://moodbot.info
Author: Sudipta
Description: A high-performance, dark-themed SaaS template for premium financial video predictions.
Version: 1.0
Text Domain: fintech-saas
*/

/* ==========================================================================
   GLOBAL DESIGN VARIABLES & RESET (Dark Financial Theme Architecture)
   ========================================================================== */
:root {
    --bg-main: #080d1a;
    --bg-surface: #111a2e;
    --bg-surface-light: #1a2642;
    --accent-green: #00E676;
    --accent-green-hover: #00c853;
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION FRAMEWORK
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(8, 13, 26, 0.85); /* Semitransparent Obsidian base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 24px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* BRANDING & QUANT LOGO SETUP */
.site-branding .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.logo-suffix {
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0, 230, 118, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Neon Live Data Tracking Animation */
.brand-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* INTERMEDIATE DYNAMIC HORIZONTAL MENU STRIP */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 768px) {
    .main-navigation { display: none; } /* Standard defensive break point for custom mobile menu adaptation */
}

.main-navigation ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-navigation ul li a:hover {
    color: var(--text-primary);
}

/* AUTHENTICATION ACTION BUTTON MATRIX */
.header-auth {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.btn-subscribe, .btn-account, .cta-button {
    background-color: var(--accent-green);
    color: #040814 !important; /* Visual optimization for data contrast readability */
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-subscribe:hover, .btn-account:hover, .cta-button:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-1px);
}

.btn-logout {
    color: #ff5252;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255, 82, 82, 0.2);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 82, 82, 0.1);
    border-color: #ff5252;
}

/* ==========================================================================
   HERO SPLIT LAYOUT SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 100px 24px;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 45%),
                linear-gradient(180deg, #090f1f 0%, var(--bg-main) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 968px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
    .hero-headline { font-size: 2.5rem; }
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 540px;
}
@media (max-width: 968px) {
    .hero-subtext { margin: 0 auto 40px auto; }
}

/* ==========================================================================
   DYNAMIC FORM & DROPDOWN UI INTERACTION FIXES
   ========================================================================== */
.hero-dropdown-wrapper {
    position: relative;
    z-index: 99; /* Fixes tracking index layout collisions */
    max-width: 480px;
}
@media (max-width: 968px) {
    .hero-dropdown-wrapper { margin: 0 auto; }
}

.dynamic-ticker-form select {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 48px 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary) !important;
    background-color: var(--bg-surface) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dynamic-ticker-form select:focus,
.dynamic-ticker-form select:hover {
    border-color: var(--accent-green) !important;
    outline: none;
    background-color: var(--bg-surface-light) !important;
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15);
}

.dynamic-ticker-form {
    position: relative;
}
.dynamic-ticker-form::after {
    content: '▼';
    font-size: 11px;
    color: var(--text-muted);
    position: absolute;
    right: 20px;
    top: 22px;
    pointer-events: none;
}

.dynamic-ticker-form optgroup {
    background: var(--bg-surface);
    color: var(--accent-green);
    font-weight: 700;
    padding: 8px;
}
.dynamic-ticker-form option {
    background: var(--bg-surface-light);
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px;
}

/* ==========================================================================
   SAMPLE FORECAST CHART WIDGET (Right Panel Hero Showcase)
   ========================================================================== */
.sample-chart-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.widget-asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon {
    font-size: 24px;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.widget-ticker {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-label {
    font-size: 12px;
    color: var(--text-muted);
}

.badge-live {
    font-size: 12px;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--accent-green);
}

.widget-chart-placeholder {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, rgba(26,38,66,0.2) 0%, transparent 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.forecast-svg {
    width: 100%;
    height: 100%;
}

.widget-footer-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.metric-block .m-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metric-block .m-value {
    font-size: 16px;
    font-weight: 700;
}

.metric-block .m-value.positive {
    color: var(--accent-green);
}

/* ==========================================================================
   HOW IT WORKS: 4-COLUMN CARDS STRIP
   ========================================================================== */
.how-it-works {
    padding: 90px 24px;
    background: var(--bg-main);
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.3);
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 16px;
    opacity: 0.8;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ==========================================================================
   ACTIVE MODEL STREAM / CARDS MATRIX PORT
   ========================================================================== */
.recent-predictions {
    padding: 90px 24px;
    background: linear-gradient(180deg, var(--bg-main) 0%, #060912 100%);
    border-top: 1px solid var(--border-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.video-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.thumbnail-wrapper {
    position: relative;
    background: #0f1626;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.thumbnail-placeholder {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.locked-icon {
    font-size: 13px;
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 500;
}

.no-models {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

/* ==========================================================================
   COMPLIANCE & LEGAL DISCLOSURE FOOTER
   ========================================================================== */
.site-footer {
    background-color: #050912;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 24px 30px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Shielded Legal Card Presentation */
.legal-disclaimer {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--border-color);
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

.legal-disclaimer h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
}

.legal-disclaimer p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

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

.legal-disclaimer strong {
    color: #e2e8f0;
}

/* LOWER FOOTER SPLIT-ROW MATRIX */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    gap: 20px;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-credits p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    margin: 0;
}



/* ==========================================================================
   CROSS-BROWSER DROPDOWN VISIBILITY FIXES
   ========================================================================== */
.dynamic-ticker-form select {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 48px 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff !important;
    background-color: #111a2e !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Ensure background color and text color contrast correctly on desktop drop layouts */
.dynamic-ticker-form select option,
.dynamic-ticker-form select optgroup {
    background-color: #111a2e !important;
    color: #ffffff !important;
}

/* Fallback override for operating systems forcing light system popups */
@media (prefers-color-scheme: light) {
    .dynamic-ticker-form select option {
        color: #080d1a;
        background-color: #ffffff;
    }
}






/* Funnel Layout Wrapper */
.ob-funnel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
    background: radial-gradient(circle at top left, rgba(0, 230, 118, 0.05), transparent 50%);
}
.ob-box {
    width: 100%;
    max-width: 720px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.ob-box h2 { color: var(--text-primary); font-size: 26px; margin-top: 0; margin-bottom: 8px; }
.ob-box p.subtitle { color: var(--text-muted); font-size: 15px; margin-top: 0; margin-bottom: 35px; }

.ob-step { margin-bottom: 35px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; }
.ob-step h3 { color: var(--text-primary); font-size: 18px; margin-top: 0; margin-bottom: 15px; }

/* Scent-Trail Connected Target Header */
.scent-trail-banner {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid var(--accent-green);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.scent-trail-banner span.ticker-txt {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}
.scent-trail-banner .ticker-badge {
    background: var(--accent-green);
    color: #040814;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Token Filter Array Chips Layout */
.asset-chips-layout { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.chip-hide-input { display: none !important; }
.chip-visual-label {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.chip-visual-label:hover { border-color: var(--text-muted); color: var(--text-primary); }
.chip-hide-input:checked + .chip-visual-label {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Architectural Tier Matrix Group */
.plans-layout-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
    .plans-layout-grid { grid-template-columns: 1fr; }
}
.plan-ui-card {
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.plan-ui-card input[type="radio"] { display: none; }
.plan-ui-card .p-name { display: block; font-weight: bold; color: var(--text-primary); margin-bottom: 6px; font-size: 15px; }
.plan-ui-card .p-cost { display: block; color: var(--accent-green); font-size: 20px; font-weight: 800; }
.plan-ui-card .p-cost small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.plan-ui-card.active-selection {
    border-color: var(--accent-green);
    background: rgba(0, 230, 118, 0.03);
}

/* Secure Form Input Architecture */
.fields-stack { display: flex; flex-direction: column; gap: 16px; }
.input-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
    .input-row-split { grid-template-columns: 1fr; }
}
.field-wrapper { display: flex; flex-direction: column; }
.field-wrapper label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field-wrapper input {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color 0.2s;
}
.field-wrapper input:focus { border-color: var(--accent-green); outline: none; }

/* Funnel Action Dispatch Control */
.action-button-submit {
    background: var(--accent-green);
    color: #040814;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 25px;
}
.action-button-submit:hover { background: var(--accent-green-hover); transform: translateY(-1px); }

.error-logger-wrapper {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    color: #ff5252;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
}
.error-logger-wrapper p { margin: 4px 0; }
