:root {
    --bg: #0c0e12;
    --surface: #181c26;
    --line: #2a3344;
    --text: #eef1f6;
    --muted: #8f9bb8;
    --accent: #ed6a5c;
}


html,
body {
    min-height: 100%;
    height: auto;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.orb-top {
    width: 780px;
    height: 420px;
    left: 50%;
    top: -220px;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(237, 106, 92, 0.16), rgba(237, 106, 92, 0));
}

.orb-bottom {
    width: 560px;
    height: 340px;
    right: -120px;
    bottom: -140px;
    background: radial-gradient(circle at center, rgba(143, 155, 184, 0.09), rgba(143, 155, 184, 0));
}

.shell {
    width: calc(100% - 3rem);
    max-width: 1120px;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.panel {
    min-width: 0;
    justify-self: stretch;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.97), rgba(10, 12, 16, 0.91));
    border: 1px solid rgba(82, 95, 123, 0.34);
    border-radius: 16px;
    backdrop-filter: blur(2px);
}

.panel-header {
    min-height: 72px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.logo-wrap {
    width: 112px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: static;
    margin-left: 10px;
}

.logo-wrap img {
    height: 28px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    gap: 0.65rem;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.social-link {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(143, 155, 184, 0.36);
    background: linear-gradient(180deg, rgba(24, 28, 38, 0.92), rgba(24, 28, 38, 0.7));
    color: #e7ebf3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 120ms ease, color 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.social-link:hover {
    color: #ffffff;
    border-color: rgba(237, 106, 92, 0.6);
    background: linear-gradient(180deg, rgba(42, 49, 65, 0.95), rgba(24, 28, 38, 0.78));
}

.social-link:focus-visible {
    outline: 2px solid rgba(237, 106, 92, 0.85);
    outline-offset: 2px;
}

.social-link:active {
    transform: scale(0.97);
}

.hero {
    min-height: 260px;
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.hero-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.hero-block {
    min-height: 70px;
    border: 1px solid rgba(143, 155, 184, 0.25);
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.7), rgba(12, 14, 18, 0.35));
    border-radius: 12px;
}

.hero-block.large {
    min-height: 150px;
    border-color: rgba(237, 106, 92, 0.35);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.card {
    min-height: 180px;
    grid-column: span 4;
}

.card.wide {
    min-height: 220px;
    grid-column: span 12;
}

.news-section {
    padding: 1rem 1.2rem;
    min-width: 0;
    overflow: hidden;
    min-height: 260px;
}

.markets-section {
    padding: 1rem 1.2rem;
}

.markets-head {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.markets-head h2 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.markets-widget-wrap {
    border: 1px solid rgba(143, 155, 184, 0.22);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.74), rgba(12, 14, 18, 0.4));
    padding: 0.9rem;
}

.markets-state {
    font-size: 0.86rem;
    color: var(--muted);
}

.markets-session {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(143, 155, 184, 0.28);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.2;
    color: #dbe3f5;
    background: rgba(38, 45, 63, 0.35);
}

.markets-session--regular {
    border-color: rgba(82, 227, 159, 0.45);
    color: #92f1c4;
}

.markets-session--pre,
.markets-session--post {
    border-color: rgba(255, 194, 113, 0.45);
    color: #ffd39b;
}

.markets-session--closed {
    border-color: rgba(143, 155, 184, 0.32);
    color: #b8c1d6;
}

.markets-grid {
    --ticker-duration: 36s;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 4%, black 96%, transparent 100%);
}

.markets-track {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    width: max-content;
    animation: marketsTicker var(--ticker-duration) linear infinite;
}

.markets-grid:hover .markets-track {
    animation-play-state: paused;
}

