/* SCG Auto Publisher — Frontend v6 */
/* Design: SimpleCryptoGuide brand — navy, gold #ffc517, editorial finance */

/* ===== VARIABLES ===== */
:root {
    --scg-navy: #1a1f36;
    --scg-navy-light: #252b48;
    --scg-gold: #ffc517;
    --scg-gold-dark: #d9a814;
    --scg-gold-glow: rgba(255, 197, 23, 0.12);
    --scg-green: #22c55e;
    --scg-green-dark: #16a34a;
    --scg-green-glow: rgba(34, 197, 94, 0.12);
    --scg-red: #ef4444;
    --scg-text: #1e293b;
    --scg-text-secondary: #64748b;
    --scg-text-muted: #94a3b8;
    --scg-border: #e2e8f0;
    --scg-border-light: #f1f5f9;
    --scg-bg-subtle: #f8fafc;
    --scg-bg-warm: #fefdfb;
    --scg-radius: 12px;
    --scg-radius-sm: 8px;
    --scg-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --scg-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --scg-shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --scg-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTAINER ===== */
.htb-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 24px 60px;
    line-height: 1.8;
    color: var(--scg-text);
    -webkit-font-smoothing: antialiased;
}

/* ===== BREADCRUMBS ===== */
.htb-breadcrumbs {
    font-size: 0.82rem;
    color: var(--scg-text-muted);
    margin-bottom: 6px;
    padding: 14px 0;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.htb-breadcrumbs a {
    color: var(--scg-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--scg-transition);
    padding: 2px 0;
}
.htb-breadcrumbs a:hover { color: var(--scg-gold-dark); }
.htb-breadcrumbs .htb-bc-sep {
    display: inline-block;
    margin: 0 10px;
    color: var(--scg-text-muted);
    font-size: 0.7rem;
    opacity: 0.5;
}
.htb-breadcrumbs .htb-bc-current {
    color: var(--scg-text);
    font-weight: 600;
}

/* ===== HERO ===== */
.htb-hero {
    text-align: center;
    padding: 32px 0 28px;
    position: relative;
}
.htb-hero::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--scg-gold), var(--scg-gold-dark));
    margin: 0 auto;
    border-radius: 2px;
    margin-top: 4px;
}
.htb-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--scg-navy);
    letter-spacing: -0.02em;
}
.htb-intro {
    font-size: 1.08rem;
    color: var(--scg-text-secondary);
    max-width: 640px;
    margin: 0 auto 18px;
    line-height: 1.85;
}
.htb-hero-meta { margin-bottom: 22px; }
.htb-updated {
    font-size: 0.78rem;
    color: var(--scg-text-muted);
    background: var(--scg-bg-subtle);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--scg-border);
    letter-spacing: 0.01em;
}

/* ===== CTA BUTTONS ===== */
.htb-cta-button,
.entry-content .htb-cta-button,
.htb-container .htb-cta-button {
    display: inline-block;
    background-image: linear-gradient(180deg, #ffc517 0%, #d9a814 100%) !important;
    background-color: #ffc517 !important;
    color: #FFFFFF !important;
    padding: 14px 34px !important;
    border-radius: var(--scg-radius-sm) !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    text-decoration: none !important;
    transition: all var(--scg-transition) !important;
    border-width: 0px !important;
    border-color: #FFFFFF !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 197, 23, 0.3);
    letter-spacing: 0.01em;
    line-height: 1.4 !important;
}
.htb-cta-button:hover,
.entry-content .htb-cta-button:hover,
.htb-container .htb-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 197, 23, 0.4);
    color: #FFFFFF !important;
    text-decoration: none !important;
    filter: brightness(1.08);
}
.htb-cta-button:active { transform: translateY(0); }

