/* ==========================================================================
   Bitcoin Lifestyles Club — Cypherpunk Design System
   ========================================================================== */

:root {
    --bg-base: #0a0e14;
    --bg-panel: #0f1520;
    --bg-panel-2: #131b29;
    --border-subtle: #1e2a3d;
    --btc-orange: #f7931a;
    --btc-orange-bright: #ffa733;
    --cyan: #00e5ff;
    --matrix-green: #2bff88;
    --text-primary: #e8eef7;
    --text-secondary: #9fb0c7;
    --text-muted: #6a7a93;
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --glow-orange: 0 0 18px rgba(247, 147, 26, 0.45);
    --glow-cyan: 0 0 18px rgba(0, 229, 255, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.55rem); }

a { color: var(--cyan); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--btc-orange-bright); }

.accent { color: var(--btc-orange); }
.accent-cyan { color: var(--cyan); }

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--btc-orange);
}

.mono-label::before { content: "> "; color: var(--matrix-green); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.nav-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image { width: 44px; height: 44px; filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.5)); }

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.logo-text .tld { color: var(--btc-orange); }

.main-nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--btc-orange); }

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--btc-orange);
    box-shadow: var(--glow-orange);
}

.nav-cta {
    padding: 9px 20px;
    border: 1px solid var(--btc-orange);
    border-radius: 6px;
    color: var(--btc-orange);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
}

.nav-cta:hover {
    background: var(--btc-orange);
    color: #0a0e14;
    box-shadow: var(--glow-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--btc-orange);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 34px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--btc-orange), #e07f00);
    color: #0a0e14;
    box-shadow: 0 0 24px rgba(247, 147, 26, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(247, 147, 26, 0.55);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.08);
    box-shadow: var(--glow-cyan);
    color: var(--cyan);
}

.btn-lg { font-size: 1.1rem; padding: 18px 44px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    padding: 90px 0 70px;
    background: radial-gradient(ellipse at 70% 20%, rgba(247, 147, 26, 0.08), transparent 55%),
                radial-gradient(ellipse at 20% 80%, rgba(0, 229, 255, 0.06), transparent 50%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,14,20,0.55) 0%, rgba(10,14,20,0.35) 50%, var(--bg-base) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 { margin: 18px 0 20px; }

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 34px;
    max-width: 540px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-video {
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-panel);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.12);
}

.video-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #060a10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-slot iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Stats bar
   ========================================================================== */

.stats-bar {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    padding: 34px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--btc-orange);
    text-shadow: var(--glow-orange);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 90px 0; position: relative; }

.section-dark { background: var(--bg-panel); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--text-secondary); font-size: 1.08rem; }

.hash-divider {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--border-subtle);
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
    user-select: none;
}

/* Feature / module cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.card {
    background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--btc-orange), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover { border-color: rgba(247, 147, 26, 0.45); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 0.98rem; }

.card-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--matrix-green);
    display: block;
    margin-bottom: 12px;
}

/* Benefits checklist */
.benefit-list { list-style: none; }

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--border-subtle);
    color: var(--text-secondary);
}

.benefit-list li:last-child { border-bottom: none; }

.benefit-list .tick {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 1px solid var(--matrix-green);
    border-radius: 4px;
    color: var(--matrix-green);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    box-shadow: 0 0 8px rgba(43, 255, 136, 0.25);
}

/* Split rows (image + text) */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 46px 0;
}

.split-row img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.split-row h3 { font-size: 1.7rem; margin: 12px 0 16px; }
.split-row p { color: var(--text-secondary); margin-bottom: 14px; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: linear-gradient(170deg, var(--bg-panel-2), var(--bg-panel));
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 42px 36px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.price-card.featured {
    border-color: var(--btc-orange);
    box-shadow: 0 0 44px rgba(247, 147, 26, 0.18);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--btc-orange);
    color: #0a0e14;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

.price-tier {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-amount .currency { font-size: 1.8rem; vertical-align: super; color: var(--btc-orange); }

.price-note { color: var(--text-muted); font-size: 0.9rem; margin: 10px 0 24px; }

.price-desc { color: var(--text-secondary); margin-bottom: 28px; font-size: 0.98rem; }

.price-features { list-style: none; text-align: left; margin-bottom: 32px; }

.price-features li {
    padding: 9px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--border-subtle);
}

.price-features li::before { content: "+ "; color: var(--matrix-green); font-family: var(--font-mono); }
.price-features li:last-child { border-bottom: none; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.testimonial {
    background: var(--bg-panel-2);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--btc-orange);
    border-radius: 10px;
    padding: 30px;
}

.testimonial-title {
    font-family: var(--font-mono);
    color: var(--btc-orange);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.testimonial p { color: var(--text-secondary); font-size: 0.97rem; font-style: italic; }

.testimonial-author {
    margin-top: 18px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    font-style: normal;
}

.testimonial-author::before { content: "— "; color: var(--cyan); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    margin-bottom: 14px;
    background: var(--bg-panel-2);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-q .faq-icon {
    font-family: var(--font-mono);
    color: var(--btc-orange);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-a-inner {
    padding: 0 24px 22px;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
    text-align: center;
    padding: 80px 24px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(247, 147, 26, 0.12), transparent 60%),
        var(--bg-panel);
    border-top: 1px solid var(--border-subtle);
}

.cta-banner h2 { max-width: 720px; margin: 14px auto 18px; }
.cta-banner p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 34px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: #070a10;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 14px; max-width: 340px; }

.footer-head {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--btc-orange);
    margin-bottom: 18px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.92rem; }
.footer-links a:hover { color: var(--btc-orange); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
    padding: 72px 0 56px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.06), transparent 60%);
    border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 { margin: 16px 0 14px; }
.page-hero p { color: var(--text-secondary); max-width: 680px; margin: 0 auto; font-size: 1.08rem; }

/* Legal pages */
.legal-content { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.legal-content h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.legal-content h3 { margin: 30px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-secondary); margin-bottom: 14px; }
.legal-content ul { padding-left: 24px; margin-bottom: 18px; }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-panel-2);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover { border-color: rgba(247, 147, 26, 0.45); transform: translateY(-4px); }

.blog-card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--matrix-green);
    margin-bottom: 10px;
}

.blog-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.blog-card h3 a { color: var(--text-primary); }
.blog-card h3 a:hover { color: var(--btc-orange); }
.blog-card p { color: var(--text-secondary); font-size: 0.94rem; flex: 1; }

