/*
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.4
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-soft: #0c1830;
    --crypto-surface: #101f3b;
    --crypto-surface-hover: #142649;
    --crypto-border: rgba(255, 255, 255, .08);
    --crypto-border-strong: rgba(255, 255, 255, .16);
    --crypto-primary: #0585e6;
    --crypto-primary-dark: #0236a5;
    --crypto-accent: #fe0369;
    --crypto-text: #f5f7fa;
    --crypto-text-muted: #9aa7c4;
    --crypto-text-dim: #6b7794;
    --crypto-gradient-primary: linear-gradient(135deg, #0236a5 0%, #0585e6 100%);
    --crypto-gradient-accent: linear-gradient(135deg, #fe0369 0%, #0585e6 100%);
    --crypto-radius: 18px;
    --crypto-radius-sm: 12px;
    --crypto-section-y: 20px;
    --crypto-container: 1240px;
    --crypto-shadow: 0 24px 60px rgba(2, 8, 22, .5);
    --crypto-header-h: 84px;
}

/* =====================================================================
   RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

body {
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 8%, rgba(254, 3, 105, .16), transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(5, 133, 230, .22), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(2, 54, 165, .28), transparent 55%),
        var(--crypto-bg);
}

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(32px, 4.5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
p { color: var(--crypto-text-muted); }

/* =====================================================================
   VERTICAL RHYTHM / SECTIONS
   ===================================================================== */
.section {
    padding: calc(var(--crypto-section-y) * 3) 0;
}
.section--tight { padding: calc(var(--crypto-section-y) * 2) 0; }
.section--alt { background: var(--crypto-bg-soft); }
.section__header {
    max-width: 780px;
    margin: 0 auto calc(var(--crypto-section-y) * 2);
    text-align: center;
}
.section__eyebrow {
    display: inline-block;
    color: var(--crypto-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section__title { margin-bottom: 14px; }
.section__text { font-size: 16px; }
.section__text + .section__text { margin-top: 12px; }
.section__text--center { max-width: 780px; margin: 24px auto 0; text-align: center; }
.section__text--center + .section__text--center { margin-top: 12px; }
.section__list--center { max-width: 640px; margin: 16px auto 0; padding-left: 20px; color: var(--crypto-text-muted); }
.mt-lg { margin-top: 24px; }
.formula {
    display: block;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    padding: 16px 20px;
    margin: 16px auto;
    max-width: 560px;
    text-align: center;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14.5px;
    color: var(--crypto-primary);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--crypto-gradient-accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(254, 3, 105, .35);
}
.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(254, 3, 105, .5);
}
.btn--outline {
    background: rgba(255, 255, 255, .04);
    color: var(--crypto-text);
    border-color: var(--crypto-border-strong);
}
.btn--outline:hover {
    border-color: var(--crypto-primary);
    background: rgba(5, 133, 230, .12);
    transform: translateY(-3px);
}
.pair-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--crypto-border-strong);
    color: var(--crypto-text);
    transition: all .25s ease;
    margin: 6px 10px 6px 0;
}
.pair-cta-button:first-child {
    background: var(--crypto-gradient-primary);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(5, 133, 230, .35);
}
.pair-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(5, 133, 230, .3);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(9, 18, 33, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--crypto-border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--crypto-header-h);
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--crypto-text);
    flex-shrink: 0;
}
.header__logo img { height: 36px; width: auto; }
.header__logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--crypto-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.header-nav { flex: 1; }
.header-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.header-nav__item { position: relative; }
.header-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--crypto-text-muted);
    transition: color .2s ease, background .2s ease;
}
.header-nav__link:hover,
.header-nav__item.current-menu-item > .header-nav__link,
.header-nav__item.current_page_item > .header-nav__link {
    color: var(--crypto-text);
    background: rgba(255, 255, 255, .06);
}
.header-nav__item.menu-item-has-children > .header-nav__link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
    transition: transform .2s ease;
}
.header-nav__submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow);
    padding: 10px;
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.header-nav__item:hover > .header-nav__submenu,
.header-nav__item.header-nav__item--open > .header-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-nav__submenu .header-nav__link {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--crypto-text-muted);
}
.header-nav__submenu .header-nav__link:hover { color: var(--crypto-text); background: rgba(255, 255, 255, .06); }
.header-nav__item.menu-item-has-children > .header-nav__submenu::after { content: none; }

