/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   ROOT VARIABLES — Deep Teal & Raspberry Magenta palette
   ===================================================================== */
:root {
    --crypto-teal-950: #041d22;
    --crypto-teal-900: #062a30;
    --crypto-teal-800: #0a3b43;
    --crypto-teal-700: #0f4f59;
    --crypto-teal-600: #156370;
    --crypto-teal-100: #e3eff0;
    --crypto-teal-50: #f1f7f7;

    --crypto-accent: #d81b6a;
    --crypto-accent-dark: #b01255;
    --crypto-accent-light: #f0478f;
    --crypto-accent-soft: rgba(216, 27, 106, 0.14);
    --crypto-accent-tint: #fde8f1;

    --crypto-bg: #ffffff;
    --crypto-bg-alt: #f1f7f7;
    --crypto-surface: #ffffff;
    --crypto-text: #0b2227;
    --crypto-text-muted: #56717a;
    --crypto-border: #d5e4e6;
    --crypto-up: #0f8a6a;
    --crypto-down: #c8274f;

    --crypto-radius-sm: 10px;
    --crypto-radius: 18px;
    --crypto-radius-lg: 28px;
    --crypto-shadow: 0 10px 30px rgba(6, 42, 48, 0.08);
    --crypto-shadow-hover: 0 18px 44px rgba(6, 42, 48, 0.16);
    --crypto-shadow-accent: 0 14px 34px rgba(216, 27, 106, 0.32);

    --crypto-section-y: 24px;
    --crypto-container: 1200px;
    --crypto-header-h: 76px;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --crypto-font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* =====================================================================
   BASE
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--crypto-header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--crypto-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--crypto-text);
    background: var(--crypto-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--crypto-teal-900);
}

p {
    margin: 0 0 14px;
}

p:last-child {
    margin-bottom: 0;
}

