/* ─────────────────────────────────────────────────────────
   emas.css  —  /emas
   Uses only existing --mz-* tokens from mizora.css
───────────────────────────────────────────────────────── */

/* ── Global font override for this page ─────────────────── */
.eg-wrap,
.eg-wrap *,
.eg-modal,
.eg-modal * {
    font-family: var(--mz-font-body);
}

/* ── Section wrapper ─────────────────────────────────────── */
.eg-section { padding: 64px 0; }

.eg-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.eg-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 6px;
}

.eg-heading {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    color: var(--mz-ink);
    letter-spacing: -.3px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.eg-sub {
    font-size: 14px;
    color: var(--mz-muted);
    margin-bottom: 36px;
    line-height: 1.5;
}

/* ══ HERO ═══════════════════════════════════════════════════ */
.eg-hero {
    overflow: hidden;
    background: #111;
}

.eg-slide {
    /* Recommended image: 1920 × 600 px */
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;   /* required for ::after overlay */
}

.eg-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .5);
}

.eg-caption {
    position: relative;
    z-index: 2;
    padding: 44px 52px;
    max-width: 620px;
    color: #fff;
}

.eg-caption h1 {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin-bottom: 10px;
    font-family: var(--mz-font-body);
}

.eg-caption p {
    font-size: 15px;
    line-height: 1.6;
    opacity: .75;
    margin: 0;
    font-family: var(--mz-font-body);
}

.eg-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.eg-hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--mz-font-body);
    transition: opacity .18s;
    line-height: 1;
}

.eg-hero-btn--primary {
    background: #fff;
    color: #111;
}

.eg-hero-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
}

.eg-hero-btn--primary:hover { opacity: .8; color: #111; }
.eg-hero-btn--ghost:hover   { opacity: .8; color: #fff; }

/* ══ KURS ════════════════════════════════════════════════════ */
.eg-kurs-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

.eg-kurs-panel,
.eg-chart-panel {
    padding-top: 8px;
}

.eg-kurs-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 10px;
}

.eg-kurs-big {
    font-size: 48px;
    font-weight: 700;
    color: var(--mz-ink);
    line-height: 1;
    letter-spacing: -2px;
    min-height: 48px;
}

.eg-kurs-unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-muted);
    margin-top: 8px;
}

.eg-kurs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 14px;
    padding: 3px 9px;
    border-radius: var(--mz-radius-sm);
    border: 1px solid;
}

.eg-kurs-badge.up   { border-color: #2D7A4F; color: #2D7A4F; }
.eg-kurs-badge.down { border-color: #C0392B; color: #C0392B; }
.eg-kurs-badge.flat { border-color: var(--mz-hairline); color: var(--mz-muted); }

.eg-kurs-ts {
    font-size: 11px;
    color: var(--mz-muted-soft);
    margin-top: 18px;
    line-height: 1.5;
}

.eg-kurs-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--mz-hairline);
    border-radius: var(--mz-radius-sm);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--mz-muted);
    cursor: pointer;
    transition: border-color .18s, color .18s;
    font-family: var(--mz-font-body);
}

.eg-kurs-share:hover {
    border-color: var(--mz-ink);
    color: var(--mz-ink);
}

.eg-chart-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-ink);
    margin-bottom: 16px;
}


/* ══ TOOLBAR ════════════════════════════════════════════════ */
.eg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.eg-select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--mz-hairline);
    border-radius: var(--mz-radius-sm);
    font-size: 13px;
    color: var(--mz-ink);
    background: var(--mz-white);
    outline: none;
    cursor: pointer;
    transition: border-color .18s;
    font-family: var(--mz-font-body);
}

.eg-select:focus { border-color: var(--mz-ink); }

.eg-toolbar-sep { flex: 1; }

.eg-count {
    font-size: 13px;
    color: var(--mz-muted);
}

/* ══ TABLE ══════════════════════════════════════════════════ */
.eg-table-wrap { overflow-x: auto; }

.eg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.eg-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mz-muted);
    border-bottom: 1px solid var(--mz-ink);
    background: var(--mz-surface);
    white-space: nowrap;
    font-family: var(--mz-font-body);
}

.eg-table thead th[data-sort] {
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}

.eg-table thead th[data-sort]:hover { color: var(--mz-ink); }
.eg-table thead th.sort-active { color: var(--mz-ink); border-bottom: 2px solid var(--mz-ink); }
.eg-table thead th.sort-asc::after  { content: ' +'; font-size: 10px; }
.eg-table thead th.sort-desc::after { content: ' -'; font-size: 10px; }

