/* ═══════════════════════════════════════════════════════════
   TitrKhabar 2030 Homepage - Premium Design System
   Matching the approved target screenshot exactly
   ═══════════════════════════════════════════════════════════ */

/* ── NUMERIC FONT: use system monospace (no Google Fonts — blocked in IR) ── */
/* Numbers & metrics get a clean monospace look with system fonts */

/* ── ROOT TOKENS ─────────────────────────────────────────── */
body.ui-2030 {
    background: #060913 !important;
    color: #94a3b8 !important;
    --bg-deep:       #060913;
    --bg-card:       rgba(255,255,255,0.025);
    --bg-card-hover: rgba(255,255,255,0.05);
    --border:        rgba(255,255,255,0.06);
    --border-glow:   rgba(168,85,247,0.3);
    --purple:        #a855f7;
    --purple-dark:   #7c3aed;
    --cyan:          #06b6d4;
    --green:         #10b981;
    --red:           #ef4444;
    --amber:         #f59e0b;
    --blue:          #3b82f6;
    --white:         #f8fafc;
    --slate:         #94a3b8;
    --card-radius:   14px;
    --grad-purple:   linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --grad-hero:     linear-gradient(135deg, #c084fc 0%, #818cf8 40%, #06b6d4 100%);
}

/* ── HEADER ──────────────────────────────────────────────── */
body.ui-2030 header {
    background: rgba(6,9,19,0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 0 !important;
}

body.ui-2030 .header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    padding: 0;
}

/* Logo (rightmost in RTL) */
body.ui-2030 .logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

body.ui-2030 .brand-link {
    display: flex;
    flex-direction: row !important;  /* override style.css column */
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

body.ui-2030 .logo-icon-circle {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(249,115,22,0.4);
    flex-shrink: 0;
}

body.ui-2030 .logo-texts {
    display: flex; flex-direction: column; align-items: flex-end; /* RTL: names right-align */
}

body.ui-2030 .logo-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.3px;
}

body.ui-2030 .logo-tagline {
    font-size: 0.62rem;
    color: var(--cyan);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* Center nav */
body.ui-2030 .nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0; padding: 0;
    align-items: center;
}

body.ui-2030 .nav-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate);
    transition: color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

body.ui-2030 .nav-item:hover,
body.ui-2030 .nav-item.active { color: var(--white); }

body.ui-2030 .nav-ai-pill {
    background: var(--grad-purple);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(168,85,247,0.4);
    transition: all 0.2s;
}
body.ui-2030 .nav-ai-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168,85,247,0.55);
}
body.ui-2030 .badge-new-purple {
    background: rgba(255,255,255,0.2);
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 6px;
    font-weight: bold;
}

/* Left actions */
body.ui-2030 .header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

body.ui-2030 .header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

body.ui-2030 .header-search-wrap input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 7px 40px 7px 44px; /* right=search icon, left=kbd hint */
    color: var(--white);
    font-size: 0.82rem;
    width: 200px;
    outline: none;
    transition: all 0.3s;
    direction: rtl; /* placeholder text RTL inside input */
}

body.ui-2030 .header-search-wrap input:focus {
    border-color: rgba(168,85,247,0.4);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.08);
    width: 240px;
}

body.ui-2030 .header-search-icon {
    position: absolute; right: 12px; color: var(--slate); font-size: 0.82rem;
    pointer-events: none;
}

body.ui-2030 .kbd-hint {
    position: absolute; left: 10px;
    font-family: monospace; font-size: 0.62rem;
    color: var(--slate); opacity: 0.6;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1px 5px; border-radius: 4px;
    direction: ltr; pointer-events: none;
}

body.ui-2030 .header-icon-btn {
    background: none; border: none;
    color: var(--slate); cursor: pointer;
    font-size: 1.05rem; transition: color 0.2s;
    display: flex; align-items: center;
    padding: 6px;
    border-radius: 8px;
}
body.ui-2030 .header-icon-btn:hover { color: var(--white); }

body.ui-2030 .header-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--cyan);
    object-fit: cover;
    cursor: pointer;
    display: block;
}

