@charset "UTF-8";

/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #07070a;
    --bg-surface: #101018;
    --bg-surface-elevated: #1a1a24;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    /* Brand Accents */
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-glow: linear-gradient(90deg, #3b82f640, #8b5cf640);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Blobs for Visual Aesthetics */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue) 0%, rgba(59, 130, 246, 0) 70%);
}

.blob-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple) 0%, rgba(139, 92, 246, 0) 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-indigo);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.glass-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--glass-shadow);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height var(--transition-normal);
}

.glass-header.scrolled .header-container {
    height: 60px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-ai {
    background: var(--gradient-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.39);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

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

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-blue);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
    max-width: 800px;
    text-align: center;
}

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

/* Hero Visual styles removed as per user request */

.card-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.circles {
    display: flex;
    gap: 0.4rem;
}

.circles i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4b5563;
}

.circles i:nth-child(1) {
    background: #ef4444;
}

.circles i:nth-child(2) {
    background: #eab308;
}

.circles i:nth-child(3) {
    background: #22c55e;
}

.card-body.terminal-text {
    padding: 2rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
}

.text-green {
    color: var(--accent-green);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   Articles Section (Grid)
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    margin-bottom: 0.5rem;
}

.article-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.article-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* News Stock Tags */
.card-stock-tags {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    z-index: 2;
}