.eg-table tbody tr {
    border-bottom: 1px solid var(--mz-hairline);
    transition: background .12s;
}

.eg-table tbody tr:hover { background: var(--mz-surface-mid); }

.eg-table td {
    padding: 12px 14px;
    color: var(--mz-ink);
    vertical-align: middle;
    font-family: var(--mz-font-body);
}

.eg-td-brand  { font-weight: 700; font-size: 13px; }
.eg-td-source { color: var(--mz-muted); font-size: 13px; }
.eg-td-weight { font-weight: 600; white-space: nowrap; }
.eg-td-sell   { font-weight: 700; white-space: nowrap; }
.eg-td-buy    { color: var(--mz-muted); white-space: nowrap; }

.eg-td-date   { white-space: nowrap; font-size: 12px; color: var(--mz-muted); }
.eg-td-trend  { white-space: nowrap; min-width: 60px; }

.eg-td-change { white-space: nowrap; font-size: 12px; font-weight: 600; }
.eg-td-change.up   { color: #2D7A4F; }
.eg-td-change.down { color: #C0392B; }
.eg-td-change.flat { color: var(--mz-muted-soft); }

.eg-td-actions { display: flex; gap: 6px; align-items: center; white-space: nowrap; }

/* ══ PAGINATION ═════════════════════════════════════════════ */
.eg-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mz-hairline);
    flex-wrap: wrap;
    gap: 10px;
}

.eg-pagination-info { font-size: 13px; color: var(--mz-muted); }

.eg-pagination-controls { display: flex; align-items: center; gap: 4px; }

.eg-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--mz-hairline);
    border-radius: var(--mz-radius-sm);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-muted);
    cursor: pointer;
    transition: all .15s;
    font-family: var(--mz-font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eg-page-btn:hover:not(:disabled) { border-color: var(--mz-ink); color: var(--mz-ink); }
.eg-page-btn.active { background: var(--mz-ink); border-color: var(--mz-ink); color: #fff; }
.eg-page-btn:disabled { opacity: .35; cursor: default; }

.eg-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--mz-hairline);
    border-radius: var(--mz-radius-sm);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--mz-muted);
    cursor: pointer;
    transition: border-color .18s, color .18s;
    font-family: var(--mz-font-body);
}

.eg-row-btn:hover { border-color: var(--mz-ink); color: var(--mz-ink); }
.eg-row-btn.wa:hover { border-color: #25D366; color: #25D366; }

/* State */
.eg-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--mz-muted);
    font-size: 14px;
}

/* ══ CALCULATOR ═════════════════════════════════════════════ */
.eg-calc { max-width: 720px; }

.eg-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.eg-calc-field--full { grid-column: 1 / -1; }

.eg-calc-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 6px;
}

.eg-calc-field input,
.eg-calc-field select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mz-hairline);
    border-radius: var(--mz-radius-sm);
    font-size: 14px;
    color: var(--mz-ink);
    background: var(--mz-white);
    outline: none;
    font-family: var(--mz-font-body);
    transition: border-color .18s;
}

.eg-calc-field input:focus,
.eg-calc-field select:focus { border-color: var(--mz-ink); }

.eg-result-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 8px;
}

.eg-result-val {
    font-size: 34px;
    font-weight: 700;
    color: var(--mz-ink);
    letter-spacing: -1px;
    line-height: 1;
    font-family: var(--mz-font-body);
}

.eg-result-note {
    font-size: 13px;
    color: var(--mz-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* calc results 2-col */
.eg-calc-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: 24px;
    border-top: 1px solid var(--mz-hairline);
    margin-top: 8px;
}

.eg-calc-result {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}


.eg-sim-subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-top: 12px;
    margin-bottom: 6px;
}

.eg-sim-subtitle:first-child { margin-top: 4px; }

.eg-sim-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
}

.eg-sim-label {
    font-size: 13px;
    color: var(--mz-muted);
    flex: 1;
}

.eg-sim-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-ink);
    white-space: nowrap;
}

.eg-sim-total .eg-sim-label,
.eg-sim-total .eg-sim-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--mz-ink);
}

.eg-sim-sep {
    height: 1px;
    background: var(--mz-hairline);
    margin: 8px 0;
}

.eg-sim-dim { color: var(--mz-muted); font-weight: 400; }

.eg-sim-empty {
    font-size: 13px;
    color: var(--mz-muted);
    line-height: 1.6;
    opacity: .6;
    padding: 8px 0;
}