.blog-card .read-more {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-layout { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.post-meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 16px 0 36px;
}
.post-body h2 { margin: 40px 0 18px; }
.post-body h3 { margin: 32px 0 14px; }
.post-body p { color: var(--text-secondary); margin-bottom: 18px; }
.post-body ul, .post-body ol { color: var(--text-secondary); padding-left: 26px; margin-bottom: 18px; }
.post-body li { margin-bottom: 8px; }
.post-body img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border-subtle); margin: 20px 0; }
.post-body blockquote {
    border-left: 3px solid var(--btc-orange);
    padding: 12px 22px;
    background: var(--bg-panel-2);
    border-radius: 0 8px 8px 0;
    margin: 22px 0;
    color: var(--text-secondary);
}

/* Video embed slot used across course/blog pages — Rumble embeds drop in here */
.rumble-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #060a10;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rumble-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rumble-placeholder {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

/* Payment pages */
.payment-box {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-panel-2);
    border: 1px solid var(--btc-orange);
    border-radius: 14px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 0 44px rgba(247, 147, 26, 0.15);
}

.payment-box h2 { margin-bottom: 12px; }
.payment-box p { color: var(--text-secondary); margin-bottom: 26px; }

.coin-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 24px 0 30px;
    font-family: var(--font-mono);
    color: var(--btc-orange);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .hero-grid, .split-row { grid-template-columns: 1fr; gap: 36px; }
    .split-row.reverse-mobile > div:first-child { order: 2; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .main-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(10, 14, 20, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        padding: 22px 24px;
        gap: 18px;
        align-items: flex-start;
    }
    .main-nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .stats-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero { padding: 60px 0 50px; }
    .section { padding: 60px 0; }
}

/* Premium-only public membership layout */
.pricing-grid--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
.pricing-grid--single .price-card {
  width: 100%;
}
.payment-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.06);
  color: var(--text-secondary);
}
.payment-panel p { margin: 0 0 10px; }
.payment-panel p:last-child { margin-bottom: 0; }
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 { margin: 34px 0 12px; font-family: var(--font-display); color: var(--text-primary); }
.legal-content p { color: var(--text-secondary); line-height: 1.75; }
@media (max-width: 640px) {
  .pricing-grid--single { grid-template-columns: 1fr; }
}

/* Complete eight-module course map */
.course-map-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.course-map-grid .card {
    padding: 26px;
}

.course-map-grid .card h3 {
    font-size: 1.12rem;
}

.course-map-grid .card p {
    font-size: 0.94rem;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .course-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .course-map-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium crypto payment-confirmation flow */
.payment-hero { padding-bottom: 66px; }
.payment-section { padding-top: 24px; }
.payment-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.5fr);
  gap: 30px;
  align-items: start;
}
.payment-summary,
.payment-workflow {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: rgba(16, 24, 36, 0.72);
}
.payment-summary {
  position: sticky;
  top: 100px;
  padding: 28px;
}
.payment-summary h2 { margin: 12px 0 8px; font-size: 1.6rem; }
.payment-summary__note { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.payment-summary__list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.payment-summary__list li { position: relative; padding-left: 18px; }
.payment-summary__list li::before { content: '›'; position: absolute; left: 0; color: var(--portal-green); font-family: var(--font-mono); }
.payment-workflow { overflow: hidden; }
.payment-step { padding: 34px; border-bottom: 1px solid var(--border-subtle); }
.payment-step:last-child { border-bottom: 0; }
.payment-step > p { margin: 18px 0 22px; color: var(--text-secondary); line-height: 1.7; }
.payment-step__heading { display: flex; gap: 16px; align-items: flex-start; }
.payment-step__heading h2 { margin: 5px 0 0; font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.payment-step__number {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 50%;
  color: var(--portal-cyan);
  font: 600 0.74rem var(--font-mono);
}
.crypto-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
}
.crypto-method-input { position: absolute; opacity: 0; pointer-events: none; }
.crypto-method-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 84px;
  padding: 15px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: rgba(8, 13, 21, 0.48);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.crypto-method-card:hover { transform: translateY(-2px); border-color: rgba(247, 147, 26, 0.55); }
.crypto-method-card strong, .crypto-method-card small { display: block; }
.crypto-method-card strong { color: var(--text-primary); font-size: 0.95rem; }
.crypto-method-card small { margin-top: 3px; color: var(--text-secondary); font-size: 0.76rem; }
.crypto-method-card__ticker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(247, 147, 26, 0.12);
  color: var(--portal-orange);
  font: 600 0.68rem var(--font-mono);
}
#crypto-bitcoin:checked + label,
#crypto-litecoin:checked + label,
#crypto-ethereum:checked + label {
  border-color: var(--portal-cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.15);
}
.payment-wallets { grid-column: 1 / -1; margin-top: 4px; }
.payment-wallet { display: none; padding: 20px; border: 1px solid rgba(0, 229, 255, 0.35); border-radius: 11px; background: rgba(0, 229, 255, 0.055); }
#crypto-bitcoin:checked ~ .payment-wallets .payment-wallet--bitcoin,
#crypto-litecoin:checked ~ .payment-wallets .payment-wallet--litecoin,
#crypto-ethereum:checked ~ .payment-wallets .payment-wallet--ethereum { display: block; }
.payment-wallet__label { display: block; margin-bottom: 10px; color: var(--portal-cyan); font: 600 0.7rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.payment-wallet code { display: block; overflow-wrap: anywhere; color: var(--text-primary); font: 500 clamp(0.78rem, 1.8vw, 0.98rem) var(--font-mono); line-height: 1.65; }
.payment-warning { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--portal-orange); border-radius: 0 8px 8px 0; background: rgba(247, 147, 26, 0.075); color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }
.payment-warning strong { color: var(--text-primary); }
.payment-form { display: grid; gap: 20px; }
.payment-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--text-primary); font-size: 0.9rem; font-weight: 600; }
.form-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(6, 11, 18, 0.75);
  color: var(--text-primary);
  font: 0.92rem var(--font-body);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.form-field input:focus { border-color: var(--portal-cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1); }
.form-field input::placeholder { color: rgba(174, 187, 208, 0.6); }
.form-field small, .payment-form__privacy { color: var(--text-secondary); font-size: 0.78rem; line-height: 1.55; }
.form-optional { color: var(--text-secondary); font-size: 0.78rem; font-weight: 400; }
.payment-confirmation { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); font-size: 0.87rem; line-height: 1.55; cursor: pointer; }
.payment-confirmation input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--portal-cyan); }
.payment-submit { justify-self: start; }
.payment-form__privacy { margin: -6px 0 0; max-width: 680px; }
.payment-status { margin: 34px; padding: 30px; border-radius: 12px; }
.payment-status h2 { margin: 10px 0; }
.payment-status p { margin: 0; color: var(--text-secondary); line-height: 1.7; }
.payment-status--success { border: 1px solid rgba(0, 255, 136, 0.38); background: rgba(0, 255, 136, 0.06); }
.payment-status--success .mono-label { color: var(--portal-green); }
.payment-status--error { border: 1px solid rgba(255, 97, 116, 0.5); background: rgba(255, 97, 116, 0.08); color: var(--text-primary); line-height: 1.6; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.footer-logo-link { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) {
  .payment-layout { grid-template-columns: 1fr; }
  .payment-summary { position: static; }
}
@media (max-width: 640px) {
  .payment-hero { padding-bottom: 44px; }
  .payment-step, .payment-status { padding: 24px; margin: 0; }
  .crypto-methods, .payment-form__grid { grid-template-columns: 1fr; }
  .payment-wallets { grid-column: auto; }
  .payment-submit { width: 100%; justify-content: center; }
}


/* Wallet address copy button */
.payment-wallet__address-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-wallet__address-row code {
  flex: 1;
  min-width: 0;
}

.wallet-copy-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 229, 255, 0.62);
  border-radius: 7px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--portal-cyan);
  cursor: pointer;
  font: 600 0.7rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.wallet-copy-button:hover,
