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

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --c-dark:      #000047;
    --c-blue:      #184287;
    --c-purple:    #42109D;
    --c-pink:      #91207E;
    --c-white:     #ffffff;
    --c-bg:        #ffffff;
    --c-bg-alt:    #f5f7fa;
    --c-text:      #000000;
    --c-text-muted:#4b5563;
    --c-border:    #e5e7eb;

    --section-y:   72px;
    --radius:      12px;
    --radius-lg:   20px;
    --shadow:      0 4px 24px rgba(0,0,71,.10);
    --shadow-hover:0 12px 40px rgba(0,0,71,.18);
    --transition:  .3s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   Container
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Scroll Reveal Animation
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal--left  { transform: translateX(-50px); }
.reveal--right { transform: translateX(50px); }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-dark);
    box-shadow: 0 2px 16px rgba(0,0,71,.4);
    transition: background var(--transition);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--c-white);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .02em;
    transition: opacity var(--transition);
}
.site-header__logo:hover { opacity: .85; }

.site-header__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-purple));
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 0 12px rgba(66,16,157,.5);
    animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { box-shadow: 0 0 12px rgba(66,16,157,.5); }
    50%       { box-shadow: 0 0 24px rgba(66,16,157,.9); }
}

.site-header__nav { display: flex; }

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

.site-header__menu a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,.85);
    font-size: .92rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.site-header__menu a:hover,
.site-header__menu .current-menu-item > a {
    color: var(--c-white);
    background: rgba(255,255,255,.1);
}

/* Burger */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 8px;
    transition: background var(--transition);
}
.site-header__burger:hover { background: rgba(255,255,255,.1); }

.site-header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
    transition: transform .35s ease, opacity .35s ease;
    transform-origin: center;
}

.site-header__burger.is-open .site-header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open .site-header__burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__burger.is-open .site-header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

    .site-header__nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--c-dark);
        border-top: 1px solid rgba(255,255,255,.1);
        padding: 16px 24px 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .4s ease, opacity .4s ease;
        z-index: 99;
    }
    .site-header__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .site-header__menu { flex-direction: column; gap: 4px; }
    .site-header__menu a { padding: 12px 16px; font-size: 1rem; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--c-dark);
    color: var(--c-white);
    padding: 56px 0 0;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.site-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--c-white);
    margin-bottom: 12px;
    transition: opacity var(--transition);
}
.site-footer__logo:hover { opacity: .85; }

.site-footer__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-purple));
    border-radius: 50%;
}

.site-footer__tagline {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    line-height: 1.6;
    max-width: 280px;
}

.site-footer__menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}
.site-footer__menu a {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    transition: color var(--transition);
    display: block;
    padding: 4px 0;
}
.site-footer__menu a:hover { color: var(--c-white); }

.site-footer__bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0;
    margin-top: 24px;
}
.site-footer__copy {
    color: rgba(255,255,255,.45);
    font-size: .82rem;
    text-align: center;
}

@media (max-width: 768px) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__menu  { grid-template-columns: 1fr; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }

.btn--primary {
    background: linear-gradient(135deg, var(--c-blue), var(--c-purple));
    color: var(--c-white);
    box-shadow: 0 4px 20px rgba(66,16,157,.35);
}
.btn--primary:hover { box-shadow: 0 8px 32px rgba(66,16,157,.55); }

