/*
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.
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
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --color-header-bg:     #000000;
    --color-header-text:   #ffffff;
    --color-footer-bg:     #000000;
    --color-footer-text:   #ffffff;

    --color-section-light-bg:   #ffffff;
    --color-section-light-text: #000000;
    --color-section-dark-bg:    #121711;
    --color-section-dark-text:  #ffffff;

    --color-card-lime-bg:   #DDE598;
    --color-card-lime-text: #000000;
    --color-card-green-bg:  #59B43F;
    --color-card-green-text:#ffffff;
    --color-card-red-bg:    #B75154;
    --color-card-red-text:  #ffffff;
    --color-card-purple-bg: #5D5B98;
    --color-card-purple-text:#ffffff;

    --color-accent:         #59B43F;
    --color-accent-hover:   #4a9a33;
    --color-link:           #59B43F;
    --color-border:         rgba(255,255,255,0.08);
    --color-border-light:   rgba(0,0,0,0.1);

    --font-base:   'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.22);

    --section-y: 80px;
    --container-max: 1200px;
    --container-px: 24px;

    --transition: 0.28s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-base);
    color: var(--color-section-light-text);
    background: var(--color-section-light-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
}

/* ============================================================
   Container
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ============================================================
   Scroll reveal animation base
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(0.92); }
.reveal--left.visible, .reveal--right.visible, .reveal--scale.visible { transform: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-header-bg);
    color: var(--color-header-text);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.site-header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.site-header__logo img {
    height: 40px;
    width: auto;
    display: block;
}
.site-header__logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-header-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.site-header__logo-accent { color: var(--color-accent); }

/* Nav */
.site-header__nav { flex: 1; display: flex; justify-content: flex-end; }

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

.site-header__menu-item {
    position: relative;
}

.site-header__menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.site-header__menu-link:hover,
.site-header__menu-item--active > .site-header__menu-link {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.site-header__chevron {
    opacity: 0.6;
    transition: transform var(--transition);
}
.site-header__menu-item--has-dropdown:hover .site-header__chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.site-header__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    padding: 8px;
    z-index: 200;
}
.site-header__menu-item--has-dropdown:hover .site-header__dropdown {
    display: block;
    animation: dropdownIn 0.2s ease;
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.site-header__dropdown .site-header__menu-item { width: 100%; }
.site-header__dropdown .site-header__menu-link {
    display: block;
    padding: 9px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.8);
}
.site-header__dropdown .site-header__menu-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Burger */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.site-header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header__burger.is-open .site-header__burger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header__burger.is-open .site-header__burger-line:nth-child(2) { opacity: 0; }
.site-header__burger.is-open .site-header__burger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Nav overlay */
@media (max-width: 768px) {
    .site-header__burger { display: flex; }

    .site-header__nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        overflow-y: auto;
        padding: 24px var(--container-px);
        z-index: 99;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: opacity 0.3s ease;
    }
    .site-header__nav.is-open {
        display: flex;
    }
    .site-header__menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 2px;
    }
    .site-header__menu-item { width: 100%; }
    .site-header__menu-link {
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
    }
    .site-header__dropdown {
        display: none !important;
        position: static;
        transform: none;
        width: 100%;
        background: rgba(255,255,255,0.05);
        border: none;
        border-radius: var(--radius-sm);
        box-shadow: none;
        padding: 4px 0 4px 16px;
    }
    .site-header__menu-item--has-dropdown.is-open-sub .site-header__dropdown {
        display: block !important;
    }
    .site-header__dropdown .site-header__menu-link { font-size: 0.9rem; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-top: 60px;
}

.site-footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }

.site-footer__logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.site-footer__logo-accent { color: var(--color-accent); }

.site-footer__tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.site-footer__email a {
    font-size: 0.85rem;
    color: var(--color-accent);
    transition: opacity var(--transition);
}
.site-footer__email a:hover { opacity: 0.8; }