/* ===== PRICE WIDGET ===== */
.htb-price-widget {
    background: linear-gradient(135deg, var(--scg-navy) 0%, var(--scg-navy-light) 50%, #1e2a4a 100%);
    border-radius: var(--scg-radius);
    padding: 24px 30px;
    margin: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #fff;
    box-shadow: var(--scg-shadow-lg);
    position: relative;
    overflow: hidden;
}
.htb-price-widget::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle at center, rgba(255, 197, 23, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.htb-pw-price { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.htb-pw-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
}
.htb-pw-value {
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.htb-pw-change { font-size: 0.85rem; font-weight: 600; }
.htb-pw-change.up { color: var(--scg-green); }
.htb-pw-change.down { color: var(--scg-red); }
.htb-pw-stats { display: flex; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.htb-pw-stats > div { display: flex; flex-direction: column; gap: 4px; }
.htb-pw-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}
.htb-pw-stats span:not(.htb-pw-stat-label) { font-size: 0.95rem; font-weight: 700; }

/* ===== TABLE OF CONTENTS ===== */
.htb-toc {
    background: var(--scg-bg-warm);
    border: 1px solid var(--scg-border);
    border-left: 3px solid var(--scg-gold);
    border-radius: var(--scg-radius-sm);
    padding: 20px 24px;
    margin: 24px 0;
}
.htb-toc strong {
    font-size: 0.78rem;
    color: var(--scg-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}
.htb-toc-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.htb-toc-links a {
    color: var(--scg-text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: all var(--scg-transition);
}
.htb-toc-links a:hover {
    color: var(--scg-gold-dark);
    border-bottom-color: var(--scg-gold);
}
.htb-toc-sub {
    font-size: 0.82rem !important;
    color: var(--scg-text-muted) !important;
    font-weight: 400 !important;
}

/* ===== SUMMARY BOX ===== */
.htb-summary-box {
    background: #fff;
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    padding: 6px 0;
    margin: 24px 0;
    box-shadow: var(--scg-shadow-sm);
    overflow: hidden;
}
.htb-summary-box table { width: 100%; border-collapse: collapse; }
.htb-summary-box td {
    padding: 16px 28px;
    border-bottom: 1px solid var(--scg-border-light);
    vertical-align: middle;
    font-size: 0.92rem;
}
.htb-summary-box tr:last-child td { border-bottom: none; }
.htb-summary-box td:first-child {
    width: 150px;
    color: var(--scg-text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
a.exchange-badge,
span.exchange-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 20px;
    margin: 3px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--scg-transition);
    text-decoration: none !important;
}
a.exchange-badge.available {
    background: var(--scg-green-glow);
    color: var(--scg-green-dark) !important;
    border: 1px solid rgba(34, 197, 94, 0.2);
    cursor: pointer;
}
a.exchange-badge.available:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--scg-green);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
    transform: translateY(-1px);
    color: var(--scg-green-dark) !important;
}
span.exchange-badge.available {
    background: var(--scg-green-glow);
    color: var(--scg-green-dark);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
span.exchange-badge.unavailable {
    background: var(--scg-bg-subtle);
    color: var(--scg-text-muted);
    border: 1px solid var(--scg-border);
}

/* ===== CONTENT SECTIONS ===== */
.htb-section {
    margin: 40px 0;
}
.htb-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--scg-border);
    color: var(--scg-navy);
    letter-spacing: -0.01em;
    position: relative;
}
.htb-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--scg-gold);
}
.htb-section p {
    color: var(--scg-text-secondary);
    font-size: 0.98rem;
    line-height: 1.85;
}

/* ===== EXCHANGE BLOCKS ===== */
.htb-exchange-block {
    background: #fff;
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    padding: 30px 32px;
    margin: 24px 0;
    box-shadow: var(--scg-shadow-sm);
    transition: all var(--scg-transition);
}
.htb-exchange-block:hover {
    box-shadow: var(--scg-shadow-md);
    border-color: #cbd5e1;
}
.htb-exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--scg-gold);
    flex-wrap: wrap;
    gap: 10px;
}
.htb-exchange-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--scg-navy);
}
.htb-exchange-badge-highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 0.76rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(146, 64, 14, 0.1);
}
.htb-exchange-quick-facts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 14px 0 20px;
    font-size: 0.84rem;
    color: var(--scg-text-secondary);
    padding: 10px 16px;
    background: var(--scg-bg-subtle);
    border-radius: var(--scg-radius-sm);
}
.htb-bonus-tag {
    color: var(--scg-green-dark);
    font-weight: 700;
}