body.ui-2030 .notif-wrap { position: relative; }
body.ui-2030 .notif-dot {
    position: absolute; top: 2px; right: 2px;
    width: 8px; height: 8px;
    background: var(--red); border-radius: 50%;
    border: 1.5px solid var(--bg-deep);
}

/* ── HOMEPAGE 2-COLUMN GRID ──────────────────────────────── */
body.ui-2030 .hp-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* sidebar on right (280px) | main on left (1fr) in RTL */
    gap: 20px;
    min-width: 0;
    align-items: start;
}

body.ui-2030 .hp-col-left   { min-width: 0; grid-column: 1; grid-row: 1; }
body.ui-2030 .hp-col-center { min-width: 0; grid-column: 2; grid-row: 1; }

/* ── RESPONSIVE: collapse to single column on tablet ── */
@media (max-width: 900px) {
    body.ui-2030 .hp-grid {
        grid-template-columns: 1fr;
    }
    body.ui-2030 .hp-col-left {
        grid-column: auto;
        grid-row: auto;
        order: 2;
    }
    body.ui-2030 .hp-col-center {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ── GLASS CARD BASE ─────────────────────────────────────── */
body.ui-2030 .glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
    text-align: right;
    direction: rtl;
}

body.ui-2030 .glass-card:hover {
    border-color: rgba(255,255,255,0.1);
}

body.ui-2030 .card-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ui-2030 .card-title i { color: var(--cyan); font-size: 0.9rem; }

/* ── HERO SECTION ────────────────────────────────────────── */
body.ui-2030 .hero-section {
    text-align: center;
    padding: 36px 0 16px 0;
    position: relative;
}

body.ui-2030 .hero-section::before {
    content: '';
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    width: min(500px, 100%);
    height: 200px;
    background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

body.ui-2030 .hero-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 900;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin: 0 0 18px 0;
    letter-spacing: -1.5px;
}

body.ui-2030 .hero-subtitle {
    font-size: 1.05rem;
    color: var(--slate);
    margin: 0 0 32px 0;
    font-weight: 500;
    line-height: 1.7;
}

/* ── ASK BOX ─────────────────────────────────────────────── */
body.ui-2030 .ask-wrap {
    max-width: 660px;
    margin: 0 auto 18px auto;
    background: rgba(168,85,247,0.04);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 30px;
    padding: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 0 30px rgba(168,85,247,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

body.ui-2030 .ask-wrap:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(6,182,212,0.15);
}

body.ui-2030 .ask-input-field {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 10px 16px 10px 8px;
    color: var(--white);
    font-size: 0.92rem;
    direction: rtl;
    text-align: right;
}

body.ui-2030 .ask-input-field::placeholder { color: var(--slate); }

body.ui-2030 .ask-search-icon-inner {
    color: var(--slate);
    font-size: 0.95rem;
    margin-right: 12px;
    flex-shrink: 0;
}

body.ui-2030 .ask-ai-btn {
    background: var(--grad-purple);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 8px 20px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 14px rgba(168,85,247,0.45);
    flex-shrink: 0;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

body.ui-2030 .ask-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168,85,247,0.6);
}

body.ui-2030 .hero-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 660px;
    margin: 0 auto;
}

body.ui-2030 .hero-chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    color: var(--slate);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

body.ui-2030 .hero-chip:hover {
    background: rgba(168,85,247,0.1);
    border-color: rgba(168,85,247,0.3);
    color: var(--white);
}

/* ── DONUT CHART / روایت غالب ────────────────────────────── */
body.ui-2030 .narrative-card {
    flex: 1;
}

body.ui-2030 .donut-wrap {
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
    margin: 4px 0 16px 0;
}

body.ui-2030 .legend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 3px 0;
}

body.ui-2030 .legend-pct {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
}

body.ui-2030 .legend-info {
    display: flex; align-items: center; gap: 8px;
}

body.ui-2030 .legend-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

body.ui-2030 .legend-name {
    font-size: 0.8rem; color: var(--slate);
}

body.ui-2030 .card-link-btn {
    display: block;
    text-align: center;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(6,182,212,0.3);
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 14px;
}

body.ui-2030 .card-link-btn:hover {
    background: rgba(6,182,212,0.1);
    border-color: var(--cyan);
}

