/*
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: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   ROOT VARIABLES — Neon City palette
   ===================================================================== */
:root {
    --crypto-bg: #091221;
    --crypto-bg-alt: #0b1830;
    --crypto-surface: #0f1f3d;
    --crypto-surface-hover: #13284f;
    --crypto-border: #1c3566;
    --crypto-text: #eef3ff;
    --crypto-text-muted: #9db0d3;
    --crypto-accent: #0585e6;
    --crypto-accent-deep: #0236a5;
    --crypto-accent-soft: rgba(5, 133, 230, 0.16);
    --crypto-pink: #fe0369;
    --crypto-pink-soft: rgba(254, 3, 105, 0.14);
    --crypto-gradient: linear-gradient(100deg, #0236a5 0%, #0585e6 50%, #fe0369 100%);
    --crypto-radius: 18px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 14px 40px rgba(2, 8, 20, 0.55);
    --crypto-glow: 0 0 0 1px rgba(5, 133, 230, 0.45), 0 18px 46px rgba(5, 133, 230, 0.22);
    --crypto-section-y: 25px;
    --crypto-header-h: 72px;
    --crypto-ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    color: var(--crypto-accent);
    text-decoration: none;
    transition: color 0.25s var(--crypto-ease);
}

main {
    display: block;
    min-height: 60vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    display: block;
    width: 24px;
    height: 24px;
}

.coin-logo {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease);
}

.coin-logo:hover {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 0 0 3px var(--crypto-accent-soft);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.button,
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--crypto-gradient);
    background-size: 200% 100%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(254, 3, 105, 0.28);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s var(--crypto-ease), background-position 0.5s var(--crypto-ease);
}

.button:hover,
.btn:hover,
.button:focus-visible,
.btn:focus-visible {
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow: 0 16px 38px rgba(254, 3, 105, 0.42);
    color: #fff;
}

.button:active,
.btn:active {
    transform: translateY(0);
}

/* =====================================================================
   HEADER + NAVIGATION
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 18, 33, 0.86);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    transition: border-color 0.3s var(--crypto-ease), box-shadow 0.3s var(--crypto-ease);
}

.site-header--scrolled {
    border-bottom-color: var(--crypto-border);
    box-shadow: 0 10px 30px rgba(2, 8, 20, 0.5);
}

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

.site-header__logo img {
    display: block;
    width: auto;
    max-height: 44px;
    transition: transform 0.3s var(--crypto-ease);
}

.site-header__logo img:hover {
    transform: scale(1.05);
}

.site-header__brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--crypto-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav__list,
.site-nav__submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--crypto-text);
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.25s var(--crypto-ease), color 0.25s var(--crypto-ease);
}

.site-nav__link:hover,
.site-nav__item.current-menu-item > .site-nav__link {
    background: var(--crypto-accent-soft);
    color: #fff;
}

.site-nav__submenu--level-1 {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    padding: 12px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s var(--crypto-ease), transform 0.25s var(--crypto-ease), visibility 0.25s;
}

.site-nav__item:hover > .site-nav__submenu--level-1,
.site-nav__item:focus-within > .site-nav__submenu--level-1 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Мега-меню: выпадающий список с вложенными колонками тянется от правого края шапки */
.site-nav__item:has(.site-nav__submenu--level-2) {
    position: static;
}

.site-nav__submenu--level-1:has(.site-nav__submenu--level-2) {
    left: auto;
    right: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    width: min(720px, calc(100% - 48px));
}

.site-nav__submenu .site-nav__link {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crypto-text-muted);
}

.site-nav__submenu .site-nav__link:hover {
    color: #fff;
}

.site-nav__submenu--level-1 > .menu-item-has-children > .site-nav__link {
    color: var(--crypto-pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav__toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s var(--crypto-ease), box-shadow 0.25s var(--crypto-ease);
}

.burger:hover {
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-glow);
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-text);
    transition: transform 0.3s var(--crypto-ease), opacity 0.2s var(--crypto-ease);
}

.site-header--open .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header--open .burger__line:nth-child(2) {
    opacity: 0;
}

.site-header--open .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    padding: 56px 0 40px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: hero-glow 14s ease-in-out infinite alternate;
}

.hero::before {
    top: -220px;
    left: -140px;
    background: var(--crypto-accent-deep);
}

.hero::after {
    right: -180px;
    bottom: -260px;
    background: var(--crypto-pink);
    opacity: 0.3;
    animation-delay: -7s;
}

@keyframes hero-glow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(60px, 40px, 0) scale(1.18);
    }
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    align-items: center;
    gap: 40px;
}