.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--crypto-border-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}
.header__burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--crypto-text);
    transition: transform .25s ease, opacity .25s ease;
}
.header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-active span:nth-child(2) { opacity: 0; }
.header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background: var(--crypto-bg-soft);
    border-top: 1px solid var(--crypto-border);
    padding: calc(var(--crypto-section-y) * 3) 0 calc(var(--crypto-section-y) * 1.5);
    margin-top: calc(var(--crypto-section-y) * 3);
}
.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 24px;
}
.footer__col-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--crypto-text);
    margin-bottom: 16px;
}
.footer__list { display: grid; gap: 10px; }
.footer__link { font-size: 14px; color: var(--crypto-text-muted); transition: color .2s ease; }
.footer__link:hover { color: var(--crypto-primary); }
.footer__bottom {
    margin-top: calc(var(--crypto-section-y) * 2);
    padding-top: 20px;
    border-top: 1px solid var(--crypto-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__copy { font-size: 13px; color: var(--crypto-text-dim); }
.footer__bottom-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom-nav a { font-size: 13px; color: var(--crypto-text-dim); }
.footer__bottom-nav a:hover { color: var(--crypto-primary); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: calc(var(--crypto-section-y) * 3) 0 calc(var(--crypto-section-y) * 2); }
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}
.hero--no-widget .hero__inner { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; text-align: center; }
.hero__content h1 { margin-bottom: 18px; }
.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero--no-widget .hero__actions { justify-content: center; }
.hero__widget {
    justify-self: end;
    width: 100%;
    display: flex;
    justify-content: center;
}
.hero__media { justify-self: end; width: 100%; max-width: 480px; }
.widget-card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 16px;
    box-shadow: var(--crypto-shadow);
    max-width: 540px;
    width: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.widget-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(2, 8, 22, .6); }
.widget-card iframe { width: 100%; border-radius: var(--crypto-radius-sm); display: block; }
.hero__widget--standalone { 
        justify-self: center;
    max-width: 540px;
    margin: 0 auto;
    margin-top: 50px;
    overflow: hidden;
    max-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
 }

/* =====================================================================
   MEDIA FIGURES (photos with hover/scroll animation)
   ===================================================================== */
.media-figure {
    position: relative;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}
.media-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}
.media-figure:hover img { transform: scale(1.08); }
.media-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 18, 33, 0) 40%, rgba(9, 18, 33, .55) 100%);
    pointer-events: none;
}
.media-figure--tall { aspect-ratio: 3 / 4; }
.media-figure--wide { aspect-ratio: 16 / 10; }
.media-figure--square { aspect-ratio: 1 / 1; }

/* =====================================================================
   ICON BADGES
   ===================================================================== */
.icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crypto-gradient-primary);
    color: #fff;
    margin-bottom: 18px;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--accent { background: var(--crypto-gradient-accent); }

/* =====================================================================
   CARDS / GRIDS
   ===================================================================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--middle { align-items: center; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow);
    border-color: var(--crypto-border-strong);
}
.card:hover .icon-badge { transform: scale(1.1) rotate(-4deg); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; }

.card--link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.card--link .icon-badge { margin-bottom: 0; width: 40px; height: 40px; border-radius: 10px; }
.card--link .icon-badge svg { width: 18px; height: 18px; }
.card--link span { font-weight: 600; font-size: 14.5px; }

/* =====================================================================
   MARKET / FIAT CARDS
   ===================================================================== */