/* ===== STEPS ===== */
.htb-step {
    display: flex;
    gap: 18px;
    margin: 20px 0;
    align-items: flex-start;
    padding: 4px 0;
}
.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--scg-navy), var(--scg-navy-light));
    color: var(--scg-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(26, 31, 54, 0.2);
}
.step-content h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--scg-navy);
}
.step-content p {
    margin: 0;
    color: var(--scg-text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}
.step-content a {
    color: var(--scg-gold-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 197, 23, 0.4);
    transition: all var(--scg-transition);
}
.step-content a:hover {
    color: var(--scg-gold);
    border-bottom-color: var(--scg-gold);
    border-bottom-style: solid;
}
.htb-cta-inline {
    text-align: center;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--scg-border-light);
}
.htb-trust-note {
    font-size: 0.73rem;
    color: var(--scg-text-muted);
    margin-top: 10px;
    letter-spacing: 0.01em;
}

/* ===== FEE TABLE ===== */
.htb-fee-table-wrap { overflow-x: auto; margin: 0 -4px; }
.htb-fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    border-radius: var(--scg-radius);
    overflow: hidden;
    box-shadow: var(--scg-shadow-sm);
    border: 1px solid var(--scg-border);
}
.htb-fee-table th,
.htb-fee-table thead th,
.entry-content .htb-fee-table th,
.entry-content .htb-fee-table thead th,
#left-area .htb-fee-table th,
.htb-container .htb-fee-table th {
    background: var(--scg-navy) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    text-align: left !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: none !important;
}
.htb-fee-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--scg-border-light);
    font-size: 0.9rem;
    color: var(--scg-text);
}
.htb-fee-table tbody tr:last-child td { border-bottom: none; }
.htb-fee-table tbody tr {
    transition: background var(--scg-transition);
}
.htb-fee-table tbody tr:hover td { background: var(--scg-gold-glow); }
.htb-bonus-cell { color: var(--scg-green-dark); font-weight: 600; font-size: 0.82rem; }
.htb-table-cta,
.entry-content .htb-table-cta,
.htb-container .htb-table-cta {
    display: inline-block;
    background-image: linear-gradient(180deg, #ffc517 0%, #d9a814 100%) !important;
    background-color: #ffc517 !important;
    color: #FFFFFF !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    transition: all var(--scg-transition);
    box-shadow: 0 1px 4px rgba(255, 197, 23, 0.25);
    border-width: 0px !important;
    border-color: #FFFFFF !important;
}
.htb-table-cta:hover,
.entry-content .htb-table-cta:hover,
.htb-container .htb-table-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 197, 23, 0.35);
    color: #FFFFFF !important;
    filter: brightness(1.08);
}

/* ===== FAQ ===== */
.htb-faq-item {
    margin: 14px 0;
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius-sm);
    overflow: hidden;
    transition: all var(--scg-transition);
    box-shadow: var(--scg-shadow-sm);
}
.htb-faq-item:hover { border-color: #cbd5e1; }
.htb-faq-item summary {
    padding: 18px 24px;
    font-weight: 700;
    cursor: pointer;
    background: var(--scg-bg-subtle);
    list-style: none;
    font-size: 0.95rem;
    color: var(--scg-navy);
    transition: background var(--scg-transition);
    display: flex;
    align-items: center;
    gap: 10px;
}
.htb-faq-item summary:hover { background: #f1f5f9; }
.htb-faq-item summary::-webkit-details-marker { display: none; }
.htb-faq-item summary::before {
    content: '';
    display: inline-block;
    width: 20px; height: 20px;
    background: var(--scg-gold);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform var(--scg-transition);
}
.htb-faq-item[open] summary::before {
    transform: rotate(90deg);
}
.htb-faq-item[open] summary { border-bottom: 1px solid var(--scg-border-light); }
.htb-faq-item p {
    padding: 22px 28px 22px 54px;
    margin: 0;
    color: var(--scg-text-secondary);
    line-height: 1.85;
    font-size: 0.94rem;
}

/* ===== BOTTOM CTA ===== */
.htb-bottom-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--scg-navy) 0%, var(--scg-navy-light) 100%);
    padding: 44px 36px;
    border-radius: var(--scg-radius);
    margin: 44px 0;
    box-shadow: var(--scg-shadow-lg);
    position: relative;
    overflow: hidden;
}
.htb-bottom-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 197, 23, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(255, 197, 23, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.htb-bottom-cta h2 {
    margin-top: 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    border-bottom: none;
}
.htb-bottom-cta h2::after { display: none; }
.htb-bottom-cta p {
    color: rgba(255,255,255,0.6);
    position: relative;
    margin-bottom: 6px;
}
.htb-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
    position: relative;
}