.wallet-copy-button:focus-visible {
  border-color: var(--portal-orange);
  background: rgba(247, 147, 26, 0.12);
  color: var(--portal-orange);
  outline: none;
}

.wallet-copy-button.is-copied {
  border-color: var(--portal-green);
  background: rgba(0, 255, 136, 0.1);
  color: var(--portal-green);
}

@media (max-width: 520px) {
  .payment-wallet__address-row {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-copy-button {
    width: 100%;
  }
}


/* Homepage Rumble sales-video shell */
.sales-video-shell {
  display: grid;
  gap: 14px;
}

.sales-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 12px;
  background: #050b13;
  box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.08), 0 18px 48px rgba(0, 0, 0, 0.35);
}

.sales-video-launch {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #050b13;
  cursor: pointer;
  overflow: hidden;
}

.sales-video-launch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.sales-video-launch:hover img,
.sales-video-launch:focus-visible img {
  filter: brightness(0.82) saturate(1.12);
  transform: scale(1.025);
}

.sales-video-launch__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(2, 8, 16, 0.24), rgba(2, 8, 16, 0.04) 52%, rgba(2, 8, 16, 0.34));
}

.sales-video-launch__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.9);
  border-radius: 50%;
  background: rgba(3, 13, 24, 0.82);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.38);
  color: var(--portal-cyan);
  font-size: 1.4rem;
  line-height: 1;
  transform: translate(-50%, -58%);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.sales-video-launch:hover .sales-video-launch__play,
.sales-video-launch:focus-visible .sales-video-launch__play {
  border-color: var(--portal-orange);
  background: rgba(247, 147, 26, 0.17);
  box-shadow: 0 0 34px rgba(247, 147, 26, 0.42);
  color: var(--portal-orange);
}

.sales-video-launch__label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(0, 229, 255, 0.36);
  border-radius: 5px;
  background: rgba(3, 13, 24, 0.84);
  color: var(--text-primary);
  font: 600 0.67rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sales-video-companion {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--portal-orange);
  border-radius: 9px;
  background: rgba(12, 22, 37, 0.88);
}

.sales-video-companion strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
}

.sales-video-companion p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.55;
}

.sales-video-companion .btn {
  justify-self: start;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .sales-video-launch__play {
    width: 56px;
    height: 56px;
    font-size: 1.12rem;
  }

  .sales-video-launch__label {
    right: 10px;
    bottom: 10px;
    font-size: 0.58rem;
  }

  .sales-video-companion {
    padding: 15px;
  }

  .sales-video-companion .btn {
    width: 100%;
  }
}

/* Mobile: keep the long Premium membership badge inside the pricing card. */
@media (max-width: 640px) {
  .pricing-grid--single .price-badge {
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: 360px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 0.63rem;
    line-height: 1.35;
    letter-spacing: 0.09em;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* ==========================================================================
   Shared Course-Card Imagery — append to styles.css
   ========================================================================== */

.course-map-grid .card--visual,
.card-grid .card--visual {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #111c2b, #0d141e);
}

.course-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 229, 255, .24);
    background: #050a10;
}

.course-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 10, 16, 0) 42%, rgba(5, 10, 16, .48) 100%);
}

.course-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.card--visual:hover .course-card-media img {
    transform: scale(1.035);
    filter: saturate(1.08) brightness(1.04);
}

.course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 27px;
}

.course-card-body .card-num {
    margin-bottom: 10px;
}

.course-card-body h3 {
    margin-top: 0;
}

.course-card-body p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .course-card-body {
        padding: 20px;
    }
}

/* ==========================================================================
   Shared Course-Card Imagery — append to styles.css
   ========================================================================== */

.course-map-grid .card--visual,
.card-grid .card--visual {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #111c2b, #0d141e);
}

.course-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 229, 255, .24);
    background: #050a10;
}

.course-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 10, 16, 0) 42%, rgba(5, 10, 16, .48) 100%);
}

.course-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.card--visual:hover .course-card-media img {
    transform: scale(1.035);
    filter: saturate(1.08) brightness(1.04);
}

.course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 27px;
}

.course-card-body .card-num {
    margin-bottom: 10px;
}

.course-card-body h3 {
    margin-top: 0;
}

.course-card-body p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .course-card-body {
        padding: 20px;
    }
}
/* ==========================================================================
   Premium Course Page — curriculum-first redesign
   Append to styles.css after the shared course-card image rules.
   ========================================================================== */

.course-library-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 116px) 0 clamp(58px, 8vw, 88px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, .14), transparent 45%),
    radial-gradient(circle at 14% 82%, rgba(247, 147, 26, .12), transparent 42%),
    #0a0e14;
  border-bottom: 1px solid var(--border-subtle);
}

.course-library-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(0, 229, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.course-library-hero .container { position: relative; z-index: 1; max-width: 960px; }
.course-library-hero h1 { max-width: 850px; margin: 18px auto; }
.course-library-hero > .container > p { max-width: 760px; margin: 0 auto; color: var(--text-secondary); font-size: clamp(1.03rem, 2vw, 1.18rem); }

.curriculum-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 940px;
  margin: 38px auto 34px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 20, 31, .72);
}

.curriculum-metric { padding: 20px 14px; border-right: 1px solid rgba(0, 229, 255, .16); }
.curriculum-metric:last-child { border-right: 0; }
.curriculum-metric strong { display: block; color: var(--btc-orange); font: 700 clamp(1.25rem, 2.6vw, 1.8rem)/1 var(--font-display); }
.curriculum-metric span { display: block; margin-top: 7px; color: var(--text-muted); font: .68rem/1.35 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

.learning-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.learning-path-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 29, 44, .93), rgba(10, 16, 25, .98));
}

.learning-path-card__step { color: var(--matrix-green); font: .72rem var(--font-mono); letter-spacing: .14em; }
.learning-path-card h3 { margin: 13px 0 10px; }
.learning-path-card p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.learning-path-card::after { content: ""; position: absolute; left: 28px; bottom: 0; width: 72px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--btc-orange)); }

