
:root {
    color-scheme: dark;
    --bg: #080c16;
    --panel: #111827;
    --panel-light: #182337;
    --text: #f1f5ff;
    --muted: #9aa9c1;
    --cyan: #51e5ff;
    --purple: #a78bfa;
    --border: rgba(148, 163, 184, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(40, 91, 170, .17), transparent 38%),
        radial-gradient(ellipse at 85% 10%, rgba(120, 65, 190, .12), transparent 32%),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px clamp(16px, 4vw, 64px);
    background: #070a12;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.world-clocks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.world-clocks span { display: flex; gap: 7px; }
.world-clocks time { color: var(--cyan); font-variant-numeric: tabular-nums; }

.admin-link {
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 9px;
    transition: .25s ease;
}
.admin-link:hover { border-color: var(--cyan); color: var(--cyan); }

.brand-header {
    padding: 30px 20px 24px;
    text-align: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(23px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #fff;
    text-shadow: 0 2px 0 #64748b, 0 5px 0 #273449, 0 9px 22px #000;
    transition: transform .3s ease, filter .3s ease;
}
.brand:hover { transform: perspective(400px) rotateX(5deg) scale(1.025); filter: drop-shadow(0 0 15px #51e5ff55); }
.brand strong {
    background: linear-gradient(110deg, #51e5ff, #a78bfa 48%, #ffcf70);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}
.brand-globe { font-size: 1.1em; filter: drop-shadow(0 0 12px #51e5ff66); }

.brand-header p { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

.category-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(9, 13, 24, .9);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-nav a {
    padding: 10px 16px;
    color: #cbd5e1;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .25s ease, color .25s ease, background .25s ease;
}
.category-nav a:hover {
    color: var(--cyan);
    background: linear-gradient(135deg, #17263c, #19182e);
    border-color: #51e5ff44;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px #0005;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

.welcome { padding: 55px 0 32px; }
.eyebrow {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}
.welcome h1 { font-size: clamp(30px, 5vw, 52px); margin: 13px 0; letter-spacing: -1.5px; }
.welcome p { color: var(--muted); }

.ad-slot {
    position: relative;
    margin: 18px 0 32px;
    padding: 22px;
    border: 1px dashed #60718c66;
    border-radius: 16px;
    background: linear-gradient(120deg, #121b2a, #101421);
}
.ad-slot img { display: block; max-width: 100%; max-height: 240px; object-fit: contain; margin: 12px auto; }
.ad-label { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 10px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 25px 0; }
.section-heading h2 { margin: 8px 0 0; font-size: 27px; }
.live-indicator { color: #7ee7b7; font-size: 11px; font-weight: 800; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.news-card {
    overflow: hidden;
    background: linear-gradient(145deg, #151f30, #0e1421);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 12px 32px #0002;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-5px); border-color: #51e5ff66; box-shadow: 0 18px 38px #0005; }

.news-image, .image-placeholder {
    display: block;
    width: 100%;
    height: 205px;
    object-fit: cover;
    background: linear-gradient(135deg, #182d48, #292043);
}
.image-placeholder {
    display: grid;
    place-items: center;
    color: #a9c5e7;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 12px;
}

.news-content { padding: 19px; }
.category-label {
    display: inline-block;
    color: var(--cyan);
    background: #51e5ff12;
    border: 1px solid #51e5ff28;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 800;
}
.news-content h3 { font-size: 18px; line-height: 1.45; margin: 12px 0; }
.news-content p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.news-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 10px;
    margin-top: 18px;
}

.empty-state {
    text-align: center;
    padding: 55px 20px;
    border: 1px solid var(--border);
    background: #11182788;
    border-radius: 18px;
}
.empty-icon { color: var(--cyan); font-size: 35px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); line-height: 1.7; }

.market-footer {
    position: relative;
    overflow: hidden;
    margin-top: 65px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px clamp(16px, 4vw, 64px);
    background: #070a12;
    border-top: 1px solid var(--border);
}
.market-title { color: var(--cyan); font-size: 11px; font-weight: 900; white-space: nowrap; }
.market-track { display: flex; gap: 35px; overflow-x: auto; scrollbar-width: thin; }
.market-track span { color: var(--muted); white-space: nowrap; font-size: 12px; }
.market-track b { color: var(--text); margin-left: 8px; font-weight: 600; }

@media (max-width: 850px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .world-clocks { gap: 10px 15px; }
}

@media (max-width: 560px) {
    .topbar { align-items: flex-start; }
    .world-clocks { display: grid; grid-template-columns: repeat(2, auto); }
    .brand-header { padding: 25px 12px; }
    .category-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .category-nav a { white-space: nowrap; }
    .news-grid { grid-template-columns: 1fr; }
    .news-image, .image-placeholder { height: 220px; }
    .section-heading { align-items: flex-start; }
    .market-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
    .market-track { width: 100%; }
}
