/**
 * आकाशवाणी — Design System 2026
 * Editorial Minimalism with Nepali Character
 * Clean. Purposeful. Genuinely designed.
 */

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Surface colors */
    --bg: #f8f9fa;
    --surface: #ffffff;
    --border: #e5e7eb;
    --border-light: #f0f1f3;

    /* Emerald primary */
    --primary: #059669;
    --primary-light: #10b981;
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;

    /* Text */
    --text: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-faint: #9ca3af;

    /* Dark (nav, footer) */
    --dark: #0f172a;
    --dark-100: #f1f5f9;
    --dark-200: #e2e8f0;
    --dark-300: #cbd5e1;
    --dark-400: #94a3b8;
    --dark-500: #64748b;
    --dark-600: #475569;
    --dark-700: #1e293b;
    --dark-800: #0f172a;
    --dark-900: #020617;

    /* Semantic */
    --success: #16a34a;
    --warning: #d97706;
    --error: #dc2626;
    --info: #2563eb;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);

    /* Spacing */
    --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;  --sp-4: 1rem;
    --sp-5: 1.25rem;  --sp-6: 1.5rem;  --sp-8: 2rem;     --sp-10: 2.5rem;
    --sp-12: 3rem;    --sp-16: 4rem;

    /* Radius */
    --r-sm: 0.25rem; --r: 0.375rem; --r-md: 0.5rem;
    --r-lg: 0.75rem; --r-xl: 1rem;  --r-2xl: 1.25rem;
    --r-full: 9999px;

    /* Shadows — subtle, professional */
    --sh-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --sh: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --sh-md: 0 8px 16px -4px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --sh-lg: 0 20px 24px -4px rgba(0,0,0,0.08), 0 8px 8px -4px rgba(0,0,0,0.03);

    /* Transitions */
    --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container: 1200px;
    --header-h: 64px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }
::selection { background: var(--primary-100); color: var(--primary); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--dark-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-400); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}
@media (max-width: 640px) { .container { padding: 0 var(--sp-4); } }

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════ */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.775rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.4rem 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}
.topbar-left { display: flex; align-items: center; gap: var(--sp-5); }
.topbar-date { color: rgba(255,255,255,0.9); font-weight: 500; }
.topbar-divider { color: rgba(255,255,255,0.2); }
.topbar-greeting { color: var(--primary-light); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: var(--sp-5); }
.lang-btn { color: rgba(255,255,255,0.7); font-weight: 500; transition: color var(--t-fast); }
.lang-btn:hover { color: #fff; }
.login-btn {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    padding: 0.2rem 0.75rem;
    border-radius: var(--r);
    font-weight: 600;
    font-size: 0.775rem;
    transition: all var(--t-fast);
}
.login-btn:hover { background: var(--primary); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   HEADER (news.php / ipo-tracker.php style)
   ═══════════════════════════════════════════════════════════════ */
.header-main {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); gap: var(--sp-4);
}
.header-brand {
    display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0;
}
.brand-name { font-size: 1.1rem; font-weight: 800; color: var(--text); }

/* Nav compat for news.php style */
.nav-list {
    display: flex; gap: 2px; padding: var(--sp-2) 0; list-style: none;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--sp-6);
    align-items: center;
    height: var(--header-h);
}
@media (max-width: 768px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .header-search { display: none; }
}