p a,
li a,
td a {
    color: var(--crypto-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

p a:hover,
li a:hover,
td a:hover {
    color: var(--crypto-accent-dark);
}

b {
    font-weight: 800;
    color: var(--crypto-accent);
}

.container {
    width: 100%;
    max-width: var(--crypto-container);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site-main {
    display: block;
    overflow: hidden;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--crypto-ease), transform 0.7s var(--crypto-ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 42, 48, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header--scrolled {
    background: var(--crypto-teal-950);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
    min-height: var(--crypto-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: #fff;
}

.site-logo__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: transform 0.4s var(--crypto-ease);
}

.site-logo:hover .site-logo__icon {
    transform: rotate(-12deg) scale(1.08);
}

.site-logo > a,
.site-logo__name {
    color: #fff;
    text-decoration: none;
}

.site-logo > a:hover {
    color: var(--crypto-accent-light);
}

.custom-logo {
    max-height: 48px;
    width: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__list > li {
    position: relative;
}

.site-nav__list > li > a,
.site-nav__list > li > .menu-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.site-nav__list > li > a:hover,
.site-nav__list > li:hover > a {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.site-nav__list > .menu-item-has-children > a::after,
.site-nav__list > .menu-item-has-children > .menu-current::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s ease;
}

.site-nav__list > .menu-item-has-children:hover > a::after {
    transform: translateY(1px) rotate(225deg);
}

.menu-current {
    color: var(--crypto-accent-light) !important;
    font-weight: 700;
    cursor: default;
}

.site-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 10px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s var(--crypto-ease), visibility 0.25s;
}

.site-nav .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav .sub-menu li > a,
.site-nav .sub-menu li > .menu-current {
    display: block;
    padding: 9px 14px;
    border-radius: var(--crypto-radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--crypto-teal-800);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.site-nav .sub-menu li > a:hover {
    background: var(--crypto-accent-tint);
    color: var(--crypto-accent);
    padding-left: 20px;
}

.site-nav .sub-menu .menu-current {
    color: var(--crypto-accent) !important;
    background: var(--crypto-teal-50);
}

.site-header__burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header__burger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--crypto-accent-light);
}

.site-header__burger-line {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s var(--crypto-ease), opacity 0.2s ease;
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) {
    opacity: 0;
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================================================================
   BUTTON-LIKE LINKS (styled via parent)
   ===================================================================== */
.cta__action > a,
.error404__actions > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    background: var(--crypto-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--crypto-shadow-accent);
    transition: transform 0.25s var(--crypto-ease), box-shadow 0.25s ease, background 0.25s ease;
}

.cta__action > a::after,
.error404__actions > a::after {
    content: "→";
    transition: transform 0.25s ease;
}

.cta__action > a:hover,
.error404__actions > a:hover {
    background: var(--crypto-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(216, 27, 106, 0.4);
}

.cta__action > a:hover::after,
.error404__actions > a:hover::after {
    transform: translateX(4px);
}

.section-more {
    margin-top: 18px;
}

.section-more > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--crypto-accent);
    border-radius: 999px;
    color: var(--crypto-accent);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.section-more > a::after {
    content: "↓";
    transition: transform 0.25s ease;
}

.section-more > a:hover {
    background: var(--crypto-accent);
    color: #fff;
    transform: translateY(-2px);
}

.section-more > a:hover::after {
    transform: translateY(3px);
}

/* =====================================================================
   HERO (with exchange widget)
   ===================================================================== */
.hero {
    position: relative;
    padding: 56px 0 64px;
    color: #fff;
    background:
        radial-gradient(600px 400px at 90% 10%, rgba(216, 27, 106, 0.35), transparent 70%),
        radial-gradient(500px 360px at 0% 100%, rgba(21, 99, 112, 0.7), transparent 70%),
        linear-gradient(135deg, var(--crypto-teal-900) 0%, var(--crypto-teal-700) 100%);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: crypto-float 12s ease-in-out infinite;
}

.hero::before {
    width: 340px;
    height: 340px;
    right: 38%;
    top: -160px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::after {
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -40px;
    background: rgba(216, 27, 106, 0.18);
    filter: blur(20px);
    animation-delay: -5s;
}

@keyframes crypto-float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 24px);
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 48px;
    align-items: center;
}

.hero__title {
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.hero__lead,
.hero__text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.hero__facts {
    display: inline-block;
    margin-top: 6px;
    padding: 12px 18px;
    border-radius: var(--crypto-radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

.hero__facts b {
    color: #ff86b8;
}

.hero__jump {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__jump-item > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero__jump-item > a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--crypto-accent-light);
}

.hero__jump-item > a:hover {
    background: var(--crypto-accent);
    border-color: var(--crypto-accent);
    color: #fff;
    transform: translateY(-2px);
}

.hero__widget {
    justify-self: end;
    width: 100%;
    max-width: 520px;
}

/* Exchange widget */
.exchange-widget {
    padding: 10px;
    border-radius: var(--crypto-radius-lg);
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.exchange-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.36), 0 0 0 3px var(--crypto-accent-soft);
}

.exchange-widget__frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
    border-radius: var(--crypto-radius);
    background: var(--crypto-teal-50);
}

/* =====================================================================
   PAGE HERO (info pages, background image)
   ===================================================================== */
.page-hero {
    position: relative;
    padding: 72px 0;
    color: #fff;
    background: var(--crypto-teal-900);
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: -60px 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    will-change: transform;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(6, 42, 48, 0.96) 30%, rgba(15, 79, 89, 0.7) 70%, rgba(216, 27, 106, 0.45));
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.page-hero__icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--crypto-accent);
    color: #fff;
    box-shadow: var(--crypto-shadow-accent);
}

.page-hero__icon .icon {
    width: 34px;
    height: 34px;
}

.page-hero__content {
    max-width: 820px;
}

.page-hero__title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
}

.page-hero .hero__lead,
.page-hero .hero__text {
    color: rgba(255, 255, 255, 0.85);
}

/* =====================================================================
   SECTIONS — common
   ===================================================================== */
.split,
.features,
.routes,
.faq,
.rate,
.pairs,
.radar-section,
.cta {
    padding: calc(var(--crypto-section-y) * 2) 0;
}

.section--alt {
    background: var(--crypto-bg-alt);
}

.section-head {
    max-width: 820px;
    margin-bottom: 28px;
}

.section-title {
    position: relative;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-teal-600));
}

.section-head p,
.split__content > p {
    color: var(--crypto-text-muted);
    font-size: 17px;
}