.eg-sim-neg { color: #c0392b; }
.eg-sim-pos { color: #27ae60; }

.eg-sim-note {
    font-size: 11px;
    color: var(--mz-muted);
    margin-top: 14px;
    line-height: 1.5;
    opacity: .7;
}

/* sim section layout */
.eg-sim-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 40px;
}

.eg-sim-result {
    background: var(--mz-white);
    border-radius: var(--mz-radius-lg);
    padding: 28px 32px;
    position: sticky;
    top: 24px;
}

.eg-sim-result-inner { margin-bottom: 4px; }

/* mobile: stack the results */
@media (max-width: 640px) {
    .eg-calc-results { grid-template-columns: 1fr; gap: 24px; }
    .eg-sim-panel { border-left: none; padding-left: 0; border-top: 1px solid var(--mz-hairline); padding-top: 20px; }
    .eg-sim-wrap { grid-template-columns: 1fr; gap: 24px; }
    .eg-sim-result { position: static; }
}

/* ══ CTA CARD ════════════════════════════════════════════════ */
.eg-cta-section {
    background: var(--mz-ink);
}

.eg-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 40px;
}

.eg-cta-heading {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--mz-white);
    letter-spacing: -.5px;
    margin-bottom: 6px;
    font-family: var(--mz-font-body);
}

.eg-cta-sub {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    margin: 0;
    line-height: 1.6;
}

.eg-cta-btn {
    display: inline-block;
    white-space: nowrap;
    padding: 12px 24px;
    background: var(--mz-white);
    color: var(--mz-ink);
    font-size: 13px;
    font-weight: 700;
    border-radius: 0;
    text-decoration: none;
    letter-spacing: .3px;
    transition: opacity .18s;
    flex-shrink: 0;
    font-family: var(--mz-font-body);
}
.eg-cta-btn:hover { opacity: .8; color: var(--mz-ink); }

/* ══ MODALS ══════════════════════════════════════════════════ */
.eg-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eg-modal.open { display: flex; }

.eg-modal-box {
    background: var(--mz-white);
    border-radius: var(--mz-radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.eg-modal-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--mz-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eg-modal-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--mz-ink);
    margin: 0;
    font-family: var(--mz-font-body);
}

.eg-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mz-muted);
    font-size: 22px;
    line-height: 1;
    padding: 2px 6px;
    transition: color .15s;
    font-family: var(--mz-font-body);
}

.eg-modal-close:hover { color: var(--mz-ink); }

.eg-modal-body { padding: 20px; }

.eg-canvas-preview {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--mz-hairline);
    border-radius: var(--mz-radius-md);
    margin-bottom: 16px;
}

.eg-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.eg-btn-dl {
    height: 40px;
    background: var(--mz-ink);
    color: #fff;
    border: none;
    border-radius: var(--mz-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--mz-font-body);
    transition: background .18s;
}

.eg-btn-dl:hover { background: #333; }

.eg-btn-wa {
    height: 40px;
    background: transparent;
    color: #25D366;
    border: 1px solid #25D366;
    border-radius: var(--mz-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--mz-font-body);
    transition: background .18s, color .18s;
}

.eg-btn-wa:hover { background: #25D366; color: #fff; }

/* pulse for loading */
@keyframes eg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.eg-pulse { animation: eg-pulse 1.4s ease-in-out infinite; }

/* ══ GOLD FILTER BAR ════════════════════════════════════════ */
.eg-gold-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
}

.eg-period-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.eg-chip {
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--mz-hairline);
    border-radius: var(--mz-radius-sm);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    font-family: var(--mz-font-body);
    white-space: nowrap;
}

.eg-chip:hover { border-color: var(--mz-ink); color: var(--mz-ink); }

.eg-chip.active {
    background: var(--mz-ink);
    border-color: var(--mz-ink);
    color: #fff;
}

/* ══ GOLD MAIN 2-COL GRID ═══════════════════════════════════ */
.eg-gold-main {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 48px;
    align-items: start;
}

/* min-width:0 prevents fr items from blowing past their allocation.
   The grid definition already uses minmax(0,Xfr); this is belt-and-suspenders. */
.eg-gold-table-col,
.eg-gold-chart-col {
    min-width: 0;
}

.eg-gold-chart-col {
    position: sticky;
    top: 24px;
}

/* Chart canvas must not exceed its column */
#eg-gold-chart {
    max-width: 100%;
    display: block;
}

.eg-chart-note {
    font-size: 13px;
    color: var(--mz-muted);
    padding: 40px 0 20px;
    text-align: center;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .eg-gold-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .eg-gold-chart-col { position: static; }
    .eg-chart-note { padding: 20px 0 8px; }
}