/* Brand */
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0; }
.brand-logo {
    width: 40px; height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem;
    transition: transform var(--t);
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-text h1 { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.brand-text span { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* Search */
.header-search { max-width: 440px; }
.search-wrapper { position: relative; display: flex; align-items: center; }
.search-icon {
    position: absolute; left: var(--sp-3);
    width: 16px; height: 16px;
    color: var(--text-faint); pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 2.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.875rem; color: var(--text);
    transition: all var(--t);
}
.search-input::placeholder { color: var(--text-faint); }
.search-input:focus {
    outline: none; background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.08);
}
.search-kbd {
    position: absolute; right: var(--sp-3);
    padding: 1px 5px;
    background: var(--border);
    border-radius: var(--r-sm);
    font-size: 0.65rem; color: var(--text-faint);
    pointer-events: none; font-family: inherit;
}

/* Actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-1); }
.action-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-md);
    color: var(--text-muted);
    transition: all var(--t-fast);
}
.action-btn:hover { background: var(--bg); color: var(--text); }
.action-btn svg { width: 18px; height: 18px; }
.mobile-menu-toggle { display: none; }
@media (max-width: 768px) { .mobile-menu-toggle { display: flex; } }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.main-nav {
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-list {
    display: flex; gap: 2px;
    padding: var(--sp-2) 0;
    list-style: none;
    white-space: nowrap;
}
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.825rem; font-weight: 600;
    color: rgba(255,255,255,0.65);
    border-radius: var(--r-md);
    transition: all var(--t-fast);
    position: relative;
}
.nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.95);
}
.nav-link.active {
    background: rgba(5,150,105,0.2);
    color: #6ee7b7;
}
.nav-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   LIVE BANNER
   ═══════════════════════════════════════════════════════════════ */
.live-banner {
    background: var(--dark-800);
    border-bottom: 1px solid rgba(5,150,105,0.2);
    padding: var(--sp-2) 0;
}
.banner-inner {
    display: flex; align-items: center; gap: var(--sp-4);
}
.live-pill {
    display: flex; align-items: center; gap: 6px;
    background: rgba(5,150,105,0.15);
    border: 1px solid rgba(5,150,105,0.3);
    padding: 2px 10px;
    border-radius: var(--r-full);
    font-size: 0.7rem; font-weight: 700;
    color: #6ee7b7; letter-spacing: 0.06em;
    flex-shrink: 0;
}
.live-pill-dot {
    width: 6px; height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.banner-text { font-size: 0.825rem; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   MARKET STRIP
   ═══════════════════════════════════════════════════════════════ */
.market-strip {
    background: var(--dark-900);
    padding: var(--sp-4) 0;
}
.market-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-3);
}
@media (max-width: 1024px) { .market-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }

.market-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    padding: var(--sp-4) var(--sp-4);
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--t);
}
.market-card.loaded { opacity: 1; transform: translateY(0); }
.market-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(5,150,105,0.3); }

.market-icon { font-size: 1.25rem; margin-bottom: 4px; line-height: 1; }
.market-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.market-value { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.2; }
.market-change { font-size: 0.75rem; font-weight: 600; margin-top: 2px; }
.market-change.up { color: #4ade80; }
.market-change.down { color: #f87171; }
.market-meta { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.main-content { padding: var(--sp-8) 0; }

/* ═══════════════════════════════════════════════════════════════
   FEATURED NEWS
   ═══════════════════════════════════════════════════════════════ */
.featured-card {
    display: block;
    position: relative;
    border-radius: var(--r-2xl);
    overflow: hidden;
    margin-bottom: var(--sp-10);
    text-decoration: none;
}
.featured-img-wrap {
    position: relative;
    aspect-ratio: 21/9;
    overflow: hidden;
    background: var(--dark-300);
}
@media (max-width: 768px) { .featured-img-wrap { aspect-ratio: 16/9; } }
.featured-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--t);
}
.featured-card:hover .featured-img { transform: scale(1.03); }
.featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.featured-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: var(--sp-8) var(--sp-8) var(--sp-6);
    color: #fff;
}
@media (max-width: 640px) { .featured-content { padding: var(--sp-5) var(--sp-4) var(--sp-4); } }
.featured-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: var(--r-full);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: var(--sp-3);
}
.featured-badge-dot {
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
}
.featured-title {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: var(--sp-3);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.featured-meta {
    display: flex; align-items: center; gap: var(--sp-3);
    font-size: 0.8rem; color: rgba(255,255,255,0.7);
}
.featured-meta-dot { opacity: 0.4; }
.featured-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: var(--sp-4);
    font-size: 0.825rem; font-weight: 700;
    color: #fff; opacity: 0.85;
    transition: opacity var(--t-fast);
}
.featured-card:hover .featured-cta { opacity: 1; }
.featured-cta svg { width: 16px; height: 16px; transition: transform var(--t); }
.featured-card:hover .featured-cta svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   NEWS SECTION
   ═══════════════════════════════════════════════════════════════ */
.news-section { margin-bottom: var(--sp-12); }

/* Section header */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-4);
    border-bottom: 2px solid var(--border);
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 48px; height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.section-title {
    display: flex; align-items: center; gap: var(--sp-3);
    font-size: 1.1rem; font-weight: 800;
    color: var(--text); letter-spacing: -0.01em;
}
.section-title-icon {
    width: 32px; height: 32px;
    background: var(--primary-50);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.section-title-icon svg { width: 16px; height: 16px; }
.section-link {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.825rem; font-weight: 600;
    color: var(--primary);
    transition: all var(--t-fast);
    padding: 4px 12px;
    border-radius: var(--r-full);
    background: var(--primary-50);
}
.section-link:hover { background: var(--primary); color: #fff; }
.section-link svg { width: 14px; height: 14px; }

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; gap: var(--sp-4); } }