/* Split: text + image */
.split__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}

.split--reverse .split__content {
    order: 2;
}

.split__media {
    margin: 0;
    position: relative;
    border-radius: var(--crypto-radius-lg);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
    aspect-ratio: 16 / 11;
    transition: box-shadow 0.4s ease, transform 0.4s var(--crypto-ease);
}

.split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, transparent 55%, rgba(6, 42, 48, 0.35));
    pointer-events: none;
}

.split__img,
.features__img {
    position: absolute;
    left: 0;
    top: -28px;
    width: 100%;
    height: calc(100% + 56px);
    max-width: none;
    object-fit: cover;
    transition: transform 0.6s var(--crypto-ease), filter 0.4s ease;
    will-change: transform;
}

.split__media:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover), 0 0 0 4px var(--crypto-accent-soft);
}

.split__media:hover .split__img {
    filter: saturate(1.2);
    scale: 1.06;
}

/* Lists inside text */
.bullets,
.checklist {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.bullets__item,
.checklist__item {
    position: relative;
    padding: 12px 16px 12px 46px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.section--alt .bullets__item,
.section--alt .checklist__item {
    background: #fff;
}

.bullets__item::before,
.checklist__item::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 12px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--crypto-accent-tint);
    color: var(--crypto-accent);
    font-size: 12px;
    font-weight: 800;
}

.bullets__item:hover,
.checklist__item:hover {
    border-color: var(--crypto-accent);
    transform: translateX(4px);
    box-shadow: var(--crypto-shadow);
}

.checklist__item b {
    color: var(--crypto-teal-800);
}

.steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    counter-reset: crypto-step;
    display: grid;
    gap: 12px;
}

.steps__item {
    counter-increment: crypto-step;
    position: relative;
    padding: 14px 18px 14px 64px;
    border-radius: var(--crypto-radius);
    background: #fff;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.25s var(--crypto-ease), box-shadow 0.25s ease;
}

.steps__item::before {
    content: counter(crypto-step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-accent-dark));
    color: #fff;
    font-weight: 800;
}

.steps__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--crypto-shadow-hover);
}

/* =====================================================================
   FEATURE CARDS
   ===================================================================== */
.features__media {
    position: relative;
    margin: 0 0 28px;
    height: 260px;
    border-radius: var(--crypto-radius-lg);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
}

.features__media:hover .features__img {
    scale: 1.05;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.features__grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .features__grid,
    .features__grid:has(> :nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .features__grid,
    .features__grid:has(> :nth-child(4):last-child) {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-teal-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--crypto-ease);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon,
.faq__icon,
.routes__icon,
.note-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: var(--crypto-accent-tint);
    color: var(--crypto-accent);
    transition: transform 0.35s var(--crypto-ease), background 0.35s ease, color 0.35s ease;
}

.feature-card__icon {
    margin-bottom: 18px;
}

.feature-card:hover .feature-card__icon,
.faq__item:hover .faq__icon,
.routes__group:hover .routes__icon,
.note-card:hover .note-card__icon {
    background: var(--crypto-accent);
    color: #fff;
    transform: rotate(-8deg) scale(1.08);
}

.feature-card__title {
    font-size: 19px;
    font-weight: 700;
}

.feature-card p {
    color: var(--crypto-text-muted);
}

/* =====================================================================
   RATE CHART CARD + PAIR CHART SHORTCODE
   ===================================================================== */
.rate__card,
.radar-section__card {
    padding: 28px;
    border-radius: var(--crypto-radius-lg);
    background: #fff;
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.35s ease;
}

.rate__card:hover,
.radar-section__card:hover {
    box-shadow: var(--crypto-shadow-hover);
}

.pair-chart__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pair-chart__pair {
    display: flex;
    align-items: center;
}

.pair-chart__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(6, 42, 48, 0.15);
}

.pair-chart__logo + .pair-chart__logo {
    margin-left: -10px;
}

.pair-chart__ticker {
    margin-left: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--crypto-teal-900);
}

.pair-chart__rate {
    margin: 0;
    font-size: 18px;
    color: var(--crypto-text-muted);
}