.btn--white {
    background: var(--c-white);
    color: var(--c-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn--white:hover { box-shadow: 0 8px 32px rgba(0,0,0,.25); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--c-dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: hero-parallax 20s ease-in-out infinite alternate;
}
@keyframes hero-parallax {
    from { transform: scale(1.05) translateY(0); }
    to   { transform: scale(1.1)  translateY(-3%); }
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,71,.85) 0%, rgba(66,16,157,.65) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero__h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--c-white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -.02em;
}

.hero__desc {
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 16px;
}
.hero__desc:last-child { margin-bottom: 0; }

.hero__link {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.hero__link:hover { color: var(--c-white); }

@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
}

/* ============================================================
   Dashboard Shortcode
   ============================================================ */
.eth-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.eth-dashboard__card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--c-white);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: card-float 5s ease-in-out infinite alternate;
}
.eth-dashboard__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.eth-dashboard__card:nth-child(1) { animation-delay: 0s; }
.eth-dashboard__card:nth-child(2) { animation-delay: .5s; }
.eth-dashboard__card:nth-child(3) { animation-delay: 1s; }
.eth-dashboard__card:nth-child(4) { animation-delay: 1.5s; }
.eth-dashboard__card:nth-child(5) { animation-delay: 2s; }

@keyframes card-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-4px); }
}
.eth-dashboard__card:hover { animation-play-state: paused; }

.eth-dashboard__card--primary  { border-top: 3px solid var(--c-blue); }
.eth-dashboard__card--secondary { border-top: 3px solid var(--c-purple); }
.eth-dashboard__card--accent    { border-top: 3px solid var(--c-pink); }
.eth-dashboard__card--purple    { border-top: 3px solid #7c3aed; grid-column: span 2; }
.eth-dashboard__card--dark      { border-top: 3px solid rgba(255,255,255,.4); }

.eth-dashboard__label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.55);
    margin-bottom: 8px;
}
.eth-dashboard__value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.eth-dashboard__value--small { font-size: 1rem; }
.eth-dashboard__sub { font-size: .78rem; color: rgba(255,255,255,.45); }

.eth-dashboard__range-low  { color: #f87171; }
.eth-dashboard__range-high { color: #4ade80; }
.eth-dashboard__range-sep  { margin: 0 6px; color: rgba(255,255,255,.3); }

@media (max-width: 768px) {
    .eth-dashboard { grid-template-columns: 1fr 1fr; }
    .eth-dashboard__card--purple { grid-column: span 2; }
}
@media (max-width: 480px) {
    .eth-dashboard { grid-template-columns: 1fr; }
    .eth-dashboard__card--purple { grid-column: span 1; }
}

/* ============================================================
   Live Chart Shortcode
   ============================================================ */
.eth-chart {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.eth-chart__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.eth-chart__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 4px;
}
.eth-chart__subtitle { font-size: .88rem; color: var(--c-text-muted); }

.eth-chart__timeframes { display: flex; gap: 6px; flex-wrap: wrap; }

.eth-chart__tf {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}
.eth-chart__tf:hover,
.eth-chart__tf--active {
    background: var(--c-dark);
    color: var(--c-white);
    border-color: var(--c-dark);
}

.eth-chart__wrap {
    position: relative;
    height: 360px;
}
.eth-chart__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--c-text-muted);
    background: var(--c-bg);
}
.eth-chart__loading.hidden { display: none; }

/* ============================================================
   Sections
   ============================================================ */
.section {
    padding: var(--section-y) 0;
}
.section--alt {
    background: var(--c-bg-alt);
}
.section--cta {
    background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-purple) 100%);
    color: var(--c-white);
}
.section--chart { padding-top: 48px; padding-bottom: 0; }
.section--widget { padding-top: 48px; }

.section__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.section__h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 16px;
    letter-spacing: -.02em;
}
.section__h2--light { color: var(--c-white); }

.section__lead {
    color: var(--c-text-muted);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.section__link {
    color: var(--c-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.section__link:hover { color: var(--c-purple); }

/* Split layout */
.section__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.section__split--reverse { direction: rtl; }
.section__split--reverse > * { direction: ltr; }

.section__split-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.section__split-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform .6s ease;
}
.section__split-img:hover img { transform: scale(1.05); }

.section__split-text p {
    color: var(--c-text-muted);
    margin-bottom: 14px;
    line-height: 1.75;
}
.section__split-text p:last-child { margin-bottom: 0; }

/* Widget section */
.section__widget-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.section__widget-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.section__widget-img img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: transform .6s ease;
}
.section__widget-img:hover img { transform: scale(1.05); }

/* Converter section */
.section__converter-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.section__converter-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    transition: transform .6s ease;
}
.section__converter-img:hover { transform: scale(1.03); }