/* News card */
.news-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--t);
}
.news-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}

.card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--dark-200);
}
.card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--t);
}
.news-card:hover .card-img { transform: scale(1.05); }

.card-cat-badge {
    position: absolute; top: var(--sp-2); left: var(--sp-2);
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--r-full);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.card-body { padding: var(--sp-4); }
.card-title {
    font-size: 0.9rem; font-weight: 700;
    color: var(--text); line-height: 1.4;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}
.card-meta {
    display: flex; align-items: center; gap: var(--sp-2);
    font-size: 0.75rem; color: var(--text-muted);
}
.card-source { font-weight: 600; }
.card-time::before { content: '·'; margin-right: var(--sp-2); opacity: 0.4; }

/* ═══════════════════════════════════════════════════════════════
   TOOLS SECTION
   ═══════════════════════════════════════════════════════════════ */
.tools-section { margin-bottom: var(--sp-12); }
.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--sp-3);
}
@media (max-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }

.tool-card {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: var(--sp-2);
    padding: var(--sp-5) var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    text-decoration: none;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.tool-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--sh-sm);
    transform: translateY(-2px);
}
.tool-card-icon {
    width: 40px; height: 40px;
    background: var(--primary-50);
    border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: all var(--t);
}
.tool-card:hover .tool-card-icon { background: var(--primary); color: #fff; }
.tool-card-icon svg { width: 20px; height: 20px; }
.tool-label { font-size: 0.775rem; font-weight: 600; color: var(--text-secondary); text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGES
   ═══════════════════════════════════════════════════════════════ */
.category-header {
    padding: var(--sp-8) 0 var(--sp-6);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-8);
}
.category-title {
    font-size: 1.75rem; font-weight: 800;
    color: var(--text); letter-spacing: -0.02em;
    margin-bottom: var(--sp-2);
}
.category-desc { font-size: 0.9rem; color: var(--text-muted); }
.category-count { font-size: 0.8rem; color: var(--text-faint); margin-top: var(--sp-2); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }
.delay-5 { animation-delay: 400ms; }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-green { color: #16a34a; }
.text-red { color: #dc2626; }
.text-gold { color: #d97706; }
.bg-white { background: #fff; }
.bg-gray { background: var(--bg); }
.bg-dark { background: var(--dark); }
.bg-primary { background: var(--primary); }
.p-2 { padding: var(--sp-2); }
.p-3 { padding: var(--sp-3); }
.p-4 { padding: var(--sp-4); }
.p-6 { padding: var(--sp-6); }
.px-4 { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.py-2 { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.py-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.px-6 { padding-left: var(--sp-6); padding-right: var(--sp-6); }
.py-6 { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.py-10 { padding-top: var(--sp-10); padding-bottom: var(--sp-10); }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded { border-radius: var(--r); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: var(--r-full); }
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.shadow-sm { box-shadow: var(--sh-sm); }
.shadow { box-shadow: var(--sh); }
.shadow-lg { box-shadow: var(--sh-lg); }
.cursor-pointer { cursor: pointer; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tracking-tight { letter-spacing: -0.02em; }
.leading-tight { line-height: 1.25; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.transition { transition: all var(--t); }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-6); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--dark-900);
    color: rgba(255,255,255,0.65);
    padding: var(--sp-12) 0 var(--sp-6);
    margin-top: var(--sp-12);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-10);
    margin-bottom: var(--sp-10);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); } }

.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-logo {
    width: 48px; height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.3rem;
    flex-shrink: 0;
}
.footer-name { font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.footer-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: var(--sp-5); }

.footer-social { display: flex; gap: var(--sp-2); }
.social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--t-fast);
}
.social-btn:hover { background: var(--primary); border-color: transparent; color: #fff; }
.social-btn svg { width: 16px; height: 16px; }

.footer-col-title {
    font-size: 0.75rem; font-weight: 700;
    color: #fff; letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
    font-size: 0.825rem; color: rgba(255,255,255,0.5);
    transition: color var(--t-fast);
    display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-links a svg { width: 14px; height: 14px; opacity: 0.5; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: var(--sp-6);
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: var(--sp-4); flex-wrap: wrap;
}
.footer-copy { font-size: 0.775rem; color: rgba(255,255,255,0.4); }
.footer-copyright { font-size: 0.775rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: var(--sp-5); }
.footer-legal a { font-size: 0.775rem; color: rgba(255,255,255,0.4); transition: color var(--t-fast); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 200;
    padding: 0 0 env(safe-area-inset-bottom, 0);
}
.bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 56px;
}
.bottom-nav-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 0.6rem; font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
    position: relative;
}
.bottom-nav-item svg { width: 20px; height: 20px; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active::before {
    content: '';
    position: absolute; top: 0; left: 25%; right: 25%;
    height: 2px; background: var(--primary);
    border-radius: 0 0 2px 2px;
}
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    .main-content { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }
}

/* ═══════════════════════════════════════════════════════════════
   AI CHAT PAGE
   ═══════════════════════════════════════════════════════════════ */
.ai-page {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-4);
}
.ai-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}
.ai-title { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.ai-subtitle { font-size: 0.9rem; color: var(--text-muted); }
.ai-chat-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--sh-sm);
}
.ai-messages { padding: var(--sp-6); min-height: 400px; max-height: 60vh; overflow-y: auto; }
.ai-input-row {
    display: flex; gap: var(--sp-2); padding: var(--sp-4);
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.ai-input {
    flex: 1;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    font-size: 0.875rem;
    color: var(--text);
    resize: none;
    transition: border-color var(--t-fast);
}
.ai-input:focus { outline: none; border-color: var(--primary); }
.ai-send-btn {
    width: 44px; height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
    transition: opacity var(--t-fast);
}
.ai-send-btn:hover { opacity: 0.85; }
.ai-send-btn svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════════
   BACKWARD-COMPAT ALIASES (used by news.php, gov-services, etc.)
   ═══════════════════════════════════════════════════════════════ */
.news-card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--dark-200); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--t); }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-category {
    position: absolute; top: var(--sp-2); left: var(--sp-2);
    background: var(--primary); color: #fff;
    padding: 2px 10px; border-radius: var(--r-full);
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.news-card-body { padding: var(--sp-4); }
.news-card-title {
    font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.4;
    margin-bottom: var(--sp-2); display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.01em;
}
.news-card-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.75rem; color: var(--text-muted); }
.news-card-source { font-weight: 600; }
.news-card-time::before { content: '·'; margin-right: var(--sp-2); opacity: 0.4; }

