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

/* ================================================================
   CUSTOM PROPERTIES
   ================================================================ */
:root {
    /* Color scheme */
    --color-header-bg:          #0e162c;
    --color-header-text:        #00c0fe;
    --color-section-white-bg:   #ffffff;
    --color-section-white-text: #0e162c;
    --color-section-cyan-bg:    #00c0fe;
    --color-section-cyan-text:  #0e162c;
    --color-card-1:             #852e47;
    --color-card-2:             #0d244d;
    --color-card-3:             #aa542b;
    --color-card-4:             #c2441c;
    --color-card-text:          #ffffff;

    /* Spacing */
    --crypto-section-y: 64px;
    --container-width:  1240px;

    /* UI */
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 4px 24px rgba(14, 22, 44, .18);
    --shadow-hover: 0 8px 36px rgba(14, 22, 44, .30);
    --transition:   .25s ease;
}

/* ================================================================
   RESET / BASE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin:     0;
    padding:    0;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-section-white-bg);
    color:      var(--color-section-white-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

/* ================================================================
   CONTAINER
   ================================================================ */
.container,
.site-header__container,
.site-footer__container {
    max-width: var(--container-width);
    margin:    0 auto;
    padding:   0 24px;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position:   sticky;
    top:        0;
    z-index:    100;
    background: var(--color-header-bg);
    color:      var(--color-header-text);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

.site-header__container {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    height:          72px;
    gap:             20px;
}

/* — Logo — */
.site-header__logo {
    display:     flex;
    align-items: center;
    flex-shrink: 0;
    transition:  opacity var(--transition);
}
.site-header__logo:hover { opacity: .82; }
.site-header__logo img   { height: 44px; width: auto; }
.site-header__logo .custom-logo { height: 44px; width: auto; }

.site-header__logo-text {
    font-size:      1.15rem;
    font-weight:    800;
    color:          var(--color-header-text);
    letter-spacing: .04em;
    white-space:    nowrap;
}

/* — Desktop nav — */
.site-header__nav {
    display:         flex;
    align-items:     center;
    flex:            1;
    justify-content: flex-end;
}

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

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

.site-header__menu > li > a {
    display:     block;
    padding:     8px 13px;
    color:       var(--color-header-text);
    font-size:   .875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition:  background var(--transition), color var(--transition);
}
.site-header__menu > li > a:hover,
.site-header__menu > li.current-menu-item > a,
.site-header__menu > li.current-menu-ancestor > a {
    background: rgba(0, 192, 254, .18);
    color:      #ffffff;
}

/* Dropdown */
.site-header__menu .sub-menu {
    position:   absolute;
    top:        calc(100% + 6px);
    left:       0;
    min-width:  200px;
    background: var(--color-header-bg);
    border:     1px solid rgba(0, 192, 254, .22);
    border-radius: var(--radius);
    padding:    6px 0;
    opacity:    0;
    visibility: hidden;
    transform:  translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    z-index:    200;
}
.site-header__menu > li:hover > .sub-menu,
.site-header__menu > li:focus-within > .sub-menu {
    opacity:    1;
    visibility: visible;
    transform:  translateY(0);
}

.site-header__menu .sub-menu li a {
    display:    block;
    padding:    8px 18px;
    color:      var(--color-header-text);
    font-size:  .85rem;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.site-header__menu .sub-menu li a:hover {
    background: rgba(0, 192, 254, .15);
    color:      #ffffff;
}

/* — Burger — */
.site-header__burger { display: none; }

.burger {
    background:      none;
    border:          2px solid rgba(0, 192, 254, .4);
    border-radius:   var(--radius-sm);
    cursor:          pointer;
    padding:         8px 10px;
    display:         none;
    flex-direction:  column;
    gap:             5px;
    align-items:     center;
    transition:      border-color var(--transition), background var(--transition);
}
.burger:hover {
    border-color: var(--color-header-text);
    background:   rgba(0, 192, 254, .1);
}

.burger__line {
    display:          block;
    width:            22px;
    height:           2px;
    background:       var(--color-header-text);
    border-radius:    2px;
    transform-origin: center;
    transition:       transform .3s ease, opacity .3s ease, width .3s ease;
}
.burger.is-active .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active .burger__line:nth-child(2) { opacity: 0; width: 0; }
.burger.is-active .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* — Mobile nav — */
.mobile-nav {
    display:     none;
    background:  var(--color-header-bg);
    border-top:  1px solid rgba(0, 192, 254, .18);
    padding:     12px 0 20px;
}
.mobile-nav.is-open {
    display:   block;
    animation: mobileNavIn .25s ease forwards;
}

@keyframes mobileNavIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.mobile-nav__menu { padding: 0 24px; }

.mobile-nav__menu > li > a {
    display:       block;
    padding:       10px 4px;
    color:         var(--color-header-text);
    font-size:     .9rem;
    font-weight:   500;
    border-bottom: 1px solid rgba(0, 192, 254, .1);
    transition:    color var(--transition), padding-left var(--transition);
}
.mobile-nav__menu > li > a:hover { color: #ffffff; padding-left: 8px; }

.mobile-nav__menu .sub-menu { padding-left: 14px; }

.mobile-nav__menu .sub-menu li a {
    display:       block;
    padding:       7px 4px;
    color:         rgba(0, 192, 254, .72);
    font-size:     .85rem;
    border-bottom: 1px solid rgba(0, 192, 254, .07);
    transition:    color var(--transition), padding-left var(--transition);
}
.mobile-nav__menu .sub-menu li a:hover { color: #ffffff; padding-left: 8px; }

/* ================================================================
   MAIN
   ================================================================ */
.site-main { min-height: 55vh; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background:  var(--color-header-bg);
    color:       var(--color-header-text);
    padding-top: var(--crypto-section-y);
}

.site-footer__cols {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   48px;
    padding-bottom:        48px;
}

.site-footer__col-title {
    font-size:      .7rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color:          rgba(0, 192, 254, .5);
    margin-bottom:  16px;
}

.site-footer__menu li + li { margin-top: 4px; }

.site-footer__menu a {
    display:    inline-block;
    color:      rgba(0, 192, 254, .78);
    font-size:  .875rem;
    padding:    3px 0;
    transition: color var(--transition), padding-left var(--transition);
}
.site-footer__menu a:hover { color: #ffffff; padding-left: 6px; }

.site-footer__bottom {
    border-top:  1px solid rgba(0, 192, 254, .15);
    padding:     22px 0;
    text-align:  center;
}
.site-footer__copy {
    font-size: .8rem;
    color:     rgba(0, 192, 254, .45);
}

/* ================================================================
   SECTION COLOR VARIANTS
   ================================================================ */
.section { padding: var(--crypto-section-y) 0; }

.section--white {
    background: var(--color-section-white-bg);
    color:      var(--color-section-white-text);
}

.section--cyan {
    background: var(--color-section-cyan-bg);
    color:      var(--color-section-cyan-text);
}

.section--dark {
    background: var(--color-header-bg);
    color:      var(--color-header-text);
}

.section--dark .faq-item:first-child {
    border-top: 1px solid #ffffff;
}
.section--dark .faq-item {
    border-bottom: 1px solid #ffffff;
}

.section--dark .faq-item__q h3 {
    color: #ffffff;
}

.section--dark .faq-item__icon::before, 
.section--dark .faq-item__icon::after {
    background: #ffffff;
}

.section--dark .faq-item__a p {
    color: #ffffff;
}
/* ================================================================
   CARD COLOR VARIANTS
   ================================================================ */
.card {
    border-radius: var(--radius);
    padding:       28px 24px;
    box-shadow:    var(--shadow);
    transition:    transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform:  translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card--burgundy { background: var(--color-card-1); color: var(--color-card-text); }
.card--navy     { background: var(--color-card-2); color: var(--color-card-text); }
.card--rust     { background: var(--color-card-3); color: var(--color-card-text); }
.card--orange   { background: var(--color-card-4); color: var(--color-card-text); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display:       inline-block;
    padding:       12px 28px;
    border-radius: var(--radius-sm);
    font-size:     .9rem;
    font-weight:   600;
    cursor:        pointer;
    border:        2px solid transparent;
    transition:    background var(--transition), color var(--transition),
                   border-color var(--transition), transform var(--transition),
                   box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--primary {
    background:  var(--color-header-text);
    color:       var(--color-header-bg);
    border-color: var(--color-header-text);
}
.btn--primary:hover { background: #ffffff; border-color: #ffffff; }

.btn--outline {
    background:   transparent;
    color:        var(--color-header-text);
    border-color: var(--color-header-text);
}
.btn--outline:hover { background: var(--color-header-text); color: var(--color-header-bg); }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.anim-fade-up {
    opacity:    0;
    transform:  translateY(32px);
    transition: opacity .65s ease, transform .65s ease;
}
.anim-fade-up.is-visible { opacity: 1; transform: translateY(0); }

.anim-fade-up:nth-child(2) { transition-delay: .1s; }
.anim-fade-up:nth-child(3) { transition-delay: .2s; }
.anim-fade-up:nth-child(4) { transition-delay: .3s; }

/* ================================================================
   CONTENT LIST (unordered in page text blocks)
   ================================================================ */
.content-list {
    list-style: none;
    margin:     12px 0;
    padding:    0;
}
.content-list li {
    padding:    6px 0 6px 24px;
    position:   relative;
    font-size:  .9rem;
    line-height: 1.6;
}
.content-list li::before {
    content:    '→';
    position:   absolute;
    left:       0;
    color:      var(--color-header-text);
    font-weight: 700;
}
.section--white .content-list li::before,
.section--cyan  .content-list li::before { color: var(--color-header-bg); }

/* ================================================================
   CONVERTER FORMULA CARDS GRID
   ================================================================ */
.converter-formulas {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   20px;
    margin:                24px 0;
}
.converter-formula { padding: 20px; }
.converter-formula h3 {
    font-size:     .9rem;
    font-weight:   700;
    margin-bottom: 10px;
    color:         var(--color-card-text);
}
.converter-formula code {
    font-size:   .8rem;
    line-height: 1.6;
    color:       rgba(255,255,255,.82);
    word-break:  break-word;
    font-family: monospace;
}

/* ================================================================
   SECTION COMMON TYPOGRAPHY
   ================================================================ */
.section__title {
    font-size:     2rem;
    font-weight:   800;
    margin-bottom: 24px;
    line-height:   1.2;
}
.section__lead {
    font-size:     1.05rem;
    margin-bottom: 32px;
    opacity:       .85;
    max-width:     720px;
}
.section__note {
    margin-top:  28px;
    font-size:   .9rem;
    opacity:     .8;
}
.section__note a,
.section--white a,
.section--cyan a { text-decoration: underline; }
.section--dark a { color: var(--color-header-text); text-decoration: underline; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position:            relative;
    background-size:     cover;
    background-position: center;
    padding:             80px 0;
    overflow:            hidden;
}
.hero a {
    color: var(--color-header-text);
}
.hero__overlay {
    position:   absolute;
    inset:      0;
    background: rgba(14, 22, 44, .82);
    z-index:    1;
}
.hero__inner {
    position:      relative;
    z-index:       2;
    display:       grid;
    grid-template-columns: 1fr 520px;
    gap:           48px;
    align-items:   center;
}
.hero__title {
    font-size:   2.6rem;
    font-weight: 800;
    color:       var(--color-header-text);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero__desc {
    font-size:   1rem;
    color:       rgba(255, 255, 255, .78);
    line-height: 1.7;
}
.hero__widget {
    background:    rgba(255, 255, 255, .06);
    border:        1px solid rgba(0, 192, 254, .2);
    border-radius: var(--radius);
    display:       flex;
    justify-content: center;
    align-items:   center;
}
.hero__widget iframe { border-radius: var(--radius-sm); max-width: 100%; }

/* ================================================================
   FEATURE CARDS GRID
   ================================================================ */
.fp-features__grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   24px;
}
.fp-feature {
    display:        flex;
    flex-direction: column;
    padding:        0;
    overflow:       hidden;
}
.fp-feature__img { aspect-ratio: 16 / 9; overflow: hidden; }
.fp-feature__img img {
    width:       100%;
    height:      100%;
    object-fit:  cover;
    display:     block;
    transition:  transform .45s ease;
}
.fp-feature:hover .fp-feature__img img { transform: scale(1.07); }
.fp-feature__body { padding: 22px; flex: 1; }
.fp-feature__title {
    font-size:     1rem;
    font-weight:   700;
    margin-bottom: 10px;
    color:         var(--color-card-text);
}
.fp-feature__text { font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.82); }

/* ================================================================
   VS TABLE
   ================================================================ */
.fp-vs__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.fp-vs__text p + p { margin-top: 16px; }
.fp-vs__table { border: 1px solid rgba(0, 192, 254, .25); border-radius: var(--radius); overflow: hidden; }
.fp-vs__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(0, 192, 254, .12);
}
.fp-vs__row:last-child { border-bottom: none; }
.fp-vs__row span {
    padding: 10px 16px;
    font-size: .875rem;
}
.fp-vs__row span:first-child { border-right: 1px solid rgba(0, 192, 254, .12); }
.fp-vs__row--head {
    background: rgba(0, 192, 254, .15);
    font-weight: 700;
}

/* ================================================================
   PAIRS GRID
   ================================================================ */
.fp-pairs__grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   12px;
}
.fp-pair {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    padding:         14px 10px;
    border:          1px solid rgba(14, 22, 44, .16);
    border-radius:   var(--radius-sm);
    font-weight:     600;
    font-size:       .9rem;
    color:           var(--color-section-white-text);
    background:      var(--color-section-white-bg);
    transition:      background var(--transition), color var(--transition),
                     border-color var(--transition), transform var(--transition),
                     box-shadow var(--transition);
}
.fp-pair:hover {
    background:  var(--color-header-bg);
    color:       var(--color-header-text);
    border-color: var(--color-header-bg);
    transform:   translateY(-3px);
    box-shadow:  var(--shadow);
}
.fp-pair__arrow { width: 16px; height: 16px; flex-shrink: 0; }
.fp-pair__from, .fp-pair__to { font-size: .875rem; }

/* ================================================================
   ROUTES
   ================================================================ */
.fp-routes__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 28px 0;
}
.fp-routes__col { display: flex; flex-direction: column; gap: 12px; }
.fp-routes__img {
    width:         100%;
    aspect-ratio:  16 / 9;
    object-fit:    cover;
    border-radius: var(--radius);
    transition:    transform .45s ease;
}
.fp-routes__col:hover .fp-routes__img { transform: scale(1.03); }
.fp-routes__badge {
    display:       inline-block;
    background:    var(--color-header-text);
    color:         var(--color-header-bg);
    padding:       4px 12px;
    border-radius: 100px;
    font-size:     .78rem;
    font-weight:   700;
    letter-spacing: .05em;
    width: fit-content;
}
.fp-routes__note {
    margin-top: 12px;
    font-size:  .9rem;
    opacity:    .78;
}

/* ================================================================
   USE CASES
   ================================================================ */
.fp-usecases__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.fp-usecase {
    overflow: hidden;
    padding: 0;
}
.fp-usecase__img {
    width:        100%;
    aspect-ratio: 4 / 3;
    object-fit:   cover;
    transition:   transform .45s ease;
}
.fp-usecase:hover .fp-usecase__img { transform: scale(1.06); }
.fp-usecase p {
    padding:   18px 20px;
    font-size: .875rem;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
}

/* ================================================================
   STEPS
   ================================================================ */
.fp-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
    counter-reset: none;
}
.fp-step {
    display:     flex;
    align-items: flex-start;
    gap:         20px;
    background:  rgba(14, 22, 44, .07);
    border:      1px solid rgba(14, 22, 44, .12);
    border-radius: var(--radius);
    padding:     18px 22px;
    transition:  transform var(--transition), box-shadow var(--transition);
}
.fp-step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.fp-step__num {
    font-size:   1.6rem;
    font-weight: 800;
    color:       var(--color-header-bg);
    min-width:   36px;
    line-height: 1;
    flex-shrink: 0;
}
.fp-step__text { font-size: .95rem; line-height: 1.6; padding-top: 4px; }
.section--dark .fp-step__num {
    color: inherit;
}
/* ================================================================
   TEXT BLOCKS (with image + text)
   ================================================================ */
.fp-textblock__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.fp-textblock__cols--rev .fp-textblock__img { order: -1; }
.fp-textblock__text p + p { margin-top: 14px; }
.fp-textblock__text a { text-decoration: underline; }
.fp-textblock__img img {
    width:         100%;
    border-radius: var(--radius);
    object-fit:    cover;
    max-height:    320px;
    transition:    transform .45s ease;
}
.fp-textblock__img:hover img { transform: scale(1.03); }

/* ================================================================
   NETWORK / 2-col dark
   ================================================================ */
.fp-network__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.fp-network__text p + p { margin-top: 14px; }
.fp-network__text a { color: var(--color-header-text); text-decoration: underline; }
.fp-network__img {
    width:         100%;
    border-radius: var(--radius);
    object-fit:    cover;
    max-height:    300px;
    transition:    transform .45s ease;
}
.fp-network__img:hover { transform: scale(1.03); }

/* ================================================================
   NO-REGISTRATION BLOCK
   ================================================================ */
.fp-noreg {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.fp-noreg p + p { margin-top: 16px; }
.fp-noreg a { text-decoration: underline; }

/* ================================================================
   ROUTES BLOCK (dark section)
   ================================================================ */
.fp-routes { /* intentionally empty — uses fp-routes__* classes */ }

/* ================================================================
   REVIEWS
   ================================================================ */
.fp-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fp-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fp-review__header {
    display:     flex;
    align-items: center;
    gap:         10px;
    flex-wrap:   wrap;
}
.fp-review__name  { font-weight: 700; font-size: .9rem; color: var(--color-card-text); }
.fp-review__stars { color: #fbbf24; font-size: 1rem; letter-spacing: .05em; }
.fp-review__text  { font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.82); font-style: italic; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid rgba(14, 22, 44, .12);
}
.faq-item:first-child { border-top: 1px solid rgba(14, 22, 44, .12); }

.faq-item__q {
    display:        flex;
    justify-content: space-between;
    align-items:    center;
    gap:            16px;
    padding:        18px 4px;
    cursor:         pointer;
    user-select:    none;
    list-style:     none;
}
.faq-item__q h3 {
    font-size:   .95rem;
    font-weight: 600;
    color:       var(--color-section-white-text);
    margin:      0;
    flex:        1;
}
.faq-item__icon {
    width:          22px;
    height:         22px;
    flex-shrink:    0;
    border-radius:  50%;
    border:         2px solid rgba(14, 22, 44, .3);
    position:       relative;
    transition:     background var(--transition), border-color var(--transition), transform var(--transition);
}
.faq-item__icon::before,
.faq-item__icon::after {
    content:   '';
    position:  absolute;
    background: var(--color-section-white-text);
    border-radius: 2px;
    top:       50%;
    left:      50%;
    transform: translate(-50%, -50%);
    transition: transform var(--transition), opacity var(--transition);
}
.faq-item__icon::before { width: 10px; height: 2px; }
.faq-item__icon::after  { width: 2px;  height: 10px; }

.faq-item.is-open .faq-item__icon { background: var(--color-header-bg); border-color: var(--color-header-bg); transform: rotate(45deg); }
.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after { background: #fff; }

.faq-item__a {
    display:    none;
    padding:    0 4px 18px;
    font-size:  .9rem;
    line-height: 1.7;
    color:      rgba(14, 22, 44, .78);
}
.faq-item.is-open .faq-item__a { display: block; }

/* ================================================================
   RELATED LINKS
   ================================================================ */
.fp-related {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   14px;
}
.fp-related__link {
    display:       flex;
    align-items:   center;
    gap:           8px;
    padding:       14px 16px;
    background:    rgba(14, 22, 44, .06);
    border:        1px solid rgba(14, 22, 44, .15);
    border-radius: var(--radius-sm);
    font-size:     .875rem;
    font-weight:   500;
    color:         var(--color-section-cyan-text);
    transition:    background var(--transition), color var(--transition),
                   border-color var(--transition), transform var(--transition),
                   box-shadow var(--transition);
}
.fp-related__link:hover {
    background:  var(--color-header-bg);
    color:       var(--color-header-text);
    border-color: var(--color-header-bg);
    transform:   translateY(-3px);
    box-shadow:  var(--shadow);
}
.fp-related__link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ================================================================
   BLOG CARDS
   ================================================================ */
.blog-card__link {
    display:         block;
    text-decoration: none;
    color:           inherit;
    background:      var(--color-section-white-bg);
    border-radius:   12px;
    overflow:        hidden;
    box-shadow:      0 2px 12px rgba(0,0,0,.10);
    transition:      transform var(--transition), box-shadow var(--transition);
    height:          100%;
    color: #000000 !important;
    text-decoration: none !important;
}
.blog-card__link:hover {
    transform:   translateY(-4px);
    box-shadow:  0 8px 28px rgba(0,0,0,.18);
}
.blog-card__img-wrap {
    width:       100%;
    height:      180px;
    overflow:    hidden;
}
.blog-card__img-wrap img {
    width:       100%;
    height:      100%;
    object-fit:  cover;
    transition:  transform .4s ease;
}
.blog-card__link:hover .blog-card__img-wrap img { transform: scale(1.05); }
.blog-card__body {
    padding:     18px 20px 20px;
    display:     flex;
    flex-direction: column;
    gap:         8px;
}
.blog-card__title {
    font-size:   1rem;
    font-weight: 700;
    color:       var(--color-accent);
    margin:      0;
}
.blog-card__desc {
    font-size:   .875rem;
    line-height: 1.65;
    color:       var(--color-text);
    margin:      0;
    flex:        1;
}
.blog-card__more {
    font-size:    .85rem;
    font-weight:  600;
    color:        var(--color-accent);
    margin-top:   6px;
}

/* Blog article body */
.blog-article { max-width: 780px; margin: 0 auto; }
.blog-article h2 { font-size: 1.35rem; margin-top: 36px; margin-bottom: 12px; color: var(--color-section-white-text); }
.blog-article h3 { font-size: 1.05rem; margin-top: 28px; margin-bottom: 10px; color: var(--color-section-white-text); }
.blog-article p  { margin-bottom: 14px; line-height: 1.75; }
.blog-article ul,
.blog-article ol { padding-left: 22px; margin-bottom: 14px; }
.blog-article li { margin-bottom: 6px; line-height: 1.65; }
.blog-article table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .875rem; }
.blog-article th,
.blog-article td { padding: 9px 14px; border: 1px solid rgba(14,22,44,.14); text-align: left; }
.blog-article th { background: rgba(26,86,219,.08); font-weight: 600; }
.blog-article tr:nth-child(even) td { background: rgba(14,22,44,.03); }
.blog-article a { color: var(--color-accent); text-decoration: underline; }
.blog-article a:hover { opacity: .8; }

/* Legal pages */
.hero--short .hero__inner { padding-top: 60px; padding-bottom: 60px; min-height: unset; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin-top: 36px; margin-bottom: 12px; color: var(--color-section-white-text); }
.legal-content h3 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; color: var(--color-section-white-text); }
.legal-content p  { margin-bottom: 14px; line-height: 1.75; }
.legal-content ul,
.legal-content ol { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; line-height: 1.65; }
.legal-content a { color: var(--color-accent); text-decoration: underline; }
.legal-content a:hover { opacity: .8; }

/* ================================================================
   RESPONSIVE — 768px
   ================================================================ */
@media (max-width: 768px) {
    .site-header__nav    { display: none; }
    .site-header__burger { display: flex; }

    .site-footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Hero */
    .hero__inner { grid-template-columns: 1fr; }
    .hero__widget { justify-content: center; }

    /* Grids → 2 columns */
    .fp-features__grid,
    .fp-usecases__grid,
    .fp-related { grid-template-columns: 1fr 1fr; }

    .fp-pairs__grid { grid-template-columns: repeat(3, 1fr); }

    .fp-reviews { grid-template-columns: 1fr 1fr; }

    .fp-vs__body,
    .fp-routes__cols,
    .fp-textblock__cols,
    .fp-network__cols { grid-template-columns: 1fr; }

    .fp-textblock__cols--rev .fp-textblock__img { order: 0; }

    .section__title { font-size: 1.65rem; }
}

/* ================================================================
   RESPONSIVE — 480px
   ================================================================ */
@media (max-width: 480px) {
    :root {
        --crypto-section-y: 40px;
    }

    .site-header__container { height: 62px; }

    .site-footer__cols { grid-template-columns: 1fr; gap: 28px; }

    /* Hero */
    .hero__title { font-size: 1.8rem; }
    .hero__widget iframe { width: 100%; }

    /* Grids → 1 column */
    .fp-features__grid,
    .fp-usecases__grid,
    .fp-reviews,
    .fp-related { grid-template-columns: 1fr; }

    .fp-pairs__grid { grid-template-columns: 1fr 1fr; }

    .section__title { font-size: 1.4rem; }
}

/* ================================================================
   SHORTCODES — crypto data widgets
   ================================================================ */

.sc-error {
    padding: 14px 18px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.9rem;
}

/* ── price-snap ── */
.price-snap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.price-snap__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.price-snap__coin {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-snap__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.price-snap__pair {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.price-snap__rank {
    background: #eff6ff;
    color: #1a56db;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.price-snap__updated {
    color: #9ca3af;
    font-size: 0.8rem;
}

.price-snap__main {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.price-snap__price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.price-snap__change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.price-snap__change--up   { background: #f0fdf4; color: #16a34a; }
.price-snap__change--down { background: #fff5f5; color: #dc2626; }
.price-snap__change span  { font-weight: 400; opacity: .7; font-size: .85em; }

.price-snap__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ── sc-stat ── */
.sc-stat {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: box-shadow .2s;
}
.sc-stat:hover { box-shadow: 0 2px 8px rgba(26, 86, 219, .08); }
.sc-stat--wide { grid-column: 1 / -1; }
.sc-stat__label { font-size: 0.78rem; color: #6b7280; font-weight: 500; }
.sc-stat__value { font-size: 1rem; font-weight: 600; color: #111827; }

/* ── sc-chart ── */
.sc-chart {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.sc-chart canvas  { display: block; width: 100% !important; }
.sc-chart--tall canvas { min-height: 380px; }

/* ── sc-table-wrap ── */
.sc-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.sc-table__rate {
    padding: 13px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a56db;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.sc-table th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.sc-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.sc-table tbody tr:last-child td { border-bottom: none; }
.sc-table tbody tr:hover td { background: #f9fafb; }
.sc-table td.positive { color: #16a34a; font-weight: 600; }
.sc-table td.negative { color: #dc2626; font-weight: 600; }

.sc-table__note {
    padding: 10px 20px;
    font-size: 0.78rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    margin: 0;
}

/* ── btc-card ── */
.btc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    max-width: 340px;
    transition: box-shadow .25s, transform .25s;
}
.btc-card:hover { box-shadow: 0 6px 24px rgba(26, 86, 219, .12); transform: translateY(-2px); }

.btc-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.btc-card__icon   { width: 36px; height: 36px; border-radius: 50%; }
.btc-card__name   { font-size: 1rem; font-weight: 600; color: #111827; }
.btc-card__ticker { color: #9ca3af; font-weight: 400; margin-left: 4px; }

.btc-card__price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.btc-card__change {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.btc-card__change--up   { background: #f0fdf4; color: #16a34a; }
.btc-card__change--down { background: #fff5f5; color: #dc2626; }

.btc-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
    padding: 7px 0;
    border-top: 1px solid #f3f4f6;
}
.btc-card__row span:last-child { color: #111827; font-weight: 600; }

/* ── sat-conv (satoshi converter) ── */
.sat-conv {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.sat-conv__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px;
}

.sat-conv__fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sat-conv__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sat-conv__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sat-conv__input {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1rem;
    color: #111827;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
.sat-conv__input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
}

.sat-conv__rate {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 14px 0 0;
}

/* ── btc-calc ── */
.btc-calc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.btc-calc__row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.btc-calc__field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btc-calc__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.btc-calc__wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.btc-calc__wrap:focus-within {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
}

.btc-calc__cur {
    padding: 0 10px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 1rem;
    border-right: 1.5px solid #e5e7eb;
    align-self: stretch;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.btc-calc__input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 1rem;
    color: #111827;
    outline: none;
    min-width: 0;
    background: transparent;
}

.btc-calc__arrow {
    font-size: 1.5rem;
    color: #1a56db;
    flex-shrink: 0;
    padding-bottom: 4px;
    line-height: 1;
}

.btc-calc__rate {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 14px 0 0;
}

/* ── btc-rate ── */
.btc-rate {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.btc-rate__pair  { font-size: 0.85rem; color: #9ca3af; margin-bottom: 8px; }
.btc-rate__price { font-size: 2rem; font-weight: 700; color: #111827; margin-bottom: 8px; }

.btc-rate__change {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.btc-rate__change--up   { background: #f0fdf4; color: #16a34a; }
.btc-rate__change--down { background: #fff5f5; color: #dc2626; }
.btc-rate__time { font-size: 0.78rem; color: #9ca3af; }

/* ── btc-milestone (ATH / ATL / Start) ── */
.btc-milestone {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: box-shadow .25s, transform .25s;
}
.btc-milestone:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.btc-milestone__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.btc-milestone__badge--gold  { background: #fef3c7; color: #d97706; }
.btc-milestone__badge--blue  { background: #eff6ff; color: #1a56db; }
.btc-milestone__badge--green { background: #f0fdf4; color: #16a34a; }

.btc-milestone__label { font-size: 0.85rem; color: #6b7280; margin-bottom: 8px; }
.btc-milestone__val   { font-size: 1.8rem; font-weight: 700; color: #111827; margin-bottom: 6px; }
.btc-milestone__date  { font-size: 0.85rem; color: #9ca3af; margin-bottom: 8px; }
.btc-milestone__note  { font-size: 0.8rem; color: #9ca3af; margin: 0; }

.btc-milestone__delta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.btc-milestone__delta--up   { background: #f0fdf4; color: #16a34a; }
.btc-milestone__delta--down { background: #fff5f5; color: #dc2626; }

/* ── Shortcode responsive ── */
@media (max-width: 768px) {
    .price-snap__grid    { grid-template-columns: 1fr 1fr; }
    .price-snap__price   { font-size: 1.7rem; }
    .sat-conv__fields    { grid-template-columns: 1fr; }
    .btc-calc__row       { flex-direction: column; }
    .btc-calc__arrow     { align-self: center; transform: rotate(90deg); }
    .sc-table th,
    .sc-table td         { padding: 10px 14px; }
    .btc-milestone__val  { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .price-snap__grid { grid-template-columns: 1fr; }
    .price-snap       { padding: 16px; }
    .btc-card         { max-width: 100%; }
    .sat-conv,
    .btc-calc         { padding: 16px; }
}