/* History section */
.section__history-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.section__history-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.section__history-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform .6s ease;
}
.section__history-img:hover img { transform: scale(1.05); }

/* Contact section */
.section__contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.section__contact-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.section__contact-img img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform .6s ease;
}
.section__contact-img:hover img { transform: scale(1.05); }

/* CTA section */
.section__cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.section__cta-text p {
    color: rgba(255,255,255,.8);
    line-height: 1.75;
    margin-bottom: 14px;
}
.section__cta-text p:last-of-type { margin-bottom: 28px; }
.section__cta-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.section__cta-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform .6s ease;
}
.section__cta-img:hover img { transform: scale(1.05); }

@media (max-width: 960px) {
    .section__split,
    .section__split--reverse,
    .section__widget-wrap,
    .section__converter-wrap,
    .section__history-wrap,
    .section__contact-wrap,
    .section__cta-inner { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
    .section__split-img img,
    .section__widget-img img,
    .section__history-img img,
    .section__contact-img img { height: 240px; }
    .section__cta-img img { height: 220px; }
}

/* ============================================================
   Exchange Widget Shortcode
   ============================================================ */
.exchange-widget {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.exchange-widget__header { margin-bottom: 20px; }
.exchange-widget__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 4px;
}
.exchange-widget__sub { font-size: .85rem; color: var(--c-text-muted); }
.exchange-widget__iframe-wrap {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
}
.exchange-widget__iframe-wrap iframe { max-width: 100%; }

/* ============================================================
   ETH Converter Shortcode
   ============================================================ */
.eth-converter {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.eth-converter__row {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}
.eth-converter__arrow {
    font-size: 1.6rem;
    color: var(--c-purple);
    padding-bottom: 32px;
    flex-shrink: 0;
    font-weight: 700;
}
.eth-converter__field { flex: 1; }
.eth-converter__label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.eth-converter__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.eth-converter__input {
    width: 100%;
    padding: 12px 56px 12px 16px;
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-bg-alt);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.eth-converter__input:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(24,66,135,.15);
}
.eth-converter__coin {
    position: absolute;
    right: 14px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-text-muted);
    pointer-events: none;
}
.eth-converter__result {
    margin-top: 8px;
    font-size: .92rem;
    color: var(--c-text-muted);
    font-weight: 500;
    min-height: 20px;
}
.eth-converter__result span { color: var(--c-dark); font-weight: 700; }

