/**
 * GlobalShip Intelligence Frontend Styles
 * Optimized: dead code removed, stat-card colors consolidated,
 * !important minimized, font-family deduplicated.
 */

/* ─── DESIGN TOKENS ─── */
.gsi-frontend-container {
    --accent: #3cc2d1;
    --accent-dark: #2fa0ac;
    --accent-dim: #1f6d76;
    --accent-glow: rgba(60, 194, 209, 0.12);
    --green: #2e7d4f;
    --green-bg: #e9f5ee;
    --green-text: #1b5e38;
    --amber: #b06000;
    --amber-bg: #fff4e0;
    --amber-text: #7a4200;
    --red: #c0392b;
    --red-bg: #fdecea;
    --red-text: #8b1c13;
    --ink: #0d1b2a;
    --ink-soft: #2c3e50;
    --ink-muted: #6b7c93;
    --paper: #f4f6f9;
    --white: #ffffff;
    --border: #dde3ec;

    /* Base styles (merged from separate block) */
    font-family:
        "Open Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    color: var(--ink);
    margin: 0;
    padding: 0;
    max-width: 100%;
    background: var(--paper);
    font-size: 15px;
    line-height: 1.6;
    border-radius: 0;
}

.gsi-frontend-container *,
.gsi-frontend-container *::before,
.gsi-frontend-container *::after {
    box-sizing: border-box;
}

/* ─── HERO HEADER ─── */
.gsi-hero {
    background: var(--ink-soft);
    position: relative;
    overflow: hidden;
    padding: 56px 48px 48px;
}

.gsi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 60% 80% at 90% 50%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 40% 60% at 10% 80%,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 50%
        );
}

.gsi-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
}

.gsi-hero-inner {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 48px;
}

.gsi-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3cc2d1;
    margin-bottom: 18px;
}

.gsi-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: wpm-livepulse 2s ease-in-out infinite;
}

@keyframes wpm-livepulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(60, 194, 209, 0.6);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(60, 194, 209, 0);
    }
}

.gsi-hero h1 {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0 0 16px 0;
}

.gsi-hero h1 em {
    color: #3cc2d1;
    font-style: italic;
}

.gsi-hero-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.58);
    max-width: 540px;
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 28px 0;
}

.gsi-hero-sub strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Hero CTA Buttons */
.gsi-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gsi-frontend-container .gsi-btn-primary {
    background: var(--accent);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 13px 26px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition:
        background 0.2s,
        transform 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 0;
}

.gsi-frontend-container .gsi-btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.gsi-frontend-container .gsi-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    padding: 13px 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 0;
}

.gsi-frontend-container .gsi-btn-ghost:hover {
    border-color: #3cc2d1;
    color: #3cc2d1;
}

.gsi-hero-timestamp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    min-width: 200px;
}

.gsi-ts-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.gsi-ts-date {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
}

.gsi-ts-sub {
    font-size: 11px;
    color: #3cc2d1;
    font-weight: 500;
}

/* ─── STAT CARDS ROW ─── */
.gsi-stats-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.gsi-stats-inner {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.gsi-stat-card {
    padding: 28px 24px;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition:
        background 0.2s,
        box-shadow 0.2s;
    user-select: none;
}

.gsi-stat-card:last-child {
    border-right: none;
}

.gsi-stat-card:hover {
    background: var(--paper);
}

.gsi-stat-card.is-active {
    box-shadow: inset 0 -3px 0 0 var(--accent);
}

/* Top accent bar */
.gsi-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: height 0.2s;
}

