/* ═══ Homepage Sections ═══ */
.mh-wrap {
    font-family: "Roboto condensed", "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1d1b31;
    max-width: 1200px;
    margin: 0 auto;
}

/* Homepage-only overrides */
.mh-wrap a {
    color: #0f172a;
}
.mh-wrap .cmc-pagination-wrap,
.mh-wrap .mmdesc {
    display: none !important;
}

/* ─── Hero ─── */
.mh-hero {
	background: linear-gradient(180deg, #e6edff 0%, #f1f4ff08 100%);
    border-radius: 16px;
    padding: 30px 48px 48px 48px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 80px auto 20px;
}
.mh-hero-text {
    flex: 1;
    min-width: 0;
}
.mh-hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.mh-hero-title {
    font-size: 34px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #0f172a;
}
.mh-hero-sub {
    font-size: 17px;
    color: #64748b;
    margin: 0 0 24px !important;
    padding: 0 !important;
    line-height: 1.6;
    text-align: left !important;
}
.mh-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.mh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, box-shadow .2s;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    background-image: none !important;
}
.mh-btn-p {
    background: #2563eb;
    color: #fff !important;
}
.mh-btn-p:hover {
    background: #1d4ed8;
    color: #fff !important;
}
.mh-btn-g {
    background: #fff;
    color: #1d1b31;
    border: 1px solid #e5e7eb;
}
.mh-btn-g:hover {
    background: #f1f5f9;
    color: #1d1b31;
}

/* ─── Section common ─── */
.mh-section {
    padding: 0 20px 40px;
}
.mh-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #0f172a;
}
.mh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.mh-section-head .mh-section-title {
    margin-bottom: 0;
}
.mh-link {
    font-size: 16px;
    font-weight: 500;
    color: #2563eb !important;
    text-decoration: none;
    background: none !important;
    background-image: none !important;
}
.mh-link:hover {
    color: #1d4ed8 !important;
}

/* ─── Market Overview v3 — dashboard grid ─── */
.mo { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif; container-type: inline-size; container-name: mo; margin-bottom: 12px; }
.mo-body { display: grid; grid-template-columns: 1fr 132px; gap: 10px; align-items: stretch; }
.mo-cols { display: contents; }
.mo-r1 { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; grid-auto-rows: 1fr; grid-column: 1; }
.mo-r2 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; grid-column: 1; }
.mc-fear { grid-column: 2; grid-row: 1 / 3; }

/* BASE CARD */
.mc, a.mc { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; text-decoration: none !important; color: #111827 !important; display: block; background-image: none !important; border-bottom: none !important; }
a.mc:hover, .mc:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.09); color: #111827 !important; }