.pair-chart__rate b {
    font-size: 24px;
    color: var(--crypto-teal-900);
}

.pair-chart__stats {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.pair-chart__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-teal-50);
    transition: transform 0.25s ease, background 0.25s ease;
}

.pair-chart__stat:hover {
    transform: translateY(-3px);
    background: var(--crypto-accent-tint);
}

.pair-chart__stat-label {
    font-size: 13px;
    color: var(--crypto-text-muted);
}

.pair-chart__delta,
.radar__delta {
    font-weight: 800;
}

.pair-chart__delta--up,
.radar__delta--up {
    color: var(--crypto-up);
}

.pair-chart__delta--down,
.radar__delta--down {
    color: var(--crypto-down);
}

.pair-chart__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pair-chart__periods {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--crypto-teal-50);
}

.pair-chart__periods label {
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--crypto-text-muted);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.pair-chart__periods label:hover {
    color: var(--crypto-accent);
}

.pair-chart__radio--1:checked ~ .pair-chart__periods label:nth-child(1),
.pair-chart__radio--2:checked ~ .pair-chart__periods label:nth-child(2),
.pair-chart__radio--3:checked ~ .pair-chart__periods label:nth-child(3),
.pair-chart__radio--4:checked ~ .pair-chart__periods label:nth-child(4) {
    background: var(--crypto-accent);
    color: #fff;
    box-shadow: 0 6px 14px rgba(216, 27, 106, 0.3);
}

.pair-chart__radio:focus-visible ~ .pair-chart__periods {
    outline: 2px solid var(--crypto-accent);
    outline-offset: 2px;
}

.pair-chart__panel {
    display: none;
}

.pair-chart__radio--1:checked ~ .pair-chart__panel--1,
.pair-chart__radio--2:checked ~ .pair-chart__panel--2,
.pair-chart__radio--3:checked ~ .pair-chart__panel--3,
.pair-chart__radio--4:checked ~ .pair-chart__panel--4 {
    display: block;
    animation: crypto-fade 0.45s var(--crypto-ease);
}

@keyframes crypto-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.pair-chart__updated {
    margin-top: 12px;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

/* Chart (shared SVG markup) */
.chart {
    position: relative;
}

.chart__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart__grid {
    stroke: var(--crypto-border);
    stroke-width: 1;
}

.chart__grid--v {
    stroke-dasharray: 4 5;
}

.chart__label {
    fill: var(--crypto-text-muted);
    font-family: var(--crypto-font);
    font-size: 11px;
}

.chart__area {
    fill: var(--crypto-accent-soft);
}

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 2400;
    stroke-dashoffset: 0;
    animation: crypto-draw 1.8s var(--crypto-ease);
}

.chart__dot {
    fill: var(--crypto-accent);
    stroke: #fff;
    stroke-width: 2.5;
    animation: crypto-pulse 2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes crypto-draw {
    from {
        stroke-dashoffset: 2400;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes crypto-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.35);
    }
}

.chart-empty {
    padding: 22px 24px;
    border-radius: var(--crypto-radius);
    border: 1px dashed var(--crypto-border);
    background: var(--crypto-teal-50);
    color: var(--crypto-text-muted);
}

/* =====================================================================
   RADAR
   ===================================================================== */
.radar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.radar__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--crypto-teal-900);
}

.radar__logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.radar__input {
    width: 160px;
    padding: 12px 16px;
    border: 2px solid var(--crypto-border);
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    color: var(--crypto-teal-900);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.radar__input:focus {
    outline: none;
    border-color: var(--crypto-accent);
    box-shadow: 0 0 0 4px var(--crypto-accent-soft);
}

.radar__table-wrap,
.pairs__wrap {
    overflow-x: auto;
    border-radius: var(--crypto-radius);
    border: 1px solid var(--crypto-border);
    background: #fff;
}

.radar__table,
.pairs__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.radar__table th,
.pairs__table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--crypto-teal-800);
    white-space: nowrap;
}

.radar__table td,
.pairs__table td {
    padding: 14px 16px;
    border-top: 1px solid var(--crypto-border);
    white-space: nowrap;
}

.radar__table tbody tr,
.pairs__table tbody tr {
    transition: background 0.2s ease;
}