.hero__inner--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
}

.hero__inner--media {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.hero__title {
    margin: 0 0 18px;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.hero__text {
    margin: 0 0 14px;
    color: var(--crypto-text-muted);
    font-size: 17px;
}

.hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--crypto-gradient);
    color: #fff;
    box-shadow: 0 12px 30px rgba(5, 133, 230, 0.35);
    animation: icon-float 5s ease-in-out infinite;
}

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

.hero__widget {
    position: relative;
    padding: 10px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.35s var(--crypto-ease), transform 0.35s var(--crypto-ease);
}

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

#exchange-form {
    scroll-margin-top: calc(var(--crypto-header-h) + 20px);
}

.exchange-widget {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: var(--crypto-radius-sm);
}

.pair-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 16px 8px 8px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: border-color 0.3s var(--crypto-ease), box-shadow 0.3s var(--crypto-ease);
}

.pair-badge:hover {
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-glow);
}

.pair-badge__arrow {
    display: inline-flex;
    color: var(--crypto-pink);
}

.pair-badge__arrow .icon {
    width: 18px;
    height: 18px;
}

/* =====================================================================
   SECTIONS + CONTENT
   ===================================================================== */
.section {
    padding: var(--crypto-section-y) 0;
}

.section__title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.section__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: var(--crypto-gradient);
    transition: width 0.4s var(--crypto-ease);
}

.section:hover .section__title::after {
    width: 96px;
}

.section__actions {
    margin: 20px 0 0;
}

.content p {
    margin: 0 0 14px;
    color: var(--crypto-text-muted);
}

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

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

.content p a:hover,
.content li a:hover,
.content td a:hover {
    color: var(--crypto-pink);
}

.content p a.button,
.content p a.button:hover {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.content code {
    padding: 2px 7px;
    background: var(--crypto-accent-soft);
    border: 1px solid var(--crypto-border);
    border-radius: 6px;
    color: var(--crypto-text);
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
    font-size: 0.88em;
    word-break: break-all;
}

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

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (scripting: none) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Media block: text + picture */
.media {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 36px;
    padding: 28px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: border-color 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease), transform 0.35s var(--crypto-ease);
}

.media:hover {
    transform: translateY(-4px);
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-glow);
}

.media--reverse .media__figure {
    order: -1;
}

.media__figure {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--crypto-radius-sm);
    box-shadow: 0 12px 34px rgba(2, 8, 20, 0.6);
}

.media__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(2, 54, 165, 0.35), rgba(254, 3, 105, 0.18));
    mix-blend-mode: soft-light;
    pointer-events: none;
    transition: opacity 0.4s var(--crypto-ease);
}

.media__figure:hover::after {
    opacity: 0;
}

.media__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.14);
    transition: transform 0.5s var(--crypto-ease), filter 0.5s var(--crypto-ease);
    will-change: transform;
}

.media__figure:hover .media__img {
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.22);
    filter: saturate(1.2);
}

/* Callout: text block with icon */
.callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: border-color 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease), transform 0.35s var(--crypto-ease);
}

.callout:hover {
    transform: translateY(-4px);
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-glow);
}

.callout__icon,
.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--crypto-accent-soft);
    border: 1px solid rgba(5, 133, 230, 0.4);
    color: var(--crypto-accent);
    transition: background 0.35s var(--crypto-ease), color 0.35s var(--crypto-ease), transform 0.35s var(--crypto-ease);
}

.callout:hover .callout__icon,
.feature-card:hover .feature-card__icon {
    background: var(--crypto-gradient);
    color: #fff;
    transform: rotate(-8deg) scale(1.08);
}

/* Feature cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

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

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--crypto-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--crypto-ease);
}

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

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

.feature-card__title {
    margin: 18px 0 10px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

/* Steps */
.steps {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps__item {
    position: relative;
    padding: 14px 16px 14px 62px;
    background: var(--crypto-bg-alt);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text);
    counter-increment: step;
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s var(--crypto-ease), background-color 0.3s var(--crypto-ease);
}

.steps__item::before {
    content: counter(step);
    position: absolute;
    top: 50%;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--crypto-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    transform: translateY(-50%);
    transition: transform 0.3s var(--crypto-ease);
}

.steps__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-accent);
    background: var(--crypto-surface-hover);
}

.steps__item:hover::before {
    transform: translateY(-50%) scale(1.12);
}

/* Route links */
.route-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.route-links__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--crypto-bg-alt);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s var(--crypto-ease), box-shadow 0.3s var(--crypto-ease);
}