.curriculum-catalog { max-width: 1000px; margin: 0 auto; display: grid; gap: 14px; }
.curriculum-panel { border: 1px solid var(--border-subtle); border-radius: 13px; overflow: hidden; background: rgba(14, 22, 34, .78); transition: border-color .2s ease, box-shadow .2s ease; }
.curriculum-panel[open] { border-color: rgba(0, 229, 255, .42); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.curriculum-panel summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 21px 24px; cursor: pointer; list-style: none; }
.curriculum-panel summary::-webkit-details-marker { display: none; }
.curriculum-panel summary:hover { background: rgba(0, 229, 255, .035); }
.curriculum-panel__number { color: var(--matrix-green); font: .76rem var(--font-mono); letter-spacing: .1em; }
.curriculum-panel__title { display: grid; gap: 4px; }
.curriculum-panel__title strong { color: var(--text-primary); font: 700 clamp(1.02rem, 2vw, 1.2rem) var(--font-display); }
.curriculum-panel__title small { color: var(--text-muted); font-size: .82rem; }
.curriculum-panel__indicator { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(0, 229, 255, .35); border-radius: 50%; color: var(--cyan); font: 1.1rem/1 var(--font-mono); transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.curriculum-panel[open] .curriculum-panel__indicator { transform: rotate(45deg); border-color: var(--btc-orange); color: var(--btc-orange); }
.curriculum-panel__body { padding: 0 24px 26px; border-top: 1px solid rgba(255, 255, 255, .075); }
.curriculum-panel__body > p { max-width: 800px; margin: 20px 0 18px; color: var(--text-secondary); }
.curriculum-lesson-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.curriculum-lesson-list li { position: relative; padding: 14px 16px 14px 42px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: rgba(4, 9, 16, .34); color: var(--text-secondary); font-size: .93rem; line-height: 1.55; }
.curriculum-lesson-list li::before { content: "›"; position: absolute; top: 12px; left: 17px; color: var(--cyan); font: 700 1.25rem/1 var(--font-mono); }
.curriculum-lesson-list strong { color: var(--text-primary); }
.curriculum-note { margin-top: 16px !important; padding: 13px 16px; border-left: 3px solid var(--btc-orange); border-radius: 0 8px 8px 0; background: rgba(247, 147, 26, .075); font-size: .88rem; }

.course-assurance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.course-assurance-card { padding: 30px; border: 1px solid var(--border-subtle); border-radius: 14px; background: rgba(12, 20, 31, .76); }
.course-assurance-card h3 { margin: 10px 0 14px; }
.course-assurance-card p { color: var(--text-secondary); }
.course-assurance-card ul { display: grid; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.course-assurance-card li { position: relative; padding-left: 20px; color: var(--text-secondary); }
.course-assurance-card li::before { content: "✓"; position: absolute; left: 0; color: var(--matrix-green); }
.course-assurance-card--boundary { border-color: rgba(247, 147, 26, .32); }
.course-assurance-card--boundary li::before { content: "—"; color: var(--btc-orange); }

.course-overview-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.course-overview-layout h2 { margin: 12px 0 16px; }
.course-overview-layout p { color: var(--text-secondary); }
.course-overview-layout .sales-video-companion { margin-top: 14px; }

.inclusions-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.inclusion-item { padding: 20px; border: 1px solid rgba(0, 229, 255, .22); border-radius: 10px; background: rgba(0, 229, 255, .035); }
.inclusion-item strong { display: block; color: var(--text-primary); font: 700 .98rem var(--font-display); }
.inclusion-item span { display: block; margin-top: 8px; color: var(--text-secondary); font-size: .86rem; line-height: 1.5; }

.course-faq { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.course-faq details { border: 1px solid var(--border-subtle); border-radius: 10px; background: rgba(17, 27, 40, .72); }
.course-faq summary { padding: 18px 20px; cursor: pointer; color: var(--text-primary); font: 700 1rem var(--font-display); }
.course-faq details > div { padding: 0 20px 19px; color: var(--text-secondary); }

.course-final-cta { text-align: center; }
.course-final-cta p { max-width: 670px; margin: 18px auto 30px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .curriculum-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curriculum-metric:nth-child(2) { border-right: 0; }
  .curriculum-metric:nth-child(-n+2) { border-bottom: 1px solid rgba(0, 229, 255, .16); }
  .learning-path-grid, .course-overview-layout { grid-template-columns: 1fr; }
  .inclusions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .curriculum-metrics { margin-top: 28px; }
  .curriculum-metric { padding: 16px 9px; }
  .curriculum-metric strong { font-size: 1.22rem; }
  .curriculum-metric span { font-size: .58rem; letter-spacing: .07em; }
  .learning-path-card, .course-assurance-card { padding: 22px; }
  .curriculum-panel summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 17px; }
  .curriculum-panel__number { font-size: .66rem; }
  .curriculum-panel__title small { font-size: .75rem; }
  .curriculum-panel__body { padding: 0 17px 19px; }
  .curriculum-lesson-list li { padding: 12px 13px 12px 34px; font-size: .88rem; }
  .curriculum-lesson-list li::before { top: 10px; left: 13px; }
  .course-assurance-grid, .inclusions-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Shared Course-Card Imagery — append to styles.css
   ========================================================================== */

.course-map-grid .card--visual,
.card-grid .card--visual {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #111c2b, #0d141e);
}

.course-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 229, 255, .24);
    background: #050a10;
}

.course-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 10, 16, 0) 42%, rgba(5, 10, 16, .48) 100%);
}

.course-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.card--visual:hover .course-card-media img {
    transform: scale(1.035);
    filter: saturate(1.08) brightness(1.04);
}

.course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 27px;
}

.course-card-body .card-num {
    margin-bottom: 10px;
}

.course-card-body h3 {
    margin-top: 0;
}

.course-card-body p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .course-card-body {
        padding: 20px;
    }
}
/* ==========================================================================
   Premium Course Page — curriculum-first redesign
   Append to styles.css after the shared course-card image rules.
   ========================================================================== */

.course-library-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 116px) 0 clamp(58px, 8vw, 88px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, .14), transparent 45%),
    radial-gradient(circle at 14% 82%, rgba(247, 147, 26, .12), transparent 42%),
    #0a0e14;
  border-bottom: 1px solid var(--border-subtle);
}

.course-library-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(0, 229, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.course-library-hero .container { position: relative; z-index: 1; max-width: 960px; }
.course-library-hero h1 { max-width: 850px; margin: 18px auto; }
.course-library-hero > .container > p { max-width: 760px; margin: 0 auto; color: var(--text-secondary); font-size: clamp(1.03rem, 2vw, 1.18rem); }

.curriculum-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 940px;
  margin: 38px auto 34px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 20, 31, .72);
}

