:root {
    color-scheme: dark;
    --bg: radial-gradient(circle at 15% 20%, #122845 0%, #081120 55%, #05060d 100%);
    --bg-overlay: linear-gradient(135deg, rgba(79, 155, 255, 0.25), transparent 45%),
        linear-gradient(220deg, rgba(147, 91, 255, 0.22), transparent 55%);
    --surface: rgba(9, 14, 33, 0.82);
    --surface-alt: rgba(15, 21, 45, 0.7);
    --surface-pop: rgba(26, 31, 58, 0.78);
    --headline: #f8fafc;
    --text: #dce4f7;
    --muted: #8ea0c7;
    --border: rgba(82, 161, 255, 0.22);
    --accent: #51a4ff;
    --accent-alt: #9f67ff;
    --accent-hot: #ff7a7a;
    --glow: 0 25px 60px rgba(79, 155, 255, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    position: relative;
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--bg-overlay);
    opacity: 0.9;
    z-index: -3;
}

body::after {
    background: radial-gradient(circle at 85% 15%, rgba(255, 122, 122, 0.16), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(79, 155, 255, 0.18), transparent 40%);
    filter: blur(18px);
    opacity: 0.65;
}

body.reader-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.8rem;
}

.hero {
    position: relative;
    padding: 2.6rem 0 2.4rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0));
    z-index: -1;
}

.hero__content {
    position: relative;
    background: rgba(9, 14, 33, 0.72);
    border-radius: 22px;
    padding: 1.8rem 2rem;
    display: grid;
    gap: 2rem;
    box-shadow: var(--glow);
    border: 1px solid rgba(79, 155, 255, 0.2);
    backdrop-filter: blur(24px);
    overflow: hidden;
}

.hero__content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(79, 155, 255, 0.16), transparent 35%),
        linear-gradient(300deg, rgba(147, 91, 255, 0.2), transparent 40%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.hero__content > * {
    position: relative;
    z-index: 1;
}

.hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: rgba(152, 206, 255, 0.85);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(220, 228, 247, 0.9);
}

.hero__status {
    justify-self: end;
    background: rgba(20, 28, 54, 0.78);
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(79, 155, 255, 0.22);
    display: grid;
    gap: 0.35rem;
    min-width: 210px;
}

.status-label {
    text-transform: uppercase;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    color: rgba(152, 206, 255, 0.7);
}

.status-time {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(240, 246, 255, 0.9);
}