/* ── 10 SIGNALS ──────────────────────────────────────────── */
body.ui-2030 .signals-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    direction: rtl;
    gap: 10px;
}

body.ui-2030 .signals-title {
    font-size: 0.98rem;
    font-weight: 900;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}

body.ui-2030 .signals-subtitle {
    font-size: 0.65rem;
    color: var(--slate);
    margin-top: 3px;
    display: block;
}

body.ui-2030 .signals-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    width: 100%;
    max-width: 100%;
}

body.ui-2030 .signals-scroll::-webkit-scrollbar { height: 4px; }
body.ui-2030 .signals-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08); border-radius: 4px;
}

body.ui-2030 .sig-card {
    flex: 0 0 180px;              /* wider card */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px 12px;     /* more padding */
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 230px;           /* taller */
    transition: border-color 0.2s, transform 0.2s;
    text-align: right;
    direction: rtl;
    position: relative;
}

body.ui-2030 .sig-card:hover {
    border-color: rgba(168,85,247,0.3);
    transform: translateY(-2px);
}

body.ui-2030 .sig-badge {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
    align-self: flex-end;
}

body.ui-2030 .sig-badge.purple { background: #7c3aed; color: #fff; }
body.ui-2030 .sig-badge.red    { background: #dc2626; color: #fff; }
body.ui-2030 .sig-badge.blue   { background: #2563eb; color: #fff; }

body.ui-2030 .sig-keyword {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-top: 2px;
}

body.ui-2030 .sig-growth {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--green);
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 3px;
}

body.ui-2030 .sig-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--slate);
}

body.ui-2030 .sig-meta strong { color: var(--white); }

body.ui-2030 .sig-sparkline {
    height: 28px;
    margin: 2px 0;
}

body.ui-2030 .sig-analyze-btn {
    display: block;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--slate);
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

body.ui-2030 .sig-analyze-btn:hover {
    background: rgba(168,85,247,0.1);
    border-color: rgba(168,85,247,0.3);
    color: var(--purple);
}

/* ── QUICK NAV CARDS ─────────────────────────────────────── */
body.ui-2030 .quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    direction: rtl;              /* ensure RTL order */
}

@media (max-width: 768px) {
    body.ui-2030 .hero-wrapper { flex-direction: column !important; }
    body.ui-2030 .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

body.ui-2030 .qnav-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.2s;
    direction: rtl;
}

body.ui-2030 .qnav-card:hover {
    transform: translateY(-2px);
    border-color: rgba(6,182,212,0.25);
    background: var(--bg-card-hover);
}

body.ui-2030 .qnav-inner {
    display: flex; align-items: center; gap: 10px;
}

body.ui-2030 .qnav-icon {
    width: 40px; height: 40px;   /* slightly bigger */
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

body.ui-2030 .qnav-card:nth-child(1) .qnav-icon { background: rgba(168,85,247,0.15); color: var(--purple); }
body.ui-2030 .qnav-card:nth-child(2) .qnav-icon { background: rgba(6,182,212,0.15); color: var(--cyan); }
body.ui-2030 .qnav-card:nth-child(3) .qnav-icon { background: rgba(16,185,129,0.15); color: var(--green); }
body.ui-2030 .qnav-card:nth-child(4) .qnav-icon { background: rgba(245,158,11,0.15); color: var(--amber); }

body.ui-2030 .qnav-texts { display: flex; flex-direction: column; text-align: right; }
body.ui-2030 .qnav-title { font-size: 0.85rem; font-weight: 800; color: var(--white); }
body.ui-2030 .qnav-sub   { font-size: 0.68rem; color: var(--slate); margin-top: 2px; }
body.ui-2030 .qnav-arrow {
    color: var(--slate);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
body.ui-2030 .qnav-card:hover .qnav-arrow {
    color: var(--white);
    transform: translateX(-3px);
}

/* ── AI INTEL CARDS ──────────────────────────────────────── */
body.ui-2030 .ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    body.ui-2030 .ai-grid { grid-template-columns: 1fr; }
}

body.ui-2030 .ai-card {
    background: linear-gradient(135deg, rgba(168,85,247,0.05) 0%, rgba(6,182,212,0.02) 100%);
    border: 1px solid rgba(168,85,247,0.18);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.2s;
    direction: rtl; text-align: right;
}

body.ui-2030 .ai-card:hover {
    border-color: rgba(168,85,247,0.35);
    box-shadow: 0 6px 24px rgba(168,85,247,0.12);
    transform: translateY(-2px);
}

body.ui-2030 .ai-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(168,85,247,0.1);
}