/* Stat card color variants — consolidated with scoped variables */
.gsi-stat-card.card-default {
    --card-accent-bar: var(--ink-muted);
    --card-icon-bg: #f0f2f5;
    --card-icon-color: var(--ink-muted);
    --card-tag-color: var(--ink-muted);
    --card-num-color: var(--ink);
}
.gsi-stat-card.card-green {
    --card-accent-bar: var(--green);
    --card-icon-bg: var(--green-bg);
    --card-icon-color: var(--green);
    --card-tag-color: var(--green-text);
    --card-num-color: var(--green);
}
.gsi-stat-card.card-amber {
    --card-accent-bar: #e6a817;
    --card-icon-bg: var(--amber-bg);
    --card-icon-color: var(--amber);
    --card-tag-color: var(--amber-text);
    --card-num-color: #c47f00;
}
.gsi-stat-card.card-red {
    --card-accent-bar: var(--red);
    --card-icon-bg: var(--red-bg);
    --card-icon-color: var(--red);
    --card-tag-color: var(--red-text);
    --card-num-color: var(--red);
}

.gsi-stat-card::before {
    background: var(--card-accent-bar, var(--ink-muted));
}

.gsi-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    position: absolute;
    top: 24px;
    right: 20px;
    background: var(--card-icon-bg, #f0f2f5);
    color: var(--card-icon-color, var(--ink-muted));
}

.gsi-stat-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.4;
    padding-right: 40px;
    min-height: 28px;
    color: var(--card-tag-color, var(--ink-muted));
}

.gsi-stat-num {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
    color: var(--card-num-color, var(--ink));
}

.gsi-stat-desc {
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    padding-right: 40px;
}

/* Chevron indicator */
.gsi-stat-chevron {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: var(--ink-muted);
    opacity: 0.4;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s;
}

.gsi-stat-card:hover .gsi-stat-chevron {
    opacity: 0.7;
}

.gsi-stat-card.is-active .gsi-stat-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: #3cc2d1;
}

/* ─── EXPAND PANEL (below stat cards) ─── */
.gsi-expand-panel {
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gsi-expand-panel.is-open {
    max-height: 2000px;
}

.gsi-expand-panel-inner {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    padding: 24px 24px 16px;
}

/* Panel controls */
.gsi-panel-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gsi-panel-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    display: block;
}

.gsi-panel-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted);
    z-index: 2;
    pointer-events: none;
    width: 15px;
    height: 15px;
    display: block;
}

.gsi-frontend-container .gsi-panel-search,
.gsi-frontend-container input#gsi-search-input {
    width: 100%;
    font-size: 13px;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink-soft);
    background: var(--paper);
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    box-sizing: border-box;
    margin: 0;
    height: auto;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.gsi-frontend-container .gsi-panel-search:focus,
.gsi-frontend-container input#gsi-search-input:focus {
    border-color: #3cc2d1;
    box-shadow: 0 0 0 3px rgba(60, 194, 209, 0.08);
}

.gsi-export-btn {
    background: var(--paper);
    color: var(--ink-soft);
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-left: auto;
}

.gsi-export-btn:hover {
    background: var(--white);
    border-color: var(--ink-muted);
    color: var(--ink);
}

/* Country list inside panel */
.gsi-panel-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    max-height: 520px;
    overflow-y: auto;
}

.gsi-panel-list::-webkit-scrollbar {
    width: 5px;
}

.gsi-panel-list::-webkit-scrollbar-track {
    background: var(--paper);
}

.gsi-panel-list::-webkit-scrollbar-thumb {
    background: #c4c4cc;
    border-radius: 3px;
}

.gsi-panel-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* Table header */
.gsi-panel-thead {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 3fr;
    background: #fafbfc;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.gsi-panel-th {
    padding: 10px 18px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
}

.gsi-panel-th:nth-child(2),
.gsi-panel-th:nth-child(3) {
    text-align: center;
}

/* Country row */
.gsi-country-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 3fr;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.12s;
    align-items: center;
}

.gsi-country-row:last-child {
    border-bottom: none;
}

.gsi-country-row:hover {
    background: #f8f9fb;
}

.gsi-country-row td,
.gsi-country-cell {
    padding: 12px 18px;
    font-size: 13px;
    color: var(--ink-soft);
}

.gsi-country-cell.cell-country {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
}

.gsi-country-cell.cell-reference {
    font-size: 14px;
    color: var(--ink-muted);
    font-style: italic;
}