.site-footer__col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.site-footer__menu { display: flex; flex-direction: column; gap: 8px; }
.site-footer__menu li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
    display: block;
}
.site-footer__menu li a:hover { color: #fff; }

.site-footer__bottom {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.site-footer__disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .site-footer__brand { grid-column: span 2; }
}
@media (max-width: 480px) {
    .site-footer__top { grid-template-columns: 1fr; }
    .site-footer__brand { grid-column: span 1; }
}

/* ============================================================
   Section base
   ============================================================ */
.section {
    padding: var(--section-y) 0;
    position: relative;
}
.section--light {
    background: var(--color-section-light-bg);
    color: var(--color-section-light-text);
}
.section--dark {
    background: var(--color-section-dark-bg);
    color: var(--color-section-dark-text);
}
.section--dark a { color: rgba(255,255,255,0.8); }
.section--dark a:hover { color: #fff; }

.section__header {
    text-align: center;
    margin-bottom: 48px;
}
.section__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.section__subtitle {
    font-size: 1.05rem;
    opacity: 0.7;
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: var(--color-section-dark-bg);
    color: var(--color-section-dark-text);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 8s linear;
}
.hero__bg.parallax-ready { transform: scale(1.05) translateY(var(--parallax-offset, 0px)); }

.hero__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__content { display: flex; flex-direction: column; gap: 20px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(89,180,63,0.15);
    border: 1px solid rgba(89,180,63,0.3);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    width: fit-content;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero__title .accent { color: var(--color-accent); }

.hero__text {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.hero__widget-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    display: flex;
    align-items: stretch;
}

@media (max-width: 768px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .hero__badge { margin: 0 auto; }
}

/* ============================================================
   Exchange Widget
   ============================================================ */
.exchange-widget {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.exchange-widget iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ============================================================
   Market Snapshot shortcode wrapper
   ============================================================ */
.market-snapshot {
    margin: 32px 0 0;
}
.market-snapshot__note {
    font-size: 0.875rem;
    opacity: 0.65;
    margin-top: 16px;
}
.market-snapshot__note a { color: var(--wp--preset--color--vivid-red); }
.market-snapshot__note a:hover { text-decoration: underline; }

/* ============================================================
   Pair grid (popular exchange pairs)
   ============================================================ */
.pair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.pair-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    cursor: pointer;
    letter-spacing: 0.01em;
}
.pair-card:nth-child(4n+1) { background: var(--color-card-lime-bg); color: var(--color-card-lime-text); }
.pair-card:nth-child(4n+2) { background: var(--color-card-green-bg); color: var(--color-card-green-text); }
.pair-card:nth-child(4n+3) { background: var(--color-card-red-bg); color: var(--color-card-red-text); }
.pair-card:nth-child(4n+4) { background: var(--color-card-purple-bg); color: var(--color-card-purple-text); }
.pair-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.08);
}

/* ============================================================
   Content two-column with image
   ============================================================ */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.content-split--reverse .content-split__media { order: -1; }

.content-split__body { display: flex; flex-direction: column; gap: 20px; }
.content-split__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
}
.content-split__text { line-height: 1.75; opacity: 0.85; }
.content-split__text a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; }

.content-split__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}
.content-split__media:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.content-split__media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.content-split__media:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
    .content-split { grid-template-columns: 1fr; gap: 32px; }
    .content-split--reverse .content-split__media { order: 0; }
    .content-split__media img { height: 240px; }
}

/* ============================================================
   Steps (how to exchange)
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: transform var(--transition);
}
.section--light .step { border-bottom-color: var(--color-border-light); }
.step:last-child { border-bottom: none; }
.step:hover { transform: translateX(6px); }

.step__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(89,180,63,0.4);
}
.step__text { font-size: 0.975rem; line-height: 1.6; padding-top: 8px; }

/* ============================================================
   Checklist
   ============================================================ */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background var(--transition), transform var(--transition);
}
.section--light .checklist__item {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
}
.checklist__item:hover { background: rgba(255,255,255,0.07); transform: translateX(4px); }
.section--light .checklist__item:hover { background: rgba(0,0,0,0.05); }
.checklist__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.checklist__icon svg { display: block; }