.market-item {
    border: 1px solid rgba(143, 155, 184, 0.2);
    border-radius: 10px;
    background: rgba(12, 14, 18, 0.45);
    padding: 0.65rem;
    width: 172px;
    min-width: 172px;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.market-item:hover {
    border-color: rgba(237, 106, 92, 0.45);
    transform: translateY(-1px);
    background: rgba(17, 20, 27, 0.6);
}

.market-item:focus-visible {
    outline: 2px solid rgba(237, 106, 92, 0.7);
    outline-offset: 1px;
}

.market-item h3 {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(234, 239, 248, 0.9);
    font-weight: 600;
    line-height: 1.25;
    min-height: 2em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.market-price {
    margin: 0.22rem 0 0;
    font-size: 1.04rem;
    color: #f8f9ff;
    font-weight: 700;
    transition: color 220ms ease, text-shadow 220ms ease;
}

.market-change {
    margin: 0.14rem 0 0;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    transition: color 220ms ease, text-shadow 220ms ease;
}

.market-price.is-updating,
.market-change.is-updating {
    animation: marketValuePulse 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.market-price.is-up,
.market-change.is-up {
    color: #77efb4;
    text-shadow: 0 0 14px rgba(119, 239, 180, 0.35);
}

.market-price.is-down,
.market-change.is-down {
    color: #ff9a8f;
    text-shadow: 0 0 14px rgba(255, 154, 143, 0.35);
}

.market-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(3, 4, 7, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 3200;
}

.market-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.market-modal__dialog {
    width: min(560px, 100%);
    border: 1px solid rgba(78, 92, 120, 0.36);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.98), rgba(8, 10, 14, 0.93));
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
    padding: 0.9rem 0.95rem 1rem;
}

.market-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.market-modal__title {
    margin: 0;
    font-size: 1.07rem;
    color: #f8f9ff;
}

.market-modal__meta {
    margin: 0.1rem 0 0;
    font-size: 0.77rem;
    color: rgba(174, 184, 204, 0.9);
}

.market-modal__close {
    border: 1px solid rgba(143, 155, 184, 0.28);
    border-radius: 9px;
    background: rgba(12, 14, 18, 0.56);
    color: #fff;
    width: 34px;
    height: 34px;
    font-size: 1.28rem;
    line-height: 1;
    cursor: pointer;
}

.market-modal__price {
    margin: 0.26rem 0 0;
    font-size: clamp(1.2rem, 2.7vw, 1.58rem);
    font-weight: 700;
    color: #f8f9ff;
}

.market-modal__change {
    margin: 0.26rem 0 0;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.market-modal__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.market-modal__metric {
    border: 1px solid rgba(143, 155, 184, 0.2);
    border-radius: 11px;
    background: rgba(18, 22, 30, 0.62);
    padding: 0.52rem 0.6rem 0.55rem;
}

.market-modal__metric-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(174, 184, 204, 0.9);
}

.market-modal__min,
.market-modal__max {
    margin: 0.26rem 0 0;
    font-size: 1rem;
    color: #f8f9ff;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.market-modal__change--up {
    color: #52e39f;
}

.market-modal__change--down {
    color: #ff7f73;
}

.market-modal__change--flat {
    color: #aeb8cc;
}

.market-modal__chart {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(143, 155, 184, 0.2);
    padding-top: 0.65rem;
    height: 170px;
}

.market-modal__timeframes {
    margin-top: 0.7rem;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid rgba(143, 155, 184, 0.25);
    border-radius: 999px;
    background: rgba(15, 19, 26, 0.65);
}

.market-modal__tf {
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(186, 196, 216, 0.95);
    padding: 0.24rem 0.55rem;
    font-size: 0.72rem;
    cursor: pointer;
}

.market-modal__tf.is-active {
    border-color: rgba(237, 106, 92, 0.45);
    background: rgba(237, 106, 92, 0.16);
    color: #ffe9e6;
}

.market-modal__chart.is-loading {
    display: grid;
    place-items: center;
    color: rgba(174, 184, 204, 0.9);
    font-size: 0.82rem;
}

.market-modal__chart-empty {
    color: rgba(174, 184, 204, 0.9);
    font-size: 0.82rem;
}

.market-chart {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 0.22rem;
    position: relative;
}

.market-chart__svg {
    width: 100%;
    height: 100%;
    display: block;
}

.market-chart__grid {
    stroke: rgba(143, 155, 184, 0.2);
    stroke-width: 1;
}

.market-chart__dot {
    stroke: rgba(12, 14, 18, 0.95);
    stroke-width: 1.6;
}

.market-chart__dot--high {
    fill: #52e39f;
}

.market-chart__dot--low {
    fill: #ff7f73;
}

.market-chart__cursor {
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.market-chart__cursor-dot {
    fill: #fff;
    stroke: rgba(12, 14, 18, 0.95);
    stroke-width: 2;
}

.market-chart__tooltip {
    position: absolute;
    z-index: 2;
    min-width: 118px;
    border: 1px solid rgba(143, 155, 184, 0.35);
    border-radius: 9px;
    background: rgba(12, 14, 18, 0.92);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    padding: 0.38rem 0.45rem;
    display: grid;
    gap: 0.12rem;
    pointer-events: none;
}

.market-chart__tooltip strong {
    font-size: 0.84rem;
    color: #f8f9ff;
}

.market-chart__tooltip span {
    font-size: 0.72rem;
    color: rgba(186, 196, 216, 0.95);
    font-variant-numeric: tabular-nums;
}

.market-chart__xlabels,
.market-chart__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(174, 184, 204, 0.9);
    font-variant-numeric: tabular-nums;
}

.market-modal__actions {
    margin-top: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-modal__action {
    border: 1px solid rgba(143, 155, 184, 0.3);
    border-radius: 10px;
    padding: 0.38rem 0.62rem;
    background: rgba(18, 22, 30, 0.8);
    color: #dfe6f7;
    text-decoration: none;
    font-size: 0.78rem;
    cursor: pointer;
}

.market-modal__action:hover {
    border-color: rgba(237, 106, 92, 0.55);
    color: #fff1ef;
}

.market-spark-wrap {
    margin-top: auto;
    height: 38px;
    border-top: 1px solid rgba(143, 155, 184, 0.2);
    padding-top: 0.35rem;
}

.market-spark {
    width: 100%;
    height: 100%;
    display: block;
}

.market-item--up .market-change {
    color: #52e39f;
}

.market-item--down .market-change {
    color: #ff7f73;
}

.market-item--flat .market-change {
    color: #aeb8cc;
}

.markets-updated {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: rgba(174, 184, 204, 0.88);
}

.markets-footnote {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: rgba(143, 155, 184, 0.85);
}

@keyframes marketsTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 0.275rem));
    }
}