.gsi-country-cell.cell-reference a {
    font-style: normal;
    color: #3e97ff;
    text-decoration: none;
    font-weight: 500;
}

.gsi-country-cell.cell-reference a:hover {
    text-decoration: underline;
}

.gsi-country-cell.cell-status,
.gsi-country-cell.cell-availability {
    text-align: center;
}

.status-reason {
    font-size: 12px;
    color: #7b8290;
    display: block;
    margin-top: 3px;
}

/* ─── STATUS BADGES ─── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge svg {
    width: 13px;
    height: 13px;
}

.status-normal {
    background-color: #e9f5ee;
    color: var(--green-text);
    border: 1px solid #c6e0b4;
}
.status-normal svg {
    color: var(--green);
}

.status-delayed {
    background-color: var(--amber-bg);
    color: var(--amber-text);
    border: 1px solid #ffd966;
}
.status-delayed svg {
    color: var(--amber);
}

.status-suspended {
    background-color: var(--red-bg);
    color: var(--red-text);
    border: 1px solid #f5b999;
}
.status-suspended svg {
    color: var(--red);
}

/* ─── BODY WRAP (main + sidebar) ─── */
.gsi-body-wrap {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* ─── INTEL BANNER ─── */
.gsi-intel-banner {
    background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
    padding: 24px 28px;
    margin-bottom: 32px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.gsi-intel-banner::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.gsi-intel-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.gsi-intel-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    position: relative;
    z-index: 1;
    margin: 0;
}

.gsi-intel-text strong {
    color: #3cc2d1;
    font-weight: 600;
}

/* ─── TOP NEWS ─── */
.gsi-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.gsi-news-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsi-news-title-bar {
    width: 28px;
    height: 2px;
    background: var(--accent);
}

.gsi-news-title h2 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3cc2d1;
    margin: 0;
}

.gsi-news-sub {
    font-size: 12px;
    color: var(--ink-muted);
    font-style: italic;
}

.gsi-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.gsi-news-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 18px 20px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
    position: relative;
    text-decoration: none;
    display: block;
}

.gsi-news-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.2s;
    transform-origin: bottom;
}

.gsi-news-card:hover {
    border-color: #3cc2d1;
    box-shadow: 0 4px 18px rgba(60, 194, 209, 0.08);
    transform: translateY(-2px);
}

.gsi-news-card:hover::before {
    transform: scaleY(1);
}

.gsi-news-card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3cc2d1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gsi-news-card-tag::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.gsi-news-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
    margin: 0;
}

/* External RSS news — different tag color */
.gsi-news-tag-external {
    color: #0e7490 !important;
}

.gsi-news-tag-external::before {
    background: #0e7490 !important;
}

.gsi-news-card-date {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 10px;
    font-style: italic;
}

.gsi-news-card-excerpt {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 8px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── SIDEBAR ─── */
.gsi-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gsi-side-card {
    background: var(--white);
    border: 1px solid var(--border);
}

.gsi-side-card-head {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsi-side-card-head .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.gsi-side-card-body {
    padding: 16px 18px;
}

/* Coverage mini-card */
.gsi-coverage-visual {
    background: linear-gradient(135deg, var(--paper) 0%, #e2e8f0 100%);
    height: 130px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gsi-coverage-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle at 30% 50%,
            rgba(255, 255, 255, 0.5) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 70% 40%,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 35%
        );
}

.gsi-coverage-dots span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    animation: wpm-dotblink 3s ease-in-out infinite;
}

@keyframes wpm-dotblink {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.4);
    }
}

.gsi-coverage-stat {
    position: relative;
    z-index: 2;
    text-align: center;
}