.curriculum-metric { padding: 20px 14px; border-right: 1px solid rgba(0, 229, 255, .16); }
.curriculum-metric:last-child { border-right: 0; }
.curriculum-metric strong { display: block; color: var(--btc-orange); font: 700 clamp(1.25rem, 2.6vw, 1.8rem)/1 var(--font-display); }
.curriculum-metric span { display: block; margin-top: 7px; color: var(--text-muted); font: .68rem/1.35 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

.learning-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.learning-path-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 29, 44, .93), rgba(10, 16, 25, .98));
}

.learning-path-card__step { color: var(--matrix-green); font: .72rem var(--font-mono); letter-spacing: .14em; }
.learning-path-card h3 { margin: 13px 0 10px; }
.learning-path-card p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.learning-path-card::after { content: ""; position: absolute; left: 28px; bottom: 0; width: 72px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--btc-orange)); }

.curriculum-catalog { max-width: 1000px; margin: 0 auto; display: grid; gap: 14px; }
.curriculum-panel { border: 1px solid var(--border-subtle); border-radius: 13px; overflow: hidden; background: rgba(14, 22, 34, .78); transition: border-color .2s ease, box-shadow .2s ease; }
.curriculum-panel[open] { border-color: rgba(0, 229, 255, .42); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.curriculum-panel summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 21px 24px; cursor: pointer; list-style: none; }
.curriculum-panel summary::-webkit-details-marker { display: none; }
.curriculum-panel summary:hover { background: rgba(0, 229, 255, .035); }
.curriculum-panel__number { color: var(--matrix-green); font: .76rem var(--font-mono); letter-spacing: .1em; }
.curriculum-panel__title { display: grid; gap: 4px; }
.curriculum-panel__title strong { color: var(--text-primary); font: 700 clamp(1.02rem, 2vw, 1.2rem) var(--font-display); }
.curriculum-panel__title small { color: var(--text-muted); font-size: .82rem; }
.curriculum-panel__indicator { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(0, 229, 255, .35); border-radius: 50%; color: var(--cyan); font: 1.1rem/1 var(--font-mono); transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.curriculum-panel[open] .curriculum-panel__indicator { transform: rotate(45deg); border-color: var(--btc-orange); color: var(--btc-orange); }
.curriculum-panel__body { padding: 0 24px 26px; border-top: 1px solid rgba(255, 255, 255, .075); }
.curriculum-panel__body > p { max-width: 800px; margin: 20px 0 18px; color: var(--text-secondary); }
.curriculum-lesson-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.curriculum-lesson-list li { position: relative; padding: 14px 16px 14px 42px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: rgba(4, 9, 16, .34); color: var(--text-secondary); font-size: .93rem; line-height: 1.55; }
.curriculum-lesson-list li::before { content: "›"; position: absolute; top: 12px; left: 17px; color: var(--cyan); font: 700 1.25rem/1 var(--font-mono); }
.curriculum-lesson-list strong { color: var(--text-primary); }
.curriculum-note { margin-top: 16px !important; padding: 13px 16px; border-left: 3px solid var(--btc-orange); border-radius: 0 8px 8px 0; background: rgba(247, 147, 26, .075); font-size: .88rem; }

.course-assurance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.course-assurance-card { padding: 30px; border: 1px solid var(--border-subtle); border-radius: 14px; background: rgba(12, 20, 31, .76); }
.course-assurance-card h3 { margin: 10px 0 14px; }
.course-assurance-card p { color: var(--text-secondary); }
.course-assurance-card ul { display: grid; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.course-assurance-card li { position: relative; padding-left: 20px; color: var(--text-secondary); }
.course-assurance-card li::before { content: "✓"; position: absolute; left: 0; color: var(--matrix-green); }
.course-assurance-card--boundary { border-color: rgba(247, 147, 26, .32); }
.course-assurance-card--boundary li::before { content: "—"; color: var(--btc-orange); }

.course-overview-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.course-overview-layout h2 { margin: 12px 0 16px; }
.course-overview-layout p { color: var(--text-secondary); }
.course-overview-layout .sales-video-companion { margin-top: 14px; }

.inclusions-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.inclusion-item { padding: 20px; border: 1px solid rgba(0, 229, 255, .22); border-radius: 10px; background: rgba(0, 229, 255, .035); }
.inclusion-item strong { display: block; color: var(--text-primary); font: 700 .98rem var(--font-display); }
.inclusion-item span { display: block; margin-top: 8px; color: var(--text-secondary); font-size: .86rem; line-height: 1.5; }

.course-faq { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.course-faq details { border: 1px solid var(--border-subtle); border-radius: 10px; background: rgba(17, 27, 40, .72); }
.course-faq summary { padding: 18px 20px; cursor: pointer; color: var(--text-primary); font: 700 1rem var(--font-display); }
.course-faq details > div { padding: 0 20px 19px; color: var(--text-secondary); }

.course-final-cta { text-align: center; }
.course-final-cta p { max-width: 670px; margin: 18px auto 30px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .curriculum-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curriculum-metric:nth-child(2) { border-right: 0; }
  .curriculum-metric:nth-child(-n+2) { border-bottom: 1px solid rgba(0, 229, 255, .16); }
  .learning-path-grid, .course-overview-layout { grid-template-columns: 1fr; }
  .inclusions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .curriculum-metrics { margin-top: 28px; }
  .curriculum-metric { padding: 16px 9px; }
  .curriculum-metric strong { font-size: 1.22rem; }
  .curriculum-metric span { font-size: .58rem; letter-spacing: .07em; }
  .learning-path-card, .course-assurance-card { padding: 22px; }
  .curriculum-panel summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 17px; }
  .curriculum-panel__number { font-size: .66rem; }
  .curriculum-panel__title small { font-size: .75rem; }
  .curriculum-panel__body { padding: 0 17px 19px; }
  .curriculum-lesson-list li { padding: 12px 13px 12px 34px; font-size: .88rem; }
  .curriculum-lesson-list li::before { top: 10px; left: 13px; }
  .course-assurance-grid, .inclusions-grid { grid-template-columns: 1fr; }
}
/* ==========================================================================
   Conversion-path update — How Premium Access Works page
   Append to styles.css after the Premium course-page styles.
   ========================================================================== */

.membership-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.membership-step {
  position: relative;
  min-height: 238px;
  padding: 28px 24px 26px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(17, 29, 44, .94), rgba(10, 16, 25, .98));
}

.membership-step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--btc-orange));
}

.membership-step > span {
  display: block;
  color: var(--matrix-green);
  font: .74rem var(--font-mono);
  letter-spacing: .14em;
}

.membership-step h3 {
  margin: 17px 0 12px;
  color: var(--text-primary);
  font-size: 1.15rem;
}