.radar__table tbody tr:hover,
.pairs__table tbody tr:hover {
    background: var(--crypto-accent-tint);
}

.radar__asset,
.pairs__asset {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.radar__asset b {
    color: var(--crypto-teal-900);
}

.radar__amount {
    font-weight: 800;
    color: var(--crypto-teal-900);
}

.radar__note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

.pairs__logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.35s var(--crypto-ease);
}

.pairs__table tbody tr:hover .pairs__logo {
    transform: rotate(-12deg) scale(1.12);
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.note-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border-radius: var(--crypto-radius);
    background: #fff;
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text-muted);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--crypto-shadow-hover);
}

/* =====================================================================
   ROUTES (more exchange directions)
   ===================================================================== */
.routes__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.routes__group {
    padding: 26px;
    border-radius: var(--crypto-radius-lg);
    background: #fff;
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s var(--crypto-ease);
}

.routes__group:hover {
    box-shadow: var(--crypto-shadow-hover);
    transform: translateY(-4px);
}

.routes__group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.routes__title {
    margin: 0;
    font-size: 20px;
}

.routes__text {
    color: var(--crypto-text-muted);
}

.routes__list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.routes__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-teal-50);
    transition: background 0.25s ease, transform 0.25s ease;
}

.routes__item:hover {
    background: var(--crypto-accent-tint);
    transform: translateX(4px);
}

.routes__logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 auto;
    transition: transform 0.35s var(--crypto-ease);
}

.routes__item:hover .routes__logo {
    transform: rotate(-15deg) scale(1.1);
}

.routes__item > a {
    color: var(--crypto-teal-800);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.routes__item > a:hover {
    color: var(--crypto-accent);
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta__box {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 40px;
    border-radius: var(--crypto-radius-lg);
    color: #fff;
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(216, 27, 106, 0.55), transparent 70%),
        linear-gradient(120deg, var(--crypto-teal-900), var(--crypto-teal-700));
    box-shadow: var(--crypto-shadow-hover);
    overflow: hidden;
    transition: transform 0.4s var(--crypto-ease);
}

.cta__box:hover {
    transform: translateY(-4px);
}

.cta__coins {
    display: flex;
}

.cta__coin {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: #fff;
    animation: crypto-bob 4s ease-in-out infinite;
}

.cta__coin + .cta__coin {
    margin-left: -14px;
    animation-delay: -1s;
}

.cta__coin:nth-child(3) {
    animation-delay: -2s;
}

.cta__coin:nth-child(4) {
    animation-delay: -3s;
}

@keyframes crypto-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.cta__title {
    color: #fff;
    font-size: clamp(24px, 2.6vw, 32px);
}

.cta__text p {
    color: rgba(255, 255, 255, 0.82);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.faq__item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--crypto-radius);
    background: #fff;
    border: 1px solid var(--crypto-border);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-accent);
}

.faq__question {
    font-size: 18px;
    margin-bottom: 8px;
}

.faq__answer {
    color: var(--crypto-text-muted);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--crypto-teal-950);
    color: rgba(255, 255, 255, 0.72);
    padding-top: 56px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}

.site-footer__identity {
    margin-top: 16px;
    font-size: 15px;
}

.site-footer__coins {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.site-footer__coin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.3s var(--crypto-ease);
}

.site-footer__coin:hover {
    transform: translateY(-4px) scale(1.15);
}

.site-footer__title {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.site-footer__title--spaced {
    margin-top: 26px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-menu li > a,
.footer-menu li > .menu-current {
    position: relative;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, padding 0.2s ease;
}

.footer-menu li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--crypto-accent-light);
    transition: width 0.2s ease;
}

.footer-menu li > a:hover {
    color: #fff;
    padding-left: 16px;
}

.footer-menu li > a:hover::before {
    width: 10px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    font-size: 14px;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.site-footer .site-logo__icon {
    width: 36px;
    height: 36px;
}

/* =====================================================================
   COOKIE POPUP
   ===================================================================== */
.cookie-popup {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: var(--crypto-radius-lg);
    background: var(--crypto-teal-900);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: crypto-cookie-in 0.6s var(--crypto-ease);
    transition: opacity 0.4s ease, transform 0.4s var(--crypto-ease);
}

.cookie-popup[hidden] {
    display: none;
}

.cookie-popup--hiding {
    opacity: 0;
    transform: translateY(30px);
}

@keyframes crypto-cookie-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.cookie-popup__icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--crypto-accent);
    color: #fff;
}