.market-card-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.market-card-value { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.2; }
.market-card-change { font-size: 0.75rem; font-weight: 600; margin-top: 2px; }
.market-card-change.up { color: #4ade80; }
.market-card-change.down { color: #f87171; }
.market-card-meta { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* Featured card backward compat */
.featured-image-wrapper { position: relative; aspect-ratio: 21/9; overflow: hidden; background: var(--dark-300); }
.featured-image { width: 100%; height: 100%; object-fit: cover; }
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }
.featured-badge-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.7); border-radius: 50%; }
.meta-divider { color: rgba(255,255,255,0.4); }

/* Card backward compat */
.card-image-wrapper { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--dark-200); }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.card-category-badge {
    position: absolute; top: var(--sp-2); left: var(--sp-2);
    background: var(--primary); color: #fff;
    padding: 2px 10px; border-radius: var(--r-full);
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Tool card backward compat */
.tool-icon { font-size: 1.5rem; }

/* Premium topbar alias */
.premium-topbar { background: var(--dark); color: rgba(255,255,255,0.7); font-size: 0.775rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.premium-topbar-content { display: flex; align-items: center; justify-content: space-between; }
.premium-topbar-left { display: flex; align-items: center; gap: var(--sp-5); }
.premium-topbar-right { display: flex; align-items: center; gap: var(--sp-5); }
.premium-topbar-date { color: rgba(255,255,255,0.9); font-weight: 500; }
.premium-topbar-divider { color: rgba(255,255,255,0.2); }
.premium-topbar-greeting { color: var(--primary-light); font-weight: 600; }

/* Premium header alias */
.premium-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }

/* Premium nav alias */
.premium-nav { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06); overflow-x: auto; scrollbar-width: none; }
.premium-nav::-webkit-scrollbar { display: none; }

/* Market strip alias */
.premium-market { background: var(--dark-900); padding: var(--sp-4) 0; }
.market-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
@media (max-width: 1024px) { .market-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }

/* Premium footer alias */
.premium-footer { background: var(--dark-900); color: rgba(255,255,255,0.65); padding: var(--sp-12) 0 var(--sp-6); margin-top: var(--sp-12); border-top: 1px solid rgba(255,255,255,0.05); }

/* Live banner backward compat */
.live-badge { display: flex; align-items: center; gap: 6px; background: rgba(5,150,105,0.15); border: 1px solid rgba(5,150,105,0.3); padding: 2px 10px; border-radius: var(--r-full); font-size: 0.7rem; font-weight: 700; color: #6ee7b7; letter-spacing: 0.06em; }
.live-dot { width: 6px; height: 6px; background: var(--primary-light); border-radius: 50%; animation: livePulse 1.5s ease-in-out infinite; }
.banner-content { display: flex; align-items: center; gap: var(--sp-4); }

/* Section header compat */
.section-title-icon { font-size: 1.25rem; line-height: 1; }

/* Market card main (ensure it covers all variants) */
.market-card .card-icon { font-size: 1.25rem; margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════ */
.input-field {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.875rem; color: var(--text);
    transition: all var(--t-fast);
}
.input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.08); }
.input-field::placeholder { color: var(--text-faint); }

.btn-primary {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    background: var(--gradient-primary);
    color: #fff; font-weight: 700; font-size: 0.875rem;
    border-radius: var(--r-md);
    border: none; cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-primary svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════════════ */
.page-enter {
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* MISSING UTILITY + COMPONENT CLASSES */
.header-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-6); }
.section { padding: var(--sp-8) 0; }
.page-header { background: var(--dark-900); padding: var(--sp-12) 0; color: #fff; }
.page-title { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: var(--sp-2); }
.page-subtitle { color: rgba(255,255,255,0.65); font-size: 1.125rem; }
@media (max-width: 768px) { .page-title { font-size: 1.75rem; } }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-sm { width: 0.75em; height: 0.75em; }
.icon-xl { width: 2em; height: 2em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-6); border-radius: var(--r); border: none; cursor: pointer; font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: all var(--t); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--dark-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-icon { padding: var(--sp-2); border-radius: var(--r-md); }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8rem; }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 1rem; }
.btn-cat { padding: var(--sp-2) var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius-full); background: #fff; cursor: pointer; font-size: 0.875rem; transition: all var(--t); }
.btn-cat.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-cat:hover { border-color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: var(--sp-2); }
@media (max-width: 768px) { .mobile-menu-btn { display: flex; } }
.alert { padding: var(--sp-4) var(--sp-6); border-radius: var(--r-lg); border-left: 4px solid; margin-bottom: var(--sp-4); }
.alert-info { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-error { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.loading-spinner { text-align: center; padding: var(--sp-12) 0; }
.tabs { display: flex; gap: var(--sp-2); border-bottom: 2px solid var(--border); margin-bottom: var(--sp-6); }
.tab { padding: var(--sp-3) var(--sp-6); color: var(--text-muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--t); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-color: var(--primary); }
.table-wrapper { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; }
.table th { background: var(--dark-50); font-weight: 700; font-size: 0.8rem; color: var(--text-muted); }
.table tbody tr:hover { background: var(--bg); }
.table tbody tr { border-top: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px var(--sp-3); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-primary { background: #d1fae5; color: #065f46; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-dark { background: var(--dark-800); color: rgba(255,255,255,0.7); }
.badge-urgent { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.empty { text-align: center; padding: var(--sp-12) var(--sp-6); color: var(--text-muted); }
.empty-title { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--sp-2); }
.open { color: #22c55e; font-weight: 600; }
.upcoming { color: #f59e0b; font-weight: 600; }
.source-tag { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.space-y-4 > * + * { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-secondary { color: var(--text-muted); }
.opacity-80 { opacity: 0.8; }
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 768px) { .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; } }
.row { display: flex; flex-wrap: wrap; margin: 0 calc(-1 * var(--sp-4)); }
.col { padding: 0 var(--sp-4); flex: 1; }
.col-2 { flex: 0 0 16.67%; max-width: 16.67%; padding: 0 var(--sp-4); }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 var(--sp-4); }
.col-4 { flex: 0 0 33.33%; max-width: 33.33%; padding: 0 var(--sp-4); }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 var(--sp-4); }
@media (max-width: 768px) { .col-2, .col-3, .col-4, .col-6 { flex: 0 0 100%; max-width: 100%; } }


/* TECHPANA-STYLE LAYOUT */
.tp-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-6); }
.tp-topbar { background: var(--dark-900); color: rgba(255,255,255,0.85); font-size: 0.8rem; padding: 6px 0; }
.tp-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.tp-topbar-left { display: flex; align-items: center; gap: var(--sp-4); }
.tp-date { color: rgba(255,255,255,0.7); font-family: 'Noto Sans Devanagari', sans-serif; }
.tp-topbar-links { display: flex; gap: var(--sp-3); }
.tp-topbar-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.tp-topbar-links a:hover { color: #fff; }
.tp-topbar-right { display: flex; align-items: center; gap: var(--sp-3); }
.tp-topbar-right a { color: rgba(255,255,255,0.7); }
.tp-topbar-right a:hover { color: #fff; }
.tp-topbar-right a svg, .tp-topbar-right a i { width: 16px; height: 16px; }
.tp-login-btn { background: var(--primary) !important; color: #fff !important; padding: 3px 12px; border-radius: 4px; font-weight: 600; font-size: 0.75rem; }
.tp-header-mid { background: var(--surface); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.tp-header-mid-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); }
.tp-logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.tp-logo img { width: 48px; height: 48px; border-radius: 10px; }
.tp-logo-text { display: flex; flex-direction: column; }
.tp-logo-name { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.tp-logo-tagline { font-size: 0.72rem; color: var(--text-muted); }
.tp-header-ads { flex: 1; max-width: 728px; height: 90px; background: var(--bg); border: 1px dashed var(--border); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.8rem; }
.tp-nav { background: var(--primary); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.tp-nav-inner { display: flex; align-items: center; gap: var(--sp-2); height: 48px; }
.tp-nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: var(--sp-2); }
.tp-nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tp-nav-list::-webkit-scrollbar { display: none; }
.tp-nav-list li a { display: block; padding: 6px 14px; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.875rem; font-weight: 600; border-radius: 6px; white-space: nowrap; transition: all 0.2s; }
.tp-nav-list li a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.tp-nav-list li a.active { background: rgba(255,255,255,0.2); color: #fff; }
.tp-nav-search { flex-shrink: 0; margin-left: auto; }
.tp-search-btn { background: rgba(255,255,255,0.15); border: none; color: #fff; cursor: pointer; padding: 8px; border-radius: 6px; display: flex; }
.tp-search-btn:hover { background: rgba(255,255,255,0.25); }
.tp-search-btn svg, .tp-search-btn i { width: 18px; height: 18px; }
.tp-search-bar { padding: var(--sp-3) 0; border-top: 1px solid rgba(255,255,255,0.1); }
.tp-search-bar input { width: 100%; padding: var(--sp-3) var(--sp-4); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background: rgba(255,255,255,0.95); font-size: 0.9rem; color: var(--text); }
.tp-search-bar input:focus { outline: none; }
@media (max-width: 768px) { .tp-nav-toggle { display: flex; } .tp-nav-list { display: none; position: absolute; top: 48px; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: var(--sp-3); gap: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .tp-nav-list.open { display: flex; } .tp-nav-list li a { padding: 10px 16px; } .tp-header-ads { display: none; } }
.tp-market-bar { background: var(--dark-800); color: rgba(255,255,255,0.9); padding: 10px 0; overflow: hidden; }
.tp-market-inner { display: flex; align-items: center; gap: var(--sp-4); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.tp-market-inner::-webkit-scrollbar { display: none; }
.tp-market-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.tp-market-item svg, .tp-market-item i { width: 14px; height: 14px; color: var(--primary); }
.tp-mkt-label { color: rgba(255,255,255,0.55); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tp-mkt-value { font-weight: 700; color: #fff; font-family: 'Inter', monospace; }
.tp-mkt-change { font-size: 0.75rem; font-weight: 600; }
.tp-mkt-change.up { color: #4ade80; }
.tp-mkt-change.down { color: #f87171; }
.tp-market-divider { color: rgba(255,255,255,0.2); }
.tp-main { padding: var(--sp-8) 0; }
.tp-content-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-8); align-items: start; }
@media (max-width: 1024px) { .tp-content-layout { grid-template-columns: 1fr; } }
.tp-hero { margin-bottom: var(--sp-6); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.tp-hero-link { display: block; text-decoration: none; color: inherit; }
.tp-hero-img-wrap { position: relative; }
.tp-hero-img { width: 100%; height: 420px; object-fit: cover; display: block; }
.tp-hero-cat { position: absolute; top: var(--sp-4); left: var(--sp-4); background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.tp-hero-body { padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-top: none; }
.tp-hero-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: var(--sp-3); }
.tp-hero-excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: var(--sp-3); }
.tp-hero-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 768px) { .tp-hero-img { height: 220px; } .tp-hero-title { font-size: 1.15rem; } }
.tp-cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 2px solid var(--border); }
.tp-cat-tab { padding: 6px 18px; border: 1.5px solid var(--border); border-radius: 24px; background: #fff; color: var(--text); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tp-cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.tp-cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tp-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-8); }
@media (max-width: 900px) { .tp-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tp-news-grid { grid-template-columns: 1fr; } }
.tp-news-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.tp-news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.tp-card-img-wrap { position: relative; overflow: hidden; }
.tp-card-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s; }
.tp-news-card:hover .tp-card-img { transform: scale(1.04); }
.tp-card-cat { position: absolute; top: var(--sp-3); left: var(--sp-3); background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.tp-card-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.tp-card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: var(--sp-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.tp-card-source { font-weight: 600; color: var(--primary); }
.tp-card-time { font-weight: 500; }
.tp-load-more { text-align: center; margin-bottom: var(--sp-10); }
.tp-btn-primary { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-8); background: var(--primary); color: #fff; border-radius: 30px; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 12px rgba(5,150,105,0.3); }
.tp-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.tp-btn-primary svg, .tp-btn-primary i { width: 18px; height: 18px; }
.tp-sidebar { display: flex; flex-direction: column; gap: var(--sp-5); }
.tp-side-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.tp-widget-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--primary); display: inline-block; }
.tp-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.tp-quick-item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-2); border-radius: var(--r); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 0.78rem; font-weight: 600; text-align: center; transition: all 0.2s; background: var(--bg); }
.tp-quick-item:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.tp-quick-item svg, .tp-quick-item i { width: 24px; height: 24px; color: var(--primary); }
.tp-trending-list { list-style: none; padding: 0; margin: 0; }
.tp-trending-list li a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.tp-trending-list li:last-child a { border-bottom: none; }
.tp-trending-list li a:hover { color: var(--primary); }
.tp-trending-list li a svg, .tp-trending-list li a i { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.tp-newsletter { background: linear-gradient(135deg, var(--dark-900), var(--dark-700)); }
.tp-newsletter .tp-widget-title { color: #fff; border-color: rgba(255,255,255,0.3); }
.tp-newsletter-desc { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: var(--sp-4); }
.tp-newsletter-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.tp-input { padding: var(--sp-3) var(--sp-4); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.1); color: #fff; font-size: 0.875rem; }
.tp-input::placeholder { color: rgba(255,255,255,0.5); }
.tp-input:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.tp-btn-submit { padding: var(--sp-3) var(--sp-4); background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.tp-btn-submit:hover { background: var(--primary-dark); }
.tp-footer { background: var(--dark-900); color: rgba(255,255,255,0.7); padding: var(--sp-10) 0 var(--sp-6); }
.tp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .tp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tp-footer-grid { grid-template-columns: 1fr; } }
.tp-footer-logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; margin-bottom: var(--sp-4); }
.tp-footer-logo img { width: 40px; height: 40px; border-radius: 8px; }
.tp-footer-name { display: block; font-size: 1.1rem; font-weight: 800; color: #fff; }
.tp-footer-tagline { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.tp-footer-desc { font-size: 0.875rem; line-height: 1.6; margin-bottom: var(--sp-4); color: rgba(255,255,255,0.6); }
.tp-footer-social { display: flex; gap: var(--sp-3); }
.tp-footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.2s; }
.tp-footer-social a:hover { background: var(--primary); color: #fff; }
.tp-footer-social a svg, .tp-footer-social a i { width: 16px; height: 16px; }
.tp-footer h4 { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: var(--sp-4); text-transform: uppercase; letter-spacing: 0.05em; }
.tp-footer ul { list-style: none; padding: 0; margin: 0; }
.tp-footer ul li { margin-bottom: var(--sp-2); }
.tp-footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.tp-footer ul li a:hover { color: #fff; }
.tp-footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: var(--sp-3); }
