/* ==========================================
   FLAVOR — "Molten Lava" Theme
   Crimson red + Solar amber, Plus Jakarta Sans,
   Diagonal cuts, bold typography, gradient mesh,
   Skewed buttons, asymmetric hero, lava flow
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --ml-fire: #DC2626;
    --ml-fire-deep: #B91C1C;
    --ml-fire-light: #FEF2F2;
    --ml-fire-rgb: 220,38,38;
    --ml-amber: #F59E0B;
    --ml-amber-dark: #D97706;
    --ml-amber-light: #FEF3C7;
    --ml-amber-rgb: 245,158,11;
    --ml-lava: #EF4444;
    --ml-charcoal: #1F1F1F;
    --ml-smoke: #374151;
    --ml-bg: #FFFAFA;
    --ml-bg-alt: #FFF5F5;
    --ml-bg-card: #FFFFFF;
    --ml-text: #1F1F1F;
    --ml-text-mid: #4B5563;
    --ml-text-faded: #9CA3AF;
    --ml-line: #FEE2E2;
    --ml-line-strong: #FECACA;
    --ml-grad-fire: linear-gradient(135deg, #DC2626, #EF4444, #F59E0B);
    --ml-grad-hero: linear-gradient(155deg, #FFF5F5 0%, #FEF2F2 30%, #FEF3C7 70%, #FFFAFA 100%);
    --ml-grad-ember: linear-gradient(135deg, #DC2626, #B91C1C);
    --ml-grad-sunset: linear-gradient(135deg, #F59E0B, #DC2626);
    --ml-glow-sm: 0 2px 12px rgba(220,38,38,0.08);
    --ml-glow: 0 8px 32px rgba(220,38,38,0.1);
    --ml-glow-lg: 0 20px 60px rgba(220,38,38,0.15);
    --ml-glow-hot: 0 8px 40px rgba(220,38,38,0.3);
    --ml-round: 8px;
    --ml-round-md: 14px;
    --ml-round-lg: 22px;
    --ml-round-full: 50px;
    --ml-type: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ml-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--ml-type);
    background: var(--ml-bg);
    color: var(--ml-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s var(--ml-ease); }

/* ==========================================
   LAVA MESH BACKGROUND
   ========================================== */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(220,38,38,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(220,38,38,0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.ml-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ==========================================
   TOPNAV — Skewed accent bar
   ========================================== */
.ml-topnav {
    background: var(--ml-bg-card);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 2px solid var(--ml-line);
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.ml-topnav::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 2px;
    background: var(--ml-grad-fire);
}
.ml-topnav .ml-wrap {
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.ml-topnav-brand {
    font-size: 24px; font-weight: 900; color: var(--ml-fire);
    display: flex; align-items: center; gap: 10px;
    letter-spacing: -1px; text-transform: uppercase;
}
.ml-topnav-brand i {
    width: 36px; height: 36px; border-radius: var(--ml-round);
    background: var(--ml-grad-fire); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.ml-nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.ml-nav-menu a {
    padding: 10px 18px; border-radius: var(--ml-round);
    font-weight: 600; font-size: 14px; color: var(--ml-text-mid);
    display: flex; align-items: center; gap: 6px;
}
.ml-nav-menu a:hover { color: var(--ml-fire); background: var(--ml-fire-light); }
.ml-nav-menu a.active { color: var(--ml-fire); background: var(--ml-fire-light); font-weight: 700; }
.ml-nav-menu .ml-dropdown { position: relative; }
.ml-nav-menu .ml-dropdown-list {
    position: absolute; top: calc(100% + 10px); left: 0;
    background: var(--ml-bg-card); border: 1px solid var(--ml-line);
    border-radius: var(--ml-round-md); padding: 8px; min-width: 220px;
    box-shadow: var(--ml-glow-lg); opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all 0.25s; z-index: 100;
}
.ml-nav-menu .ml-dropdown:hover .ml-dropdown-list {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.ml-dropdown-list a { padding: 10px 14px; border-radius: var(--ml-round); font-size: 13px; }
.ml-dropdown-list a:hover { background: var(--ml-fire-light); color: var(--ml-fire); }

.ml-nav-cta {
    background: var(--ml-grad-ember) !important; color: #fff !important;
    padding: 10px 24px !important; border-radius: var(--ml-round) !important;
    font-weight: 700 !important; box-shadow: var(--ml-glow);
    transform: skewX(-3deg);
}
.ml-nav-cta:hover {
    transform: skewX(-3deg) translateY(-2px) !important;
    box-shadow: var(--ml-glow-hot) !important;
}

/* User dropdown */
.ml-user-wrap { position: relative; }
.ml-user-trigger {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 6px; border-radius: var(--ml-round);
    background: var(--ml-fire-light); border: 1.5px solid var(--ml-line);
    cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ml-fire);
}
.ml-user-trigger:hover { border-color: var(--ml-fire); }
.ml-user-trigger .ml-avatar {
    width: 30px; height: 30px; border-radius: var(--ml-round);
    background: var(--ml-grad-ember);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 900;
}
.ml-user-panel {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 224px; background: var(--ml-bg-card);
    border-radius: var(--ml-round-md); box-shadow: var(--ml-glow-lg);
    border: 1px solid var(--ml-line); padding: 8px;
    z-index: 9999; opacity: 0; visibility: hidden;
    transform: translateY(-6px); transition: all 0.25s;
}
.ml-user-wrap:hover .ml-user-panel,
.ml-user-wrap:focus-within .ml-user-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.ml-user-panel a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--ml-round);
    color: var(--ml-text); font-size: 13px; font-weight: 500;
}
.ml-user-panel a:hover { background: var(--ml-fire-light); color: var(--ml-fire); }
.ml-user-panel a i { width: 18px; color: var(--ml-fire); }
.ml-user-panel .ml-divider { height: 1px; background: var(--ml-line); margin: 6px 0; }
.ml-user-panel .ml-wallet {
    padding: 12px 14px; font-size: 14px; border-radius: var(--ml-round);
    background: var(--ml-fire-light); color: var(--ml-fire);
    font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.ml-user-panel .ml-exit { color: #ef4444 !important; }
.ml-user-panel .ml-exit:hover { background: #fef2f2 !important; }

/* ==========================================
   BANNER — Asymmetric hero with diagonal clip
   ========================================== */
.ml-banner {
    background: var(--ml-grad-hero);
    padding: 80px 0 100px;
    position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.ml-banner::before {
    content: '';
    position: absolute; top: -20%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(var(--ml-fire-rgb),0.08), transparent 60%);
    border-radius: 50%;
    animation: lavaPulse 8s ease-in-out infinite;
}
.ml-banner::after {
    content: '';
    position: absolute; bottom: -30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(var(--ml-amber-rgb),0.06), transparent 60%);
    border-radius: 50%;
    animation: lavaPulse 10s ease-in-out infinite reverse;
}
@keyframes lavaPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}
.ml-banner .ml-wrap { display: flex; align-items: center; gap: 48px; position: relative; z-index: 2; }
.ml-banner-content { flex: 1; max-width: 560px; }
.ml-banner-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: rgba(var(--ml-fire-rgb),0.08);
    border: 1.5px solid rgba(var(--ml-fire-rgb),0.15);
    border-radius: var(--ml-round); color: var(--ml-fire);
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 24px;
}
.ml-banner h1 {
    font-size: 52px; font-weight: 900; line-height: 1.1;
    margin-bottom: 20px; letter-spacing: -2px; color: var(--ml-charcoal);
}
.ml-banner h1 em {
    font-style: normal;
    background: var(--ml-grad-fire);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ml-banner p { font-size: 18px; color: var(--ml-text-mid); margin-bottom: 32px; line-height: 1.7; }
.ml-banner-visual { flex: 1; text-align: right; }
.ml-banner-visual img {
    max-width: 100%; max-height: 420px;
    filter: drop-shadow(0 20px 60px rgba(var(--ml-fire-rgb),0.2));
    animation: heatRise 7s ease-in-out infinite;
}
@keyframes heatRise {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

/* ==========================================
   BUTTONS — Skewed bold
   ========================================== */
.ml-trigger {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 30px; border: none;
    border-radius: var(--ml-round); font-family: var(--ml-type);
    font-weight: 700; font-size: 14px; cursor: pointer;
    transition: all 0.3s; text-decoration: none;
    transform: skewX(-2deg);
}
.ml-trigger-fire {
    background: var(--ml-grad-ember); color: #fff;
    box-shadow: var(--ml-glow);
}
.ml-trigger-fire:hover {
    transform: skewX(-2deg) translateY(-3px);
    box-shadow: var(--ml-glow-hot);
}
.ml-trigger-ghost {
    background: transparent; border: 2px solid var(--ml-fire);
    color: var(--ml-fire); transform: skewX(-2deg);
}
.ml-trigger-ghost:hover { background: var(--ml-fire); color: #fff; }
.ml-trigger-sm { padding: 9px 20px; font-size: 13px; }
.ml-trigger-full { width: 100%; justify-content: center; }
.ml-trigger-lg { padding: 16px 36px; font-size: 16px; }

/* ==========================================
   PLATFORM STRIP
   ========================================== */
.ml-platforms { padding: 48px 0; background: var(--ml-charcoal); }
.ml-platform-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ml-platform-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--ml-round); border: 1px solid rgba(255,255,255,0.1);
    font-size: 26px; color: rgba(255,255,255,0.6); cursor: pointer;
    transition: all 0.3s; background: rgba(255,255,255,0.03);
}
.ml-platform-icon:hover {
    transform: translateY(-4px); color: var(--ml-amber);
    box-shadow: 0 8px 24px rgba(245,158,11,0.2);
    border-color: rgba(245,158,11,0.3);
}

/* ==========================================
   SECTION HEADINGS — Bold diagonal accent
   ========================================== */
.ml-section-head { text-align: center; margin-bottom: 48px; }
.ml-section-head .ml-overline {
    font-size: 12px; font-weight: 800; color: var(--ml-fire);
    text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px;
    display: inline-flex; align-items: center; gap: 10px;
}
.ml-section-head .ml-overline::before,
.ml-section-head .ml-overline::after {
    content: ''; width: 32px; height: 2px; background: var(--ml-grad-fire); border-radius: 2px;
}
.ml-section-head h2 {
    font-size: 36px; font-weight: 900; letter-spacing: -1.5px; color: var(--ml-charcoal);
}
.ml-section-head h2 span { color: var(--ml-fire); }
.ml-section-head p { color: var(--ml-text-mid); max-width: 540px; margin: 10px auto 0; font-size: 16px; }

/* ==========================================
   SERVICES — Diagonal accent cards
   ========================================== */
.ml-catalog { padding: 72px 0; background: var(--ml-bg-alt); }
.ml-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}
.ml-product {
    background: var(--ml-bg-card);
    border-radius: var(--ml-round-md);
    padding: 26px; position: relative;
    border: 1px solid var(--ml-line);
    transition: all 0.35s; overflow: hidden;
}
.ml-product::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 0; height: 4px;
    background: var(--ml-grad-fire);
    transition: width 0.4s var(--ml-ease);
}
.ml-product:hover::before { width: 100%; }
.ml-product:hover {
    transform: translateY(-6px);
    box-shadow: var(--ml-glow-lg);
    border-color: rgba(var(--ml-fire-rgb),0.15);
}
.ml-product-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ml-product-badge {
    width: 50px; height: 50px; border-radius: var(--ml-round);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0;
}
.ml-product-name { font-weight: 800; font-size: 15px; letter-spacing: -0.3px; }
.ml-product-cat { font-size: 12px; color: var(--ml-text-faded); }
.ml-product-mid { border-top: 1px solid var(--ml-line); padding-top: 14px; }
.ml-product-cost { display: flex; justify-content: space-between; align-items: center; }
.ml-cost-label { font-size: 12px; color: var(--ml-text-faded); }
.ml-cost-amount { font-size: 24px; font-weight: 900; color: var(--ml-fire); letter-spacing: -0.5px; }
.ml-cost-amount small { font-size: 11px; font-weight: 400; color: var(--ml-text-faded); }
.ml-product-bottom { margin-top: 16px; }

/* ==========================================
   HIGHLIGHTS — Feature cards with ember glow
   ========================================== */
.ml-highlights { padding: 76px 0; background: var(--ml-bg-card); }
.ml-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}
.ml-highlight {
    background: var(--ml-bg);
    border: 1px solid var(--ml-line);
    border-radius: var(--ml-round-md);
    padding: 32px; text-align: center;
    transition: all 0.35s; position: relative;
}
.ml-highlight::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px;
    background: var(--ml-grad-sunset);
    border-radius: 3px; transition: width 0.4s;
}
.ml-highlight:hover::after { width: 60%; }
.ml-highlight:hover { transform: translateY(-6px); box-shadow: var(--ml-glow); }
.ml-highlight-icon {
    width: 64px; height: 64px; margin: 0 auto 18px;
    border-radius: var(--ml-round-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; background: var(--ml-fire-light); color: var(--ml-fire);
    transition: all 0.3s;
}
.ml-highlight:hover .ml-highlight-icon {
    background: var(--ml-grad-ember); color: #fff;
    box-shadow: var(--ml-glow-hot);
    transform: scale(1.08) rotate(-3deg);
}
.ml-highlight h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.ml-highlight p { font-size: 14px; color: var(--ml-text-mid); line-height: 1.7; }

/* ==========================================
   STATS BAR — Fire gradient strip
   ========================================== */
.ml-stats-strip {
    background: var(--ml-grad-ember); padding: 18px 0; color: #fff;
}
.ml-stats-strip .ml-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ml-stats-avatars { display: flex; }
.ml-stats-avatars img {
    width: 36px; height: 36px; border-radius: var(--ml-round);
    border: 2px solid rgba(255,255,255,0.3); margin-left: -10px; object-fit: cover;
}
.ml-stats-avatars img:first-child { margin-left: 0; }
.ml-stats-info { font-size: 14px; font-weight: 500; }
.ml-stats-info b { font-weight: 900; color: var(--ml-amber-light); }

/* ==========================================
   STOCK
   ========================================== */
.ml-stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ml-stock-item {
    background: var(--ml-bg-card); border: 1px solid var(--ml-line);
    border-radius: var(--ml-round-md); padding: 24px; transition: all 0.3s;
}
.ml-stock-item:hover { transform: translateY(-4px); box-shadow: var(--ml-glow); border-color: var(--ml-line-strong); }
.ml-stock-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.ml-stock-desc { font-size: 13px; color: var(--ml-text-faded); margin-bottom: 14px; }
.ml-stock-meta { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--ml-line); }
.ml-stock-qty { font-size: 13px; color: var(--ml-text-mid); }
.ml-stock-qty b { color: var(--ml-fire); }
.ml-stock-price { font-size: 22px; font-weight: 900; color: var(--ml-fire); }