@media (max-width: 768px) {
    .eg-cta-card { flex-direction: column; align-items: flex-start; padding: 32px 16px; gap: 20px; }
    .eg-inner   { padding: 0 16px; }
    .eg-slide   { height: auto; min-height: 360px; }
    .eg-caption { padding: 32px 20px; }
    .eg-hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
    .eg-hero-btn { width: 100%; justify-content: center; }
    .eg-kurs-grid { grid-template-columns: 1fr; gap: 32px; }
    .eg-calc-grid { grid-template-columns: 1fr; }
    .eg-section { padding: 48px 0; }
    .eg-kurs-big { font-size: 38px; }

    /* Table: allow internal horizontal scroll, not page-level */
    .eg-table-wrap { -webkit-overflow-scrolling: touch; }
    .eg-table { font-size: 13px; }
    .eg-table td, .eg-table thead th { padding: 10px; }
    .eg-pagination { flex-direction: column; align-items: flex-start; }

    /* Hide lower-priority columns to reduce table width */
    .eg-th-source, .eg-td-source { display: none; }
    .eg-th-trend,  .eg-td-trend  { display: none; }
}

@media (max-width: 480px) {
    .eg-inner   { padding: 0 12px; }
    .eg-slide { min-height: 320px; }
    .eg-section { padding: 36px 0; }
    .eg-modal-actions { grid-template-columns: 1fr; }
}

/* ── News Section ─────────────────────────────────────── */
.eg-news-section { background: var(--mz-surface); }

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

.eg-news-card {
    background: var(--mz-white);
    border-radius: 16px;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    border: 1px solid var(--mz-hairline);
    transition: box-shadow .18s, transform .18s;
}
.eg-news-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.eg-news-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mz-muted);
}

.eg-news-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mz-ink);
    line-height: 1.5;
    letter-spacing: -.1px;
    margin: 0;
}

.eg-news-summary {
    font-size: 13px;
    color: var(--mz-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.eg-news-date {
    font-size: 12px;
    color: var(--mz-muted-soft);
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--mz-hairline);
}

@media (max-width: 860px) {
    .eg-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .eg-news-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Berita Detail Page ───────────────────────────────── */
.enews-wrap {
    min-height: 80vh;
    background: var(--mz-white);
    padding-bottom: 80px;
}

/* Top bar */
.enews-topbar {
    padding: 16px 0;
    border-bottom: 1px solid var(--mz-hairline);
    background: var(--mz-white);
    margin-bottom: 40px;
}
.enews-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.enews-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-muted);
    text-decoration: none;
    transition: color .15s;
}
.enews-back:hover { color: var(--mz-ink); }
.enews-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--mz-muted);
}

/* Two-column layout */
.enews-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Article column */
.enews-article {
    padding: 0 0 60px;
}

.enews-header { margin-bottom: 28px; }

.enews-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.enews-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mz-muted);
}
.enews-meta-sep { color: var(--mz-hairline); }
.enews-date,
.enews-source { font-size: 13px; color: var(--mz-muted); }

.enews-title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.3;
    color: var(--mz-ink);
    margin: 0 0 16px;
    font-family: var(--mz-font-body);
}
.enews-summary {
    font-size: 16px;
    line-height: 1.7;
    color: var(--mz-muted);
    margin: 0 0 18px;
    font-style: italic;
}
.enews-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.enews-tag {
    font-size: 11px;
    color: var(--mz-muted);
    background: var(--mz-surface);
    border: 1px solid var(--mz-hairline);
    padding: 3px 10px;
    border-radius: 99px;
}

/* Share bar */
.enews-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.enews-share-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mz-muted);
    margin-right: 2px;
}
.enews-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
    font-family: var(--mz-font-body);
}
.enews-share-btn:hover { opacity: .8; }
.enews-share-wa   { background: #25D366; color: #fff; }
.enews-share-x    { background: #000; color: #fff; }
.enews-share-fb   { background: #1877F2; color: #fff; }
.enews-share-copy { background: var(--mz-surface-mid); color: var(--mz-ink); }

.enews-divider {
    border: none;
    border-top: 1px solid var(--mz-hairline);
    margin: 28px 0;
}

/* Article body typography */
.enews-body { color: var(--mz-ink); font-size: 16px; line-height: 1.8; }
.enews-body h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -.3px; }
.enews-body h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.enews-body p  { margin: 0 0 20px; }
.enews-body ul,
.enews-body ol { padding-left: 20px; margin: 0 0 20px; }
.enews-body li { margin-bottom: 6px; }
.enews-body strong { font-weight: 700; }
.enews-body a  { color: var(--mz-ink); text-decoration: underline; text-underline-offset: 3px; }
.enews-body hr.article-divider { border: none; border-top: 1px solid var(--mz-hairline); margin: 40px 0 20px; }
.enews-body .article-footnote { font-size: 13px; color: var(--mz-muted); }
.enews-body .article-footnote a { color: var(--mz-muted); }
.enews-body .article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0 0 24px;
}
.enews-body .article-table th {
    background: var(--mz-surface);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--mz-hairline);
    color: var(--mz-ink);
}
.enews-body .article-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--mz-hairline);
    color: var(--mz-ink);
    vertical-align: top;
}
.enews-body .article-table tr:last-child td { border-bottom: none; }
.enews-body .article-table tr:hover td { background: var(--mz-surface); }