body.ui-2030 .ai-card-header h3 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    display: flex; align-items: center; gap: 8px;
}

body.ui-2030 .ai-card-header h3 i { color: var(--purple); }

body.ui-2030 .ai-badge {
    font-size: 0.62rem;
    background: rgba(168,85,247,0.2);
    color: #c084fc;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

body.ui-2030 .ai-content {
    font-size: 0.78rem;
    color: var(--slate);
    line-height: 1.75;
}

body.ui-2030 .ai-summary-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
}

body.ui-2030 .ai-summary-item:last-child { border-bottom: none; margin-bottom: 0; }

body.ui-2030 .ai-summary-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}

/* ── NEWS GRID ───────────────────────────────────────────── */
body.ui-2030 .news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    direction: rtl;
}

body.ui-2030 .news-section-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

body.ui-2030 .news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    body.ui-2030 .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    body.ui-2030 .news-grid { grid-template-columns: 1fr; }
}

body.ui-2030 .news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}

body.ui-2030 .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.12);
}

body.ui-2030 .news-card-img {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

body.ui-2030 .news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

body.ui-2030 .news-card:hover .news-card-img img { transform: scale(1.06); }

body.ui-2030 .news-cat-badge {
    position: absolute; bottom: 10px; right: 10px;
    background: var(--cyan);
    color: #060913 !important;
    font-size: 0.68rem; font-weight: 800;
    padding: 3px 9px; border-radius: 4px;
    z-index: 5;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
body.ui-2030 .news-cat-badge:hover {
    opacity: 0.9;
}

body.ui-2030 .news-card:nth-child(even) .news-cat-badge {
    background: var(--purple); color: #fff !important;
}
body.ui-2030 .news-card:nth-child(3) .news-cat-badge { background: var(--amber); color: #060913 !important; }
body.ui-2030 .news-card:nth-child(4) .news-cat-badge { background: #10b981; color: #060913 !important; }

body.ui-2030 .news-card-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column;
    flex: 1; direction: rtl; text-align: right;
}

body.ui-2030 .news-card-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.68rem; color: var(--slate);
    margin-bottom: 8px;
}

body.ui-2030 .news-card-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.ui-2030 .news-card-title a { color: inherit; text-decoration: none; }
body.ui-2030 .news-card-title a:hover { color: var(--cyan); }

body.ui-2030 .news-card-excerpt {
    font-size: 0.75rem;
    color: var(--slate);
    line-height: 1.65;
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.ui-2030 .news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 10px;
    font-size: 0.68rem; color: var(--slate);
}

body.ui-2030 .news-stats { display: flex; gap: 10px; align-items: center; }
body.ui-2030 .news-read-btn {
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.72rem;
    text-decoration: none;
}

/* ── MARKET ITEMS ─────────────────────────────────────────── */
body.ui-2030 .markets-card { flex: none; }

body.ui-2030 .market-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.015);
    margin-bottom: 7px;
    transition: all 0.2s;
    gap: 6px;
}

body.ui-2030 .market-row:hover { background: rgba(255,255,255,0.04); }
body.ui-2030 .market-row:last-child { margin-bottom: 0; }

body.ui-2030 .mkt-left {
    display: flex; flex-direction: column;
    flex: 1; min-width: 0; text-align: right;
}

body.ui-2030 .mkt-name {
    font-size: 0.78rem; font-weight: 800; color: var(--white);
}

body.ui-2030 .mkt-price {
    font-size: 0.72rem; color: var(--slate); margin-top: 1px;
    font-family: 'Courier New', monospace;
}

body.ui-2030 .mkt-middle {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}