/* ============================================================
   Feature cards (why use / info cards)
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.feature-card {
    padding: 28px 24px;
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    filter: brightness(1.05);
}
.feature-card--lime   { background: var(--color-card-lime-bg);   color: var(--color-card-lime-text); }
.feature-card--green  { background: var(--color-card-green-bg);  color: var(--color-card-green-text); }
.feature-card--red    { background: var(--color-card-red-bg);    color: var(--color-card-red-text); }
.feature-card--purple { background: var(--color-card-purple-bg); color: var(--color-card-purple-text); }

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.feature-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card__text { font-size: 0.9rem; line-height: 1.65; opacity: 0.9; }

/* ============================================================
   Review cards
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    padding: 28px;
    border-radius: var(--radius-md);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:nth-child(4n+1) { background: var(--color-card-lime-bg);   color: var(--color-card-lime-text); }
.review-card:nth-child(4n+2) { background: var(--color-card-green-bg);  color: var(--color-card-green-text); }
.review-card:nth-child(4n+3) { background: var(--color-card-red-bg);    color: var(--color-card-red-text); }
.review-card:nth-child(4n+4) { background: var(--color-card-purple-bg); color: var(--color-card-purple-text); }
.review-card:hover {
    transform: translateY(-5px) rotate(-0.5deg);
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

.review-card__quote {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.5;
}
.review-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* ============================================================
   Rate table / shortcode wrappers
   ============================================================ */
.rate-chart-wrap,
.rate-table-wrap,
.market-snapshot-wrap,
.btc-calculator-wrap,
.btc-rate-wrap,
.satoshi-converter-wrap {
    margin: 8px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color var(--transition);
}
.section--light .faq__item { border-color: rgba(0,0,0,0.08); }
.faq__item.is-open { border-color: var(--color-accent); }

.faq__question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    text-align: left;
    font-size: 0.975rem;
    font-weight: 600;
    color: inherit;
    transition: background var(--transition);
}
.faq__question:hover { background: rgba(255,255,255,0.05); }
.section--light .faq__question:hover { background: rgba(0,0,0,0.04); }

.faq__question-text { flex: 1; }

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background var(--transition);
}
.section--light .faq__icon { background: rgba(0,0,0,0.06); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--color-accent); }

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding var(--transition);
}
.faq__item.is-open .faq__answer { max-height: 600px; }
.faq__answer-inner {
    padding: 0 22px 18px;
    font-size: 0.925rem;
    line-height: 1.75;
    opacity: 0.85;
}
.faq__answer-inner a { color: var(--color-accent); text-decoration: underline; }

/* ============================================================
   Pair rate table (Block 4 on pair pages)
   ============================================================ */
.crypto-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
}
.section--light .crypto-table-wrap { border-color: rgba(0,0,0,0.08); }

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.crypto-table th {
    background: rgba(255,255,255,0.06);
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.65;
}
.section--light .crypto-table th { background: rgba(0,0,0,0.04); }
.crypto-table td {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.section--light .crypto-table td { border-top-color: rgba(0,0,0,0.05); }
.crypto-table tr:hover td { background: rgba(255,255,255,0.03); }
.section--light .crypto-table tr:hover td { background: rgba(0,0,0,0.02); }

/* ============================================================
   CTA Block
   ============================================================ */
.cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px;
    border-radius: var(--radius-lg);
    background: var(--color-card-green-bg);
    color: var(--color-card-green-text);
}
@media (max-width: 768px) {
    .cta-block { flex-direction: column; padding: 32px 24px; text-align: center; }
}
.cta-block__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.cta-block__text  { font-size: 0.95rem; opacity: 0.9; }

/* ============================================================
   Button
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn--primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(89,180,63,0.35);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(89,180,63,0.45);
}
.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.btn--dark {
    background: #000;
    color: #fff;
}
.btn--dark:hover { background: #1a1a1a; transform: translateY(-2px); }

/* ============================================================
   Related pair navigation
   ============================================================ */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.related-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.section--light .related-links a {
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.7);
}
.related-links a:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-2px);
}
.section--light .related-links a:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.2);
    color: #000;
}

/* ============================================================
   Long-form text (about, cookies, guide pages)
   ============================================================ */