.primary-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tab-trigger {
    border: 1px solid rgba(79, 155, 255, 0.3);
    background: rgba(15, 23, 42, 0.65);
    color: rgba(220, 228, 247, 0.9);
    border-radius: 999px;
    padding: 0.45rem 1.45rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tab-trigger.is-active {
    background: linear-gradient(120deg, #4f9bff, #9f67ff);
    color: #fff;
    box-shadow: 0 12px 28px rgba(79, 155, 255, 0.3);
    transform: translateY(-2px);
}

.tab-trigger:not(.is-active):hover,
.tab-trigger:not(.is-active):focus {
    background: rgba(79, 155, 255, 0.2);
}

.tabbed-panels {
    position: relative;
    padding-bottom: 3.5rem;
}

.tab-content {
    display: none;
    gap: 2.2rem;
}

.tab-content.is-active {
    display: grid;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.2rem;
    padding: 2.6rem 0 3.4rem;
}

.panel {
    position: relative;
    grid-column: span 12;
    padding: 2.2rem;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(14, 21, 43, 0.82), rgba(10, 18, 34, 0.9));
    border: 1px solid rgba(82, 161, 255, 0.18);
    box-shadow: 0 30px 60px rgba(5, 10, 20, 0.4);
    backdrop-filter: blur(26px);
    overflow: hidden;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(79, 155, 255, 0.12), transparent 45%),
        linear-gradient(300deg, rgba(147, 91, 255, 0.12), transparent 50%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.panel > * {
    position: relative;
    z-index: 1;
}

.panel--accent::after {
    background: linear-gradient(120deg, rgba(147, 91, 255, 0.25), transparent 45%),
        linear-gradient(290deg, rgba(79, 155, 255, 0.18), transparent 50%);
}

.panel--jobs::after {
    background: linear-gradient(120deg, rgba(124, 245, 255, 0.18), transparent 40%),
        linear-gradient(290deg, rgba(81, 164, 255, 0.2), transparent 55%);
}

.panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.panel__tag {
    align-self: flex-start;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, #4f9bff, #9f67ff);
    box-shadow: 0 10px 25px rgba(79, 155, 255, 0.28);
}

.panel__tag--secondary {
    background: linear-gradient(120deg, #ff7a7a, #ffb36b);
    box-shadow: 0 10px 25px rgba(255, 122, 122, 0.25);
}

.panel__tag--commerce {
    background: linear-gradient(120deg, #7cf5ff, #6d7dff);
    box-shadow: 0 10px 25px rgba(109, 125, 255, 0.25);
}

.panel h2 {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    color: var(--headline);
}

.headline-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.headline-card {
    position: relative;
    background: var(--surface-pop);
    border-radius: 22px;
    padding: 1.5rem;
    display: grid;
    gap: 1.1rem;
    border: 1px solid rgba(79, 155, 255, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    outline: none;
    isolation: isolate;
}

.headline-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79, 155, 255, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.headline-card__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(79, 155, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(79, 155, 255, 0.08);
}

.headline-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.headline-card__body {
    display: grid;
    gap: 0.65rem;
}

.headline-card h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--headline);
}

.headline-time {
    margin: 0;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(142, 160, 199, 0.85);
}

.headline-open {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

.headline-card:hover,
.headline-card:focus-visible {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(79, 155, 255, 0.35);
    box-shadow: 0 28px 50px rgba(79, 155, 255, 0.2);
}

.headline-card:hover::before,
.headline-card:focus-visible::before {
    opacity: 1;
}

.headline-card:hover img,
.headline-card:focus-visible img {
    transform: scale(1.05);
}

.news-stream {
    display: grid;
    gap: 1.1rem;
}

.news-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.4rem;
    padding: 1.1rem 1.4rem;
    border-radius: 20px;
    background: var(--surface-alt);
    border: 1px solid rgba(82, 161, 255, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    outline: none;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(79, 155, 255, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.news-card__thumb {
    width: 96px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(79, 155, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(79, 155, 255, 0.08);
}

.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__content h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--headline);
}

.meta {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: rgba(142, 160, 199, 0.85);
}

.news-card__cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}

.news-card:hover,
.news-card:focus-visible {
    transform: translateX(6px);
    box-shadow: 0 22px 40px rgba(79, 155, 255, 0.22);
    border-color: rgba(79, 155, 255, 0.35);
}

.news-card:hover::before,
.news-card:focus-visible::before {
    opacity: 1;
}

.placeholder {
    margin: 0;
    color: rgba(142, 160, 199, 0.85);
}

.jobs-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
    color: rgba(220, 228, 247, 0.75);
    font-size: 0.9rem;
}

.jobs-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.job-card {
    background: rgba(12, 18, 38, 0.85);
    border-radius: 20px;
    padding: 1.4rem;
    border: 1px solid rgba(124, 245, 255, 0.2);
    box-shadow: 0 18px 40px rgba(5, 10, 20, 0.45);
    display: grid;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    outline: none;
}

.job-card:hover,
.job-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(124, 245, 255, 0.4);
    box-shadow: 0 26px 45px rgba(81, 164, 255, 0.25);
}

.job-card__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(142, 160, 199, 0.8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.job-card__tags {
    background: rgba(124, 245, 255, 0.12);
    color: rgba(198, 255, 255, 0.9);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
}

.job-card h3 {
    margin: 0;
    font-size: 1.08rem;
    color: #fff;
}

.job-card__snippet {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(220, 228, 247, 0.85);
    line-height: 1.45;
}

.job-card__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(124, 245, 255, 0.9);
}

.deal-grid {
    list-style: none;
    padding: 0;
    margin: 1.8rem 0 0;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.deal-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    border: 1px solid rgba(142, 160, 199, 0.25);
    box-shadow: 0 18px 40px rgba(10, 18, 34, 0.35);
}

.deal-card a {
    text-decoration: none;
    color: #ffffff;
}

.deal-card a:hover {
    color: var(--accent);
}

.promo-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.promo-card {
    background: rgba(12, 18, 38, 0.85);
    border-radius: 20px;
    padding: 1.6rem;
    border: 1px solid rgba(79, 155, 255, 0.18);
    box-shadow: 0 20px 45px rgba(5, 10, 20, 0.45);
    display: grid;
    gap: 0.9rem;
}

.promo-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.promo-card p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(220, 228, 247, 0.85);
}

.promo-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.promo-card li a {
    color: rgba(161, 192, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
}

.promo-card li a:hover {
    color: #fff;
    text-decoration: underline;
}

.promo-card--shopee {
    background: linear-gradient(140deg, rgba(255, 122, 122, 0.12), rgba(12, 18, 38, 0.82));
}

.promo-card--aliexpress {
    background: linear-gradient(140deg, rgba(247, 181, 67, 0.15), rgba(12, 18, 38, 0.82));
}

.promo-card--magalu {
    background: linear-gradient(140deg, rgba(109, 125, 255, 0.16), rgba(12, 18, 38, 0.82));
}

.promo-card--combo {
    background: linear-gradient(140deg, rgba(81, 164, 255, 0.2), rgba(12, 18, 38, 0.82));
}

.promo-note {
    margin-top: 1.6rem;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    background: rgba(79, 155, 255, 0.12);
    color: rgba(220, 228, 247, 0.85);
    border: 1px solid rgba(79, 155, 255, 0.2);
    font-size: 0.9rem;
}

footer {
    background: rgba(5, 10, 20, 0.85);
    color: rgba(220, 228, 247, 0.75);
    padding: 1.8rem 0;
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(79, 155, 255, 0.15);
}

.footer__content {
    text-align: center;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.reader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 18, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 999;
    --reader-font-size: 18px;
}

.reader-overlay[hidden] {
    display: none;
}

.reader-overlay[data-theme="light"] {
    --reader-bg: rgba(255, 255, 255, 0.85);
    --reader-text: #101827;
    --reader-muted: #55627d;
    --reader-heading: #0a1f4f;
}

.reader-overlay[data-theme="sepia"] {
    --reader-bg: rgba(247, 236, 209, 0.9);
    --reader-text: #3c2a16;
    --reader-muted: #8c6b4a;
    --reader-heading: #2f1f0d;
}

.reader-overlay[data-theme="dark"] {
    --reader-bg: rgba(12, 18, 35, 0.96);
    --reader-text: #dde6ff;
    --reader-muted: #8ea0c7;
    --reader-heading: #f8fafc;
}

.reader {
    width: min(900px, 100%);
    max-height: min(92vh, 780px);
    background: var(--reader-bg);
    color: var(--reader-text);
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(2, 8, 18, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
}

.reader__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reader__close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 2rem;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.reader__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.reader__control-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.reader__control-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--reader-muted);
}

.reader__theme,
.reader__font {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    border-radius: 999px;
    padding: 0.4rem 1.05rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.reader__body {
    padding: 1.8rem 2rem;
    overflow-y: auto;
    flex: 1;
    display: grid;
    gap: 1.2rem;
}

.reader__body h2 {
    margin: 0;
    font-size: 2.1rem;
    letter-spacing: -0.01em;
    color: var(--reader-heading);
}

.reader__time {
    margin: 0;
    font-size: 0.95rem;
    color: var(--reader-muted);
    letter-spacing: 0.04em;
}

.reader__image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    max-height: 320px;
    background: rgba(255, 255, 255, 0.08);
}

.reader__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reader__text {
    font-size: var(--reader-font-size);
    line-height: 1.75;
}

.reader__text p {
    margin: 0 0 1.1rem;
}

.reader__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.82rem;
    color: var(--reader-muted);
}

.reader__original {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.reader__original:hover {
    text-decoration: underline;
}

@media (min-width: 1080px) {
    #focus {
        grid-column: span 8;
    }

    #latest {
        grid-column: span 8;
    }

    #deals {
        grid-column: span 4;
        align-self: start;
    }
}

@media (max-width: 900px) {
    .wrapper {
        padding: 0 1.4rem;
    }

    .panel {
        padding: 1.8rem;
    }

    .news-card {
        grid-template-columns: 1fr auto;
    }

    .news-card__thumb {
        width: 100%;
        height: 180px;
        grid-column: 1 / -1;
    }

    .news-card__content {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 2.8rem 0 2.3rem;
    }

    .hero__content {
        padding: 2rem;
    }

    .hero__status {
        justify-self: stretch;
    }

    .headline-card {
        padding: 1.3rem;
    }

    .reader-overlay {
        padding: 1.1rem;
    }

    .reader__header,
    .reader__body,
    .reader__footer {
        padding-inline: 1.4rem;
    }
}