/* Sidebar */
.enews-sidebar { position: sticky; top: 20px; }
.enews-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 14px;
}
.enews-sidebar-list { display: flex; flex-direction: column; gap: 10px; }
.enews-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--mz-white);
    border: 1px solid var(--mz-hairline);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: box-shadow .15s;
}
.enews-sidebar-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.enews-sidebar-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--mz-muted);
}
.enews-sidebar-title-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-ink);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}
.enews-sidebar-date { font-size: 11px; color: var(--mz-muted-soft); }

@media (max-width: 860px) {
    .enews-layout { grid-template-columns: 1fr; gap: 24px; }
    .enews-sidebar { position: static; }
    .enews-sidebar-list { flex-direction: row; flex-wrap: wrap; }
    .enews-sidebar-card { flex: 1 1 calc(50% - 5px); }
}
@media (max-width: 560px) {
    .enews-article { padding: 24px 20px; }
    .enews-layout { padding: 0 16px; }
    .enews-topbar-inner { padding: 0 16px; }
    .enews-summary { font-size: 15px; }
    .enews-body { font-size: 15px; }
    .enews-share-btn { padding: 5px 10px; font-size: 11px; }
    .enews-sidebar-card { flex: 1 1 100%; }
}

/* ─── DAILY RATE ─────────────────────────────────────────────── */
.eg-rate-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
}
.eg-rate-card {
    flex: 1 1 200px;
    max-width: 280px;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
}
.eg-rate-buy  { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.eg-rate-sell { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.eg-rate-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 10px;
}
.eg-rate-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--mz-ink);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.eg-rate-unit {
    font-size: 12px;
    color: var(--mz-muted);
    margin-top: 6px;
}
.eg-rate-notes {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--mz-muted);
    margin-top: 4px;
}

/* ─── CATEGORY TABS ──────────────────────────────────────────── */
.eg-tabs { margin-top: 32px; }

.eg-tab-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--mz-hairline);
    margin-bottom: 28px;
    padding-bottom: 0;
}
.eg-tab-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mz-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    border-radius: 0;
    letter-spacing: 0.2px;
}
.eg-tab-btn:hover  { color: var(--mz-ink); }
.eg-tab-btn.active { color: var(--mz-ink); border-bottom-color: var(--mz-ink); }

.eg-tab-panel        { display: none; }
.eg-tab-panel.active { display: block; }

/* ─── PRICE TABLE ────────────────────────────────────────────── */
.eg-price-meta {
    font-size: 12px;
    color: var(--mz-muted);
    margin-bottom: 14px;
}
.eg-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.eg-price-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--mz-muted);
    border-bottom: 2px solid var(--mz-hairline);
    background: var(--mz-surface);
}
.eg-price-table tbody tr {
    border-bottom: 1px solid var(--mz-hairline);
    transition: background .12s;
}
.eg-price-table tbody tr:last-child { border-bottom: none; }
.eg-price-table tbody tr:hover { background: var(--mz-surface); }
.eg-price-table td { padding: 14px 16px; vertical-align: middle; }