/* ==========================================
   FOOTER — Charcoal with ember accents
   ========================================== */
.ml-ground {
    background: var(--ml-charcoal); color: #fff; padding: 56px 0 24px;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
    padding-top: 80px;
}
.ml-ground-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.ml-ground h4 { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--ml-amber); }
.ml-ground p, .ml-ground a { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.9; }
.ml-ground a:hover { color: var(--ml-amber); }
.ml-ground-links { list-style: none; }
.ml-ground-links li { margin-bottom: 8px; }
.ml-ground-links a { display: flex; align-items: center; gap: 8px; }
.ml-ground-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
    text-align: center; font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ==========================================
   FORMS — Bold entry cards
   ========================================== */
.ml-auth-page {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; background: var(--ml-bg-alt);
    position: relative;
}
.ml-auth-page::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 200px;
    background: var(--ml-grad-ember);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}
.ml-entry-card {
    background: var(--ml-bg-card);
    border-radius: var(--ml-round-lg); padding: 40px;
    max-width: 450px; width: 100%;
    border: 1px solid var(--ml-line);
    box-shadow: var(--ml-glow-lg);
    position: relative; z-index: 1;
}
.ml-entry-card h2 {
    font-size: 28px; font-weight: 900; margin-bottom: 6px;
    text-align: center; letter-spacing: -0.8px; color: var(--ml-charcoal);
}
.ml-entry-card .ml-subtitle {
    text-align: center; font-size: 14px; color: var(--ml-text-mid); margin-bottom: 28px;
}
.ml-field { margin-bottom: 18px; }
.ml-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ml-text); }
.ml-input {
    width: 100%; padding: 14px 18px;
    border: 2px solid var(--ml-line); border-radius: var(--ml-round);
    font-family: var(--ml-type); font-size: 15px;
    color: var(--ml-text); background: var(--ml-bg);
    transition: all 0.3s; outline: none;
}
.ml-input:focus { border-color: var(--ml-fire); box-shadow: 0 0 0 4px rgba(var(--ml-fire-rgb),0.08); background: #fff; }
.ml-input::placeholder { color: var(--ml-text-faded); }
select.ml-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='%239CA3AF' d='M8 11L3 6h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.ml-auth-link { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ml-text-mid); }
.ml-auth-link a { color: var(--ml-fire); font-weight: 700; }

/* ==========================================
   ALERTS, CHIPS, RECORDS, HUB
   ========================================== */
.ml-notice {
    padding: 14px 20px; border-radius: var(--ml-round); margin-bottom: 18px;
    font-size: 14px; display: flex; align-items: center; gap: 10px; font-weight: 500;
}
.ml-notice-ok { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #166534; }
.ml-notice-bad { background: #fef2f2; border: 1.5px solid #fecdd3; color: #991b1b; }
.ml-notice-warn { background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e; }
.ml-notice-info { background: var(--ml-fire-light); border: 1.5px solid var(--ml-line); color: var(--ml-fire); }

.ml-announce {
    padding: 12px 20px; border-radius: var(--ml-round); display: flex;
    align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
    background: var(--ml-fire-light); border: 1px solid var(--ml-line); color: var(--ml-fire);
}
.ml-announce.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ml-announce.danger { background: #fef2f2; border-color: #fecdd3; color: #991b1b; }

.ml-chip {
    display: inline-flex; align-items: center; padding: 5px 14px;
    border-radius: var(--ml-round-full); font-size: 12px; font-weight: 700;
}
.ml-chip-ok { background: #f0fdf4; color: #166534; }
.ml-chip-bad { background: #fef2f2; color: #991b1b; }
.ml-chip-warn { background: #fffbeb; color: #92400e; }
.ml-chip-info { background: #eff6ff; color: #1e40af; }
.ml-chip-fire { background: var(--ml-fire-light); color: var(--ml-fire); }
.ml-chip-muted { background: #f3f4f6; color: #6b7280; }

.ml-hub { padding: 40px 0 100px; background: var(--ml-bg); min-height: calc(100vh - 64px); }
.ml-hub-header { margin-bottom: 28px; }
.ml-hub-header h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.8px; }
.ml-hub-header p { color: var(--ml-text-mid); font-size: 15px; margin-top: 4px; }

.ml-kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.ml-kpi {
    background: var(--ml-bg-card); border: 1px solid var(--ml-line);
    border-radius: var(--ml-round-md); padding: 22px;
    display: flex; align-items: center; gap: 16px; transition: all 0.3s;
}
.ml-kpi:hover { transform: translateY(-3px); box-shadow: var(--ml-glow); }
.ml-kpi-icon {
    width: 52px; height: 52px; border-radius: var(--ml-round);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0;
}
.ml-kpi-data h3 { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.ml-kpi-data p { font-size: 12px; color: var(--ml-text-faded); font-weight: 600; }

.ml-records {
    background: var(--ml-bg-card); border: 1px solid var(--ml-line);
    border-radius: var(--ml-round-md); overflow: hidden;
}
.ml-records-head {
    padding: 18px 22px; border-bottom: 1px solid var(--ml-line);
    font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px;
}
.ml-records-scroll { overflow-x: auto; }
.ml-records table { width: 100%; border-collapse: collapse; }
.ml-records th, .ml-records td { padding: 14px 20px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--ml-line); }
.ml-records th {
    background: var(--ml-fire-light); font-weight: 800; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px; color: var(--ml-fire);
}
.ml-records tr:hover { background: var(--ml-bg-alt); }
.ml-records tr:last-child td { border-bottom: none; }

.ml-empty { text-align: center; padding: 56px 20px; }
.ml-empty i { font-size: 48px; margin-bottom: 14px; opacity: 0.3; color: var(--ml-fire); }
.ml-empty h3 { font-size: 17px; font-weight: 800; color: var(--ml-text); margin-bottom: 6px; }
.ml-empty p { font-size: 14px; color: var(--ml-text-faded); }

.ml-pages { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.ml-pages a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--ml-round);
    font-size: 14px; font-weight: 700; border: 1.5px solid var(--ml-line); color: var(--ml-text-faded);
}
.ml-pages a:hover, .ml-pages a.active-page {
    background: var(--ml-grad-ember); color: #fff; border-color: transparent;
    box-shadow: var(--ml-glow);
}

.ml-search-bar { display: flex; gap: 10px; }
.ml-search-bar .ml-input { flex: 1; }

/* ==========================================
   CONTENT PAGES — SEO pages styling
   ========================================== */
.ml-content-page {
    padding: 60px 0 100px; background: var(--ml-bg);
}
.ml-content-page .ml-wrap { max-width: 800px; }
.ml-content-page h1 { font-size: 36px; font-weight: 900; margin-bottom: 24px; letter-spacing: -1px; }
.ml-content-page h2 { font-size: 24px; font-weight: 800; margin: 32px 0 12px; color: var(--ml-fire); }
.ml-content-page h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.ml-content-page p { font-size: 16px; line-height: 1.8; color: var(--ml-text-mid); margin-bottom: 16px; }
.ml-content-page ul { padding-left: 24px; margin-bottom: 16px; }
.ml-content-page li { font-size: 15px; line-height: 1.8; color: var(--ml-text-mid); margin-bottom: 8px; }

/* ==========================================
   MOBILE
   ========================================== */
.ml-mobile-bar {
    display: none; position: sticky; top: 0; z-index: 1000;
    background: var(--ml-bg-card); border-bottom: 2px solid var(--ml-line);
}
.ml-mobile-bar::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--ml-grad-fire); }
.ml-mobile-bar-inner { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.ml-mobile-bar .ml-brand { font-size: 20px; font-weight: 900; color: var(--ml-fire); display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.ml-mobile-bar .ml-brand i { color: var(--ml-fire); }
.ml-mobile-actions { display: flex; gap: 4px; }
.ml-mobile-actions a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--ml-round); color: var(--ml-text-mid);
}
.ml-mobile-actions a:hover { background: var(--ml-fire-light); color: var(--ml-fire); }

.ml-dock {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: var(--ml-bg-card); border-top: 2px solid var(--ml-line);
}
.ml-dock::before { content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--ml-grad-fire); }
.ml-dock-items {
    display: flex; justify-content: space-around; list-style: none;
    max-width: 500px; margin: 0 auto; padding: 8px 0;
}
.ml-dock-items a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 8px; font-size: 10px; font-weight: 700;
    color: var(--ml-text-faded); border-radius: var(--ml-round);
}
.ml-dock-items a i { font-size: 18px; }
.ml-dock-items a.active { color: var(--ml-fire); background: var(--ml-fire-light); }

.ml-fade { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.ml-fade.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .ml-topnav { display: none; }
    .ml-mobile-bar { display: block; }
    .ml-dock { display: block; }
    body { padding-bottom: 68px; overflow-x: hidden; }
    .ml-banner .ml-wrap { flex-direction: column; text-align: center; }
    .ml-banner-content { max-width: 100%; }
    .ml-banner h1 { font-size: 36px; }
    .ml-banner-visual { order: -1; }
    .ml-banner-visual img { max-height: 260px; }
    .ml-banner { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); padding-bottom: 60px; }
    .ml-product-grid, .ml-stock-grid { grid-template-columns: 1fr; }
    .ml-highlight-grid { grid-template-columns: 1fr 1fr; }
    .ml-kpi-row { grid-template-columns: 1fr 1fr; }

    /* Forms — full width on mobile */
    .ml-entry-card { max-width: 100% !important; padding: 28px 20px; }
    .ml-auth-page { padding: 20px 16px; }

    /* Force ALL inline grid columns to single col */
    div[style*="grid-template-columns:2fr 1fr"],
    div[style*="grid-template-columns: 2fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 300px"],
    div[style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
    }

    /* Tables — horizontal scroll */
    .ml-records-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ml-records table { min-width: 500px; }

    /* Content cards */
    .ml-content-card { padding: 20px 16px; }
}
@media (max-width: 640px) {
    .ml-banner { padding: 48px 0 50px; }
    .ml-banner h1 { font-size: 28px; letter-spacing: -1px; }
    .ml-section-head h2 { font-size: 26px; }
    .ml-kpi-row, .ml-highlight-grid { grid-template-columns: 1fr; }
    .ml-platform-icon { width: 52px; height: 52px; font-size: 22px; }
    .ml-hub { padding: 24px 0 80px; }
    .ml-hub-header h1 { font-size: 24px; }
    .ml-search-bar { flex-direction: column; }
    .ml-ground { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); padding-top: 48px; }
    .ml-page-hero h1 { font-size: 22px; }
    .ml-page-hero-icon { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
    .ml-trust-grid, .ml-contact-grid { grid-template-columns: 1fr; }
    .ml-wrap { padding: 0 12px; }
    .ml-entry-card { padding: 20px 14px; }
}

/* ========== PAGE HERO BANNER ========== */
.ml-page-hero { background: var(--ml-bg); padding: 48px 0 36px; position: relative; overflow: hidden; }
.ml-page-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(220,38,38,.06), transparent 70%); border-radius: 50%; }
.ml-page-hero-inner { display: flex; align-items: center; gap: 20px; }
.ml-page-hero-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--ml-grad-fire); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex-shrink: 0; }
.ml-page-hero h1 { font-size: 28px; font-weight: 900; }
.ml-page-hero p { font-size: 14px; color: var(--ml-text-faded); margin-top: 2px; }