.membership-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .93rem;
  line-height: 1.62;
}

.how-it-works-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta-banner .how-it-works-cta-row {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .membership-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .membership-step-grid { grid-template-columns: 1fr; }
  .membership-step { min-height: 0; padding: 24px 20px; }
  .membership-step::after { left: 20px; }
  .how-it-works-cta-row { align-items: stretch; flex-direction: column; }
  .how-it-works-cta-row .btn { width: 100%; }
}


/* ==========================================================================
   how it works link
   ========================================================================== */


.video-companion-link {
  margin: 14px 0 0;
  text-align: left;
}

.video-companion-link--centered {
  text-align: center;
}


.video-companion-link a {
  color: var(--cyan);
  font: 0.76rem var(--font-mono);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.video-companion-link a:hover {
  color: var(--btc-orange);
  text-decoration: underline;
}

/* ==========================================================================
   Replacement blog-post series — append to styles.css
   ========================================================================== */

.post-layout > h1 {
  max-width: 950px;
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.08;
}

.post-body {
  max-width: 800px;
}

.post-body > hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--border-subtle);
}

.post-body .post-disclaimer {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid rgba(247, 147, 26, .42);
  border-left: 4px solid var(--btc-orange);
  border-radius: 8px;
  background: rgba(247, 147, 26, .06);
}

.post-body .post-disclaimer p {
  margin: 0;
  color: var(--text-primary);
  font-size: .94rem;
  line-height: 1.65;
}

.post-section-label {
  margin-top: 44px !important;
}

.post-key-takeaways {
  display: grid;
  gap: 12px;
  margin: 18px 0 34px !important;
  padding: 0 !important;
  list-style: none;
}

.post-key-takeaways li {
  position: relative;
  margin: 0 !important;
  padding: 16px 18px 16px 46px;
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 9px;
  background: rgba(0, 229, 255, .035);
}

.post-key-takeaways li::before {
  content: "↗";
  position: absolute;
  top: 15px;
  left: 18px;
  color: var(--cyan);
  font-weight: 700;
}

.post-toc {
  margin: 16px 0 36px !important;
  padding: 20px 24px 20px 42px !important;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--bg-panel-2);
}

.post-toc li { margin-bottom: 9px !important; }
.post-toc a { color: var(--cyan); text-decoration: none; }
.post-toc a:hover { color: var(--btc-orange); text-decoration: underline; }

.post-table-wrap {
  margin: 24px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.post-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--bg-panel-2);
}

.post-table th,
.post-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.post-table th {
  color: var(--text-primary);
  background: rgba(0, 229, 255, .06);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
}

.post-table tr:last-child td { border-bottom: 0; }
.post-references-heading { margin-top: 48px !important; }

.post-library-cta {
  margin-top: 58px;
  padding: 42px;
  border: 1px solid rgba(247, 147, 26, .34);
  border-radius: 12px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(247, 147, 26, .12), transparent 62%), var(--bg-panel-2);
}

.post-library-cta h2 { margin: 12px 0; }
.post-library-cta p { max-width: 620px; margin: 0 auto 22px; }
.post-library-cta p:last-child { margin: 16px 0 0; }
.post-library-cta p:last-child a { color: var(--cyan); font-family: var(--font-mono); font-size: .82rem; text-decoration: none; }

@media (max-width: 640px) {
  .post-layout { padding: 42px 18px; }
  .post-body .post-disclaimer { padding: 18px; }
  .post-toc { padding-left: 34px !important; }
  .post-library-cta { padding: 30px 20px; }
}


/* ==========================================================================
   Replacement blog-post series — append to styles.css
   ========================================================================== */

.post-layout > h1 {
  max-width: 950px;
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.08;
}

.post-body {
  max-width: 800px;
}

.post-body > hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--border-subtle);
}

.post-body .post-disclaimer {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid rgba(247, 147, 26, .42);
  border-left: 4px solid var(--btc-orange);
  border-radius: 8px;
  background: rgba(247, 147, 26, .06);
}

.post-body .post-disclaimer p {
  margin: 0;
  color: var(--text-primary);
  font-size: .94rem;
  line-height: 1.65;
}

.post-section-label {
  margin-top: 44px !important;
}

.post-key-takeaways {
  display: grid;
  gap: 12px;
  margin: 18px 0 34px !important;
  padding: 0 !important;
  list-style: none;
}

.post-key-takeaways li {
  position: relative;
  margin: 0 !important;
  padding: 16px 18px 16px 46px;
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 9px;
  background: rgba(0, 229, 255, .035);
}

.post-key-takeaways li::before {
  content: "↗";
  position: absolute;
  top: 15px;
  left: 18px;
  color: var(--cyan);
  font-weight: 700;
}

.post-toc {
  margin: 16px 0 36px !important;
  padding: 20px 24px 20px 42px !important;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--bg-panel-2);
}

.post-toc li { margin-bottom: 9px !important; }
.post-toc a { color: var(--cyan); text-decoration: none; }
.post-toc a:hover { color: var(--btc-orange); text-decoration: underline; }

.post-table-wrap {
  margin: 24px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.post-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--bg-panel-2);
}

.post-table th,
.post-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.post-table th {
  color: var(--text-primary);
  background: rgba(0, 229, 255, .06);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
}

.post-table tr:last-child td { border-bottom: 0; }
.post-references-heading { margin-top: 48px !important; }

.post-library-cta {
  margin-top: 58px;
  padding: 42px;
  border: 1px solid rgba(247, 147, 26, .34);
  border-radius: 12px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(247, 147, 26, .12), transparent 62%), var(--bg-panel-2);
}

.post-library-cta h2 { margin: 12px 0; }
.post-library-cta p { max-width: 620px; margin: 0 auto 22px; }
.post-library-cta p:last-child { margin: 16px 0 0; }
.post-library-cta p:last-child a { color: var(--cyan); font-family: var(--font-mono); font-size: .82rem; text-decoration: none; }

@media (max-width: 640px) {
  .post-layout { padding: 42px 18px; }
  .post-body .post-disclaimer { padding: 18px; }
  .post-toc { padding-left: 34px !important; }
  .post-library-cta { padding: 30px 20px; }
}
/* ==========================================================================
   Premium blog visual upgrade — append after existing blog article CSS
   ========================================================================== */

.post-layout {
  position: relative;
  isolation: isolate;
}

.post-layout::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
  pointer-events: none;
}

.post-layout .mono-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.post-layout .mono-label::before {
  content: "//";
  color: var(--btc-orange);
}

.post-layout > h1 {
  text-wrap: balance;
  max-width: 980px;
}

.post-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 18px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(4, 16, 30, .66);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .015em;
}