body.ui-2030 .mkt-change {
    font-size: 0.68rem; font-weight: 800;
    padding: 2px 5px; border-radius: 4px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

body.ui-2030 .mkt-change.up   { color: var(--green); background: rgba(16,185,129,0.1); }
body.ui-2030 .mkt-change.down { color: var(--red);   background: rgba(239,68,68,0.1); }
body.ui-2030 .mkt-change.neu  { color: var(--slate); background: rgba(255,255,255,0.05); }

body.ui-2030 .mkt-spark { width: 42px; height: 16px; opacity: 0.7; flex-shrink: 0; }

body.ui-2030 .mkt-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; flex-shrink: 0;
}

.mkt-icon.usd    { background: rgba(59,130,246,0.15); color: #3b82f6; }
.mkt-icon.eur    { background: rgba(37,99,235,0.15);  color: #2563eb; }
.mkt-icon.gold   { background: rgba(245,158,11,0.15); color: #f59e0b; }
.mkt-icon.coin   { background: rgba(217,119,6,0.15);  color: #d97706; }
.mkt-icon.usdt   { background: rgba(16,185,129,0.15); color: #10b981; }
.mkt-icon.btc    { background: rgba(245,158,11,0.15); color: #f59e0b; }

/* ── BEINESH / INSTANT INSIGHT ───────────────────────────── */
body.ui-2030 .insight-card { flex: none; }

body.ui-2030 .insight-kw-title {
    font-size: 0.88rem; font-weight: 800; color: var(--white);
    margin: 0 0 4px 0; text-align: right; direction: rtl;
}

body.ui-2030 .insight-kw-desc {
    font-size: 0.72rem; color: var(--slate); line-height: 1.6;
    text-align: right; direction: rtl; margin-bottom: 12px;
}

body.ui-2030 .insight-chart { height: 80px; }

body.ui-2030 .insight-time-labels {
    display: flex; justify-content: space-between;
    font-size: 0.6rem; color: var(--slate);
    direction: ltr; margin-top: 4px;
}

/* ── EARLY TRENDS ─────────────────────────────────────────── */
body.ui-2030 .early-trend-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-bottom: 8px;
    gap: 8px;
    transition: all 0.2s;
}

body.ui-2030 .early-trend-row:hover {
    background: rgba(16,185,129,0.05);
    border-color: rgba(16,185,129,0.15);
}

body.ui-2030 .early-trend-row:last-child { margin-bottom: 0; }

body.ui-2030 .et-info { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: right; }
body.ui-2030 .et-kw   { font-size: 0.82rem; font-weight: 800; color: var(--white); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
body.ui-2030 .et-kw:hover { color: var(--green); }
body.ui-2030 .et-pct  { font-size: 0.7rem; color: var(--green); font-weight: 800; margin-top: 2px; font-family: 'Courier New', monospace; }

body.ui-2030 .et-spark { width: 48px; height: 16px; opacity: 0.75; flex-shrink: 0; }

/* ── SECTION BADGES ──────────────────────────────────────── */
body.ui-2030 .soon-badge {
    font-size: 0.62rem;
    background: rgba(245,158,11,0.15);
    color: var(--amber);
    padding: 2px 7px; border-radius: 20px; font-weight: bold;
}

body.ui-2030 .rising-badge {
    font-size: 0.62rem;
    background: rgba(168,85,247,0.15);
    color: var(--purple);
    padding: 2px 7px; border-radius: 20px; font-weight: bold;
}

body.ui-2030 .see-all-link {
    font-size: 0.75rem; color: var(--slate); text-decoration: none;
    white-space: nowrap;
}

body.ui-2030 .see-all-link:hover { color: var(--white); }

/* ── OVERFLOW & LAYOUT SAFETY ────────────────────────────── */
body.ui-2030 {
    overflow-x: hidden;
}

body.ui-2030 .hp-grid {
    overflow: visible; /* allow glow effects to show */
}

body.ui-2030 .hp-col-right,
body.ui-2030 .hp-col-center,
body.ui-2030 .hp-col-left {
    min-width: 0; /* critical: prevents grid blowout */
    overflow: visible;
}

/* Signals section must clip overflow to prevent page-level scroll */
body.ui-2030 .signals-scroll {
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* ── FOOTER OVERRIDES for 2030 theme ─────────────────────── */
body.ui-2030 footer {
    background: rgba(6,9,19,0.98) !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    color: var(--slate) !important;
    margin-top: 40px;
}

body.ui-2030 .footer-grid {
    grid-template-columns: 1.5fr repeat(3,1fr) 1.8fr;
    gap: 32px;
    direction: rtl;
}

body.ui-2030 .footer-logo {
    color: var(--white) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
}

body.ui-2030 .footer-tagline { color: var(--cyan) !important; }
body.ui-2030 .footer-desc { color: var(--slate) !important; }

body.ui-2030 .footer-col h3 {
    color: var(--white) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

body.ui-2030 .footer-col ul li a {
    color: var(--slate) !important;
    font-size: 0.8rem !important;
}

body.ui-2030 .footer-col ul li a:hover { color: var(--cyan) !important; }

/* Promo footer strip */
body.ui-2030 .promo-banner-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    background: rgba(255,255,255,0.015);
    direction: rtl;
}

body.ui-2030 .promo-col-footer {
    display: flex; align-items: flex-start; gap: 12px;
}

body.ui-2030 .promo-text-wrap h4 {
    font-size: 0.88rem; font-weight: 800; color: var(--white); margin-bottom: 4px;
}

body.ui-2030 .promo-text-wrap p {
    font-size: 0.72rem; color: var(--slate); line-height: 1.5;
}

/* Social links in footer */
body.ui-2030 .social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--slate);
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
}

body.ui-2030 .social-icon-btn:hover {
    background: rgba(168,85,247,0.2);
    color: var(--purple);
    transform: translateY(-2px);
}

body.ui-2030 .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04) !important;
    padding-top: 20px !important;
    margin-top: 30px !important;
}

/* ── EXPERIMENTAL DATA LABEL ─────────────────────────────── */
body.ui-2030 .experimental-label {
    font-size: 0.58rem;
    background: rgba(245,158,11,0.1);
    color: rgba(245,158,11,0.7);
    border: 1px solid rgba(245,158,11,0.15);
    padding: 1px 5px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ── MOBILE NAV OVERRIDES ────────────────────────────────── */
@media (max-width: 992px) {
    body.ui-2030 .nav-links {
        display: none; /* hide center nav on mobile */
    }
    body.ui-2030 .header-search-wrap input {
        width: 160px;
    }
}

/* ── INTERNAL PAGES LAYOUT & SPECIFIC COMPONENTS ─────────── */

/* Breadcrumbs */
body.ui-2030 .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--slate);
    margin-bottom: 24px;
    direction: rtl;
    text-align: right;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
}
body.ui-2030 .breadcrumbs a {
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
body.ui-2030 .breadcrumbs a:hover {
    color: var(--cyan);
}
body.ui-2030 .breadcrumbs i.fa-chevron-left {
    font-size: 0.65rem;
    opacity: 0.5;
}
body.ui-2030 .breadcrumbs span {
    color: var(--white);
    font-weight: 600;
}

/* Article Page Layout */
body.ui-2030 .article-layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    direction: rtl;
    align-items: start;
}
@media (max-width: 900px) {
    body.ui-2030 .article-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Container */
body.ui-2030 .article-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 28px;
    direction: rtl;
    text-align: right;
}
body.ui-2030 .article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.76rem;
    color: var(--slate);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
body.ui-2030 .article-meta-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}
body.ui-2030 .article-meta-row a {
    color: var(--cyan);
    text-decoration: none;
}
body.ui-2030 .article-main-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.45;
    margin: 0 0 20px 0;
}
body.ui-2030 .article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
body.ui-2030 .article-body-text {
    font-size: 1.05rem;
    line-height: 1.95;
    color: #cbd5e1;
    margin-bottom: 30px;
}
body.ui-2030 .article-body-text p {
    margin-bottom: 20px;
}

