/**
 * MinerCore Cloud Mining Page Stylesheet
 * Official Light Theme Redesign — High Conversion Hashrate Slider Console
 * Matches official MinerCore Light Design System tokens (00-variables.css)
 */

:root {
    --cm-primary-blue: #2563eb;
    --cm-primary-hover: #1d4ed8;
    --cm-primary-light: #eff6ff;
    --cm-primary-border: #bfdbfe;
    --cm-accent-green: #16a34a;
    --cm-accent-green-bg: #f0fdf4;
    --cm-accent-green-border: #bbf7d0;
    --cm-bg-page: #f8fafc;
    --cm-card-bg: #ffffff;
    --cm-border-light: #e2e8f0;
    --cm-border-hover: #cbd5e1;
    --cm-text-dark: #0f172a;
    --cm-text-body: #334155;
    --cm-text-slate: #64748b;
    --cm-text-dim: #94a3b8;
    --cm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --cm-shadow-card: 0 2px 5px rgba(0, 0, 0, 0.04), 0 12px 28px -4px rgba(15, 23, 42, 0.06);
    --cm-shadow-hover: 0 14px 34px -4px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    --cm-cyan-accent: #00e5ff;
    --cm-cyan-glow: rgba(0, 229, 255, 0.25);
    --cm-dark-navy: #081324;
    --cm-dark-card: #0d1e35;
    --cm-dark-card-border: #1a304e;
}

/* Base Wrapper Reset & Safe Overflow */
.cloud-mining-page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background-color: var(--cm-bg-page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
    color: var(--cm-text-body);
    line-height: 1.5;
    box-sizing: border-box;
}

.cloud-mining-page-wrapper *,
.cloud-mining-page-wrapper *::before,
.cloud-mining-page-wrapper *::after {
    box-sizing: border-box;
}

.cm-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION (Light, Full Width, Compact Height)
══════════════════════════════════════════════════════════ */
.cm-hero {
    position: relative;
    padding: 42px 0 48px;
}

.cm-breadcrumb {
    font-size: 12px;
    color: #94a3b8 !important;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 500;
}

.cm-breadcrumb a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cm-breadcrumb a:hover {
    color: #ffffff !important;
}

.cm-breadcrumb .cm-sep {
    font-size: 10px;
    color: #64748b !important;
}

.cm-breadcrumb .cm-current {
    color: #ffffff !important;
    font-weight: 600;
}

.cm-hero-header-center {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px;
}