.post-hero-image {
  position: relative;
  margin: 32px 0 42px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, .35);
  border-radius: 14px;
  background: #040d18;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .34), 0 0 0 5px rgba(0, 229, 255, .025);
}

.post-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(0, 229, 255, .07), transparent 30%, transparent 72%, rgba(247, 147, 26, .08));
}

.post-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-hero-image figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 20px;
  color: rgba(235, 247, 255, .84);
  background: linear-gradient(transparent, rgba(2, 8, 16, .92));
  font-family: var(--font-mono);
  font-size: .71rem;
  line-height: 1.55;
}

.post-body > h2:not(.post-section-label):not(.post-risk-heading):not(.post-references-heading) {
  position: relative;
  margin-top: 54px;
  padding: 18px 20px 18px 23px;
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 229, 255, .075), rgba(0, 229, 255, .018));
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.post-body > h2:not(.post-section-label):not(.post-risk-heading):not(.post-references-heading)::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, .6);
}

.post-body h3 {
  margin-top: 30px;
  color: var(--text-primary);
  font-size: 1.06rem;
}

.post-body h3::before {
  content: "↗";
  margin-right: 9px;
  color: var(--btc-orange);
  font-family: var(--font-mono);
}

.post-body code {
  padding: 2px 6px;
  border: 1px solid rgba(0, 229, 255, .24);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(0, 229, 255, .05);
  font-family: var(--font-mono);
  font-size: .88em;
}

.post-ecosystem-panel {
  margin: 44px 0;
  padding: 32px;
  border: 1px solid rgba(247, 147, 26, .34);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(247, 147, 26, .13), transparent 32%),
    linear-gradient(135deg, rgba(0, 229, 255, .055), rgba(4, 16, 30, .88) 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.post-ecosystem-panel > h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.post-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.post-resource-grid a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 9px;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(2, 12, 24, .64);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.post-resource-grid a:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  background: rgba(0, 229, 255, .07);
}

.post-resource-grid strong { color: var(--cyan); font-family: var(--font-mono); font-size: .8rem; }
.post-resource-grid span { font-size: .86rem; line-height: 1.55; }

.post-ecosystem-note {
  margin: 0 !important;
  padding: 16px 18px;
  border-left: 3px solid var(--btc-orange);
  background: rgba(247, 147, 26, .06);
  font-size: .93rem;
}

.blog-card {
  overflow: hidden;
  border-color: rgba(0, 229, 255, .22);
  background: linear-gradient(155deg, rgba(7, 23, 40, .94), rgba(3, 12, 23, .98));
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.blog-card-image-link {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, .22);
  background: #020914;
}

.blog-card-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.blog-card:hover .blog-card-image-link img {
  transform: scale(1.045);
  filter: saturate(1.1);
}

.blog-card-body { padding: 24px; }
.blog-card .blog-card-date { color: var(--btc-orange); font-family: var(--font-mono); font-size: .73rem; letter-spacing: .045em; }
.blog-card .read-more { color: var(--cyan); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }

@media (max-width: 680px) {
  .post-meta { border-radius: 8px; line-height: 1.5; }
  .post-hero-image { margin: 25px 0 32px; border-radius: 10px; }
  .post-hero-image figcaption { position: static; padding: 12px 14px; background: rgba(2, 8, 16, .94); }
  .post-body > h2:not(.post-section-label):not(.post-risk-heading):not(.post-references-heading) { margin-top: 38px; padding: 16px 17px 16px 20px; }
  .post-ecosystem-panel { margin: 34px 0; padding: 22px 18px; }
  .post-resource-grid { grid-template-columns: 1fr; }
  .post-resource-grid a { min-height: auto; }
}
/* ==========================================================================
   Source-labeled official product visuals — append after blog visual CSS
   ========================================================================== */

.post-source-visual {
  display: grid;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  margin: 34px 0 38px;
  padding: 20px;
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .045), rgba(2, 12, 24, .72));
}

.post-source-visual__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, .28);
  border-radius: 12px;
  background: #020914;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
}

.post-source-visual__media img {
  display: block;
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
}

.post-source-visual__caption .mono-label {
  color: var(--btc-orange);
}

.post-source-visual__caption p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.65;
}

.post-source-visual__caption a {
  color: var(--cyan);
  text-decoration: none;
}

.post-source-visual__caption a:hover { text-decoration: underline; }

.post-source-visual--wide {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #020914;
}

.post-source-visual--wide .post-source-visual__media {
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.post-source-visual--wide .post-source-visual__media img {
  width: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-source-visual--wide .post-source-visual__caption {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(0, 229, 255, .18);
}

@media (max-width: 640px) {
  .post-source-visual {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .post-source-visual__media {
    min-height: 260px;
  }

  .post-source-visual--wide { padding: 0; }
  .post-source-visual--wide .post-source-visual__caption { padding: 16px; }
}

/* ==========================================================================
   Replacement blog-post series — append to styles.css
   ========================================================================== */

.post-layout > h1 {
  max-width: 950px;
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.08;
}

.post-body {
  max-width: 800px;
}

.post-body > hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--border-subtle);
}

.post-body .post-disclaimer {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid rgba(247, 147, 26, .42);
  border-left: 4px solid var(--btc-orange);
  border-radius: 8px;
  background: rgba(247, 147, 26, .06);
}

.post-body .post-disclaimer p {
  margin: 0;
  color: var(--text-primary);
  font-size: .94rem;
  line-height: 1.65;
}

.post-section-label {
  margin-top: 44px !important;
}

.post-key-takeaways {
  display: grid;
  gap: 12px;
  margin: 18px 0 34px !important;
  padding: 0 !important;
  list-style: none;
}

.post-key-takeaways li {
  position: relative;
  margin: 0 !important;
  padding: 16px 18px 16px 46px;
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 9px;
  background: rgba(0, 229, 255, .035);
}

.post-key-takeaways li::before {
  content: "↗";
  position: absolute;
  top: 15px;
  left: 18px;
  color: var(--cyan);
  font-weight: 700;
}

.post-toc {
  margin: 16px 0 36px !important;
  padding: 20px 24px 20px 42px !important;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--bg-panel-2);
}

.post-toc li { margin-bottom: 9px !important; }
.post-toc a { color: var(--cyan); text-decoration: none; }
.post-toc a:hover { color: var(--btc-orange); text-decoration: underline; }

.post-table-wrap {
  margin: 24px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.post-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--bg-panel-2);
}

.post-table th,
.post-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.post-table th {
  color: var(--text-primary);
  background: rgba(0, 229, 255, .06);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
}

.post-table tr:last-child td { border-bottom: 0; }
.post-references-heading { margin-top: 48px !important; }

.post-library-cta {
  margin-top: 58px;
  padding: 42px;
  border: 1px solid rgba(247, 147, 26, .34);
  border-radius: 12px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(247, 147, 26, .12), transparent 62%), var(--bg-panel-2);
}