/* Reactions */
body.ui-2030 .reactions-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
body.ui-2030 .reaction-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
body.ui-2030 .reaction-btn-modern:hover {
    background: rgba(168,85,247,0.1);
    border-color: rgba(168,85,247,0.4);
    box-shadow: 0 0 15px rgba(168,85,247,0.2);
}
body.ui-2030 .reaction-btn-modern.active {
    background: var(--grad-purple);
    border-color: var(--purple);
    box-shadow: 0 4px 15px rgba(168,85,247,0.4);
}

/* Article Tags */
body.ui-2030 .article-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
body.ui-2030 .article-tag-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--slate);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    text-decoration: none;
    transition: all 0.2s;
}
body.ui-2030 .article-tag-pill:hover {
    background: rgba(6,182,212,0.1);
    border-color: rgba(6,182,212,0.3);
    color: var(--cyan);
}

/* Source View Button */
body.ui-2030 .source-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-purple);
    color: #fff !important;
    font-weight: bold;
    font-size: 0.88rem;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(168,85,247,0.4);
    transition: all 0.2s;
}
body.ui-2030 .source-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168,85,247,0.6);
}

/* Related articles in sidebar */
body.ui-2030 .sidebar-glass-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 20px;
    direction: rtl;
    text-align: right;
}
body.ui-2030 .sidebar-box-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.ui-2030 .sidebar-box-title i {
    color: var(--cyan);
}
body.ui-2030 .sidebar-related-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}
body.ui-2030 .sidebar-related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
body.ui-2030 .sidebar-related-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}
body.ui-2030 .sidebar-related-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.ui-2030 .sidebar-related-title:hover {
    color: var(--cyan);
}