.eg-pt-weight {
    font-weight: 700;
    color: var(--mz-ink);
    white-space: nowrap;
}
.eg-pt-unit {
    font-size: 11px;
    font-weight: 400;
    color: var(--mz-muted);
    margin-left: 2px;
}
.eg-pt-buy   { color: #16a34a; font-weight: 600; }
.eg-pt-sell  { color: #1d4ed8; font-weight: 600; }
.eg-pt-spread { color: var(--mz-muted); font-size: 13px; }

@media (max-width: 600px) {
    .eg-rate-value { font-size: 22px; }
    .eg-rate-card  { padding: 24px 20px; }
    .eg-tab-btn    { padding: 8px 16px; font-size: 12px; }
    .eg-price-table { font-size: 13px; }
    .eg-price-table td { padding: 11px 12px; }
    .eg-pt-spread  { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   /emas — price sheet  (emz- page, egp- components)
══════════════════════════════════════════════════════════════ */

/* ── skeleton shimmer ─────────────────────────────────────────── */
@keyframes egShimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}
.egp-skel {
    display: block;
    background: linear-gradient(90deg, var(--mz-surface) 25%, var(--mz-hairline) 50%, var(--mz-surface) 75%);
    background-size: 600px 100%;
    animation: egShimmer 1.4s ease infinite;
    border-radius: 3px;
    height: 13px;
}
.egp-skel--sm { height: 9px; }
.egp-skel-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mz-hairline);
}
.egp-skel-row:last-child { border-bottom: none; }

/* ── page container ───────────────────────────────────────────── */
.emz-page {
    padding: 20px 4% 48px;
    font-family: var(--mz-font-body);
}

/* ── page header ──────────────────────────────────────────────── */
.emz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mz-hairline);
    margin-bottom: 28px;
}
.emz-h1 {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
    color: var(--mz-ink);
    letter-spacing: -0.2px;
    margin: 0 0 4px;
    line-height: 1;
    font-family: var(--mz-font-body);
}
.emz-head-date {
    font-size: 12px;
    color: var(--mz-muted);
}
.emz-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--mz-hairline);
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--mz-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .14s, color .14s;
    font-family: var(--mz-font-body);
}
.emz-share-btn:hover { border-color: var(--mz-ink); color: var(--mz-ink); }

/* ── 2-column layout ──────────────────────────────────────────── */
.emz-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: start;
}

.emz-sidebar {
    position: sticky;
    top: 72px;
    padding-right: 28px;
    border-right: 1px solid var(--mz-hairline);
}

.emz-sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 14px;
}

.emz-main {
    min-width: 0;
    padding-left: 28px;
}

/* ── rate block ───────────────────────────────────────────────── */
.emz-rate-block { margin-bottom: 0; }

/* Rate cols stacked vertically in sidebar */
.emz-rate-cols { display: block; }

.emz-rate-col {
    padding: 16px 0;
    border-bottom: 1px solid var(--mz-hairline);
}
.emz-rate-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.emz-rc-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 8px;
}
.emz-rc-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--mz-ink);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 3px;
}
.emz-rc-unit {
    font-size: 11px;
    color: var(--mz-muted);
    margin-bottom: 10px;
}
.emz-rate-notes {
    font-size: 12px;
    color: var(--mz-muted);
    margin-top: 8px;
}

/* diff badge */
.egp-diff {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    font-family: var(--mz-font-body);
}
.egp-diff--up   { background: #f0fdf4; color: #16a34a; }
.egp-diff--down { background: #fef2f2; color: #dc2626; }
.egp-diff--flat { background: var(--mz-surface); color: var(--mz-muted); }

/* ── catalog block ────────────────────────────────────────────── */
.emz-cat-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.1px;
    color: var(--mz-ink);
    margin-bottom: 16px;
}
.emz-cat-skel-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.emz-empty {
    font-size: 13px;
    color: var(--mz-muted);
    padding: 24px 0;
    margin: 0;
}

/* ── category buttons ─────────────────────────────────────────── */
.egp-cat-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: sticky;
    top: 72px;
    z-index: 8;
    background: var(--mz-bg, #fff);
    padding: 8px 0;
    margin-bottom: 10px;
    transition: box-shadow .2s;
}
.egp-cat-btns.is-stuck {
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.egp-cat-btn {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--mz-hairline);
    background: transparent;
    color: var(--mz-muted);
    cursor: pointer;
    transition: border-color .14s, color .14s, background .14s;
    font-family: var(--mz-font-body);
}
.egp-cat-btn         { position: relative; z-index: 1; }
.egp-cat-btn:hover   { border-color: var(--mz-ink); color: var(--mz-ink); }
.egp-cat-btn.active  { background: transparent; border-color: transparent; color: #fff; }

.egp-cat-indicator {
    position: absolute;
    border-radius: 999px;
    background: var(--mz-ink);
    pointer-events: none;
    z-index: 0;
    transition: left .25s cubic-bezier(.4,0,.2,1),
                top  .25s cubic-bezier(.4,0,.2,1),
                width .25s cubic-bezier(.4,0,.2,1);
}

/* ── category panels ──────────────────────────────────────────── */
.egp-cat-panel        { display: none; }
.egp-cat-panel.active { display: block; }

.egp-price-meta {
    font-size: 11px;
    color: var(--mz-muted);
    margin-bottom: 10px;
}
.egp-price-meta--sub { margin-top: -2px; margin-bottom: 8px; }

/* ── empty / na rows ─────────────────────────────────────────── */
.egp-row-empty td { opacity: 0.35; }
.egp-pt-na { font-style: italic; }

/* ── category subtitle row (panel header when has children) ──── */
.egp-cat-subtitle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.egp-cat-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--mz-ink);
    background: rgba(0,0,0,.07);
    padding: 3px 10px;
    border-radius: 999px;
}
.egp-cat-subtitle-change {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--mz-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color .15s;
}
.egp-cat-subtitle-change:hover { color: var(--mz-ink); }
.egp-cat-btn-caret {
    font-size: 9px;
    margin-left: 3px;
    opacity: .55;
    display: inline-flex;
    align-items: center;
}