@keyframes marketValuePulse {
    0% {
        transform: translateY(3px);
        opacity: 0.5;
    }
    45% {
        transform: translateY(-1px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.news-head h2 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.news-status {
    font-size: 0.82rem;
    color: var(--muted);
}

.news-list {
    display: flex;
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(237, 106, 92, 0.75) rgba(143, 155, 184, 0.18);
    min-width: 0;
}

.news-list::-webkit-scrollbar {
    height: 10px;
}

.news-list::-webkit-scrollbar-track {
    background: rgba(143, 155, 184, 0.16);
    border-radius: 999px;
}

.news-list::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(237, 106, 92, 0.9), rgba(237, 106, 92, 0.65));
    border-radius: 999px;
    border: 2px solid rgba(24, 28, 38, 0.8);
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(237, 106, 92, 1), rgba(237, 106, 92, 0.78));
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem;
    width: 560px;
    max-width: 92vw;
    min-width: min(560px, 92vw);
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(143, 155, 184, 0.25);
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.7), rgba(12, 14, 18, 0.35));
    overflow: hidden;
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.news-item:hover {
    border-color: rgba(237, 106, 92, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.news-item:focus-visible {
    outline: 2px solid rgba(237, 106, 92, 0.9);
    outline-offset: 2px;
    border-color: rgba(237, 106, 92, 0.55);
}

.news-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(4, 6, 9, 0.78);
    backdrop-filter: blur(3px);
    z-index: 40;
}

.news-modal.is-open {
    display: flex;
}

.news-modal__dialog {
    position: relative;
    width: min(720px, calc(100vw - 2rem));
    max-height: min(80vh, 760px);
    overflow: auto;
    padding: 2.2rem 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(78, 92, 120, 0.36);
    background: linear-gradient(180deg, rgba(9, 11, 16, 0.98), rgba(9, 11, 16, 0.95));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.news-modal__actions {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.news-modal__share {
    height: 2rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 155, 184, 0.42);
    background: rgba(24, 28, 38, 0.9);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.news-modal__open-link {
    height: 2rem;
    display: inline-flex;
    align-items: center;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 155, 184, 0.42);
    background: rgba(24, 28, 38, 0.9);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
}

.news-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(237, 106, 92, 0.45);
    background: rgba(237, 106, 92, 0.12);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.news-modal__image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(143, 155, 184, 0.25);
    margin-bottom: 0.85rem;
}

.news-modal__content {
    margin: 0;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.news-modal__tags {
    margin-bottom: 0.7rem;
}

.news-modal__time {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.news-modal__related {
    margin-top: 0.85rem;
}

.news-modal__related-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.2rem;
}

.news-modal__related-grid .market-item {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    min-height: 116px;
    padding: 0.52rem;
    align-self: flex-start;
}

.news-modal__related-grid .market-item h3 {
    min-height: 0;
    line-height: 1.2;
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

.news-modal__related-grid .market-price {
    margin-top: 0.16rem;
    font-size: 0.98rem;
}

.news-modal__related-grid .market-change {
    margin-top: 0.08rem;
    font-size: 0.74rem;
}

.news-modal__related-grid .market-spark-wrap {
    height: 28px;
    padding-top: 0.22rem;
}

.news-item-body {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
    overflow: hidden;
}

.news-item p {
    margin: 0;
    line-height: 1.55;
    color: var(--text);
    display: block;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto;
    max-width: 100%;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(237, 106, 92, 0.42);
    background: rgba(237, 106, 92, 0.12);
    color: #ffd6d1;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
}

.news-item time {
    font-size: 0.82rem;
    color: var(--muted);
}

.map-section {
    position: relative;
    padding: 1rem 1.2rem 1.2rem;
    overflow: hidden;
}

.map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.map-head h2 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 155, 184, 0.32);
    background: rgba(12, 14, 18, 0.62);
    backdrop-filter: blur(6px);
}

.map-zoom-controls {
    display: inline-flex;
    gap: 0.45rem;
}

.map-zoom-controls button {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(143, 155, 184, 0.42);
    background: rgba(24, 28, 38, 0.9);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.map-zoom-controls button:hover {
    background: rgba(30, 36, 49, 0.95);
    border-color: rgba(237, 106, 92, 0.52);
}

.map-zoom-controls button:active {
    transform: scale(0.97);
}

.world-map-wrap {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    border: 1px solid rgba(143, 155, 184, 0.25);
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.72), rgba(12, 14, 18, 0.4));
    padding: 0.6rem;
}