.eth-converter__rate-info {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
    font-size: .82rem;
    color: var(--c-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.eth-converter__rate-label { font-weight: 600; }
.eth-converter__disclaimer { color: #9ca3af; font-style: italic; }

@media (max-width: 560px) {
    .eth-converter__row { flex-direction: column; }
    .eth-converter__arrow { padding-bottom: 0; align-self: center; }
}

/* ============================================================
   Conversion Table Shortcode
   ============================================================ */
.conv-table {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.conv-table__tabs {
    display: flex;
    border-bottom: 1px solid var(--c-border);
}
.conv-table__tab {
    flex: 1;
    padding: 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
}
.conv-table__tab:hover { color: var(--c-dark); }
.conv-table__tab--active {
    color: var(--c-dark);
    background: var(--c-bg);
    border-bottom-color: var(--c-blue);
}

.conv-table__panel { display: none; }
.conv-table__panel--active { display: block; }

.conv-table__table {
    width: 100%;
    border-collapse: collapse;
}
.conv-table__table th {
    padding: 12px 20px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    text-align: left;
}
.conv-table__table td {
    padding: 12px 20px;
    font-size: .92rem;
    border-bottom: 1px solid var(--c-border);
    transition: background var(--transition);
}
.conv-table__table tr:last-child td { border-bottom: none; }
.conv-table__table tr:hover td { background: var(--c-bg-alt); }
.conv-table__val,
.conv-table__val-btc {
    font-weight: 600;
    color: var(--c-dark);
    font-variant-numeric: tabular-nums;
}

.conv-table__footer {
    padding: 12px 20px;
    font-size: .8rem;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
}

/* ============================================================
   Historical High/Low Shortcode
   ============================================================ */
.eth-history {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.eth-history__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.eth-history__label { font-size: .85rem; color: var(--c-text-muted); font-weight: 600; }
.eth-history__periods { display: flex; gap: 8px; flex-wrap: wrap; }

.eth-history__btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}
.eth-history__btn:hover,
.eth-history__btn--active {
    background: var(--c-dark);
    color: var(--c-white);
    border-color: var(--c-dark);
}

.eth-history__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.eth-history__card {
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.eth-history__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.eth-history__card--high    { background: linear-gradient(135deg, #064e3b, #065f46); color: var(--c-white); }
.eth-history__card--current { background: linear-gradient(135deg, var(--c-blue), var(--c-dark)); color: var(--c-white); }
.eth-history__card--low     { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: var(--c-white); }

.eth-history__icon { font-size: 1.5rem; margin-bottom: 8px; }
.eth-history__card-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 8px; }
.eth-history__val { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.eth-history__date,
.eth-history__position { font-size: .78rem; opacity: .7; }

.eth-history__range-bar-wrap { margin-top: 8px; }
.eth-history__range-bar {
    position: relative;
    height: 8px;
    background: var(--c-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.eth-history__range-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
    border-radius: 4px;
    transition: width .8s ease;
}
.eth-history__range-marker {
    position: absolute;
    top: -3px;
    width: 14px;
    height: 14px;
    background: var(--c-pink);
    border: 2px solid var(--c-white);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left .8s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.eth-history__range-labels {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--c-text-muted);
}

@media (max-width: 560px) {
    .eth-history__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   USD Comparison Chart Shortcode
   ============================================================ */
.eth-usd-chart {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.eth-usd-chart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.eth-usd-chart__timeframes { display: flex; gap: 6px; flex-wrap: wrap; }
.eth-usd-chart__tf {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}
.eth-usd-chart__tf:hover,
.eth-usd-chart__tf--active { background: var(--c-dark); color: var(--c-white); border-color: var(--c-dark); }

.eth-usd-chart__legend { display: flex; gap: 16px; font-size: .85rem; font-weight: 600; }
.eth-usd-chart__legend-eth { color: #6366f1; }
.eth-usd-chart__legend-btc { color: #f59e0b; }

.eth-usd-chart__wrap {
    position: relative;
    height: 300px;
}
.eth-usd-chart__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--c-text-muted);
}
.eth-usd-chart__loading.hidden { display: none; }

/* ============================================================
   Period Performance Shortcode
   ============================================================ */
.eth-perf {
    width: 100%;
    overflow-x: auto;
}
.eth-perf__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.eth-perf__table th {
    padding: 14px 20px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    text-align: left;
}
.eth-perf__table td {
    padding: 14px 20px;
    font-size: .95rem;
    border-bottom: 1px solid var(--c-border);
    transition: background var(--transition);
}
.eth-perf__table tr:last-child td { border-bottom: none; }
.eth-perf__table tr:hover td { background: var(--c-bg-alt); }
.eth-perf__period { font-weight: 700; color: var(--c-dark); }
.eth-perf__change { font-weight: 700; font-variant-numeric: tabular-nums; }
.eth-perf__change.positive { color: #059669; }
.eth-perf__change.negative { color: #dc2626; }
.eth-perf__result { font-size: .85rem; font-weight: 600; }
.eth-perf__result.eth-stronger { color: #059669; }
.eth-perf__result.btc-stronger { color: #dc2626; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq__item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq__item:hover { box-shadow: var(--shadow); }

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--c-bg);
    text-align: left;
    gap: 16px;
    transition: background var(--transition);
}
.faq__question:hover { background: var(--c-bg-alt); }

.faq__h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-dark);
    line-height: 1.4;
}

.faq__icon {
    font-size: 1.4rem;
    color: var(--c-purple);
    flex-shrink: 0;
    transition: transform var(--transition);
    font-weight: 300;
    line-height: 1;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
}
.faq__item.is-open .faq__answer { max-height: 500px; }

.faq__answer p {
    padding: 0 24px 20px;
    color: var(--c-text-muted);
    line-height: 1.75;
}

/* ============================================================
   Page Hero
   ============================================================ */
.page-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: var(--c-dark);
    overflow: hidden;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
    transition: transform .6s ease;
}
.page-hero:hover .page-hero__bg-img { transform: scale(1.04); }
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,71,.8), rgba(66,16,157,.55));
}
.page-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
}
.page-hero__inner--narrow { max-width: 820px; }
.page-hero__h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--c-white);
    margin-bottom: 24px;
    letter-spacing: -.02em;
}
.page-hero__lead {
    color: rgba(255,255,255,.82);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 12px;
    max-width: 700px;
}

/* ============================================================
   Notice Card
   ============================================================ */
.section--notice { background: var(--c-bg-alt); }
.notice-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-left: 5px solid var(--c-pink);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 860px;
    margin: 0 auto;
}
.notice-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--c-pink);
    line-height: 1;
}
.notice-card__h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 12px;
}
.notice-card__body p {
    color: var(--c-text-muted);
    line-height: 1.75;
    margin-bottom: 10px;
}
.notice-card__body p:last-child { margin-bottom: 0; }

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.contact-form__field { margin-bottom: 20px; }
.contact-form__label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--c-text);
    background: var(--c-bg-alt);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(24,66,135,.15);
}
.contact-form__btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-purple));
    color: var(--c-white);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(66,16,157,.3);
}
.contact-form__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(66,16,157,.5);
}
.contact-form__success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: var(--radius);
    padding: 20px 24px;
    font-weight: 500;
}
.contact-form__error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .9rem;
}