/* ── sub-category modal ──────────────────────────────────────── */
@keyframes egpBackdropIn { from { opacity:0 } to { opacity:1 } }
@keyframes egpSheetUp    { from { transform:translateY(24px); opacity:0 } to { transform:translateY(0); opacity:1 } }
@keyframes egpSheetDown  { from { transform:translateY(0);    opacity:1 } to { transform:translateY(24px); opacity:0 } }

.egp-sub-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
}
.egp-sub-modal.open {
    display: flex;
}
.egp-sub-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: egpBackdropIn .22s ease both;
}
.egp-sub-modal.egp-sub-closing .egp-sub-backdrop {
    animation: egpBackdropIn .22s ease reverse both;
}
.egp-sub-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: egpSheetUp .26s cubic-bezier(.4,0,.2,1) both;
}
.egp-sub-modal.egp-sub-closing .egp-sub-sheet {
    animation: egpSheetDown .24s cubic-bezier(.4,0,.2,1) both;
}
.egp-sub-sheet-handle {
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 12px auto 4px;
}
.egp-sub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
}
.egp-sub-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.egp-sub-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
    transition: background .15s;
    flex-shrink: 0;
}
.egp-sub-close:hover { background: #e8e8e8; }
.egp-sub-body {
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* cards — radio button style */
.egp-sub-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .12s;
    width: 100%;
}
.egp-sub-card:last-child  { border-bottom: none; }
.egp-sub-card:hover    { background: #f9f9f9; }
.egp-sub-card:active   { background: #f2f2f2; }
.egp-sub-card.selected { background: #f5f5f5; }

/* radio circle */
.egp-sub-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s;
}
.egp-sub-radio::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--mz-ink);
    opacity: 0;
    transition: opacity .15s, transform .15s;
    transform: scale(.3);
}
.egp-sub-card.selected .egp-sub-radio { border-color: var(--mz-ink); }
.egp-sub-card.selected .egp-sub-radio::after { opacity: 1; transform: scale(1); }

.egp-sub-card-inner { flex: 1; min-width: 0; }
.egp-sub-card-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}
.egp-sub-card-meta {
    font-size: 10px;
    color: var(--mz-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.egp-sub-body {
    padding: 6px 14px 16px;
}
.egp-sub-list {
    border: 1.5px solid #ebebeb;
    border-radius: 10px;
    overflow: hidden;
}

/* desktop: center the sheet */
@media (min-width: 600px) {
    .egp-sub-modal { align-items: center; padding: 20px; }
    .egp-sub-sheet {
        border-radius: 20px;
        max-height: 70vh;
    }
}

/* ── price table ──────────────────────────────────────────────── */
.egp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.egp-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 340px;
}
.egp-price-table thead th {
    text-align: left;
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--mz-muted);
    border-bottom: 1px solid var(--mz-hairline);
    white-space: nowrap;
    background: none;
}
.egp-price-table tbody tr { border-bottom: 1px solid var(--mz-hairline); }
.egp-price-table tbody tr:last-child { border-bottom: none; }
.egp-price-table tbody tr:hover { background: var(--mz-surface); }
.egp-price-table td { padding: 12px 14px; vertical-align: middle; color: var(--mz-ink); }
.egp-pt-weight { font-weight: 600; white-space: nowrap; }
.egp-pt-unit   { font-size: 11px; font-weight: 400; color: var(--mz-muted); }
.egp-pt-buy    { font-weight: 600; }
.egp-pt-sell   { font-weight: 600; }