.cookie-popup__body {
    flex: 1 1 auto;
}

.cookie-popup__title {
    margin: 0 0 2px;
    font-weight: 800;
    color: #fff;
}

.cookie-popup__text {
    margin: 0;
    font-size: 14px;
}

.cookie-popup__text a {
    color: #ff86b8;
}

.cookie-popup__accept {
    flex: 0 0 auto;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--crypto-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cookie-popup__accept:hover {
    background: var(--crypto-accent-dark);
    transform: translateY(-2px);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 96px 0;
    text-align: center;
    background:
        radial-gradient(500px 300px at 50% 0%, var(--crypto-accent-soft), transparent 70%),
        var(--crypto-bg-alt);
}

.error404__code {
    font-size: clamp(96px, 18vw, 180px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-teal-700), var(--crypto-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error404__title {
    font-size: clamp(28px, 4vw, 40px);
}

.error404__text {
    color: var(--crypto-text-muted);
    margin-bottom: 28px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__widget {
        justify-self: stretch;
        max-width: none;
    }

    .site-footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .site-header__burger {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--crypto-teal-950);
        opacity: 0;
        transition: max-height 0.45s var(--crypto-ease), opacity 0.3s ease;
    }

    .site-nav--open {
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
        opacity: 1;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 24px 24px;
    }

    .site-nav__list > li > a,
    .site-nav__list > li > .menu-current {
        display: flex;
        border-radius: var(--crypto-radius-sm);
        padding: 12px 14px;
    }

    .site-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        margin: 0 0 8px 14px;
        padding: 4px 0 4px 12px;
        background: transparent;
        box-shadow: none;
        border-left: 2px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav .sub-menu li > a {
        color: rgba(255, 255, 255, 0.78);
        font-size: 14px;
    }

    .site-nav .sub-menu li > a:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .site-nav .sub-menu .menu-current {
        background: transparent;
    }

    .site-nav__list > .menu-item-has-children > a::after,
    .site-nav__list > .menu-item-has-children > .menu-current::after {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --crypto-section-y: 20px;
        --crypto-header-h: 66px;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 40px 0 48px;
    }

    .page-hero {
        padding: 52px 0;
    }

    .page-hero__inner {
        flex-direction: column;
        gap: 18px;
    }

    .split__inner,
    .routes__grid,
    .faq__list,
    .note-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .split--reverse .split__content {
        order: 0;
    }

    .cta__box {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        gap: 20px;
        text-align: left;
    }

    .rate__card,
    .radar-section__card {
        padding: 20px 16px;
    }

    .features__media {
        height: 200px;
    }

    .radar__table thead,
    .pairs__table thead {
        display: none;
    }

    .radar__table tr,
    .pairs__table tr {
        display: block;
        padding: 10px 0;
        border-top: 1px solid var(--crypto-border);
    }

    .radar__table tr:first-child,
    .pairs__table tr:first-child {
        border-top: 0;
    }

    .radar__table td,
    .pairs__table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 16px;
        border-top: 0;
        white-space: normal;
        text-align: right;
    }

    .radar__table td::before,
    .pairs__table td::before {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 700;
        color: var(--crypto-text-muted);
        text-align: left;
    }

    .cookie-popup {
        flex-direction: column;
        align-items: stretch;
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: left;
    }

    .cookie-popup__accept {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .hero__lead,
    .hero__text,
    .section-head p,
    .split__content > p {
        font-size: 16px;
    }

    .hero__jump-item > a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .exchange-widget {
        padding: 6px;
    }

    .exchange-widget__frame {
        height: 430px;
    }

    .routes__list,
    .site-nav .sub-menu {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .faq__item,
    .note-card {
        flex-direction: column;
        gap: 12px;
    }

    .pair-chart__periods {
        display: flex;
    }

    .pair-chart__periods label {
        flex: 1;
        text-align: center;
    }
}