.route-links__item:hover {
    transform: translateY(-4px);
    border-color: var(--crypto-pink);
    box-shadow: 0 0 0 1px rgba(254, 3, 105, 0.4), 0 14px 34px rgba(254, 3, 105, 0.18);
}

.route-links__icon {
    display: inline-flex;
    flex: none;
    color: var(--crypto-pink);
    transition: transform 0.3s var(--crypto-ease);
}

.route-links__item:hover .route-links__icon {
    transform: translateX(4px);
}

.route-links__icon .icon {
    width: 20px;
    height: 20px;
}

/* Generic list with check marks */
.check-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.check-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--crypto-bg-alt);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text-muted);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s var(--crypto-ease);
}

.check-list__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-accent);
}

.check-list__icon {
    display: inline-flex;
    flex: none;
    margin-top: 2px;
    color: var(--crypto-accent);
}

.check-list__icon .icon {
    width: 20px;
    height: 20px;
}

/* Guide cards (blog index) */
.guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

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

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

.guide-card__figure {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.guide-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--crypto-ease), filter 0.6s var(--crypto-ease);
}

.guide-card:hover .guide-card__img {
    transform: scale(1.1);
    filter: saturate(1.25);
}

.content .guide-card__text {
    margin: 0;
    padding: 18px 20px 22px;
}

/* Tables */
.table-wrap {
    margin: 18px 0;
    overflow-x: auto;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: border-color 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease);
}

.table-wrap:hover {
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-glow);
}

.data-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 15px;
}

.data-table__head {
    padding: 14px 18px;
    background: rgba(2, 54, 165, 0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.data-table__cell {
    padding: 14px 18px;
    border-top: 1px solid var(--crypto-border);
    color: var(--crypto-text-muted);
    vertical-align: top;
    transition: background-color 0.25s var(--crypto-ease), color 0.25s var(--crypto-ease);
}

.data-table__row:hover .data-table__cell {
    background: var(--crypto-accent-soft);
    color: var(--crypto-text);
}

/* CTA */
.cta {
    position: relative;
    padding: 44px 32px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(120deg, rgba(2, 54, 165, 0.85), rgba(9, 18, 33, 0.9) 55%, rgba(254, 3, 105, 0.55));
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s var(--crypto-ease), transform 0.4s var(--crypto-ease);
}

.cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(254, 3, 105, 0.45), 0 22px 54px rgba(254, 3, 105, 0.24);
}

.cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    animation: icon-float 5s ease-in-out infinite;
}

.cta .section__title::after {
    margin-left: auto;
    margin-right: auto;
}

.cta.content p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: #d5dff5;
}

/* FAQ */
.faq__list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.faq__item {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    transition: border-color 0.3s var(--crypto-ease), box-shadow 0.3s var(--crypto-ease), transform 0.3s var(--crypto-ease);
}

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

.faq__question {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.faq__icon {
    display: inline-flex;
    flex: none;
    color: var(--crypto-pink);
}

.faq__answer {
    padding: 0 22px 20px 60px;
}

.faq--js .faq__question {
    padding-right: 58px;
    cursor: pointer;
}

.faq--js .faq__question::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--crypto-accent);
    border-bottom: 2px solid var(--crypto-accent);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s var(--crypto-ease);
}

.faq--js .faq__item--open .faq__question::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq--js .faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    padding-bottom: 0;
    opacity: 0;
    transition: grid-template-rows 0.35s var(--crypto-ease), opacity 0.35s var(--crypto-ease), padding-bottom 0.35s var(--crypto-ease);
}

.faq--js .faq__answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq--js .faq__item--open .faq__answer {
    grid-template-rows: 1fr;
    padding-bottom: 20px;
    opacity: 1;
}

/* =====================================================================
   RATE CHART + SUMMARY (shortcodes)
   ===================================================================== */
.rate-chart,
.rate-summary,
.rate-tabs {
    margin-top: 20px;
}

.rate-chart,
.rate-summary {
    padding: 24px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: border-color 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease);
}

.rate-chart:hover,
.rate-summary:hover {
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-glow);
}

.rate-tabs .rate-chart {
    margin-top: 0;
}

.rate-chart__head,
.rate-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rate-chart__logos,
.rate-summary__logos {
    display: inline-flex;
}

.rate-chart__logos .coin-logo + .coin-logo,
.rate-summary__logos .coin-logo + .coin-logo {
    margin-left: -8px;
    box-shadow: 0 0 0 2px var(--crypto-surface);
}

.rate-chart__pair,
.rate-summary__pair {
    font-size: 18px;
    font-weight: 800;
}