.market-snapshot {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    box-shadow: var(--crypto-shadow);
}
.market-snapshot__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}
.market-snapshot__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.market-snapshot__price-value { font-size: 34px; font-weight: 800; }
.market-snapshot__change {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.market-snapshot__change--up { color: #16d693; background: rgba(22, 214, 147, .12); }
.market-snapshot__change--down { color: var(--crypto-accent); background: rgba(254, 3, 105, .12); }
.market-snapshot__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.market-stat {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    padding: 16px;
    transition: transform .25s ease, border-color .25s ease;
}
.market-stat:hover { transform: translateY(-3px); border-color: var(--crypto-border-strong); }
.market-stat__label { font-size: 12.5px; color: var(--crypto-text-dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.market-stat__value { font-size: 17px; font-weight: 700; }
.market-snapshot__updated { margin-top: 18px; font-size: 12.5px; color: var(--crypto-text-dim); }

.fiat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fiat-card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    padding: 18px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.fiat-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--crypto-shadow); }
.fiat-card__code { font-size: 12.5px; color: var(--crypto-text-dim); text-transform: uppercase; letter-spacing: .05em; }
.fiat-card__value { font-size: 20px; font-weight: 800; margin: 6px 0; }
.fiat-card__change { font-size: 12.5px; font-weight: 700; }
.fiat-card__change--up { color: #16d693; }
.fiat-card__change--down { color: var(--crypto-accent); }
.fiat-card__unavailable { font-size: 13px; color: var(--crypto-text-dim); }

/* =====================================================================
   PRICE CHART (inline SVG)
   ===================================================================== */
.price-chart {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 24px;
    box-shadow: var(--crypto-shadow);
}
.price-chart__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--crypto-text-dim); }
.price-chart__svg-wrap { width: 100%; overflow: hidden; border-radius: var(--crypto-radius-sm); }
.price-chart__svg-wrap svg { width: 100%; height: auto; display: block; cursor: crosshair; }
.price-chart__svg-wrap svg text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.price-chart__svg-inner { position: relative; }
.price-chart__hover-line, .price-chart__hover-dot { transition: opacity .15s ease; pointer-events: none; }
.price-chart__tooltip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -125%);
    pointer-events: none;
    background: var(--crypto-bg-soft);
    border: 1px solid var(--crypto-border-strong);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--crypto-text);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s ease;
    box-shadow: var(--crypto-shadow);
    z-index: 5;
}
.price-chart__tooltip.is-visible { opacity: 1; }
.price-chart__unavailable { color: var(--crypto-text-dim); font-size: 14px; padding: 30px 0; text-align: center; }

/* =====================================================================
   CONVERTER
   ===================================================================== */
.converter-wrap--narrow { max-width: 640px; margin: 0 auto; }
.converter {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    box-shadow: var(--crypto-shadow);
}
.converter__row { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 14px; align-items: end; }
.converter__field { display: grid; gap: 8px; }
.converter__field label { font-size: 12.5px; color: var(--crypto-text-dim); text-transform: uppercase; letter-spacing: .05em; }
.converter__input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--crypto-border-strong);
    border-radius: var(--crypto-radius-sm);
    padding: 10px 14px;
    transition: border-color .2s ease;
}
.converter__input-group:focus-within { border-color: var(--crypto-primary); }
.converter__input-group input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--crypto-text);
    font-size: 18px;
    font-weight: 700;
}
.converter__input-group select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--crypto-text);
    font-weight: 700;
    font-size: 14px;
}
.converter__input-group select option { background: var(--crypto-bg-soft); color: var(--crypto-text); }
.converter__swap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--crypto-gradient-accent);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease;
}
.converter__swap:hover { transform: rotate(180deg); }
.converter__rate { margin-top: 16px; font-size: 13px; color: var(--crypto-text-dim); }
.converter__error { margin-top: 16px; font-size: 13px; color: var(--crypto-accent); display: none; }