.prose {
    max-width: 820px;
    line-height: 1.8;
}
.prose h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 24px; }
.prose h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin: 48px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.prose h4 { font-size: 1rem; margin: 24px 0 8px; font-weight: 700; }
.prose p  { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 16px 0 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a  { color: var(--color-accent); text-decoration: underline; }
.prose a:hover { opacity: 0.8; }
.prose strong, .prose b { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.prose table th { background: rgba(0,0,0,0.06); padding: 12px 16px; text-align: left; font-weight: 600; border-bottom: 2px solid rgba(0,0,0,0.1); }
.prose table td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.prose table tr:hover td { background: rgba(0,0,0,0.02); }
.section--dark .prose table th { background: rgba(255,255,255,0.06); border-bottom-color: rgba(255,255,255,0.1); }
.section--dark .prose table td { border-bottom-color: rgba(255,255,255,0.06); }
.section--dark .prose table tr:hover td { background: rgba(255,255,255,0.03); }

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-hero {
    background: var(--color-section-dark-bg);
    color: var(--color-section-dark-text);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}
.page-hero__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    position: relative;
    z-index: 1;
}
.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-hero__lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: 32px;
}

/* ============================================================
   Section with image background (parallax sections)
   ============================================================ */
.section--bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.section--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18,23,17,0.88);
    z-index: 0;
}
.section--bg > * { position: relative; z-index: 1; }

/* ============================================================
   Info box
   ============================================================ */
.info-box {
    padding: 24px 28px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
    background: rgba(89,180,63,0.07);
    font-size: 0.95rem;
    line-height: 1.7;
}
.section--dark .info-box { background: rgba(89,180,63,0.1); }

/* ============================================================
   Anchor link (pair page CTA #exchange-form)
   ============================================================ */
.anchor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(89,180,63,0.3);
}
.anchor-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(89,180,63,0.45);
    color: #fff;
}

/* ============================================================
   Page specific: 404
   ============================================================ */
.page-404 {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-y) var(--container-px);
    background: var(--color-section-dark-bg);
    color: var(--color-section-dark-text);
}
.page-404__number {
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    color: var(--color-accent);
    letter-spacing: -0.04em;
}
.page-404__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin: 16px 0 12px; }
.page-404__text  { font-size: 1rem; opacity: 0.65; margin-bottom: 32px; max-width: 480px; }

/* ============================================================
   Responsive helpers
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-y: 52px; --container-px: 18px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .pair-grid   { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .section__header { margin-bottom: 32px; }
}
@media (max-width: 480px) {
    :root { --section-y: 40px; --container-px: 16px; }
    .feature-grid { grid-template-columns: 1fr; }
    .pair-grid    { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 56px 0 48px; }
    .cta-block { padding: 24px 18px; }
    .prose table { font-size: 0.8rem; }
    .prose table th, .prose table td { padding: 8px 10px; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(89,180,63,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(89,180,63,0); }
}

.animate-fadeInUp { animation: fadeInUp 0.7s ease both; }
.animate-fadeIn   { animation: fadeIn   0.5s ease both; }

/* Stagger delays for children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.19s; }
.stagger > *:nth-child(4) { animation-delay: 0.26s; }
.stagger > *:nth-child(5) { animation-delay: 0.33s; }
.stagger > *:nth-child(6) { animation-delay: 0.40s; }
.stagger > *:nth-child(7) { animation-delay: 0.47s; }
.stagger > *:nth-child(8) { animation-delay: 0.54s; }
.stagger > *:nth-child(9) { animation-delay: 0.61s; }

/* Ticker / marquee for pairs */
.ticker-wrap {
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 10px 0;
}
.ticker {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: ticker 28s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: rgba(255,255,255,0.6);
}
.ticker__item .dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ============================================================
   Rate chart (pair-rate-chart / btc-price-chart shortcodes)
   ============================================================ */