/* ── spread badge ─────────────────────────────────────────────── */
.egp-spread-badge {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.egp-pt-spread-good    { background: #f0fdf4; color: #16a34a; }
.egp-pt-spread-bad     { background: #fef2f2; color: #dc2626; }
.egp-pt-spread-neutral { background: var(--mz-surface-mid, #eeece8); color: var(--mz-muted); }

/* ── responsive ───────────────────────────────────────────────── */
@media (max-width: 720px) {
    .emz-page { padding: 16px 4% 40px; }

    .emz-layout {
        grid-template-columns: 1fr;
    }

    .emz-sidebar {
        position: static;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--mz-hairline);
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .emz-main { padding-left: 0; }

    /* Beli & Jual side-by-side on mobile */
    .emz-rate-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .emz-rate-col {
        padding: 12px 0;
        border-bottom: none;
    }

    .emz-rate-col:first-child {
        padding-right: 16px;
        border-right: 1px solid var(--mz-hairline);
        border-bottom: none;
    }

    .emz-rate-col:last-child {
        padding-left: 16px;
        padding-bottom: 0;
    }

    .emz-rc-value { font-size: 17px; }

    .emz-share-btn span { display: none; }
    .emz-share-btn      { padding: 7px 10px; }

    .egp-cat-btn        { padding: 5px 13px; font-size: 12px; }
    .egp-price-table    { font-size: 13px; }
    .egp-price-table td { padding: 10px 10px; }
}

/* ── page animations ──────────────────────────────────────────── */
@keyframes emzFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes emzSlideIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

.emz-head    { animation: emzFadeUp .4s ease both; }
.emz-sidebar { animation: emzFadeUp .4s .07s ease both; }
.emz-main    { animation: emzFadeUp .4s .14s ease both; }

@keyframes emzPriceShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.emz-rc-shimmer {
    background: linear-gradient(90deg,
        var(--mz-ink) 25%,
        #d4af37 50%,
        var(--mz-ink) 75%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: emzPriceShimmer .65s ease forwards;
}

@keyframes emzBadgePop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.egp-diff--up,
.egp-diff--down {
    animation: emzBadgePop .4s ease .9s both;
}

#egp-rate-content { animation: emzFadeUp .3s ease both; }
#egp-cat-content  { animation: emzFadeUp .3s ease both; }
#emz-spark-wrap   { animation: emzFadeUp .4s ease both; }

.emz-row-in { animation: emzSlideIn .22s ease both; }

/* ── WhatsApp CTA ─────────────────────────────────────────────── */
.emz-wa-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 28px;
    padding: 28px 28px;
    border-radius: 10px;
    background: #0e0e0e;
    animation: emzFadeUp .35s ease both;
}
.emz-wa-cta-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
    font-family: var(--mz-font-body);
}
.emz-wa-cta-desc {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.75;
    margin: 0 0 16px;
}
.emz-wa-cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.emz-wa-cta-badges span {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    letter-spacing: .4px;
}
.emz-wa-cta-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.emz-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
    font-family: var(--mz-font-body);
}
.emz-wa-btn:hover   { opacity: .82; text-decoration: none; }
.emz-wa-btn--buy    { background: #25d366; color: #fff; }
.emz-wa-btn--sell   { background: transparent; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); }

@media (max-width: 720px) {
    .emz-wa-cta      { flex-direction: column; gap: 20px; }
    .emz-wa-cta-btns { width: 100%; flex-direction: row; }
    .emz-wa-btn      { flex: 1; }
}

/* ── sparkline ────────────────────────────────────────────────── */
#emz-spark-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mz-hairline);
}
.emz-spark-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mz-muted);
    margin-bottom: 10px;
}
.emz-spark-chart {
    position: relative;
    height: 52px;
    overflow: hidden;
}
.emz-spark-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.emz-spark-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mz-ink);
    transform: translate(-50%, -50%);
    opacity: 0.35;
    cursor: pointer;
    transition: opacity .15s, width .15s, height .15s;
}
.emz-spark-dot:hover,
.emz-spark-dot.active { opacity: 1; width: 10px; height: 10px; }
.emz-spark-tip {
    display: none;
    position: absolute;
    background: var(--mz-ink);
    color: #fff;
    border-radius: 5px;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(calc(-100% - 8px));
    z-index: 10;
}
.emz-spark-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--emz-arrow, 50%);
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--mz-ink);
}
.emz-spark-tip.visible { display: block; }
.emz-spark-tip-date { font-size: 10px; opacity: .7; margin-bottom: 5px; }
.emz-spark-tip-row  { display: flex; justify-content: space-between; gap: 10px; }
.emz-spark-tip-lbl  { opacity: .65; }
.emz-spark-tip-val  { font-weight: 700; }
.emz-spark-range {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--mz-muted);
    margin-top: 5px;
}
.emz-spark-trend {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
}
.emz-spark-trend--up   { color: #16a34a; }
.emz-spark-trend--down { color: #dc2626; }
.emz-spark-trend--flat { color: var(--mz-muted); }