.gsi-coverage-stat strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.gsi-coverage-stat span {
    font-size: 10px;
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gsi-coverage-desc {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    background: #f9fbfc;
}

/* CTA list */
.gsi-cta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

.gsi-cta-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.gsi-cta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.gsi-cta-item:first-child {
    padding-top: 0;
}

.gsi-cta-who {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
}

.gsi-cta-copy {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.gsi-cta-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gsi-cta-link:hover {
    color: var(--ink-soft);
}

/* Contact card */
.gsi-contact-card {
    background: var(--accent-dim);
    border-color: #3cc2d1;
}

.gsi-contact-card .gsi-side-card-body {
    padding: 20px;
}

.gsi-contact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.gsi-contact-headline {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.gsi-contact-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 14px 0;
    line-height: 1.55;
}

.gsi-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
    text-decoration: none;
    width: 100%;
    transition: background 0.2s;
}

.gsi-contact-btn:hover {
    background: var(--accent-dark);
}

/* ─── EMPTY / NO RESULTS ─── */
.gsi-panel-empty {
    padding: 36px 24px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
    font-style: italic;
}

.gsi-no-search-results {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 12px;
    background: var(--white);
}

/* ─── ANIMATIONS ─── */
@keyframes wpm-fadein {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gsi-hero-inner,
.gsi-stats-wrap,
.gsi-intel-banner,
.gsi-news-grid {
    animation: wpm-fadein 0.6s ease both;
}

.gsi-stats-wrap {
    animation-delay: 0.1s;
}
.gsi-intel-banner {
    animation-delay: 0.2s;
}
.gsi-news-grid {
    animation-delay: 0.3s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
    .gsi-hero {
        padding: 36px 24px;
    }
    .gsi-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .gsi-hero-timestamp {
        align-items: flex-start;
    }
    .gsi-hero-actions .gsi-btn-primary,
    .gsi-hero-actions .gsi-btn-ghost {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    .gsi-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .gsi-stat-card:nth-child(2) {
        border-right: none;
    }
    .gsi-stat-card:nth-child(1),
    .gsi-stat-card:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }
    .gsi-body-wrap {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }
    .gsi-sidebar {
        position: static;
    }
    .gsi-news-grid {
        grid-template-columns: 1fr;
    }
    /* Keep all 4 columns — make the list horizontally scrollable on mobile */
    .gsi-panel-thead,
    .gsi-country-row {
        grid-template-columns: 1fr 1fr 1fr 3fr;
        min-width: 960px;
    }
    .gsi-panel-list {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .gsi-hero {
        padding: 28px 16px;
    }
    .gsi-hero h1 {
        font-size: 24px;
    }
    .gsi-hero-sub {
        font-size: 13px;
    }
    .gsi-hero-timestamp {
        min-width: unset;
        padding: 14px 16px;
    }
    .gsi-hero-actions {
        flex-direction: column;
    }
    .gsi-hero-actions .gsi-btn-primary,
    .gsi-hero-actions .gsi-btn-ghost {
        flex: none;
        width: 100%;
    }
    .gsi-stats-inner {
        grid-template-columns: 1fr 1fr;
    }
    .gsi-stat-card {
        padding: 18px 16px;
    }
    .gsi-stat-num {
        font-size: 34px;
    }
    .gsi-stat-icon {
        width: 30px;
        height: 30px;
        top: 16px;
        right: 14px;
    }
    .gsi-stat-icon svg {
        width: 14px;
        height: 14px;
    }
    .gsi-stat-desc {
        font-size: 11px;
    }
    .gsi-expand-panel-inner {
        padding: 16px 12px;
    }
    .gsi-panel-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .gsi-panel-search-wrap {
        max-width: none;
    }
    .gsi-body-wrap {
        padding: 24px 16px;
    }
    .gsi-news-grid {
        grid-template-columns: 1fr;
    }

    /* Keep grid layout — horizontally scrollable instead of stacking */
    .gsi-panel-thead {
        display: grid;
    }
    .gsi-panel-list {
        overflow-x: auto;
    }
    .status-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}

@media (max-width: 420px) {
    .gsi-stats-inner {
        grid-template-columns: 1fr;
    }
    .gsi-stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .gsi-stat-card:last-child {
        border-bottom: none;
    }
}