.pair-chart-wrap {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.rate-chart-error,
.rate-table-error {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.875rem;
}

/* ============================================================
   Rate table (pair-rate-table / btc-exchange-rate-table / btc-price-table)
   ============================================================ */
.rate-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.rate-table thead tr {
    background: var(--color-accent);
    color: #fff;
}
.rate-table thead th {
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: .03em;
    white-space: nowrap;
}
.rate-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.rate-table tbody tr:last-child {
    border-bottom: none;
}
.rate-table tbody tr:hover {
    background: #f0f4ff;
}
.rate-table tbody td {
    padding: 11px 18px;
    color: #111827;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rate-table tbody td:last-child {
    font-weight: 600;
    color: var(--color-accent);
}
.rate-table__note {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================================
   BTC price ticker (btc-price-ticker shortcode)
   ============================================================ */
/* ── BTC Calc: карточки USDT/XMR/ETH + поле ввода снизу ── */
.btc-calc {
    width: 100%;
}
.btc-calc__cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.btc-calc__card {
    flex: 1 1 160px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    cursor: default;
}
.btc-calc__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.btc-calc__card--usd  { border-top: 3px solid #1a9c57; }
.btc-calc__card--eur  { border-top: 3px solid #003399; }
.btc-calc__card--gbp  { border-top: 3px solid #c8102e; }
.btc-calc__card--usdt { border-top: 3px solid #26a17b; }
.btc-calc__card--xmr  { border-top: 3px solid #ff6600; }
.btc-calc__card--eth  { border-top: 3px solid #627eea; }
.btc-calc__card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.btc-calc__coin-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.btc-calc__card--usd  .btc-calc__coin-icon { color: #1a9c57; }
.btc-calc__card--eur  .btc-calc__coin-icon { color: #003399; }
.btc-calc__card--gbp  .btc-calc__coin-icon { color: #c8102e; }
.btc-calc__card--usdt .btc-calc__coin-icon { color: #26a17b; }
.btc-calc__card--xmr  .btc-calc__coin-icon { color: #ff6600; }
.btc-calc__card--eth  .btc-calc__coin-icon { color: #627eea; }
.btc-calc__coin-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.btc-calc__result {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    word-break: break-all;
    text-align: center;
}
.btc-calc__coin-unit {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 2px;
}
.btc-calc__change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    white-space: nowrap;
}
.btc-calc__change--up   { background: #dcfce7; color: #166534; }
.btc-calc__change--down { background: #fee2e2; color: #991b1b; }

/* Поле ввода BTC — снизу карточек */
.btc-calc__input-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    max-width: 320px;
}
.btc-calc__input-row:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.btc-calc__input-prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    background: #f9fafb;
    border-right: 1.5px solid #e5e7eb;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f7931a;
    white-space: nowrap;
    height: 100%;
    min-height: 46px;
}
.btc-calc__input-prefix svg { flex-shrink: 0; fill: #f7931a; }
.btc-calc__input {
    flex: 1 1 0;
    padding: 11px 14px;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    background: transparent;
    outline: none;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}
.btc-calc__note {
    margin-top: 10px;
    font-size: 0.73rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .btc-calc__cards { gap: 10px; }
    .btc-calc__card  { padding: 16px 12px 14px; }
    .btc-calc__result { font-size: 1.3rem; }
    .rate-table thead th,
    .rate-table tbody td { padding: 9px 12px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .btc-calc__card { flex: 1 1 100%; }
    .btc-calc__input-row { max-width: 100%; }
}

/* ── BTC Market Snapshot ─────────────────────────── */
.btc-snapshot {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    max-width: 480px;
}
.btc-snapshot__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: .01em;
}
.btc-snapshot__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.btc-snapshot__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #f3f4f6;
}
.btc-snapshot__row--footer {
    border-bottom: none;
    padding-bottom: 0;
}
.btc-snapshot__label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}
.btc-snapshot__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.btc-snapshot__value--price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}
.btc-snapshot__change {
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}
.btc-snapshot__change--up   { background: #dcfce7; color: #166534; }
.btc-snapshot__change--down { background: #fee2e2; color: #991b1b; }
.btc-snapshot__value--time {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}
.btc-snapshot__error {
    color: #9ca3af;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .btc-snapshot { padding: 18px 16px; }
    .btc-snapshot__value--price { font-size: 1rem; }
}