/* Hub Header Section (Categories, Tags, Sources) */
body.ui-2030 .hub-header-card {
    background: linear-gradient(135deg, rgba(168,85,247,0.04) 0%, rgba(6,182,212,0.01) 100%);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: var(--card-radius);
    padding: 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    text-align: right;
    position: relative;
    overflow: hidden;
}
body.ui-2030 .hub-header-card::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
body.ui-2030 .hub-title-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.ui-2030 .hub-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
}
body.ui-2030 .hub-title i {
    color: var(--cyan);
}
body.ui-2030 .hub-meta {
    font-size: 0.78rem;
    color: var(--slate);
}
body.ui-2030 .hub-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--slate);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}
body.ui-2030 .hub-back-btn:hover {
    border-color: var(--cyan);
    color: var(--white);
}

/* AI Summary Box inside Hubs */
body.ui-2030 .hub-ai-card {
    background: linear-gradient(135deg, rgba(168,85,247,0.07) 0%, rgba(6,182,212,0.02) 100%);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 24px;
    direction: rtl;
    text-align: right;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.05);
}
body.ui-2030 .hub-ai-card h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.ui-2030 .hub-ai-card h4 i {
    color: var(--purple);
}
body.ui-2030 .hub-ai-card p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 0;
}
body.ui-2030 .hub-ai-card .ai-source-note {
    font-size: 0.72rem;
    color: var(--slate);
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Load More Capsule Button */
body.ui-2030 .modern-load-more-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 32px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
body.ui-2030 .modern-load-more-btn:hover {
    background: rgba(16,185,129,0.08);
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(16,185,129,0.15);
}

/* Tag Cloud Listing Page */
body.ui-2030 .tag-cloud-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
    direction: rtl;
}
body.ui-2030 .tag-cloud-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 16px 0;
    border-right: 4px solid var(--cyan);
    padding-right: 12px;
}
body.ui-2030 .category-grid-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    direction: rtl;
}
body.ui-2030 .category-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
}
body.ui-2030 .category-hub-card:hover {
    border-color: rgba(6,182,212,0.3);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}