.cm-hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent, #38bdf8) !important;
    font-size: var(--text-xs, 12px);
    font-weight: var(--fw-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.cm-hero-title {
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1.15;
    font-weight: var(--fw-semibold);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.cm-highlight-blue {
    color: #38bdf8 !important;
    -webkit-text-fill-color: #38bdf8 !important;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
}

.cm-hero-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #cbd5e1 !important;
    margin: 0 auto;
    max-width: 660px;
}

.cm-hero-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cm-hero-terms-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8 !important;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cm-hero-terms-btn:hover {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #06111f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

/* Hero Stats Strip (4 Sleek Glass Pills with Colored Accent Borders) */
.cm-hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.cm-stat-pill {
    position: relative;
    background: rgba(13, 27, 48, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

/* Distinct Top Accent Bar for Each Pill */
.cm-stat-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--pill-accent-color, #38bdf8);
    opacity: 0.85;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.cm-stat-pill:hover {
    transform: translateY(-2px);
    border-color: var(--pill-accent-border, rgba(56, 189, 248, 0.45)) !important;
    background: rgba(18, 38, 66, 0.94) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cm-stat-pill:hover::before {
    opacity: 1;
    height: 3.5px;
}

/* Individual Pill Accent Variants */
.cm-stat-pill--blue {
    --pill-accent-color: linear-gradient(90deg, #38bdf8, #2563eb);
    --pill-accent-border: rgba(56, 189, 248, 0.5);
}
.cm-stat-pill--green {
    --pill-accent-color: linear-gradient(90deg, #34d399, #059669);
    --pill-accent-border: rgba(52, 211, 153, 0.5);
}
.cm-stat-pill--amber {
    --pill-accent-color: linear-gradient(90deg, #fbbf24, #d97706);
    --pill-accent-border: rgba(251, 191, 36, 0.5);
}
.cm-stat-pill--purple {
    --pill-accent-color: linear-gradient(90deg, #c084fc, #7c3aed);
    --pill-accent-border: rgba(192, 132, 252, 0.5);
}

.cm-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-icon-blue   { background: rgba(37, 99, 235, 0.22) !important; color: #60a5fa !important; }
.cm-icon-green  { background: rgba(16, 185, 129, 0.22) !important; color: #34d399 !important; }
.cm-icon-amber  { background: rgba(217, 119, 6, 0.22) !important; color: #fbbf24 !important; }
.cm-icon-purple { background: rgba(124, 58, 237, 0.22) !important; color: #c084fc !important; }

.cm-stat-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.25;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.cm-stat-text span {
    display: block;
    font-size: 11px;
    color: #94a3b8 !important;
    line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════
   SECTION 2: STREAMLINED HASHRATE BUILDER
══════════════════════════════════════════════════════════ */
.cm-builder-section {
    padding: 44px 0 54px;
}

.cm-builder-head {
    text-align: center;
    margin-bottom: 32px;
}

.cm-section-pre {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cm-primary-blue);
    margin-bottom: 6px;
}

.cm-section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}

.cm-section-sub {
    font-size: 14px;
    color: var(--cm-text-slate);
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.55;
}

/* 2-Column Grid Layout */
.cm-configurator-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Every grid/flex layer must be allowed to shrink inside narrow viewports. */
.cm-configurator-grid > *,
.cm-controls-col > *,
.cm-control-block > *,
.cm-estimate-col > *,
.cm-buybox-card > *,
.cm-slider-row > *,
.cm-block-head-flex > *,
.cm-buybox-head > *,
.cm-selected-capacity-pill > *,
.cm-fee-rows > *,
.cm-fee-rows li > *,
.cm-assurance-item > * {
    min-width: 0;
}

/* Left Column: Controls */
.cm-controls-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--cm-card-bg);
    border: 1px solid var(--cm-border-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--cm-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cm-control-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid var(--cm-border-light);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}

#cm-step-asset {
    background: #fbfdff;
    border-left: 3px solid #3b82f6;
    padding: 16px 18px;
}

#cm-step-hashrate {
    background: #f8fafc;
    border-left: 3px solid #0284c7;
}

#cm-step-duration {
    background: #fbfdff;
    border-left: 3px solid #10b981;
}

.cm-block-label {
    display: block;
    font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: var(--cm-text-slate);
    margin-bottom: 12px;
}

.cm-block-head-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.cm-block-head-flex .cm-block-label {
    margin-bottom: 0;
}

.cm-live-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.cm-block-head-flex .cm-live-sync-pill {
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.12);
}

/* Step 1: Coins Grid — Single Row on Large Screens */
.cm-coins-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
    gap: 10px;
    width: 100%;
}

.cm-coin-card {
    background: #ffffff;
    border: 1.5px solid var(--cm-border-light, #e2e8f0);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: start;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
    outline: none;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
}

.cm-coin-card:hover {
    border-color: #93c5fd;
    background: #fbfdff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.cm-coin-card.is-selected {
    border-color: var(--cm-primary-blue, #2563eb);
    background: #eff6ff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}

.cm-coin-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.cm-coin-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: var(--fw-semibold, 600);
    color: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cm-coin-icon-wrapper .cm-coin-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.cm-coin-badge-kas { background: #70c7ba; }
.cm-coin-badge-btc { background: #f59e0b; }
.cm-coin-badge-dogeltc, .cm-coin-badge-doge { background: #d97706; }
.cm-coin-badge-xmr { background: #ea580c; }
.cm-coin-badge-zeczen, .cm-coin-badge-zec { background: #0284c7; }
.cm-coin-badge-etc { background: #059669; }
.cm-coin-badge-alph { background: #ff5a00; }
.cm-coin-badge-ckb { background: #00e599; }
.cm-coin-badge-ltc { background: #345d9d; }

.cm-coin-algo {
    font-size: 9.5px;
    font-weight: 700;
    font-family: monospace;
    padding: 2px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65px;
    text-align: center;
    letter-spacing: -0.01em;
}

.cm-coin-card.is-selected .cm-coin-algo {
    background: #dbeafe;
    color: #1e40af;
}

.cm-coin-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cm-coin-sym {
    font-size: 13px;
    font-weight: 700;
    color: var(--cm-text-dark, #0f172a);
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-coin-card.is-selected .cm-coin-sym {
    color: #1d4ed8;
}

.cm-coin-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--cm-text-slate, #64748b);
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────
   Live On-Chain Network Benchmark Strip (Institutional 2-Tier Feed)
   ───────────────────────────────────────────────────────────── */
.cm-network-benchmark-strip {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.cm-bm-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.cm-bm-brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-bm-pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: cm-bm-pulse 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes cm-bm-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.cm-bm-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    white-space: nowrap;
}

.cm-bm-coin-badge {
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.cm-bm-snapshot-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #64748b;
}

.cm-bm-snapshot-label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 10.5px;
}

.cm-bm-val--time {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.cm-bm-sub-live {
    color: #10b981;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 9.5px;
    letter-spacing: 0.03em;
}

.cm-bm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.cm-bm-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    transition: all 0.15s ease;
}

.cm-bm-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.cm-bm-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-bm-val {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-bm-val--highlight {
    color: #059669;
}

@media (max-width: 768px) {
    .cm-bm-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .cm-bm-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .cm-bm-metrics-grid .cm-bm-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .cm-bm-metrics-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .cm-bm-metrics-grid .cm-bm-card:last-child {
        grid-column: span 1;
    }
}

/* Step 2: Hashrate Slider Section */
.cm-hashrate-counter-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cm-counter-copy .cm-counter-label {
    display: block;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e40af;
}

.cm-counter-copy .cm-counter-hint {
    display: block;
    font-size: 11px;
    color: var(--cm-text-slate);
    margin-top: 2px;
}

.cm-hashrate-live-pill {
    font-size: 28px;
    font-weight: var(--fw-semibold);
    font-family: "Inter", monospace, sans-serif;
    color: var(--cm-primary-blue);
    line-height: 1;
}

.cm-hashrate-live-pill .cm-live-unit {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-slate);
    margin-left: 2px;
}

/* Slider Track Row */
.cm-slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cm-slider-track-box {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.cm-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(to right, #2563eb 0%, #2563eb 25%, #e2e8f0 25%, #e2e8f0 100%);
    outline: none;
    cursor: pointer;
    margin: 0;
}

.cm-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cm-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6);
}

.cm-range-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    cursor: pointer;
}

.cm-range-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-family: monospace;
    font-weight: 600;
    color: var(--cm-text-dim);
    margin-top: 6px;
}

.cm-direct-input-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--cm-border-light);
    border-radius: 10px;
    padding: 0 10px;
    height: 44px;
    width: 120px;
    box-shadow: var(--cm-shadow-sm);
}

.cm-num-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
    font-family: monospace;
    background: transparent;
    padding: 0;
}

.cm-input-suffix {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-slate);
    margin-left: 4px;
}

/* Presets Row */
.cm-presets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cm-preset-btn {
    background: #f8fafc;
    border: 1px solid var(--cm-border-light);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.cm-preset-btn[data-preset="starter"] {
    background: #f0f9ff;
    border-color: #bae6fd;
}
.cm-preset-btn[data-preset="starter"] .cm-preset-tier {
    color: #0369a1;
}
.cm-preset-btn[data-preset="starter"] .cm-preset-val {
    color: #0c4a6e;
}

.cm-preset-btn[data-preset="popular"] {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.cm-preset-btn[data-preset="popular"] .cm-preset-tier {
    color: #1d4ed8;
}
.cm-preset-btn[data-preset="popular"] .cm-preset-val {
    color: #1e3a8a;
}

.cm-preset-btn[data-preset="professional"] {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.cm-preset-btn[data-preset="professional"] .cm-preset-tier {
    color: #15803d;
}
.cm-preset-btn[data-preset="professional"] .cm-preset-val {
    color: #14532d;
}

.cm-preset-btn:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.cm-preset-btn.is-active {
    border: 2px solid var(--cm-primary-blue) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.cm-preset-tier {
    display: block;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    color: var(--cm-text-slate);
    margin-bottom: 2px;
}

.cm-preset-btn.is-active .cm-preset-tier {
    color: var(--cm-primary-blue);
}

.cm-preset-val {
    display: block;
    font-size: 13px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
}

.cm-preset-btn.is-active .cm-preset-val {
    color: var(--cm-primary-blue);
}

.cm-preset-price {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--cm-text-slate);
    margin-top: 2px;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.cm-preset-btn[data-preset="starter"] .cm-preset-price {
    color: #0284c7;
}

.cm-preset-btn[data-preset="popular"] .cm-preset-price {
    color: #2563eb;
}

.cm-preset-btn[data-preset="professional"] .cm-preset-price {
    color: #16a34a;
}

.cm-preset-btn.is-active .cm-preset-price {
    color: var(--cm-primary-blue);
    font-weight: 700;
}

/* Step 3: Duration Selector */
.cm-duration-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cm-duration-card {
    background: #ffffff;
    border: 1px solid var(--cm-border-light);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    outline: none;
}

.cm-duration-card:hover {
    border-color: var(--cm-border-hover);
    background: #fbfdff;
}

.cm-duration-card.is-selected {
    border: 2px solid var(--cm-primary-blue);
    background: #eff6ff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.cm-duration-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.cm-duration-name {
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
}

.cm-duration-badge {
    font-size: 10px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 9999px;
}

.cm-badge-popular { background: #2563eb; color: #ffffff; }
.cm-badge-monthly { background: #e2e8f0; color: #475569; }

.cm-duration-term-val {
    display: block;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-body);
    margin-bottom: 2px;
}

.cm-duration-desc {
    display: block;
    font-size: 11px;
    color: var(--cm-text-slate);
    line-height: 1.35;
}

.cm-duration-check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--cm-border-light);
    background: #ffffff;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    flex-shrink: 0;
}

.cm-duration-card.is-selected .cm-duration-check-circle {
    background: var(--cm-primary-blue);
    border-color: var(--cm-primary-blue);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   RIGHT COLUMN: THE CONVERSION BUY BOX (Card)
══════════════════════════════════════════════════════════ */
.cm-estimate-col {
    position: sticky;
    top: 90px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cm-buybox-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--cm-card-bg);
    border: 1px solid var(--cm-border-light);
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--cm-shadow-card);
}

.cm-buybox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cm-border-light);
    margin-bottom: 16px;
}

.cm-buybox-sublabel {
    display: block;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--cm-text-dim);
}

.cm-buybox-title {
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
    margin: 2px 0 0;
}

.cm-live-calc-badge {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    color: var(--cm-accent-green);
    background: var(--cm-accent-green-bg);
    border: 1px solid var(--cm-accent-green-border);
    padding: 3px 9px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cm-calc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cm-accent-green);
}

.cm-selected-capacity-pill {
    background: #f8fafc;
    border: 1px solid var(--cm-border-light);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 18px;
}

.cm-cap-label { color: var(--cm-text-slate); font-weight: 500; }
.cm-cap-val { color: var(--cm-text-dark); font-weight: var(--fw-semibold); font-family: monospace; }

/* Price Block */
.cm-price-block {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cm-border-light);
}

.cm-price-label {
    display: block;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--cm-text-slate);
    margin-bottom: 2px;
}

.cm-price-amount {
    font-size: clamp(30px, 3.5vw, 38px);
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cm-price-note {
    display: block;
    font-size: 11px;
    color: var(--cm-text-slate);
    margin-top: 4px;
}

/* Net Output Highlight (Legacy fallback) */
.cm-output-block {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.cm-output-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cm-output-label {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #166534;
}

.cm-output-tag {
    font-size: 10px;
    font-weight: var(--fw-semibold);
    color: #15803d;
    background: #dcfce7;
    padding: 1px 6px;
    border-radius: 4px;
}

.cm-output-val-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cm-output-amount {
    font-size: 26px;
    font-weight: var(--fw-semibold);
    font-family: monospace;
    color: #15803d;
}

.cm-output-period {
    font-size: 12px;
    font-weight: var(--fw-semibold);
    color: #166534;
}

.cm-output-subtext {
    display: block;
    font-size: 10px;
    color: #4b7a5a;
    margin-top: 4px;
    line-height: 1.35;
}

.cm-output-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed rgba(22, 101, 52, 0.25);
}

.cm-output-sec-label {
    font-size: 11px;
    font-weight: var(--fw-semibold, 600);
    color: #166534;
    letter-spacing: 0.2px;
}

.cm-output-sec-amount {
    font-size: 13.5px;
    font-weight: 700;
    font-family: monospace;
    color: #15803d;
    background: rgba(220, 252, 231, 0.85);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(187, 247, 208, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   EXECUTIVE FINANCIAL SUMMARY CARD (GREEN THEME)
══════════════════════════════════════════════════════════ */
.cm-financial-card {
    background: linear-gradient(180deg, #f0fdf4 0%, #f7fef9 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px -2px rgba(22, 101, 52, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.cm-financial-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcfce7;
    margin-bottom: 12px;
}

.cm-fin-head-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #166534;
}

.cm-fin-roi-badge {
    font-size: 11.5px;
    font-weight: 700;
    font-family: monospace;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 2px 10px;
    border-radius: 9999px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(22, 101, 52, 0.06);
}

.cm-financial-table {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cm-fin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cm-fin-label {
    font-size: 12.5px;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
    flex: 1;
}

.cm-fin-subtag {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 400;
}

.cm-fin-value {
    font-size: 14px;
    font-family: monospace;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.cm-fin-row--output .cm-fin-value {
    font-size: 15.5px;
    font-weight: 700;
    color: #166534;
}

.cm-fin-divider {
    height: 1px;
    background: #bbf7d0;
    margin: 4px 0;
    border: none;
}

.cm-fin-row--profit {
    background: rgba(220, 252, 231, 0.75);
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 10px 12px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(22, 101, 52, 0.04);
}

.cm-fin-profit-label strong {
    font-size: 13px;
    font-weight: 700;
    color: #14532d;
}

.cm-fin-profit-val {
    font-size: 18px;
    font-weight: 800;
    color: #15803d;
    font-family: monospace;
    letter-spacing: -0.01em;
}

.cm-fin-notes {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px dashed rgba(22, 101, 52, 0.22);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cm-fin-note-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 10.5px;
    color: #475569;
    line-height: 1.42;
}

.cm-fin-note-item svg {
    flex-shrink: 0;
    color: #16a34a;
    margin-top: 2px;
}

/* Fee Breakdown */
.cm-fees-block {
    margin-bottom: 22px;
}

.cm-fees-title {
    display: block;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cm-text-dim);
    margin-bottom: 8px;
}

.cm-fee-rows {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cm-fee-rows li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.cm-fee-item {
    color: var(--cm-text-slate);
    overflow-wrap: anywhere;
}

.cm-fee-rows strong {
    color: var(--cm-text-dark);
    font-family: monospace;
    font-weight: var(--fw-semibold);
    max-width: 100%;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cm-assurance-item,
.cm-assurance-item span,
.cm-range-bounds span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.cm-fee-free {
    color: var(--cm-accent-green) !important;
}

/* Primary CTA Button */
.cm-btn-checkout {
    width: 100%;
    padding: 15px 24px;
    background: var(--cm-primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.cm-btn-checkout:hover {
    background: var(--cm-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Assurance Checkmarks List */
.cm-buybox-assurances-list {
    padding-top: 14px;
    border-top: 1px solid var(--cm-border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cm-assurance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--cm-text-slate);
}

.cm-check-mark {
    color: var(--cm-primary-blue);
    font-weight: var(--fw-semibold);
}

.cm-assurance-item strong {
    color: var(--cm-text-dark);
}

/* ══════════════════════════════════════════════════════════
   SECTION 3: LOCKED FEE SCHEDULE & LEGAL CLARITY
══════════════════════════════════════════════════════════ */
.cm-terms-section {
    padding: 0 0 54px;
}

.cm-section-card {
    background: var(--cm-card-bg);
    border: 1px solid var(--cm-border-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--cm-shadow-sm);
}

.cm-section-head-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cm-border-light);
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.cm-card-heading {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
    margin: 0 0 4px;
}

.cm-card-sub {
    font-size: 13px;
    color: var(--cm-text-slate);
    margin: 0;
}

.cm-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: var(--fw-semibold);
    color: var(--cm-primary-blue);
    text-decoration: none;
    transition: gap 0.15s ease;
}

.cm-link-arrow:hover {
    gap: 9px;
    text-decoration: underline;
}

.cm-terms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cm-term-card {
    background: #f8fafc;
    border: 1px solid var(--cm-border-light);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cm-terms-grid .cm-term-card:nth-child(1) {
    background: #f0f9ff;
    border-color: #bae6fd;
}
.cm-terms-grid .cm-term-card:nth-child(2) {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.cm-terms-grid .cm-term-card:nth-child(3) {
    background: #f5f3ff;
    border-color: #ddd6fe;
}
.cm-terms-grid .cm-term-card:nth-child(4) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cm-term-label {
    display: block;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-slate);
    margin-bottom: 4px;
}

.cm-term-val {
    display: block;
    font-size: 15px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
    font-family: monospace;
    margin-bottom: 4px;
}

.cm-highlight-green {
    color: var(--cm-accent-green) !important;
}

.cm-term-sub {
    display: block;
    font-size: 11px;
    color: var(--cm-text-dim);
    line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════
   SECTION 4: HOW IT WORKS
══════════════════════════════════════════════════════════ */
.cm-how-section {
    padding: 0 0 60px;
}

.cm-section-center-head {
    text-align: center;
    margin-bottom: 34px;
}

.cm-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cm-how-card {
    background: var(--cm-card-bg);
    border: 1px solid var(--cm-border-light);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--cm-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cm-how-grid .cm-how-card:nth-child(1) {
    border-top: 4px solid #0284c7;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 28%);
}
.cm-how-grid .cm-how-card:nth-child(2) {
    border-top: 4px solid #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 28%);
}
.cm-how-grid .cm-how-card:nth-child(3) {
    border-top: 4px solid #059669;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 28%);
}

.cm-how-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.cm-how-step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--cm-primary-light);
    border: 1px solid var(--cm-primary-border);
    color: var(--cm-primary-blue);
    font-size: 15px;
    font-weight: var(--fw-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cm-how-title {
    font-size: 17px;
    font-weight: var(--fw-semibold);
    color: var(--cm-text-dark);
    margin: 0 0 8px;
}

.cm-how-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--cm-text-slate);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   SECTION 5: CONTROL FROM YOUR ACCOUNT (DARK TELEMETRY)
══════════════════════════════════════════════════════════ */
.cm-account-preview-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #071220 0%, #09172c 100%);
    color: #ffffff;
    margin-bottom: 64px;
}

.cm-head-dark .cm-text-white {
    color: #ffffff !important;
}

.cm-head-dark .cm-text-slate {
    color: var(--cm-text-dim) !important;
}

.cm-link-cyan {
    color: var(--cm-cyan-accent);
}

.cm-link-cyan:hover {
    color: #ffffff;
}

.cm-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.cm-more-link:hover {
    gap: 10px;
}

.cm-dashboard-card {
    background-color: var(--cm-dark-card);
    border: 1px solid var(--cm-dark-card-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-sizing: border-box;
}

.cm-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    gap: 36px;
    align-items: center;
    min-width: 0;
    width: 100%;
}

/* Chart Pane */
.cm-chart-pane {
    background-color: rgba(7, 18, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 22px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.cm-chart-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.cm-chart-label {
    font-size: 12px;
    color: var(--cm-text-dim);
}

.cm-chart-val {
    font-size: 32px;
    font-weight: var(--fw-semibold);
    color: #ffffff;
}

.cm-chart-val.cm-chart-client-val {
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.cm-chart-canvas-wrap {
    width: 100%;
}

.cm-chart-activity-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1;
}

.cm-chart-activity-label svg {
    color: var(--cm-cyan-accent);
    flex-shrink: 0;
}

.cm-wave-svg {
    width: 100%;
    height: 100px;
    display: block;
}

.cm-chart-dates {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
}

/* Telemetry Tiles */
.cm-telemetry-pane {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.cm-telemetry-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.cm-tile {
    background-color: rgba(7, 18, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cm-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-tile-blue { background-color: rgba(0, 102, 255, 0.15); color: #38bdf8; }
.cm-tile-teal { background-color: rgba(0, 229, 255, 0.15); color: var(--cm-cyan-accent); }
.cm-tile-green { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }

.cm-tile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.cm-tile-label {
    font-size: 11px;
    color: var(--cm-text-dim);
}

.cm-tile-num {
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cm-tile-num.cm-monospace {
    font-family: monospace;
    font-size: 12px;
    color: #93c5fd;
}

.cm-tile-sub {
    font-size: 10px;
    color: #64748b;
}

/* Section Live Sync Pill (Eyebrow Badge in Dark Telemetry) */
.cm-telemetry-hero .cm-live-sync-pill,
.cm-telemetry-header .cm-live-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.cm-live-sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.9);
    flex-shrink: 0;
    display: inline-block;
    animation: cmGreenPulse 1.6s infinite;
}

@keyframes cmGreenPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.05);
        opacity: 1;
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Telemetry Header & Interactive Actions */
.cm-telemetry-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cm-live-telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    color: var(--cm-cyan-accent);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cm-telemetry-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cm-cyan-accent);
    box-shadow: 0 0 8px var(--cm-cyan-accent);
    animation: cmPulse 1.6s infinite;
}

@keyframes cmPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(0, 229, 255, 0);
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

.cm-telemetry-interactive-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.cm-telemetry-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #93c5fd;
    transition: color 0.15s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-telemetry-link:hover {
    color: var(--cm-cyan-accent);
    text-decoration: underline;
}

.cm-telemetry-copy-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    padding: 3px 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.cm-telemetry-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cm-copy-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}

.cm-telemetry-copy-btn.is-copied .cm-copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Telemetry Head & Cycle Badge */
.cm-chart-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.cm-chart-cycle-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    line-height: 1.2;
}

.cm-chart-cycle-badge svg {
    color: var(--cm-cyan-accent);
    flex-shrink: 0;
}

.cm-chart-sla-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cm-sla-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
    flex-shrink: 0;
}

/* Deductions Breakdown & Tags */
.cm-tile-fee-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.cm-fee-item {
    font-size: 9.5px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.2;
}

.cm-fee-item strong {
    color: #e2e8f0;
    font-weight: 600;
}

/* Net Settlement Highlight */
.cm-tile-net-highlight {
    border-color: rgba(16, 185, 129, 0.25);
    background-color: rgba(16, 185, 129, 0.04);
}

.cm-text-emerald {
    color: #34d399 !important;
}

.cm-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #34d399;
    font-weight: 500;
}

.cm-verified-tag svg {
    flex-shrink: 0;
}

/* Batch Output & Metadata */
.cm-tile-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.cm-batch-badge {
    font-size: 9.5px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 6px;
    border-radius: 9999px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.cm-batch-badge.cm-badge-privacy {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.35);
}

.cm-batch-meta-desc {
    font-size: 10px;
    color: #64748b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    max-width: 100%;
}

.cm-batch-meta-desc span.cm-batch-note-label {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* When has popover (Privacy coin / Monero) */
.cm-batch-meta-desc.has-popover {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    cursor: pointer;
    margin-top: 2px;
}

.cm-batch-meta-desc.has-popover .cm-batch-note-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.28);
    border-radius: 5px;
    padding: 2.5px 8px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    transition: all 0.15s ease;
    user-select: none;
}

.cm-batch-meta-desc.has-popover:hover .cm-batch-note-label,
.cm-batch-meta-desc.has-popover.is-active .cm-batch-note-label {
    background: rgba(192, 132, 252, 0.22);
    border-color: rgba(192, 132, 252, 0.55);
    color: #ffffff;
}

.cm-batch-meta-desc.has-popover .cm-batch-note-label svg {
    color: #c084fc;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.cm-batch-meta-desc.has-popover:hover .cm-batch-note-label svg,
.cm-batch-meta-desc.has-popover.is-active .cm-batch-note-label svg {
    color: #ffffff;
}

/* Floating Popover */
.cm-telemetry-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 285px;
    max-width: min(285px, calc(100vw - 32px));
    background: #0d1e38;
    border: 1px solid rgba(192, 132, 252, 0.45);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
    font-size: 11px;
    line-height: 1.5;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
    box-sizing: border-box;
    text-align: left;
}

.cm-telemetry-popover::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 21px;
    border: 6px solid transparent;
    border-top-color: rgba(192, 132, 252, 0.45);
}

.cm-telemetry-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 22px;
    border: 5px solid transparent;
    border-top-color: #0d1e38;
}

.cm-batch-meta-desc.has-popover:hover .cm-telemetry-popover,
.cm-batch-meta-desc.has-popover.is-active .cm-telemetry-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Privacy Tile Subtle Accent */
.cm-tile-privacy {
    border-color: rgba(192, 132, 252, 0.28);
    background-color: rgba(192, 132, 252, 0.03);
}

/* Monero Proof Button in Card */
.cm-xmr-proof-wrap {
    margin-top: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.cm-xmr-proof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(192, 132, 252, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #c084fc;
    font-size: 10.5px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
    text-align: center;
}

.cm-xmr-proof-btn:hover {
    background: rgba(192, 132, 252, 0.25);
    border-color: rgba(192, 132, 252, 0.6);
    color: #ffffff;
}

/* Monero Cryptographic Proof Modal */
.cm-proof-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cmFadeIn 0.2s ease;
}

@keyframes cmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cm-proof-modal-card {
    background: #0b1528;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cm-proof-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.cm-proof-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.cm-proof-modal-title svg {
    color: #c084fc;
    flex-shrink: 0;
}

.cm-proof-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}

.cm-proof-modal-close:hover {
    color: #ffffff;
}

.cm-proof-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cm-proof-note {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.cm-proof-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-proof-label {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cm-proof-val-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 7px 10px;
    min-width: 0;
    max-width: 100%;
}

.cm-proof-val-box code {
    font-family: monospace;
    font-size: 11px;
    color: #93c5fd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    border: none;
    padding: 0;
    min-width: 0;
    flex: 1;
}

.cm-proof-copy-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    padding: 3px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.cm-proof-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cm-proof-copy-btn.is-copied .cm-copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.cm-proof-highlight-row {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cm-proof-highlight-row .cm-proof-label {
    color: #34d399;
}

.cm-proof-amount {
    font-size: 15px;
    font-weight: 700;
    color: #34d399;
    font-family: monospace;
}

.cm-proof-privacy-explainer {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 6px;
}

.cm-proof-privacy-explainer .cm-explainer-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 4px;
}

.cm-proof-privacy-explainer p {
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

.cm-proof-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-proof-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary, #0066ff);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.cm-proof-verify-btn:hover {
    background: #0052cc;
    color: #ffffff;
    text-decoration: none;
}

.cm-proof-cli-guide {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #64748b;
}

.cm-proof-cli-guide code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #94a3b8;
}

body.cm-modal-open {
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   SECTION 6: FAQ ACCORDION (Light Theme)
══════════════════════════════════════════════════════════ */
.cm-faq-section {
    padding: 0 0 64px;
}

.cm-faq-container {
    max-width: 820px;
}

.cm-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-faq-item {
    background: var(--cm-card-bg);
    border: 1px solid var(--cm-border-light);
    border-radius: 14px;
    box-shadow: var(--cm-shadow-sm);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.cm-faq-item.is-open {
    border-color: var(--cm-primary-border);
}

.cm-faq-btn {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    outline: none;
}

.cm-faq-question {
    font-size: 15px;
    font-weight: 400 !important;
    color: var(--cm-text-dark);
}

.cm-faq-toggle {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: var(--cm-primary-blue);
    flex-shrink: 0;
}

.cm-faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--cm-text-body);
}

.cm-faq-item.is-open .cm-faq-answer {
    display: block;
}

.cm-faq-answer p {
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   SECTION 6: PRE-FOOTER CTA BANNER
══════════════════════════════════════════════════════════ */
.cm-cta-banner {
    padding: 0 0 60px;
}

.cm-cta-box {
    background: linear-gradient(135deg, #071728 0%, #0f2b48 100%);
    border: 1px solid #1e3a5f;
    border-radius: 24px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(7, 23, 40, 0.35);
    flex-wrap: wrap;
    gap: 24px;
}

.cm-cta-pre {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 6px;
}

.cm-cta-heading {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: var(--fw-semibold);
    color: #ffffff;
    margin: 0 0 6px;
}

.cm-cta-sub {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.cm-btn-white {
    background: #ffffff;
    color: var(--cm-primary-blue);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cm-btn-white:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    color: var(--cm-primary-hover);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (Zero Overflow on All Screens)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cm-configurator-grid {
        grid-template-columns: 1fr;
    }

    .cm-estimate-col {
        position: static;
    }

    .cm-hero-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cm-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .cm-account-preview-section {
        padding: 44px 0;
    }

    .cm-telemetry-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cm-controls-col {
        padding: 20px;
    }

    .cm-buybox-card {
        padding: 20px;
    }

    .cm-how-grid {
        grid-template-columns: 1fr;
    }

    .cm-cta-box {
        padding: 28px 20px;
        text-align: center;
        justify-content: center;
    }

    .cm-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .cm-duration-selector {
        grid-template-columns: 1fr;
    }

    .cm-slider-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-direct-input-box {
        width: 100%;
    }

    .cm-coins-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .cm-telemetry-tiles-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cm-dashboard-card {
        padding: 18px 14px;
    }

    .cm-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cm-controls-col,
    .cm-buybox-card {
        padding: 14px;
    }

    .cm-control-block {
        padding: 14px;
    }

    .cm-block-label {
        white-space: normal;
    }

    .cm-block-head-flex,
    .cm-hashrate-counter-box,
    .cm-buybox-head {
        flex-wrap: wrap;
    }

    .cm-fee-rows li {
        align-items: start;
    }
    .cm-hero {
        padding: 28px 0 34px;
    }

    .cm-hero-stats-strip {
        grid-template-columns: 1fr;
    }

    .cm-terms-grid {
        grid-template-columns: 1fr;
    }

    .cm-coins-grid {
        grid-auto-flow: row;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cm-presets-row {
        grid-template-columns: 1fr;
    }

    .cm-financial-card {
        padding: 13px 12px;
    }

    .cm-fin-row {
        gap: 8px;
    }

    .cm-fin-label {
        font-size: 11.5px;
    }

    .cm-fin-subtag {
        font-size: 9.5px;
    }

    .cm-fin-value {
        font-size: 13px;
    }

    .cm-fin-row--output .cm-fin-value {
        font-size: 14.5px;
    }

    .cm-fin-profit-label strong {
        font-size: 12px;
    }

    .cm-fin-profit-val {
        font-size: 16px;
    }

    .cm-fin-note-item {
        font-size: 10px;
    }

    .cm-proof-modal-card {
        max-height: 92vh;
        overflow-y: auto;
    }

    .cm-proof-modal-header {
        padding: 12px 14px;
    }

    .cm-proof-modal-body {
        padding: 14px;
        gap: 10px;
    }

    .cm-proof-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-proof-verify-btn {
        justify-content: center;
        width: 100%;
    }
}