/* ICONS */
.ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.ic.bl { background: #eff6ff; color: #2563eb; }
.ic.am { background: #fffbeb; color: #d97706; }
.ic.vi { background: #f5f3ff; color: #7c3aed; }
.ic.ro { background: #fff1f2; color: #e11d48; }
.ic.em { background: #ecfdf5; color: #059669; }
.ic.sl { background: #f8fafc; color: #475569; }

.mc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mc-il  { display: flex; align-items: center; gap: 7px; }
.mc-lbl { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: .05em; text-transform: uppercase; }
.mc-sub { font-size: 11px; color: #d1d5db; font-weight: 500; margin-top: 3px; }

/* BADGES */
.bdg { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.bdg.up { background: #f0fdf4; color: #16a34a; }
.bdg.dn { background: #fff5f5; color: #dc2626; }

/* VALUES */
.val-lg { font-size: 28px; font-weight: 800; color: #111827; letter-spacing: -1px; line-height: 1; }
.val-md { font-size: 22px; font-weight: 700; color: #111827; letter-spacing: -0.5px; line-height: 1; }
.val-sm { font-size: 17px; font-weight: 700; color: #111827; letter-spacing: -0.5px; line-height: 1; }

/* HERO CARD */
.mc-hero { display: flex; flex-direction: column; }
.mc-hero .sp { margin-top: auto; padding-top: 12px; display: block; width: 100%; }
.hero-bg { position: absolute; right: -30px; bottom: -20px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.1) 0%, transparent 70%); pointer-events: none; }

/* MID CARDS */
.mc-mid { display: flex; flex-direction: column; }
.mc-mid .mc-val-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sp-mini { width: 100%; margin-top: 12px; display: block; }
.mc-vol .sp-mini { margin-top: 24px; }

/* BTC DOMINANCE BAR */
.dbar { height: 4px; border-radius: 2px; background: #e5e7eb; margin-top: 12px; overflow: hidden; }
.dfill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #3b82f6, #60a5fa); }

/* ALTCOIN */
.alt-inner { display: flex; align-items: center; gap: 16px; }
.alt-bar-wrap { flex: 1; min-width: 0; }
.abar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #f97316, #eab308, #22c55e); }
.adot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 13px; height: 13px; background: #fff; border: 2.5px solid #6366f1; border-radius: 50%; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.albls { display: flex; justify-content: space-between; margin-top: 4px; }
.albl  { font-size: 9px; color: #9ca3af; font-weight: 600; }

/* FEAR & GREED */
.mc-fear { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 8px; }
.g-num   { font-size: 26px; font-weight: 800; letter-spacing: -1px; margin-top: -14px; }
.g-sub   { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.g-hist  { display: flex; width: 100%; border-top: 1px solid #f3f4f6; padding-top: 8px; margin-top: auto; }
.g-hi    { flex: 1; text-align: center; }
.g-hv    { font-size: 12px; font-weight: 700; color: #6b7280; }
.g-hl    { font-size: 8px; font-weight: 700; color: #d1d5db; text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; }

/* RESPONSIVE */

/* ≤860px — 2-col rows, FNG sits next to R2 */
@container mo (max-width: 860px) {
  .mo-body { grid-template-columns: 3fr 1fr; }
  .mo-r1 { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .mc-hero { grid-column: span 2; }
  .mo-r2 { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .mc-fear {
    grid-column: 2; grid-row: 2; align-self: stretch;
    height: auto; gap: 6px; padding: 14px;
  }
  .mc-fear > div:first-child { display: flex; }
  .g-hist { margin-top: auto; border-top: 1px solid #f3f4f6; padding-top: 6px; }
  .g-num { font-size: 22px; }
  .alt-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .alt-bar-wrap { width: 100%; }
}

/* ≤480px — single column, FNG below */
@container mo (max-width: 480px) {
  .mo-body { grid-template-columns: 1fr; }
  .mo-r1, .mo-r2 { grid-column: 1; grid-template-columns: 1fr; }
  .mc-hero { grid-column: 1; }
  .mc-fear {
    grid-column: 1; grid-row: auto; align-self: auto;
    flex-direction: row; gap: 16px; padding: 12px 16px;
  }
  .mc-fear > div:first-child { display: none; }
  .g-hist { flex-direction: column; gap: 4px; margin-top: 0; border-top: 0; padding-top: 0; }
  .g-num { font-size: 26px; }
}

/* ─── Services ─── */
.mh-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mh-service {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    text-decoration: none;
    color: #1d1b31;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: border-color .2s, box-shadow .2s;
    background-image: none !important;
}
.mh-service:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
    color: #1d1b31;
}
.mh-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.mh-service-body {
    flex: 1;
    min-width: 0;
}
.mh-service-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mh-service-desc {
    font-size: 17px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 !important;
}
.mh-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #536070;
    background: #f0f2f5;
    border: 1px solid rgba(83,96,112,.18);
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.4;
}
.mh-badge i {
    font-size: 12px;
}
.mh-service-free {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #059669;
    font-weight: 500;
    margin-top: 8px;
}
.mh-service-free i {
    font-size: 16px;
}

/* ─── Categories bar ─── */
.mh-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.mh-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #475569 !important;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    background-image: none !important;
}
.mh-cat-pill:hover {
    background: #2563eb;
    color: #fff !important;
}
.mh-cat-pill--all {
    background: #2563eb;
    color: #fff !important;
}
.mh-cat-pill--all:hover {
    background: #1d4ed8;
}

/* ─── Posts: native theme .post-boxes — 4 per row ─── */
.mh-wrap .post-boxes {
    max-width: 100%;
}
@supports (display: grid) {
    @media (min-width: 1200px) {
        .mh-wrap .post-boxes {
            grid-template-columns: repeat(4, 1fr) !important;
        }
    }
    @media (min-width: 1400px) {
        .mh-wrap .post-boxes {
            grid-template-columns: repeat(4, 1fr) !important;
        }
    }
}
@media (min-width: 1200px) {
    .mh-wrap .post-boxes .post-box {
        width: 25% !important;
    }
}
@media (min-width: 1400px) {
    .mh-wrap .post-boxes .post-box {
        width: 25% !important;
    }
}

/* ─── Coins table container ─── */
.mh-coins-table {
    margin-bottom: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
}
@media (max-width: 768px) {
    .mh-hero {
        flex-direction: column;
        padding: 32px 20px;
        text-align: center;
        gap: 24px;
        margin: 16px auto 8px;
    }
    .mh-hero-logo {
        order: -1;
    }
    .mh-hero-sub {
        text-align: center !important;
    }
    .mh-hero-cta {
        justify-content: center;
    }
    .mh-hero-title {
        font-size: 26px;
    }
    .mh-services {
        grid-template-columns: 1fr;
    }
    .mh-section {
        padding: 0 12px 32px;
    }
}
@media (max-width: 480px) {
    .mh-hero {
        padding: 24px 16px;
    }
    .mh-hero-logo {
        width: 80px;
        height: 80px;
    }
    .mh-hero-title {
        font-size: 22px;
    }
    .mh-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .mh-btn {
        justify-content: center;
    }
}