.rate-chart__network,
.rate-summary__network {
    padding: 4px 12px;
    background: var(--crypto-pink-soft);
    border: 1px solid rgba(254, 3, 105, 0.4);
    border-radius: 999px;
    color: #ff7fb1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rate-chart__tabs,
.rate-tabs__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.rate-chart__tab,
.rate-tabs__tab {
    padding: 8px 16px;
    background: var(--crypto-bg-alt);
    border: 1px solid var(--crypto-border);
    border-radius: 999px;
    color: var(--crypto-text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s var(--crypto-ease), color 0.25s var(--crypto-ease), border-color 0.25s var(--crypto-ease), transform 0.25s var(--crypto-ease);
}

.rate-chart__tab:hover,
.rate-tabs__tab:hover {
    transform: translateY(-2px);
    border-color: var(--crypto-accent);
    color: #fff;
}

.rate-chart__panel,
.rate-tabs__panel {
    display: none;
}

.rate-chart__radio:nth-of-type(1):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(1),
.rate-chart__radio:nth-of-type(2):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(2),
.rate-chart__radio:nth-of-type(3):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(3),
.rate-chart__radio:nth-of-type(4):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(4),
.rate-chart__radio:nth-of-type(5):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(5),
.rate-chart__radio:nth-of-type(6):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(6),
.rate-tabs__radio:nth-of-type(1):checked ~ .rate-tabs__panels > .rate-tabs__panel:nth-child(1),
.rate-tabs__radio:nth-of-type(2):checked ~ .rate-tabs__panels > .rate-tabs__panel:nth-child(2),
.rate-tabs__radio:nth-of-type(3):checked ~ .rate-tabs__panels > .rate-tabs__panel:nth-child(3),
.rate-tabs__radio:nth-of-type(4):checked ~ .rate-tabs__panels > .rate-tabs__panel:nth-child(4),
.rate-tabs__radio:nth-of-type(5):checked ~ .rate-tabs__panels > .rate-tabs__panel:nth-child(5),
.rate-tabs__radio:nth-of-type(6):checked ~ .rate-tabs__panels > .rate-tabs__panel:nth-child(6) {
    display: block;
    animation: panel-in 0.4s var(--crypto-ease);
}

.rate-chart__radio:nth-of-type(1):checked ~ .rate-chart__tabs > .rate-chart__tab:nth-child(1),
.rate-chart__radio:nth-of-type(2):checked ~ .rate-chart__tabs > .rate-chart__tab:nth-child(2),
.rate-chart__radio:nth-of-type(3):checked ~ .rate-chart__tabs > .rate-chart__tab:nth-child(3),
.rate-chart__radio:nth-of-type(4):checked ~ .rate-chart__tabs > .rate-chart__tab:nth-child(4),
.rate-chart__radio:nth-of-type(5):checked ~ .rate-chart__tabs > .rate-chart__tab:nth-child(5),
.rate-chart__radio:nth-of-type(6):checked ~ .rate-chart__tabs > .rate-chart__tab:nth-child(6),
.rate-tabs__radio:nth-of-type(1):checked ~ .rate-tabs__tabs > .rate-tabs__tab:nth-child(1),
.rate-tabs__radio:nth-of-type(2):checked ~ .rate-tabs__tabs > .rate-tabs__tab:nth-child(2),
.rate-tabs__radio:nth-of-type(3):checked ~ .rate-tabs__tabs > .rate-tabs__tab:nth-child(3),
.rate-tabs__radio:nth-of-type(4):checked ~ .rate-tabs__tabs > .rate-tabs__tab:nth-child(4),
.rate-tabs__radio:nth-of-type(5):checked ~ .rate-tabs__tabs > .rate-tabs__tab:nth-child(5),
.rate-tabs__radio:nth-of-type(6):checked ~ .rate-tabs__tabs > .rate-tabs__tab:nth-child(6) {
    background: var(--crypto-gradient);
    border-color: transparent;
    color: #fff;
}

.rate-chart__radio:focus-visible ~ .rate-chart__tabs,
.rate-tabs__radio:focus-visible ~ .rate-tabs__tabs {
    outline: 2px solid var(--crypto-accent);
    outline-offset: 4px;
    border-radius: 999px;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chart (server-rendered SVG) */
.chart__svg {
    display: block;
    width: 100%;
    height: auto;
}

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

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

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

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

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(5, 133, 230, 0.7));
    transition: stroke 0.3s var(--crypto-ease), stroke-width 0.3s var(--crypto-ease);
}

.chart:hover .chart__line {
    stroke: var(--crypto-pink);
    stroke-width: 3;
}

.chart__dot {
    fill: var(--crypto-pink);
    stroke: var(--crypto-surface);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: dot-pulse 2.2s ease-in-out infinite;
}

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

.chart-empty {
    margin: 20px 0 0;
    padding: 22px;
    background: var(--crypto-surface);
    border: 1px dashed var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text-muted);
    text-align: center;
}

