/* =============================================
   Resmmy21 海外市场资讯看板
   Overseas Market Intelligence Dashboard
   深空金融科技风 — Premium Cinematic Edition
   ============================================= */

:root {
    --bg-deep: #06080f;
    --bg-primary: #0a0e1a;
    --bg-secondary: #0d1228;
    --bg-card: rgba(12, 16, 35, 0.55);
    --bg-card-hover: rgba(16, 22, 48, 0.75);
    --accent: #6366f1;
    --accent2: #a855f7;
    --accent3: #06b6d4;
    --green: #10b981;
    --red: #f43f5e;
    --orange: #f59e0b;
    --yellow: #facc15;
    --blue: #3b82f6;
    --purple: #a855f7;
    --cyan: #22d3ee;
    --text-primary: #e8ecf6;
    --text-secondary: #94a3bc;
    --text-muted: #5c6a82;
    --border: rgba(99, 102, 241, 0.10);
    --border-glow: rgba(168, 85, 247, 0.25);
    --glass-bg: rgba(12, 16, 35, 0.45);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-blur: 20px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 10px;
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.12);
    --shadow-glow-strong: 0 0 60px rgba(168, 85, 247, 0.15);
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --font-mono: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --danger: #f43f5e;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background mesh */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 25%, rgba(168,85,247,0.05) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 15% 80%, rgba(6,182,212,0.04) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(99,102,241,0.04) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Particle canvas */
#particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(99,102,241,0.3); }
    50% { box-shadow: 0 0 20px rgba(99,102,241,0.55); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes border-rotate {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

/* =============================================
   HEADER / BRAND AREA
   ============================================= */
.brand-header {
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

.brand-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
    border-radius: 1px;
}

.brand-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-left { display: flex; align-items: center; gap: 20px; }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.logo-icon {
    font-size: 26px;
    color: var(--accent2);
    filter: drop-shadow(0 0 12px rgba(168,85,247,0.5));
    animation: float 4s ease-in-out infinite;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #818cf8, #c084fc, #818cf8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.brand-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(99,102,241,0.4), transparent);
}

.brand-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.brand-nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover { color: var(--text-primary); background: rgba(99,102,241,0.08); }

.nav-link.active {
    color: #fff;
    background: rgba(99,102,241,0.12);
    box-shadow: 0 0 20px rgba(99,102,241,0.1);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35), 0 0 0 0 rgba(99,102,241,0);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.45), 0 0 0 3px rgba(99,102,241,0.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-secondary {
    background: rgba(99,102,241,0.12);
    color: var(--text-primary);
    border: 1px solid rgba(99,102,241,0.2);
}

.btn-secondary:hover {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-primary);
}

.btn-glass:hover {
    border-color: rgba(255,255,255,0.1);
    background: rgba(20,26,52,0.6);
    transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }

.btn-icon { font-size: 16px; transition: transform 0.5s ease; }
.btn-glass:hover .btn-icon { transform: rotate(180deg); }

/* =============================================
   STATUS BAR
   ============================================= */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 36px;
    font-size: 13px;
    color: var(--text-secondary);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.status-bar::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 1px;
}

.status-bar .sep { margin: 0 12px; color: var(--text-muted); }

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 10px;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.status-dot.status-ok {
    background: var(--green);
    animation: pulse-glow 2s ease-in-out infinite;
}
.status-dot.status-warn {
    background: var(--yellow);
    animation: pulse-glow 3s ease-in-out infinite;
}
.status-dot.status-error {
    background: var(--red);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-title h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.title-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 14px rgba(99,102,241,0.6);
    animation: pulse-glow 3s ease-in-out infinite;
}

.section-filters {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.06);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}

/* =============================================
   GLASS CARD
   ============================================= */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    border-radius: var(--radius);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.glass:hover {
    border-color: rgba(255,255,255,0.08);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Corner accent */
.glass::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(99,102,241,0.06) 50%);
    border-radius: 0 var(--radius) 0 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.glass:hover::after { opacity: 1; }

/* =============================================
   SUMMARY CARDS
   ============================================= */