.post-library-cta h2 { margin: 12px 0; }
.post-library-cta p { max-width: 620px; margin: 0 auto 22px; }
.post-library-cta p:last-child { margin: 16px 0 0; }
.post-library-cta p:last-child a { color: var(--cyan); font-family: var(--font-mono); font-size: .82rem; text-decoration: none; }

@media (max-width: 640px) {
  .post-layout { padding: 42px 18px; }
  .post-body .post-disclaimer { padding: 18px; }
  .post-toc { padding-left: 34px !important; }
  .post-library-cta { padding: 30px 20px; }
}
/* ==========================================================================
   Premium blog visual upgrade — append after existing blog article CSS
   ========================================================================== */

.post-layout {
  position: relative;
  isolation: isolate;
}

.post-layout::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
  pointer-events: none;
}

.post-layout .mono-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.post-layout .mono-label::before {
  content: "//";
  color: var(--btc-orange);
}

.post-layout > h1 {
  text-wrap: balance;
  max-width: 980px;
}

.post-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 18px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(4, 16, 30, .66);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .015em;
}

.post-hero-image {
  position: relative;
  margin: 32px 0 42px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, .35);
  border-radius: 14px;
  background: #040d18;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .34), 0 0 0 5px rgba(0, 229, 255, .025);
}

.post-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(0, 229, 255, .07), transparent 30%, transparent 72%, rgba(247, 147, 26, .08));
}

.post-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-hero-image figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 20px;
  color: rgba(235, 247, 255, .84);
  background: linear-gradient(transparent, rgba(2, 8, 16, .92));
  font-family: var(--font-mono);
  font-size: .71rem;
  line-height: 1.55;
}

.post-body > h2:not(.post-section-label):not(.post-risk-heading):not(.post-references-heading) {
  position: relative;
  margin-top: 54px;
  padding: 18px 20px 18px 23px;
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 229, 255, .075), rgba(0, 229, 255, .018));
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.post-body > h2:not(.post-section-label):not(.post-risk-heading):not(.post-references-heading)::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, .6);
}

.post-body h3 {
  margin-top: 30px;
  color: var(--text-primary);
  font-size: 1.06rem;
}

.post-body h3::before {
  content: "↗";
  margin-right: 9px;
  color: var(--btc-orange);
  font-family: var(--font-mono);
}

.post-body code {
  padding: 2px 6px;
  border: 1px solid rgba(0, 229, 255, .24);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(0, 229, 255, .05);
  font-family: var(--font-mono);
  font-size: .88em;
}

.post-ecosystem-panel {
  margin: 44px 0;
  padding: 32px;
  border: 1px solid rgba(247, 147, 26, .34);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(247, 147, 26, .13), transparent 32%),
    linear-gradient(135deg, rgba(0, 229, 255, .055), rgba(4, 16, 30, .88) 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.post-ecosystem-panel > h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.post-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.post-resource-grid a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 9px;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(2, 12, 24, .64);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.post-resource-grid a:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  background: rgba(0, 229, 255, .07);
}

.post-resource-grid strong { color: var(--cyan); font-family: var(--font-mono); font-size: .8rem; }
.post-resource-grid span { font-size: .86rem; line-height: 1.55; }

.post-ecosystem-note {
  margin: 0 !important;
  padding: 16px 18px;
  border-left: 3px solid var(--btc-orange);
  background: rgba(247, 147, 26, .06);
  font-size: .93rem;
}

.blog-card {
  overflow: hidden;
  border-color: rgba(0, 229, 255, .22);
  background: linear-gradient(155deg, rgba(7, 23, 40, .94), rgba(3, 12, 23, .98));
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.blog-card-image-link {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, .22);
  background: #020914;
}

.blog-card-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.blog-card:hover .blog-card-image-link img {
  transform: scale(1.045);
  filter: saturate(1.1);
}

.blog-card-body { padding: 24px; }
.blog-card .blog-card-date { color: var(--btc-orange); font-family: var(--font-mono); font-size: .73rem; letter-spacing: .045em; }
.blog-card .read-more { color: var(--cyan); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }

@media (max-width: 680px) {
  .post-meta { border-radius: 8px; line-height: 1.5; }
  .post-hero-image { margin: 25px 0 32px; border-radius: 10px; }
  .post-hero-image figcaption { position: static; padding: 12px 14px; background: rgba(2, 8, 16, .94); }
  .post-body > h2:not(.post-section-label):not(.post-risk-heading):not(.post-references-heading) { margin-top: 38px; padding: 16px 17px 16px 20px; }
  .post-ecosystem-panel { margin: 34px 0; padding: 22px 18px; }
  .post-resource-grid { grid-template-columns: 1fr; }
  .post-resource-grid a { min-height: auto; }
}
/* ==========================================================================
   Source-labeled official product visuals — append after blog visual CSS
   ========================================================================== */

.post-source-visual {
  display: grid;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  margin: 34px 0 38px;
  padding: 20px;
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .045), rgba(2, 12, 24, .72));
}

.post-source-visual__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, .28);
  border-radius: 12px;
  background: #020914;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
}

.post-source-visual__media img {
  display: block;
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
}

.post-source-visual__caption .mono-label {
  color: var(--btc-orange);
}

.post-source-visual__caption p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.65;
}

.post-source-visual__caption a {
  color: var(--cyan);
  text-decoration: none;
}

.post-source-visual__caption a:hover { text-decoration: underline; }

.post-source-visual--wide {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #020914;
}

.post-source-visual--wide .post-source-visual__media {
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.post-source-visual--wide .post-source-visual__media img {
  width: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-source-visual--wide .post-source-visual__caption {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(0, 229, 255, .18);
}

@media (max-width: 640px) {
  .post-source-visual {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .post-source-visual__media {
    min-height: 260px;
  }

  .post-source-visual--wide { padding: 0; }
  .post-source-visual--wide .post-source-visual__caption { padding: 16px; }
}

/* ==========================================================================
   Official app-icon recognition blocks — append after blog visual CSS
   ========================================================================== */

.post-app-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 147, 26, .24);
  border-radius: 10px;
  background: rgba(247, 147, 26, .055);
}

.post-app-brand__icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
}

.post-app-brand__icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}


@media (max-width: 640px) {
  .post-app-brand__icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 12px;
  }
}

/* Restore the stacked text layout in official app-icon cards */
.post-app-brand__copy {
  display: block;
  min-width: 0;
}

.post-app-brand__copy .mono-label,
.post-app-brand__copy strong,
.post-app-brand__copy .image-caption {
  display: block;
}

.post-app-brand__copy .mono-label {
  margin: 0 0 3px;
}

.post-app-brand__copy strong {
  margin: 0 0 3px;
}

.post-app-brand__copy .image-caption {
  margin: 0;
}