.conversion-table { width: 100%; border-collapse: collapse; }
.conversion-table th, .conversion-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--crypto-border);
    font-size: 14.5px;
}
.conversion-table th { color: var(--crypto-text-dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.conversion-table tr:hover td { background: rgba(255, 255, 255, .03); }
.table-wrap { overflow-x: auto; border-radius: var(--crypto-radius); border: 1px solid var(--crypto-border); background: var(--crypto-surface); box-shadow: var(--crypto-shadow); }
.table-wrap .conversion-table { min-width: 560px; }
.table-wrap .conversion-table th:first-child, .table-wrap .conversion-table td:first-child { padding-left: 24px; }

/* =====================================================================
   STEPS / PROCESS
   ===================================================================== */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 22px 24px;
    transition: transform .25s ease, border-color .25s ease;
}
.step:hover { transform: translateX(6px); border-color: var(--crypto-border-strong); }
.step__num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--crypto-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 14.5px; margin: 0; }

/* =====================================================================
   CHECKLIST
   ===================================================================== */
.checklist { display: grid; gap: 12px; }
.checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    padding: 14px 18px;
    font-size: 14.5px;
    transition: border-color .2s ease, transform .2s ease;
}
.checklist__item:hover { border-color: var(--crypto-primary); transform: translateX(4px); }
.checklist__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(22, 214, 147, .14);
    color: #16d693;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.checklist__icon svg { width: 14px; height: 14px; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq__item {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    overflow: hidden;
    transition: border-color .2s ease;
}
.faq__item:hover { border-color: var(--crypto-border-strong); }
.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 16px;
    margin: 0;
}
.faq__question::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--crypto-primary);
    border-bottom: 2px solid var(--crypto-primary);
    transform: rotate(45deg);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.faq__item.is-open .faq__question::after { transform: rotate(-135deg); }
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq__answer p { padding: 0 22px 20px; font-size: 14.5px; margin: 0; }
.faq__item.is-open .faq__answer { max-height: 600px; }

/* =====================================================================
   REVIEWS
   ===================================================================== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 22px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--crypto-shadow); }
.review-card__stars { color: #ffb92e; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review-card__text { font-size: 14.5px; margin-bottom: 16px; }
.review-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--crypto-text-dim); border-top: 1px solid var(--crypto-border); padding-top: 12px; }
.review-card__name { color: var(--crypto-text); font-weight: 700; }
.reviews__empty { text-align: center; color: var(--crypto-text-dim); padding: 30px 0; }

/* =====================================================================
   RELATED LINKS
   ===================================================================== */
.related-links { display: grid; gap: 24px; }
.related-links__group h3 { margin-bottom: 12px; font-size: 15px; color: var(--crypto-text-dim); text-transform: uppercase; letter-spacing: .05em; }
.related-links__list { display: grid; gap: 8px; }

/* =====================================================================
   CTA BLOCK
   ===================================================================== */
.cta {
    background: var(--crypto-gradient-primary);
    border-radius: var(--crypto-radius);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(254, 3, 105, .35), transparent 60%);
}
.cta__inner { position: relative; z-index: 1; }
.cta h2, .cta p { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); }
.cta__buttons { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.cta .btn--outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta .btn--outline:hover { background: rgba(255, 255, 255, .18); }

/* =====================================================================
   MISC CONTENT (guide posts, base pages)
   ===================================================================== */
.article {
    max-width: 820px;
    margin: 0 auto;
}
.article--top-gap { margin-top: calc(var(--crypto-section-y) * 2); }
.article h2 { margin-top: calc(var(--crypto-section-y) * 2); margin-bottom: 14px; }
.article h3 { margin-top: 24px; margin-bottom: 10px; }
.article h4 { margin-top: 18px; margin-bottom: 8px; font-size: 16px; color: var(--crypto-text); }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; color: var(--crypto-text-muted); }
.article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article a { color: var(--crypto-primary); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--crypto-accent); }

