/* ==========================================================================
   AI STOCK ANALYSIS DASHBOARD — 3D TILTED CARDS & DECISION COCKPIT
   ========================================================================== */

:root {
    --bg-color: #080c16;
    --card-bg: rgba(18, 26, 44, 0.65);
    --card-hover-bg: rgba(22, 32, 54, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --accent: #3b82f6;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
    --purple: #8b5cf6;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 12% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 88% 30%, rgba(16, 185, 129, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.dashboard-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* HEADER */
header {
    text-align: center;
    margin-bottom: 2.2rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

header h1 span {
    background: linear-gradient(135deg, #38bdf8, #818cf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.guide-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c084fc;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.guide-badge-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

/* SUMMARY & MACRO REGIME */
.summary-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.9s ease-out;
}

@media (max-width: 900px) {
    .summary-section {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.highlight-card {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.highlight-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #60a5fa;
}

.highlight-card p {
    font-size: 0.95rem;
    color: #e2e8f0;
}

.highlight-card .details {
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* DAILY SPOTLIGHT (3D TILTED) */
.daily-spotlight {
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.spotlight-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.35);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.spotlight-card:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.2);
}

.spotlight-ribbon {
    position: absolute;
    top: 1.2rem;
    right: -2.8rem;
    background: linear-gradient(90deg, #10b981, #059669);
    color: #000;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 0.25rem 3.2rem;
    transform: rotate(45deg);
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.spotlight-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .spotlight-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* SEARCH & FILTER CONTROLS */
.controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 1s ease-out;
}

.glass-input {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.glass-input::placeholder {
    color: #64748b;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   3D TILTED STOCKS GRID
   ========================================================================== */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.5rem;
}

.stock-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.4rem;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stock-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

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

.stock-title-wrap h3 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.stock-company-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.live-tag {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
    letter-spacing: 0.04em;
}

.stock-price {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: #38bdf8;
    text-align: right;
}

/* VERDICT BADGES */
.verdict-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.stock-verdict {
    display: inline-block;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.verdict-strong-buy,
.verdict-buy {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.verdict-hold {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--yellow);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.verdict-avoid,
.verdict-sell {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.confidence-chip {
    font-size: 0.7rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.confidence-chip strong {
    color: #38bdf8;
    font-family: var(--font-mono);
}

/* MATERIAL DECISION MINI-GRID ON CARDS */
.card-material-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.6rem;
    margin-bottom: 0.75rem;
}

.material-metric {
    display: flex;
    flex-direction: column;
}

.material-metric .m-label {
    font-size: 0.62rem;
    color: var(--text-subtle);
    font-weight: 600;
    text-transform: uppercase;
}

.material-metric .m-val {
    font-size: 0.76rem;
    font-weight: 700;
    color: #e2e8f0;
    font-family: var(--font-mono);
}

.m-val.green { color: #34d399; }
.m-val.blue { color: #60a5fa; }
.m-val.yellow { color: #fbbf24; }
.m-val.red { color: #f87171; }

.stock-reason {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.card-action-btn {
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: all 0.2s ease;
}

.stock-card:hover .card-action-btn {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   MODAL: 8-SECTION INVESTMENT DECISION COCKPIT
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease-out;
}

.modal-content {
    background: #090e1c;
    width: 100%;
    max-width: 1300px;
    max-height: 94vh;
    overflow-y: auto;
    position: relative;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.close-btn {
    position: absolute;
    top: 0.75rem;
    right: 1.1rem;
    font-size: 2.2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    z-index: 10001;
}

.close-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

/* MODAL INTERIOR: HERO VERDICT (SECTION 1) */
.m-hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(20, 30, 56, 0.75), rgba(12, 18, 36, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
    .m-hero {
        grid-template-columns: 1fr;
    }
}

.m-primary-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.m-primary-question {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0.2rem 0 0.4rem 0;
    line-height: 1.3;
}

.m-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.m-ticker-tag {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.m-spot-price {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: #38bdf8;
}

.m-verdict-box {
    background: rgba(8, 12, 24, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.m-verdict-badge {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    text-transform: uppercase;
}

.m-confidence-rationale {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* 6 CORE DECISION CARDS IN MODAL */
.m-decision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 1050px) {
    .m-decision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .m-decision-grid {
        grid-template-columns: 1fr;
    }
}

.m-card {
    background: rgba(14, 21, 38, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.m-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.m-card-num-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.m-card-num {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.m-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
}

.m-card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.m-card-badge.status-cheap,
.m-card-badge.status-bullish {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.m-card-badge.status-reasonable,
.m-card-badge.status-bullish-correction {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.m-card-badge.status-expensive,
.m-card-badge.status-bearish {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.m-card-badge.status-neutral {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* SECTION 2: ENTRY METRICS IN MODAL */
.m-entry-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 0.76rem;
}

.m-entry-row.highlight {
    background: rgba(56, 189, 248, 0.08);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border-bottom: none;
}

.m-entry-row.invalidation {
    background: rgba(239, 68, 68, 0.08);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border-bottom: none;
}

.m-val-mono {
    font-family: var(--font-mono);
    font-weight: 700;
}

/* SECTION 6: DCF TABLE IN MODAL */
.m-dcf-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    font-size: 0.73rem;
    padding: 0.22rem 0;
    font-family: var(--font-mono);
}

.m-dcf-assump {
    font-size: 0.62rem;
    color: var(--text-subtle);
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    margin-bottom: 0.15rem;
}

/* SECTION 3: FUNDAMENTALS IN MODAL */
.m-fund-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 0.3rem 0.45rem;
    margin-bottom: 0.35rem;
}

.m-fund-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
}

.m-fund-tag {
    font-size: 0.58rem;
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
    font-weight: 700;
}

.m-fund-tag.company-reported {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.m-fund-tag.calculated {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.m-fund-source {
    font-size: 0.62rem;
    color: var(--text-subtle);
    margin-top: 0.1rem;
}

/* SECTION 4 & 7: LISTS IN MODAL */
.m-growth-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.4rem;
}

.m-growth-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.15rem;
}

.m-growth-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.35;
}

.m-cat-bullet {
    font-size: 0.7rem;
    color: #cbd5e1;
    line-height: 1.35;
    padding-left: 0.6rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.m-cat-bullet::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--green);
}

.m-cat-bullet.risk::before {
    color: var(--red);
}

/* SECTION 8: BOTTOM BANNER IN MODAL */
.m-final-banner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(16, 24, 46, 0.95), rgba(10, 14, 26, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

@media (max-width: 900px) {
    .m-final-banner {
        grid-template-columns: 1fr;
    }
}

.m-final-para {
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.45;
}

.m-targets-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.m-target-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 0.35rem 0.4rem;
    text-align: center;
}

.m-target-card .lbl {
    font-size: 0.62rem;
    color: var(--text-subtle);
    font-weight: 600;
}

.m-target-card .val {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

.m-target-card.bear .val { color: #f87171; }
.m-target-card.base .val { color: #60a5fa; }
.m-target-card.bull .val { color: #34d399; }

/* ANIMATIONS */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* SOURCE & DATA INTEGRITY CHIPS */
.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.source-company {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.source-calculated {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.source-analyst {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.source-model {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.confidence-chip {
    font-size: 0.72rem;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.data-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* COMPACT LATEST 5 EARNINGS SECTION */
.m-earnings-section {
    background: rgba(14, 21, 38, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    margin-bottom: 0.75rem;
}

.m-earnings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 0.4rem;
}

.m-earnings-table-wrap {
    overflow-x: auto;
}

.m-compact-earnings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    margin-top: 0.2rem;
}

.m-compact-earnings-table th {
    padding: 0.3rem 0.5rem;
    color: var(--text-subtle);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m-compact-earnings-table td {
    padding: 0.32rem 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.m-compact-earnings-table tr:last-child td {
    border-bottom: none;
}

.m-earnings-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.35rem;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.m-trend-summary {
    font-size: 0.8rem;
    font-weight: 800;
    color: #34d399;
    font-family: var(--font-mono);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

.m-earnings-meta {
    font-size: 0.64rem;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