.world-map-canvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.28);
}

.map-country-popup {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 4;
    width: min(460px, calc(100% - 2.4rem));
    max-height: 44%;
    overflow: auto;
    padding: 0.78rem 0.82rem;
    border-radius: 12px;
    border: 1px solid rgba(143, 155, 184, 0.36);
    background: rgba(12, 14, 18, 0.86);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.map-country-popup__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.62rem;
}

.map-country-popup__title-wrap {
    min-width: 0;
}

.map-country-popup__title {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.15;
}

.map-country-popup__meta {
    margin: 0.18rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.map-country-popup__close {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    border: 1px solid rgba(237, 106, 92, 0.45);
    background: rgba(237, 106, 92, 0.12);
    color: var(--text);
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.map-country-popup__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.map-country-popup__list li {
    color: var(--text);
    line-height: 1.4;
}

.map-country-popup__item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(143, 155, 184, 0.26);
    background: linear-gradient(180deg, rgba(24, 28, 38, 0.84), rgba(24, 28, 38, 0.66));
    color: inherit;
    font: inherit;
    line-height: 1.35;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
    transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.map-country-popup__item:hover {
    border-color: rgba(237, 106, 92, 0.52);
    background: linear-gradient(180deg, rgba(34, 39, 52, 0.9), rgba(26, 30, 40, 0.74));
}

.map-country-popup__item:focus-visible {
    outline: 2px solid rgba(237, 106, 92, 0.85);
    outline-offset: 2px;
}

.map-country-popup__item:active {
    transform: scale(0.99);
}

.map-country-popup__item-text {
    color: var(--text);
}

.map-country-popup__item-time {
    font-size: 0.76rem;
    color: var(--muted);
}

.world-map-canvas .cesium-viewer-toolbar {
    top: 8px;
    right: 8px;
}

.world-map-canvas .cesium-button {
    background: rgba(24, 28, 38, 0.92);
    border: 1px solid rgba(143, 155, 184, 0.42);
    color: var(--text);
}

.world-map-canvas .cesium-viewer-bottom {
    background: rgba(12, 14, 18, 0.68);
    color: var(--muted);
    font-size: 0.72rem;
}

.world-map-canvas .cesium-credit-logoContainer,
.world-map-canvas .cesium-credit-textContainer,
.world-map-canvas .cesium-viewer-bottom {
    display: none !important;
}

.social-section {
    padding: 1rem 1.2rem 1.2rem;
}

.social-section h2 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.9rem;
}

.social-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 2fr);
    gap: 0.85rem;
    align-items: stretch;
}