/* ===== RELATED GUIDES ===== */
.htb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.htb-related-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius-sm);
    text-decoration: none !important;
    color: var(--scg-text) !important;
    transition: all var(--scg-transition);
    box-shadow: var(--scg-shadow-sm);
}
.htb-related-card:hover {
    border-color: var(--scg-gold);
    box-shadow: var(--scg-shadow-md);
    transform: translateY(-2px);
}
.htb-related-card strong { font-size: 0.92rem; }
.htb-related-ticker {
    font-size: 0.78rem;
    color: var(--scg-text-muted);
    margin-top: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== STANDALONE FALLBACK ===== */
body.scg-standalone .htb-container { padding-top: 40px; }

/* ===== DIVI OVERRIDES ===== */
/* Hide sidebar divider line — our pages are full-width, no sidebar */
body.single-how-to-buy #main-content .container::before,
body.single-how-to-buy #main-content .container::after {
    display: none !important;
}
/* Force full-width content area */
body.single-how-to-buy #left-area {
    width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}
body.single-how-to-buy #sidebar {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .htb-container { padding: 10px 16px 40px; }
    .htb-hero h1 { font-size: 1.6rem; }
    .htb-hero::after { width: 40px; }
    .htb-intro { font-size: 0.98rem; }
    .htb-step { flex-direction: column; gap: 10px; }
    .step-number { width: 34px; height: 34px; font-size: 0.85rem; }
    .htb-price-widget {
        flex-direction: column;
        text-align: center;
        padding: 22px 20px;
    }
    .htb-pw-stats { justify-content: center; gap: 20px; }
    .htb-pw-value { font-size: 1.6rem; }
    .htb-cta-buttons { flex-direction: column; align-items: center; }
    .htb-cta-button { width: 100%; max-width: 300px; text-align: center; }
    .htb-toc-links { flex-direction: column; gap: 8px; }
    .htb-exchange-quick-facts { flex-direction: column; gap: 6px; }
    .htb-exchange-block { padding: 22px 20px; }
    .htb-section h2 { font-size: 1.3rem; }
    .htb-bottom-cta { padding: 32px 24px; }
    .htb-bottom-cta h2 { font-size: 1.35rem; }
    .htb-faq-item summary { padding: 16px 18px; font-size: 0.9rem; }
    .htb-faq-item p { padding: 18px 20px 18px 48px; }
    .htb-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .htb-related-card { padding: 16px; }
    .htb-summary-box td { padding: 14px 20px; }
    .htb-fee-table th, .htb-fee-table td { padding: 12px 14px; }
    .htb-breadcrumbs { font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .htb-hero h1 { font-size: 1.4rem; }
    .htb-related-grid { grid-template-columns: 1fr; }
    .htb-pw-stats { gap: 16px; }
    .htb-exchange-header { flex-direction: column; align-items: flex-start; }
    .htb-faq-item p { padding: 16px 18px 16px 44px; }
    .htb-summary-box td { padding: 12px 16px; }
}

/* ===== PRINT ===== */
@media print {
    .htb-cta-button, .htb-table-cta, .htb-bottom-cta, .htb-toc { display: none !important; }
    .htb-price-widget { background: #eee !important; color: #333 !important; box-shadow: none !important; }
    .htb-exchange-block, .htb-faq-item { box-shadow: none !important; border: 1px solid #ccc !important; }
}