.data-table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: var(--crypto-radius-sm); border: 1px solid var(--crypto-border); }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--crypto-border); text-align: left; font-size: 14px; }
.data-table th { background: rgba(255, 255, 255, .04); color: var(--crypto-text-dim); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }

.page-hero {
    padding: calc(var(--crypto-section-y) * 3) 0 calc(var(--crypto-section-y) * 1.5);
    text-align: center;
}
.page-hero__inner { max-width: 780px; margin: 0 auto; }

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper { padding: 100px 0; }
.error404__inner { max-width: 600px; margin: 0 auto; text-align: center; }
.error404__code {
    font-size: clamp(80px, 16vw, 160px);
    font-weight: 800;
    line-height: 1;
    background: var(--crypto-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error404__title { margin: 16px 0 12px; }
.error404__text { margin-bottom: 30px; }

/* =====================================================================
   REVEAL / SCROLL ANIMATIONS
   ===================================================================== */
.reveal { opacity: 1; transform: translateY(36px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--left { transform: translateX(-40px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--right { transform: translateX(40px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--scale { transform: scale(.92); }
.reveal--scale.is-visible { transform: scale(1); }

.stagger > * { transition-delay: calc(var(--stagger-i, 0) * 90ms); }

.parallax { will-change: transform; }

/* =====================================================================
   MOBILE MENU (overlay)
   ===================================================================== */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--crypto-bg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-nav__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--crypto-border-strong);
    background: rgba(255, 255, 255, .04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crypto-text);
    font-size: 20px;
}
.mobile-nav__list { display: grid; gap: 4px; }
.mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    color: var(--crypto-text);
}
.mobile-nav__link:hover { background: rgba(255, 255, 255, .06); }
.mobile-nav__item.menu-item-has-children > .mobile-nav__link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.mobile-nav__item.mobile-nav__item--open > .mobile-nav__link::after { transform: rotate(-135deg); }
.mobile-nav__submenu {
    max-height: 0;
    overflow: hidden;
    padding-left: 12px;
    transition: max-height .3s ease;
}
.mobile-nav__item.mobile-nav__item--open > .mobile-nav__submenu { max-height: 800px; }
.mobile-nav__submenu .mobile-nav__link { font-size: 14.5px; font-weight: 500; color: var(--crypto-text-muted); }
body.no-scroll { overflow: hidden; }

/* =====================================================================
   RESPONSIVE — 768px
   ===================================================================== */
@media (max-width: 768px) {
    .header-nav, .header__actions .btn--outline { display: none; }
    .header__burger { display: flex; }

    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__widget { justify-self: center; }
    .hero__actions { justify-content: center; }

    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .market-snapshot__grid { grid-template-columns: repeat(2, 1fr); }
    .fiat-cards { grid-template-columns: repeat(2, 1fr); }
    .reviews { grid-template-columns: repeat(2, 1fr); }

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

    .converter__row { grid-template-columns: 1fr; }
    .converter__swap { justify-self: center; transform: rotate(90deg); }
    .converter__swap:hover { transform: rotate(270deg); }

    .step { grid-template-columns: 44px 1fr; padding: 18px; }
    .step__num { width: 44px; height: 44px; font-size: 16px; }

    .cta { padding: 40px 24px; }
}

/* =====================================================================
   RESPONSIVE — 480px
   ===================================================================== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: calc(var(--crypto-section-y) * 2) 0; }
    .market-snapshot__grid { grid-template-columns: 1fr 1fr; }
    .fiat-cards { grid-template-columns: 1fr; }
    .reviews { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .btn, .pair-cta-button { width: 100%; }
    .hero__actions, .cta__buttons { flex-direction: column; }
    .hero__actions .btn, .cta__buttons .btn { width: 100%; }
}