.rate-chart__panel .chart-empty {
    margin-top: 0;
}

/* Rate summary */
.rate-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 24px;
}

.rate-summary__value {
    display: block;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.content .rate-summary__updated {
    margin: 8px 0 0;
    font-size: 13px;
}

.rate-summary__changes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rate-summary__change {
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: 16px;
    background: var(--crypto-bg-alt);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s var(--crypto-ease);
}

.rate-summary__change:hover {
    transform: translateY(-5px);
    border-color: var(--crypto-accent);
}

.rate-summary__period {
    color: var(--crypto-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rate-summary__percent {
    font-size: 20px;
    font-weight: 800;
}

.rate-summary__change--up .rate-summary__icon,
.rate-summary__change--up .rate-summary__percent {
    color: var(--crypto-accent);
}

.rate-summary__change--down .rate-summary__icon,
.rate-summary__change--down .rate-summary__percent {
    color: var(--crypto-pink);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 80px 0;
    text-align: center;
}

.error404__code {
    font-size: clamp(96px, 20vw, 200px);
    font-weight: 900;
    line-height: 1;
    background: var(--crypto-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error404__title {
    margin: 10px 0 12px;
    font-size: clamp(26px, 4vw, 38px);
}

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

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    margin-top: 40px;
    padding: 48px 0 28px;
    background: #060d19;
    border-top: 1px solid var(--crypto-border);
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px 28px;
}

.footer-nav__title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.footer-nav__item {
    color: var(--crypto-text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.footer-nav__link {
    display: inline-block;
    color: var(--crypto-text-muted);
    transition: color 0.25s var(--crypto-ease), transform 0.25s var(--crypto-ease);
}

.footer-nav__link:hover {
    color: var(--crypto-accent);
    transform: translateX(4px);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--crypto-border);
    color: var(--crypto-text-muted);
    font-size: 14px;
}

.site-footer__identity,
.site-footer__copyright {
    margin: 0;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--crypto-surface);
        border-bottom: 1px solid transparent;
        box-shadow: var(--crypto-shadow);
        transition: max-height 0.4s var(--crypto-ease), border-color 0.4s var(--crypto-ease);
    }

    .site-header--open .site-nav {
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
        border-bottom-color: var(--crypto-border);
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 20px 22px;
    }

    .site-nav__item,
    .site-nav__item:has(.site-nav__submenu--level-2) {
        position: relative;
    }

    .site-nav__link {
        padding: 12px 52px 12px 14px;
    }

    .site-nav__toggle {
        position: absolute;
        top: 4px;
        right: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 0;
        color: var(--crypto-text);
        cursor: pointer;
    }

    .site-nav__toggle::before {
        content: "";
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.3s var(--crypto-ease);
    }

    .site-nav__item--open > .site-nav__toggle::before {
        transform: translateY(2px) rotate(-135deg);
    }

    .site-nav__submenu--level-1,
    .site-nav__submenu--level-1:has(.site-nav__submenu--level-2) {
        position: static;
        display: none;
        width: auto;
        min-width: 0;
        padding: 0 0 0 14px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav__submenu--level-2 {
        display: none;
        padding-left: 14px;
    }

    .site-nav__item--open > .site-nav__submenu {
        display: block;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__widget {
        max-width: 520px;
    }
}

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

    .container {
        padding: 0 18px;
    }

    .hero {
        padding: 36px 0 28px;
    }

    .hero__inner--media,
    .media,
    .rate-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .media {
        gap: 22px;
        padding: 22px;
    }

    .media--reverse .media__figure {
        order: 0;
    }

    .callout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 22px;
    }

    .cards,
    .guide-list,
    .route-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta {
        padding: 34px 22px;
    }

    .faq__answer {
        padding-left: 22px;
    }

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

    .site-footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__text {
        font-size: 16px;
    }

    .hero__widget {
        padding: 6px;
    }

    .button,
    .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .rate-chart,
    .rate-summary,
    .feature-card {
        padding: 18px;
    }

    .rate-summary__changes {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq__question {
        padding: 16px 18px;
        font-size: 16px;
    }

    .faq__answer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-footer__columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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