body.ui-2030 .category-hub-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}
body.ui-2030 .category-hub-name i {
    color: var(--cyan);
}
body.ui-2030 .category-hub-count {
    font-size: 0.72rem;
    background: rgba(6,182,212,0.15);
    color: var(--cyan);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

/* What's New Console (whats-new.php) */
body.ui-2030 .wn-container-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 16px;
    direction: rtl;
    text-align: right;
}
body.ui-2030 .wn-header-box {
    text-align: center;
    margin-bottom: 30px;
}
body.ui-2030 .wn-header-box h1 {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
body.ui-2030 .wn-header-box p {
    color: var(--slate);
    font-size: 1rem;
}
body.ui-2030 .ai-terminal-glass {
    background: rgba(15, 10, 25, 0.6);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(20px);
    padding: 24px;
    min-height: 350px;
    margin-bottom: 24px;
    font-family: inherit;
}
body.ui-2030 .ai-terminal-glass h2 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 16px;
}
body.ui-2030 .ai-entry-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
body.ui-2030 .ai-entry-block:last-child {
    border-bottom: none;
}
body.ui-2030 .ai-entry-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 6px;
}
body.ui-2030 .ai-entry-meta {
    font-size: 0.72rem;
    color: var(--slate);
    margin-bottom: 12px;
}
body.ui-2030 .ai-typewriter-text {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #e2e8f0;
}
body.ui-2030 .ai-typewriter-text .cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--purple);
    margin-right: 4px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}
@keyframes blink {
    50% { opacity: 0; }
}

body.ui-2030 .wn-chat-box-glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
body.ui-2030 .wn-chat-input-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
body.ui-2030 .wn-chat-input-row input {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px 20px;
    color: var(--white);
    font-size: 0.88rem;
    outline: none;
    direction: rtl;
}
body.ui-2030 .wn-chat-input-row input:focus {
    border-color: rgba(168,85,247,0.4);
}
body.ui-2030 .wn-chat-input-row button {
    background: var(--grad-purple);
    color: #fff;
    border: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(168,85,247,0.4);
    transition: all 0.2s;
}
body.ui-2030 .wn-chat-input-row button:hover {
    transform: scale(1.05);
}

/* ── header-search-input CSS mapping ── */
body.ui-2030 .header-search-input {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 7px 44px 7px 36px !important; /* right=icon, left=kbd hint */
    color: var(--white) !important;
    font-size: 0.82rem !important;
    width: 200px !important;
    height: 36px !important;
    outline: none !important;
    transition: all 0.3s !important;
    direction: rtl !important;
    font-family: inherit !important;
}
body.ui-2030 .header-search-input:focus {
    width: 240px !important;
    border-color: rgba(168,85,247,0.4) !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.08) !important;
}

/* ── menu-toggle visibility ── */
body.ui-2030 #menu-toggle {
    display: none !important;
}

/* ── mobile responsive polish & horizontal overflow fix ── */
@media (max-width: 992px) {
    body.ui-2030 .header-search-wrap {
        display: none !important;
    }
    body.ui-2030 #menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    body.ui-2030 .logo-tagline {
        display: none !important;
    }
    body.ui-2030 .logo-name {
        font-size: 1.05rem !important;
    }
    body.ui-2030 .header-flex {
        padding: 0 12px !important;
    }
    /* global mobile layout overflow fix */
    html, body.ui-2030 {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    /* Hub Header Card column wrapping on mobile */
    body.ui-2030 .hub-header-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 20px !important;
    }
    body.ui-2030 .hub-back-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    /* Footer promo and newsletter responsive stacking */
    body.ui-2030 .promo-banner-footer {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    body.ui-2030 .newsletter-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    body.ui-2030 .newsletter-form button {
        width: 100% !important;
        box-shadow: none !important;
    }
    body.ui-2030 .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px !important;
    }
    body.ui-2030 .footer-col h3, 
    body.ui-2030 .footer-col p, 
    body.ui-2030 .footer-col ul {
        text-align: center !important;
    }
    body.ui-2030 .social-links {
        justify-content: center !important;
    }
    
    /* Media Sources Grid mobile layout */
    body.ui-2030 .media-sources-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Disable GPU-heavy backdrop blur on mobile for massive rendering performance boost */
    body.ui-2030 .glass-card, 
    body.ui-2030 .ai-card, 
    body.ui-2030 .wn-chat-box-glass, 
    body.ui-2030 .ai-terminal-glass,
    body.ui-2030 .hub-header-card,
    body.ui-2030 .hub-ai-card,
    body.ui-2030 .article-container-card,
    body.ui-2030 .sidebar-glass-box,
    body.ui-2030 header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 15, 30, 0.95) !important; /* solid dark background */
    }
}

/* ── Media Sources Grid desktop layout ── */
body.ui-2030 .media-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