.summary-section { margin-bottom: 44px; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.summary-card {
    padding: 26px 24px;
    animation: fadeInUp 0.8s ease-out;
}

.summary-card:nth-child(2) { animation-delay: 0.1s; }
.summary-card:nth-child(3) { animation-delay: 0.2s; }
.summary-card:nth-child(4) { animation-delay: 0.3s; }
.summary-card:nth-child(5) { animation-delay: 0.4s; }

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    opacity: 0.4;
    border-radius: 1px;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.summary-card:hover::before { opacity: 0.8; width: 80%; }

.card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.card-value-sm {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.5;
}

/* =============================================
   MARKET INDICATORS
   ============================================= */
.market-section { margin-bottom: 44px; }

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.market-card {
    padding: 18px 16px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.market-tag {
    display: inline-block;
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 6px;
    padding: 2px 8px;
    background: rgba(99,102,241,0.1);
    border-radius: 6px;
}

.market-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.market-value {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

.market-value.muted { color: var(--text-muted); font-size: 18px; }
.market-change { font-size: 13px; margin-top: 6px; font-weight: 600; }
.market-change.muted { color: var(--text-muted); }

.market-empty {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* =============================================
   NEWS STREAM
   ============================================= */
.news-section { margin-bottom: 44px; }

.news-stream {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-card {
    padding: 24px 28px;
    animation: fadeInUp 0.6s ease-out;
}

.news-card.major {
    border-color: rgba(244,63,94,0.25);
    box-shadow: 0 0 30px rgba(244,63,94,0.06);
}

.news-card.important {
    border-color: var(--border-glow);
    box-shadow: 0 0 24px rgba(168,85,247,0.08);
}

.news-card:hover { border-color: rgba(255,255,255,0.1); }

.pin-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 13px;
    color: var(--yellow);
    font-weight: 600;
}

.news-header { margin-bottom: 12px; }

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.level-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.level-major { background: rgba(244,63,94,0.15); color: var(--red); }
.level-important { background: rgba(168,85,247,0.15); color: var(--purple); }
.level-watch { background: rgba(59,130,246,0.15); color: var(--blue); }
.level-normal { background: rgba(148,163,188,0.1); color: var(--text-secondary); }
.level-low { background: rgba(92,106,130,0.08); color: var(--text-muted); }

.category-tag {
    font-size: 11px;
    color: var(--cyan);
    background: rgba(34,211,238,0.1);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.score-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.verify-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.verify-tag.verified { background: rgba(16,185,129,0.12); color: var(--green); }
.verify-tag.unverified { background: rgba(148,163,188,0.1); color: var(--text-muted); }

.impact-tag {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.impact-tag.positive { background: rgba(16,185,129,0.12); color: var(--green); }
.impact-tag.negative { background: rgba(244,63,94,0.12); color: var(--red); }
.impact-tag.neutral { background: rgba(59,130,246,0.12); color: var(--blue); }
.impact-tag.observe { background: rgba(250,204,21,0.12); color: var(--yellow); }
.impact-tag.unverified { background: rgba(148,163,188,0.08); color: var(--text-muted); }

.news-title {
    font-size: 17px;
    font-weight: 650;
    margin-bottom: 10px;
    line-height: 1.5;
    letter-spacing: -0.2px;
    color: #f0f2fa;
}

.news-summary {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.news-footer {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.source-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-left: auto;
}

.source-link:hover { color: var(--accent2); }

/* =============================================
   ANALYSIS BOX
   ============================================= */
.analysis-box {
    margin-top: 18px;
    padding: 18px 20px;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: var(--radius-sm);
    position: relative;
}

.analysis-box::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 3px 0 0 3px;
}

.analysis-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.analysis-rows { display: flex; flex-direction: column; gap: 10px; }

.analysis-row {
    display: flex;
    gap: 14px;
    font-size: 13px;
    align-items: baseline;
}

.a-label {
    min-width: 76px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 500;
}

.a-value { color: var(--text-secondary); flex: 1; }
.risk-text { color: var(--orange); font-weight: 500; }

/* =============================================
   CATEGORY BOARDS
   ============================================= */
.category-section { margin-bottom: 44px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 18px;
}

.category-panel { padding: 22px 24px; }

.cat-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.2px;
}

.cat-items { display: flex; flex-direction: column; gap: 10px; }
.cat-empty { color: var(--text-muted); font-size: 13px; padding: 16px 0; }

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.cat-item:hover { color: var(--text-primary); }

.c-score {
    min-width: 30px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.c-major { background: rgba(244,63,94,0.12); color: var(--red); }
.c-important { background: rgba(168,85,247,0.12); color: var(--purple); }
.c-watch { background: rgba(59,130,246,0.12); color: var(--blue); }
.c-normal { background: rgba(148,163,188,0.08); color: var(--text-muted); }
.c-low { background: rgba(148,163,188,0.05); color: var(--text-muted); }

.c-title { flex: 1; color: var(--text-secondary); line-height: 1.4; }

.c-impact {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.c-impact.positive { background: rgba(16,185,129,0.1); color: var(--green); }
.c-impact.negative { background: rgba(244,63,94,0.1); color: var(--red); }

/* =============================================
   EMPTY STATE — PREMIUM REDESIGN
   ============================================= */
.empty-state {
    text-align: center;
    padding: 100px 32px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    animation: float 5s ease-in-out infinite;
}

.empty-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.empty-state h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.empty-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}

.empty-state-small {
    padding: 44px;
    text-align: center;
    color: var(--text-muted);
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,3,8,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal.show { display: flex; }

.modal-content {
    padding: 36px;
    width: 92%;
    max-width: 500px;
    text-align: center;
    animation: fadeInUp 0.35s ease-out;
    border-radius: var(--radius-lg);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.modal-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-status {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.modal-status.loading { background: rgba(59,130,246,0.1); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.modal-status.success { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.modal-status.error { background: rgba(244,63,94,0.1); color: var(--red); border: 1px solid rgba(244,63,94,0.2); }
.modal-status.warn { background: rgba(250,204,21,0.1); color: var(--yellow); border: 1px solid rgba(250,204,21,0.2); }

/* =============================================
   HISTORY PAGE
   ============================================= */
.history-filters {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: var(--radius);
}

.filter-input, .filter-select {
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.filter-input:focus, .filter-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.filter-input { flex: 1; min-width: 220px; }
.filter-select { min-width: 140px; }
.filter-select option { background: var(--bg-secondary); color: var(--text-primary); }

.report-list { display: flex; flex-direction: column; gap: 18px; }
.report-item { padding: 22px 26px; }

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.report-header h3 { font-size: 17px; font-weight: 650; }

.report-type-badge {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 14px;
    margin-right: 10px;
    font-weight: 600;
}

.type-morning { background: rgba(250,204,21,0.12); color: var(--yellow); }
.type-afternoon { background: rgba(59,130,246,0.12); color: var(--blue); }

.report-time { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }
.report-window { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }

.report-summary {
    margin: 14px 0;
    padding: 14px;
    background: rgba(255,255,255,0.015);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.03);
}

.report-summary pre {
    white-space: pre-wrap;
    font-family: var(--font-sans);
}

.report-meta {
    display: flex;
    gap: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* =============================================
   ADMIN PAGE
   ============================================= */
.admin-auth {
    max-width: 420px;
    margin: 60px auto;
    padding: 36px;
    text-align: center;
    border-radius: var(--radius-lg);
}

.admin-auth h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

.admin-auth input {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.admin-auth input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.admin-page .section-title { margin-top: 36px; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    padding: 28px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
}

.stat-item { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--accent); font-family: var(--font-mono); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

.admin-section {
    padding: 26px;
    margin-bottom: 28px;
    border-radius: var(--radius);
}

.admin-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; }

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.task-card {
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.task-done { background: rgba(16,185,129,0.04); border-color: rgba(16,185,129,0.15); }
.task-pending { background: rgba(148,163,188,0.02); border-color: rgba(148,163,188,0.08); }

.task-card h4 { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.task-pending-text { color: var(--orange); font-size: 13px; margin-bottom: 10px; font-weight: 500; }

.source-list { display: flex; flex-direction: column; gap: 4px; }

.source-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    flex-wrap: wrap;
}

.source-healthy { background: rgba(16,185,129,0.03); }
.source-error { background: rgba(244,63,94,0.04); }

.source-type {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99,102,241,0.1);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.source-name { flex: 1; color: var(--text-primary); font-weight: 500; min-width: 160px; }
.source-stat { color: var(--text-muted); font-family: var(--font-mono); }
.source-error-text { color: var(--red); font-size: 11px; cursor: pointer; }

.log-list { display: flex; flex-direction: column; }

.log-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    flex-wrap: wrap;
}

.log-type { color: var(--text-secondary); min-width: 60px; font-weight: 500; }
.log-status { font-weight: 600; min-width: 50px; }
.log-time { color: var(--text-muted); font-family: var(--font-mono); }
.log-stats { color: var(--text-secondary); }
.log-error { color: var(--red); font-size: 11px; cursor: pointer; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-neutral { color: var(--text-muted); }
.text-muted { color: var(--text-muted); }

/* =============================================
   FOOTER
   ============================================= */
.brand-footer {
    margin-top: 64px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.brand-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 1px;
}

.footer-inner { font-size: 13px; color: var(--text-muted); }
.footer-disclaimer { font-size: 11px; margin-top: 6px; color: var(--text-muted); opacity: 0.6; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    .app-container { padding: 0 16px; }

    .brand-header { padding: 20px 0 18px; }
    .brand-inner { flex-direction: column; align-items: flex-start; }
    .brand-nav { width: 100%; flex-wrap: wrap; }
    .brand-title { font-size: 17px; }
    .logo-text { font-size: 20px; }

    .summary-grid { grid-template-columns: 1fr 1fr; }
    .card-value { font-size: 28px; }
    .market-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .section-filters { margin-left: 0; margin-top: 10px; }
    .news-card { padding: 18px 16px; }
    .analysis-row { flex-direction: column; gap: 4px; }

    .history-filters { flex-direction: column; }
    .filter-input { width: 100%; }
    .filter-select { width: 100%; }

    .empty-state { padding: 60px 20px; }
    .empty-state h2 { font-size: 24px; }
    .empty-icon { font-size: 56px; }
}

@media (max-width: 480px) {
    .summary-grid { grid-template-columns: 1fr; }
    .market-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.4); }

/* Selection */
::selection { background: rgba(99,102,241,0.35); color: #fff; }