/* ========== CONTENT CARD / PROSE ========== */
.ml-content-card { background: #fff; border: 1px solid var(--ml-line); border-radius: 16px; padding: 36px; margin-bottom: 24px; }
.ml-content-card.ml-prose { line-height: 1.9; font-size: 15px; color: var(--ml-text-mid); }
.ml-content-card.ml-prose h2, .ml-content-card.ml-prose h3 { color: var(--ml-charcoal); margin: 28px 0 12px; font-weight: 800; }
.ml-content-card.ml-prose h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ml-fire); }
.ml-content-card.ml-prose h3 { font-size: 18px; }
.ml-content-card.ml-prose p { margin-bottom: 16px; }
.ml-content-card.ml-prose ul, .ml-content-card.ml-prose ol { margin: 12px 0 16px 20px; }
.ml-content-card.ml-prose li { margin-bottom: 6px; }
.ml-content-card.ml-prose a { color: var(--ml-fire); font-weight: 600; text-decoration: underline; }
.ml-content-card.ml-prose strong { color: var(--ml-charcoal); }

/* ========== TRUST / CONTACT GRIDS ========== */
.ml-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ml-trust-item { background: #fff; border: 1px solid var(--ml-line); border-radius: 14px; padding: 24px; text-align: center; transition: all .3s; }
.ml-trust-item:hover { border-color: rgba(220,38,38,.2); box-shadow: 0 8px 24px rgba(0,0,0,.05); transform: translateY(-3px); }
.ml-trust-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ml-grad-fire); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 20px; color: #fff; }
.ml-trust-item h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.ml-trust-item p { font-size: 12px; color: var(--ml-text-faded); line-height: 1.6; }
.ml-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.ml-contact-info { display: flex; flex-direction: column; gap: 14px; }
.ml-contact-card { background: #fff; border: 1px solid var(--ml-line); border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 16px; transition: all .3s; }
.ml-contact-card:hover { border-color: rgba(220,38,38,.2); box-shadow: 0 8px 24px rgba(0,0,0,.05); transform: translateY(-2px); }
.ml-contact-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.ml-contact-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.ml-contact-card p { font-size: 13px; color: var(--ml-text-faded); }
.ml-contact-form { background: #fff; border: 1px solid var(--ml-line); border-radius: 16px; padding: 28px; }
.ml-contact-form h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.ml-cf-row { margin-bottom: 14px; }
.ml-cf-row label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ml-text-faded); margin-bottom: 4px; }
.ml-cf-row input, .ml-cf-row textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--ml-line); border-radius: 10px; font-size: 14px; transition: border .2s; background: var(--ml-bg); }
.ml-cf-row input:focus, .ml-cf-row textarea:focus { border-color: var(--ml-fire); outline: none; }
.ml-cf-row textarea { min-height: 100px; resize: vertical; }