.mini-tag {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.news-stock-tags-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.news-stock-tag {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 140px;
}

.news-stock-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.tag-ticker {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.tag-name {
    font-size: 0.9rem;
    color: #fff;
    margin: 0.2rem 0;
}

.tag-price {
    font-size: 0.85rem;
}

.article-image {
    width: 100%;
    height: 200px;
    background: var(--bg-surface-elevated);
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-title {
    color: var(--accent-blue);
}

.article-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 0.9rem;
    gap: 0.5rem;
}

/* ==========================================================================
   Ranking / Brokers Section
   ========================================================================== */
.broker-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.broker-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
}

.rank-badge {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.broker-info {
    flex: 1;
}

.broker-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.broker-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

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

.tag.highlight {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: rgba(7, 7, 10, 0.8);
    position: relative;
    z-index: 10;
}

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

.footer-about p {
    margin-top: 1rem;
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent-blue);
}

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

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up.delay-1 {
    transition-delay: 0.2s;
}

.fade-in-up.delay-2 {
    transition-delay: 0.4s;
}

.fade-in-up.delay-3 {
    transition-delay: 0.6s;
}

/* ==========================================================================
   Dashboard Components (Phase 2)
   ========================================================================== */
.dashboard-section {
    padding-top: 0;
    margin-top: -4rem;
    /* Overlap hero slightly */
    z-index: 10;
}

.dashboard-container {
    padding: 2.5rem;
    border-top: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 1px;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

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

.dash-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

/* Meter */
.meter-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.meter-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.meter-label {
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 0.25rem;
}

.meter-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

.meter-fill.greed {
    background: linear-gradient(90deg, #eab308, #22c55e);
}

.meter-fill.fear {
    background: linear-gradient(90deg, #ef4444, #eab308);
}

/* Trend List */
.trend-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-bullish {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
}

.badge-bearish {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
}

.badge-neutral {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

/* Active Signal */
.active-signal {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.signal-icon {
    background: rgba(139, 92, 246, 0.2);
    padding: 1rem;
    border-radius: 50%;
    color: var(--accent-purple);
}

.signal-content h3 {
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

.signal-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Logic Explainer Section (Phase 2)
   ========================================================================== */
.logic-section {
    background: linear-gradient(to bottom, rgba(7, 7, 10, 0), rgba(7, 7, 10, 1) 100%);
    position: relative;
}

.logic-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    z-index: 0;
}

.logic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.logic-step {
    padding: 2.5rem 2rem;
    position: relative;
    text-align: left;
}

.step-num {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
}

.logic-step h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logic-step p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.logic-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Disclaimer Footer */
.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    text-align: left;
}

.disclaimer-text strong {
    color: var(--text-secondary);
}

/* ==========================================================================
   Responsive & Mobile Navigation
   ========================================================================== */

/* Hamburger Menu Button */
.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-btn:active {
    transform: scale(0.9);
}

.menu-btn svg {
    width: 28px;
    height: 28px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 7, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--accent-blue);
}

@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .dashboard-container {
        padding: 1.5rem;
    }

    .dashboard-section {
        margin-top: 0rem;
        padding-top: 2rem;
    }

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

@media (max-width: 600px) {
    .main-nav {
        display: none;
    }

    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-container {
        justify-content: space-between;
    }

    .search-btn {
        padding: 8px 12px;
        font-size: 0;
        /* Hide text, keep icon */
        gap: 0;
    }

    .search-btn svg {
        margin-right: 0;
        width: 20px;
        height: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .broker-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 24px;
    }

    .broker-tags {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        align-items: center;
    }

    /* Sticky Bottom Nav - Bulletproof Fix */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        padding-top: 10px !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        z-index: 10000 !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6) !important;
        box-sizing: border-box !important;
    }

    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        text-decoration: none !important;
        color: var(--text-tertiary) !important;
        font-size: 10px !important;
        /* Fixed small size */
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .bottom-nav-item span {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .bottom-nav-item.active {
        color: var(--accent-blue) !important;
    }

    .bottom-nav-item svg {
        width: 18px !important;
        height: 18px !important;
        margin-bottom: 2px !important;
        flex-shrink: 0 !important;
    }

    .bottom-nav-item:active {
        transform: scale(0.9);
    }

    /* Padding for page content to avoid overlap with bottom nav */
    body {
        padding-bottom: 70px;
    }

    .floating-cta-wrapper {
        bottom: 85px;
        /* Offset to stay above bottom nav */
    }

    /* Typography Scaling for Mobile */
    h1,
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Stock Detail & Article Refinements */
    .article-header .article-title {
        font-size: 1.8rem !important;
    }

    .stock-main-info h1 {
        font-size: 2rem !important;
        word-break: break-all;
    }

    .stock-hero {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .stock-price-dummy {
        text-align: left !important;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .technical-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .article-body ul {
        padding-left: 1.2rem !important;
    }

    .article-lead {
        font-size: 1rem !important;
        max-width: 100% !important;
    }

    /* Component Polish */
    .search-modal {
        padding: 1rem !important;
    }

    #searchInput {
        font-size: 1rem !important;
    }

    .watchlist-item {
        padding: 12px !important;
    }

    .stock-card {
        padding: 1.25rem !important;
    }

    /* Grid stacking for portal pages if not already handled */
    .stocks-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ==========================================================================
   Article Page
   ========================================================================== */
.article-page {
    padding-top: 80px;
    padding-bottom: 4rem;
}

.article-container {
    max-width: 800px;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header .badge {
    margin-bottom: 0.5rem;
}

.article-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

.article-header .article-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 auto;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.glass-callout {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-blue);
}

.glass-callout strong {
    display: block;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

/* ==========================================================================
   Market Timeline (Phase 59)
   ========================================================================== */
.timeline-v-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding-left: 2rem;
}

.timeline-v-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 2px solid var(--accent-blue);
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-today .timeline-marker {
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    width: 16px;
    height: 16px;
    left: -27px;
}

.timeline-today .timeline-content {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-blue);
}

.timeline-type {
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Impact Badges */
.impact-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.impact-critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.impact-high { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.impact-medium { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Timeline Past State */
.timeline-past {
    opacity: 0.6;
}

.timeline-past .timeline-marker {
    border-color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .timeline-v-container {
        padding-left: 1.5rem;
    }
    .timeline-item {
        padding-left: 1rem;
    }
    .timeline-marker {
        left: -21px;
    }
    .timeline-today .timeline-marker {
        left: -23px;
    }
}

.glass-callout p {
    margin-bottom: 0;
}

/* ==========================================================================
   Global Sticky/Floating CTA
   ========================================================================== */
.floating-cta-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cta-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: floating-pulse 3s infinite;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6);
    color: white;
    animation: none;
}

.floating-cta-icon {
    font-size: 1.5rem;
}

.floating-cta-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.floating-cta-text small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Tooltip implementation */
.cta-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    width: 260px;
    color: white;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cta-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(16, 185, 129, 0.4);
}

.floating-cta-wrapper:hover .cta-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cta-tooltip strong {
    display: block;
    color: #34d399;
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.4rem;
}

.cta-tooltip p {
    font-size: 0.85rem;
    margin: 0.4rem 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

@keyframes floating-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@media (max-width: 768px) {
    .floating-cta-wrapper {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .cta-tooltip {
        display: none;
    }

    .floating-cta-text {
        font-size: 0.85rem;
    }

    .floating-cta-icon {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Search Modal
   ========================================================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal .search-container {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-modal .search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 10px 0;
    font-family: var(--font-body);
}

.search-modal .search-input:focus {
    outline: none;
}

.close-search {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-search:hover {
    color: white;
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.result-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.result-title {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.search-hint,
.search-no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
    font-size: 1.1rem;
}