/* ============================================================
   Legal Page
   ============================================================ */
.legal-page { padding: 64px 0; }
.legal-page__inner { max-width: 820px; }

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--c-border);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.legal-section__h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}
.legal-section__h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--c-blue), var(--c-purple));
    border-radius: 2px;
}
.legal-section p {
    color: var(--c-text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }

/* ============================================================
   404 Page
   ============================================================ */
.error404__wrapper {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================================
   Loading Spinner Utility
   ============================================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--c-border);
    border-top-color: var(--c-blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto;
}

/* ============================================================
   Positive / Negative color utilities
   ============================================================ */
.val-positive { color: #059669; }
.val-negative { color: #dc2626; }

/* ============================================================
   Adaptive: 768px
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-y: 48px; }

    .hero { min-height: auto; }

    .eth-chart { padding: 20px; }
    .eth-chart__wrap { height: 260px; }
    .eth-chart__header { flex-direction: column; }

    .section__header { margin-bottom: 32px; }

    .notice-card { flex-direction: column; gap: 16px; }

    .legal-page { padding: 40px 0; }
}

/* ============================================================
   Adaptive: 480px
   ============================================================ */
@media (max-width: 480px) {
    :root { --section-y: 36px; }

    .eth-chart__wrap { height: 200px; }
    .eth-usd-chart__wrap { height: 200px; }

    .contact-form { padding: 20px; }

    .section__cta-inner { grid-template-columns: 1fr; }

    .eth-history__grid { grid-template-columns: 1fr; }

    .page-hero__inner { padding-top: 48px; padding-bottom: 48px; }
}