.social-total-card {
    border: 1px solid rgba(143, 155, 184, 0.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.7), rgba(12, 14, 18, 0.35));
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.social-total-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.social-total-big {
    margin: 0.3rem 0 0;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: #ffd6d1;
}

.social-stack {
    display: grid;
    gap: 0.6rem;
}

.social-card {
    border: 1px solid rgba(143, 155, 184, 0.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.7), rgba(12, 14, 18, 0.35));
    padding: 0.75rem 0.85rem;
}

.social-card h3 {
    margin: 0;
    font-size: 0.95rem;
}

.social-name {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.social-name svg,
.social-name img {
    width: 15px;
    height: 15px;
    display: block;
    object-fit: contain;
}

.social-name img {
    filter: brightness(0) invert(1);
}

.social-value {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffd6d1;
}

.social-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
}

.social-follow-btn {
    width: fit-content;
    text-decoration: none;
    border: 1px solid rgba(237, 106, 92, 0.45);
    border-radius: 9px;
    background: rgba(237, 106, 92, 0.12);
    color: var(--text);
    padding: 0.34rem 0.62rem;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .card {
        grid-column: span 6;
    }

    .hero-row {
        grid-template-columns: 1fr;
    }

    .market-item {
        width: 164px;
        min-width: 164px;
    }
}

@media (max-width: 620px) {
    .shell {
        width: calc(100% - 1.25rem);
        margin: 0.6rem auto 1rem;
    }

    .panel-header {
        min-height: 64px;
        padding: 0.8rem 0.9rem;
        justify-content: flex-start;
    }

    .card,
    .card.wide {
        grid-column: span 12;
    }

    .news-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .markets-section {
        padding: 0.9rem;
    }

    .news-section {
        min-height: 220px;
    }

    .markets-widget-wrap {
        padding: 0.75rem;
    }

    .market-item {
        width: 152px;
        min-width: 152px;
    }

    .map-section {
        padding: 0.9rem;
    }

    .world-map-wrap {
        height: 500px;
    }

    .map-country-popup {
        left: 0.9rem;
        right: 0.9rem;
        width: auto;
        max-height: 52%;
    }

    .social-section {
        padding: 0.9rem;
    }

    .social-layout {
        grid-template-columns: 1fr;
    }

    .social-total-card {
        align-items: flex-start;
    }

    .social-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .news-item {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        align-items: flex-start;
    }
}
