/* ================================================================
   My Label Team — Stylesheet (v2)
   Light + warm dark theme, animations, wider layout, tooltips,
   progress bars, spoof banner, tutorial overlay.
   ================================================================ */

:root {
    --mlt-bg: #ffffff;
    --mlt-bg-soft: #f7f7fa;
    --mlt-bg-elev: #ffffff;
    --mlt-sidebar-bg: #ffffff;
    --mlt-border: #e6e6ec;
    --mlt-text: #0f0f14;
    --mlt-text-soft: #5c5c6e;
    --mlt-text-muted: #8e8ea3;
    --mlt-primary: #1a1a24;
    --mlt-primary-hover: #2e2e40;
    --mlt-accent: #ff3860;
    --mlt-accent-hover: #e62e56;
    --mlt-accent-soft: #ffe8ee;
    --mlt-purple: #7928ca;
    --mlt-success: #10b981;
    --mlt-warn: #f59e0b;
    --mlt-danger: #ef4444;
    --mlt-radius: 10px;
    --mlt-radius-sm: 6px;
    --mlt-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
    --mlt-shadow-lg: 0 10px 40px rgba(0,0,0,.08);
    --mlt-max-w: 2400px;
}

/* ---------- DARK MODE (warm, not pitch black — keeps pink/purple accents) ---------- */
body.mlt-dark {
    --mlt-bg: #1f1a24;
    --mlt-bg-soft: #18141d;
    --mlt-bg-elev: #26212c;
    --mlt-sidebar-bg: #1a1620;
    --mlt-border: #342c3c;
    --mlt-text: #f3eff6;
    --mlt-text-soft: #c7c0d0;
    --mlt-text-muted: #8a8194;
    --mlt-primary: #f3eff6;
    --mlt-primary-hover: #ffffff;
    --mlt-accent-soft: #3a1f2c;
    --mlt-shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
    --mlt-shadow-lg: 0 10px 40px rgba(0,0,0,.4);
}
body.mlt-dark .mlt-btn { color: #18141d !important; }
body.mlt-dark .mlt-btn:hover { color: #18141d !important; }
body.mlt-dark .mlt-btn-accent { color: #fff !important; }
body.mlt-dark .mlt-btn-accent:hover { color: #fff !important; }
body.mlt-dark .mlt-btn-outline { color: var(--mlt-text) !important; }
body.mlt-dark .mlt-btn-outline:hover { color: var(--mlt-text) !important; }
body.mlt-dark .mlt-btn-ghost { color: var(--mlt-text-soft) !important; }
body.mlt-dark .mlt-feature-icon { background: #3a1f2c; }
body.mlt-dark .select2-container--default .select2-selection--single,
body.mlt-dark .select2-container--default .select2-selection--multiple { background: var(--mlt-bg-elev); border-color: var(--mlt-border); color: var(--mlt-text); }
body.mlt-dark .select2-dropdown { background: var(--mlt-bg-elev); border-color: var(--mlt-border); }
body.mlt-dark .select2-results__option { color: var(--mlt-text); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.mlt-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--mlt-bg-soft);
    color: var(--mlt-text);
    font-size: 15px;
    line-height: 1.5;
    transition: background-color .25s, color .25s;
}

a { color: var(--mlt-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--mlt-accent); }

/* ---------- Layout ---------- */
.mlt-sidebar {
    position: fixed; top: 0; left: 0;
    width: 240px; height: 100vh;
    background: var(--mlt-sidebar-bg);
    border-right: 1px solid var(--mlt-border);
    display: flex; flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 100;
    transition: background .25s, border-color .25s;
}
.mlt-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--mlt-border);
}
.mlt-brand a { font-size: 18px; color: var(--mlt-text); }
.mlt-brand strong { font-weight: 700; letter-spacing: -0.3px; }
.mlt-brand-sub { font-size: 11px; color: var(--mlt-text-muted); margin-top: 2px; }

.mlt-nav { flex: 1; padding: 12px 0; }
.mlt-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px;
    color: var(--mlt-text-soft);
    font-size: 14px;
    transition: all .15s;
    border-left: 3px solid transparent;
}
.mlt-nav a:hover { background: var(--mlt-bg-soft); color: var(--mlt-text); }
.mlt-nav a.active {
    background: var(--mlt-accent-soft);
    color: var(--mlt-accent);
    border-left-color: var(--mlt-accent);
    font-weight: 500;
}
.mlt-nav a i { width: 18px; text-align: center; }
.mlt-nav-section {
    padding: 14px 20px 4px;
    font-size: 11px;
    color: var(--mlt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.mlt-sidebar-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--mlt-border);
}
.mlt-dm-toggle {
    background: transparent; border: 1px solid var(--mlt-border);
    color: var(--mlt-text-soft); font-size: 12px;
    padding: 7px 12px; border-radius: var(--mlt-radius-sm);
    cursor: pointer; width: 100%; text-align: left;
    display: flex; align-items: center; gap: 8px;
    transition: all .15s;
}
.mlt-dm-toggle:hover { background: var(--mlt-bg-soft); color: var(--mlt-text); }
body.mlt-dark .mlt-dm-toggle i:before { content: "\f185"; /* sun */ }
body.mlt-dark .mlt-dm-label:before { content: "Light mode"; }
body.mlt-dark .mlt-dm-label { font-size: 0; }
body.mlt-dark .mlt-dm-label:before { font-size: 12px; }

.mlt-user {
    padding: 14px 20px;
    border-top: 1px solid var(--mlt-border);
    display: flex; align-items: center; gap: 10px;
}
.mlt-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #ff3860, #7928ca);
    color: #fff; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.mlt-user-info { flex: 1; min-width: 0; }
.mlt-user-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mlt-text); }
.mlt-user-logout { font-size: 11px; color: var(--mlt-text-muted); }

.mlt-main {
    margin-left: 240px;
    padding: 28px 36px;
    min-height: 100vh;
    max-width: var(--mlt-max-w);
}
.mlt-main-full { min-height: 100vh; }

/* ---------- Spoof banner ---------- */
.mlt-spoof-banner {
    background: linear-gradient(90deg, #ff3860, #7928ca);
    color: #fff;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 500;
    position: sticky; top: 0; z-index: 200;
}
.mlt-spoof-banner strong { font-weight: 700; }
.mlt-spoof-banner a {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.mlt-spoof-banner a:hover { background: rgba(255,255,255,0.3); }

/* ---------- Page header ---------- */
.mlt-page-header, .mlt-page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--mlt-border);
    flex-wrap: wrap; gap: 16px;
}
.mlt-page-head h1, .mlt-page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin: 0; color: var(--mlt-text); }
.mlt-page-head p, .mlt-page-sub { font-size: 14px; color: var(--mlt-text-soft); margin-top: 4px; }
.mlt-back { color: var(--mlt-text-soft); font-size: 13px; }

/* ---------- Buttons ---------- */
.mlt-btn, .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    background: var(--mlt-primary);
    color: #fff !important;
    border: 1px solid var(--mlt-primary);
    border-radius: var(--mlt-radius-sm);
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    font-family: inherit;
}
.mlt-btn:hover, .btn:hover { background: var(--mlt-primary-hover); border-color: var(--mlt-primary-hover); color: #fff !important; }
.mlt-btn-accent, .btn-accent { background: var(--mlt-accent); border-color: var(--mlt-accent); }
.mlt-btn-accent:hover, .btn-accent:hover { background: var(--mlt-accent-hover); border-color: var(--mlt-accent-hover); }
.mlt-btn-outline, .btn-outline { background: transparent; color: var(--mlt-text) !important; border-color: var(--mlt-border); }
.mlt-btn-outline:hover, .btn-outline:hover { background: var(--mlt-bg-soft); color: var(--mlt-text) !important; }
.mlt-btn-ghost, .btn-ghost { background: transparent; color: var(--mlt-text-soft) !important; border-color: transparent; }
.mlt-btn-ghost:hover, .btn-ghost:hover { background: var(--mlt-bg-soft); }
.mlt-btn-sm, .btn-sm { padding: 5px 10px; font-size: 12px; }
.mlt-btn-lg, .btn-lg { padding: 12px 22px; font-size: 15px; }
.mlt-btn-danger, .btn-danger { background: var(--mlt-danger); border-color: var(--mlt-danger); }
.mlt-btn-block, .btn-block { width: 100%; justify-content: center; }
.mlt-btn:disabled, .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.mlt-btn-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.mlt-card {
    background: var(--mlt-bg-elev);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius);
    padding: 22px;
    margin-bottom: 16px;
    transition: background .25s, border-color .25s;
}
.mlt-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--mlt-text); }
.mlt-card label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--mlt-text); }
.mlt-card label input, .mlt-card label select, .mlt-card label textarea { margin-top: 4px; }
.mlt-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mlt-border);
}
.mlt-card-title { font-size: 16px; font-weight: 600; margin: 0; }
.mlt-card-sub { font-size: 13px; color: var(--mlt-text-muted); margin-top: 2px; }

/* ---------- Grid ---------- */
.mlt-grid { display: grid; gap: 16px; }
.mlt-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mlt-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mlt-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Forms ---------- */
.mlt-form-group { margin-bottom: 16px; }
.mlt-form .mlt-card label { display: block; }
.mlt-label {
    display: block; margin-bottom: 6px;
    font-size: 13px; font-weight: 500; color: var(--mlt-text);
}
.mlt-input, .mlt-textarea, .mlt-select,
.mlt-card input[type=text], .mlt-card input[type=email], .mlt-card input[type=url],
.mlt-card input[type=password], .mlt-card input[type=number], .mlt-card input[type=tel],
.mlt-card input[type=date], .mlt-card input[type=datetime-local], .mlt-card input[type=time],
.mlt-card input[type=color], .mlt-card textarea, .mlt-card select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius-sm);
    font-size: 14px;
    background: var(--mlt-bg-elev);
    color: var(--mlt-text);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s, background .25s;
}
.mlt-input:focus, .mlt-textarea:focus, .mlt-select:focus,
.mlt-card input:focus, .mlt-card textarea:focus, .mlt-card select:focus {
    outline: none;
    border-color: var(--mlt-accent);
    box-shadow: 0 0 0 3px var(--mlt-accent-soft);
}
.mlt-textarea, .mlt-card textarea { resize: vertical; min-height: 80px; }
.mlt-checkbox, .mlt-radio, .mlt-check {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius-sm);
    cursor: pointer;
    margin-bottom: 6px;
    background: var(--mlt-bg-elev);
    font-size: 14px;
}
.mlt-checkbox:hover, .mlt-radio:hover, .mlt-check:hover { background: var(--mlt-bg-soft); }
.mlt-checkbox input, .mlt-radio input, .mlt-check input { accent-color: var(--mlt-accent); }
.mlt-form-help { font-size: 12px; color: var(--mlt-text-muted); margin-top: 4px; }
.mlt-form-actions { display: flex; gap: 8px; margin-top: 20px; }
.mlt-filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mlt-filter-row input, .mlt-filter-row select { max-width: 240px; padding: 8px 12px; border: 1px solid var(--mlt-border); border-radius: var(--mlt-radius-sm); background: var(--mlt-bg-elev); color: var(--mlt-text); }
.mlt-ai-row { display: flex; gap: 6px; margin-bottom: 6px; }

/* ---------- Alerts ---------- */
.mlt-alert {
    padding: 12px 14px;
    border-radius: var(--mlt-radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}
.mlt-alert-error, .mlt-alert-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.mlt-alert-success, .mlt-alert-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.mlt-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
body.mlt-dark .mlt-alert-error, body.mlt-dark .mlt-alert-err { background: #3a1a1a; border-color: #5a2a2a; color: #ffb5b5; }
body.mlt-dark .mlt-alert-success, body.mlt-dark .mlt-alert-ok { background: #1a3a2a; border-color: #2a5a3a; color: #9fe8b8; }
body.mlt-dark .mlt-alert-info { background: #1a2640; border-color: #2a3a5a; color: #b3cafa; }

/* ---------- Stats ---------- */
.mlt-stat {
    background: var(--mlt-bg-elev);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius);
    padding: 18px;
}
.mlt-stat-label { font-size: 12px; color: var(--mlt-text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.mlt-stat-value { font-size: 28px; font-weight: 700; margin-top: 4px; letter-spacing: -0.5px; color: var(--mlt-text); }
.mlt-stat-sub { font-size: 12px; color: var(--mlt-text-soft); margin-top: 4px; }

/* ---------- Badges / tags ---------- */
.mlt-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    background: var(--mlt-bg-soft);
    color: var(--mlt-text-soft);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.mlt-badge-mine { background: var(--mlt-accent-soft); color: var(--mlt-accent); }
.mlt-badge-accent { background: var(--mlt-accent-soft); color: var(--mlt-accent); }
.mlt-badge-success { background: #d1fae5; color: #065f46; }
.mlt-badge-warn { background: #fef3c7; color: #92400e; }
.mlt-tag { display: inline-block; padding: 2px 8px; font-size: 11px; background: var(--mlt-bg-soft); color: var(--mlt-text-soft); border-radius: 100px; margin-right: 4px; }
.mlt-muted { color: var(--mlt-text-muted); }
.mlt-small { font-size: 12px; }

/* ---------- Tables ---------- */
.mlt-table { width: 100%; border-collapse: collapse; background: var(--mlt-bg-elev); }
.mlt-table th, .mlt-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--mlt-border);
    font-size: 14px;
    color: var(--mlt-text);
}
.mlt-table th { font-weight: 600; color: var(--mlt-text-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.mlt-table tbody tr:hover { background: var(--mlt-bg-soft); }

/* ---------- Tiles ---------- */
.mlt-tile {
    background: var(--mlt-bg-elev);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius);
    overflow: hidden;
    transition: all .18s;
    padding: 0;
}
.mlt-tile:hover { box-shadow: var(--mlt-shadow); transform: translateY(-2px); }
.mlt-tile-img {
    aspect-ratio: 16 / 9;
    background: var(--mlt-bg-soft);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.mlt-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.mlt-tile-media {
    aspect-ratio: 1; background: var(--mlt-bg-soft);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.mlt-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.mlt-tile-media i { font-size: 42px; color: var(--mlt-text-muted); }
.mlt-tile-body { padding: 14px; }
.mlt-tile-head { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.mlt-tile-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlt-tile-meta { font-size: 11px; color: var(--mlt-text-muted); margin-top: 2px; }
.mlt-tile h3 { margin: 0 0 4px; font-size: 15px; color: var(--mlt-text); }

.mlt-empty {
    text-align: center; padding: 50px 20px;
    color: var(--mlt-text-muted);
    background: var(--mlt-bg-elev); border: 1px dashed var(--mlt-border); border-radius: var(--mlt-radius);
}
.mlt-empty i { color: var(--mlt-text-muted); margin-bottom: 12px; }
.mlt-empty h3 { color: var(--mlt-text); margin: 0 0 6px; font-size: 17px; }

/* ---------- Progress bar (readiness) ---------- */
.mlt-progress {
    background: var(--mlt-bg-elev);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius);
    padding: 18px 22px;
    margin-bottom: 20px;
}
.mlt-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.mlt-progress-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.mlt-progress-stage { font-size: 12px; font-weight: 600; color: var(--mlt-accent); text-transform: uppercase; letter-spacing: .5px; }
.mlt-progress-bar { height: 10px; background: var(--mlt-bg-soft); border-radius: 100px; overflow: hidden; position: relative; }
.mlt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff3860, #7928ca);
    border-radius: 100px;
    transition: width .6s cubic-bezier(.2,.8,.2,1);
    animation: mlt-shimmer 2.4s linear infinite;
    background-size: 200% 100%;
}
@keyframes mlt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.mlt-progress-milestones {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px; margin-top: 14px; font-size: 12px;
}
.mlt-progress-milestone {
    display: flex; align-items: center; gap: 6px;
    color: var(--mlt-text-muted);
}
.mlt-progress-milestone.done { color: var(--mlt-success); }
.mlt-progress-milestone i { width: 14px; }

/* ---------- Tooltips (data-tip) ---------- */
[data-tip] { position: relative; }
[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    background: #0f0f14; color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px; line-height: 1.4;
    white-space: nowrap;
    max-width: 280px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    animation: mlt-fadein .2s ease-out;
    pointer-events: none;
}
[data-tip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px); left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #0f0f14;
    z-index: 999;
    pointer-events: none;
}
.mlt-nav a[data-tip]:hover::after, .mlt-nav a[data-tip]:hover::before { display: none; }

/* Flip tooltips DOWN when they'd otherwise clip above the viewport
   (landing header, spoof banner, sticky areas, and elements explicitly marked) */
.mlt-landing-header [data-tip]:hover::after,
.mlt-spoof-banner [data-tip]:hover::after,
.mlt-tip-below[data-tip]:hover::after,
[data-tip-below][data-tip]:hover::after {
    bottom: auto;
    top: calc(100% + 6px);
    animation: mlt-fadein-down .2s ease-out;
}
.mlt-landing-header [data-tip]:hover::before,
.mlt-spoof-banner [data-tip]:hover::before,
.mlt-tip-below[data-tip]:hover::before,
[data-tip-below][data-tip]:hover::before {
    bottom: auto;
    top: calc(100% + 2px);
    border-top-color: transparent;
    border-bottom-color: #0f0f14;
}
@keyframes mlt-fadein {
    from { opacity: 0; transform: translate(-50%, 4px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes mlt-fadein-down {
    from { opacity: 0; transform: translate(-50%, -4px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Tutorial overlay ---------- */
.mlt-tut-backdrop {
    position: fixed; inset: 0; background: rgba(15,15,20,.72);
    display: none; z-index: 1500;
    align-items: center; justify-content: center;
    padding: 24px;
    animation: mlt-fadein-slow .3s;
}
.mlt-tut-backdrop.open { display: flex; }
.mlt-tut-card {
    background: var(--mlt-bg-elev); color: var(--mlt-text);
    border-radius: var(--mlt-radius);
    max-width: 540px; width: 100%;
    padding: 28px;
    box-shadow: var(--mlt-shadow-lg);
}
.mlt-tut-card h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.3px; }
.mlt-tut-card p { color: var(--mlt-text-soft); font-size: 15px; line-height: 1.55; margin: 8px 0; }
.mlt-tut-steps { display: flex; gap: 4px; margin: 18px 0; }
.mlt-tut-step { flex: 1; height: 4px; background: var(--mlt-border); border-radius: 2px; }
.mlt-tut-step.active { background: var(--mlt-accent); }
.mlt-tut-step.done { background: var(--mlt-success); }
.mlt-tut-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
@keyframes mlt-fadein-slow {
    from { opacity: 0; } to { opacity: 1; }
}

/* ---------- Landing page ---------- */
.mlt-landing {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #fdf4f6 100%);
    overflow-x: hidden;
}
body.mlt-dark.mlt-landing {
    background: linear-gradient(180deg, #1f1a24 0%, #2a1d2c 100%);
}

.mlt-landing-header {
    max-width: var(--mlt-max-w); margin: 0 auto;
    padding: 20px 36px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mlt-border);
}
body.mlt-dark .mlt-landing-header { background: rgba(31,26,36,.85); }
.mlt-landing-logo { font-size: 18px; font-weight: 700; color: var(--mlt-text); letter-spacing: -.3px; }
.mlt-landing-nav { display: flex; gap: 8px; align-items: center; }

.mlt-hero {
    max-width: 1200px; margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
    animation: mlt-fade-up 1s ease-out;
}
.mlt-hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--mlt-accent-soft);
    color: var(--mlt-accent);
    font-size: 12px; font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 20px;
    animation: mlt-pulse 2.4s infinite;
}
@keyframes mlt-pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.mlt-hero h1 {
    font-size: 64px; font-weight: 800;
    letter-spacing: -1.8px; line-height: 1.05;
    margin: 0 0 20px;
    color: var(--mlt-text);
}
.mlt-hero h1 span {
    background: linear-gradient(135deg, #ff3860, #7928ca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: mlt-gradient-shift 4s ease-in-out infinite;
    background-size: 200% auto;
}
@keyframes mlt-gradient-shift {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.mlt-hero p {
    font-size: 20px; color: var(--mlt-text-soft);
    max-width: 720px; margin: 0 auto 32px;
    line-height: 1.55;
}
.mlt-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mlt-hero-cta .mlt-btn { position: relative; overflow: hidden; }
.mlt-hero-cta .mlt-btn-accent::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    animation: mlt-sheen 3s infinite;
}
@keyframes mlt-sheen { 100% { left: 200%; } }

/* Stats strip */
.mlt-landing-stats {
    max-width: var(--mlt-max-w); margin: 0 auto;
    padding: 20px 36px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    text-align: center;
}
.mlt-landing-stat { padding: 12px; }
.mlt-landing-stat-num { font-size: 32px; font-weight: 800; letter-spacing: -.5px; color: var(--mlt-text); }
.mlt-landing-stat-num span {
    background: linear-gradient(135deg, #ff3860, #7928ca);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mlt-landing-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--mlt-text-muted); margin-top: 4px; }

/* Section wrapper */
.mlt-section {
    max-width: var(--mlt-max-w); margin: 0 auto;
    padding: 60px 36px;
}
.mlt-section-inner { max-width: 1400px; margin: 0 auto; }
.mlt-section h2 { font-size: 36px; letter-spacing: -.8px; margin: 0 0 12px; color: var(--mlt-text); }
.mlt-section-sub { font-size: 17px; color: var(--mlt-text-soft); max-width: 680px; margin: 0 auto 40px; text-align: center; }
.mlt-section-head { text-align: center; margin-bottom: 40px; }

.mlt-features {
    max-width: 1400px; margin: 0 auto;
    padding: 20px 36px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.mlt-feature {
    background: var(--mlt-bg-elev);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius);
    padding: 28px;
    transition: transform .2s, box-shadow .2s;
}
.mlt-feature:hover { transform: translateY(-4px); box-shadow: var(--mlt-shadow-lg); }
.mlt-feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--mlt-accent-soft);
    color: var(--mlt-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.mlt-feature h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--mlt-text); }
.mlt-feature p { font-size: 14px; color: var(--mlt-text-soft); margin: 0; line-height: 1.55; }

/* Recent members strip */
.mlt-members {
    max-width: 1400px; margin: 0 auto;
    padding: 0 36px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.mlt-member {
    background: var(--mlt-bg-elev); border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius); overflow: hidden;
    transition: transform .2s;
    animation: mlt-fade-up .6s ease-out both;
}
.mlt-member:hover { transform: translateY(-2px); box-shadow: var(--mlt-shadow); }
.mlt-member-img { aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, #ff3860, #7928ca); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 700; }
.mlt-member-img img { width: 100%; height: 100%; object-fit: cover; }
.mlt-member-body { padding: 12px 14px; }
.mlt-member-name { font-weight: 600; font-size: 14px; color: var(--mlt-text); }
.mlt-member-meta { font-size: 11px; color: var(--mlt-text-muted); margin-top: 2px; }

/* Social proof / testimonials */
.mlt-testimonials {
    max-width: 1400px; margin: 0 auto;
    padding: 0 36px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.mlt-quote {
    background: var(--mlt-bg-elev); border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius); padding: 22px;
    position: relative;
}
.mlt-quote::before {
    content: '\201C'; position: absolute; top: -10px; left: 16px;
    font-size: 80px; color: var(--mlt-accent); opacity: .2; line-height: 1;
    font-family: Georgia, serif;
}
.mlt-quote p { color: var(--mlt-text-soft); font-size: 15px; line-height: 1.6; margin: 0 0 16px; position: relative; z-index: 1; }
.mlt-quote-author { display: flex; align-items: center; gap: 10px; }
.mlt-quote-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#ff3860,#7928ca); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.mlt-quote-name { font-size: 14px; font-weight: 600; color: var(--mlt-text); }
.mlt-quote-role { font-size: 12px; color: var(--mlt-text-muted); }

/* About (Frank & Rob) — carousel */
.mlt-about-hero {
    max-width: 1400px; margin: 0 auto;
    padding: 0 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center;
}
@media (max-width: 900px) { .mlt-about-hero { grid-template-columns: 1fr; } }
.mlt-carousel { position: relative; border-radius: var(--mlt-radius); overflow: hidden; aspect-ratio: 4/3; background: var(--mlt-bg-soft); }
.mlt-carousel-track { display: flex; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.mlt-carousel-slide { min-width: 100%; height: 100%; position: relative; }
.mlt-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.mlt-carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 13px; }
.mlt-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; border: none; cursor: pointer; font-size: 14px; }
.mlt-carousel-btn:hover { background: #fff; }
.mlt-carousel-btn.prev { left: 12px; }
.mlt-carousel-btn.next { right: 12px; }
.mlt-carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.mlt-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; }
.mlt-carousel-dot.active { background: #fff; width: 24px; border-radius: 100px; }

@keyframes mlt-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auth */
.mlt-auth-card {
    max-width: 420px; margin: 60px auto;
    background: var(--mlt-bg-elev);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius);
    padding: 32px;
    box-shadow: var(--mlt-shadow-lg);
    animation: mlt-fade-up .5s ease-out;
}
.mlt-auth-card h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.5px; color: var(--mlt-text); }
.mlt-auth-card-sub { color: var(--mlt-text-soft); font-size: 14px; margin-bottom: 24px; }
.mlt-auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--mlt-bg-soft); padding: 4px; border-radius: var(--mlt-radius-sm); }
.mlt-auth-tab { flex: 1; text-align: center; padding: 8px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--mlt-text-soft); transition: all .15s; }
.mlt-auth-tab.active { background: var(--mlt-bg-elev); color: var(--mlt-text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mlt-auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--mlt-text-soft); }

/* Onboarding */
.mlt-onboarding { max-width: 680px; margin: 40px auto; padding: 0 24px; }
.mlt-onboarding-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.mlt-onboarding-step { flex: 1; height: 4px; background: var(--mlt-border); border-radius: 2px; transition: background .3s; }
.mlt-onboarding-step.active { background: var(--mlt-accent); }

/* Dropzone */
.dropzone {
    border: 2px dashed var(--mlt-border) !important;
    border-radius: var(--mlt-radius) !important;
    background: var(--mlt-bg-elev) !important;
    padding: 40px 20px !important;
    min-height: 150px !important;
}
.dropzone:hover { border-color: var(--mlt-accent) !important; background: var(--mlt-bg-soft) !important; }
.dropzone .dz-message { color: var(--mlt-text-soft) !important; font-size: 14px !important; }

/* AI assist */
.mlt-ai-box {
    background: linear-gradient(135deg, var(--mlt-bg-elev) 0%, var(--mlt-accent-soft) 100%);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius);
    padding: 16px;
    margin-bottom: 16px;
}
.mlt-ai-label { font-size: 12px; color: var(--mlt-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }

/* Modal */
.mlt-modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 15, 20, 0.5);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 24px;
    animation: mlt-fadein-slow .2s;
}
.mlt-modal-backdrop.open { display: flex; }
.mlt-modal {
    background: var(--mlt-bg-elev); color: var(--mlt-text);
    border-radius: var(--mlt-radius);
    max-width: 600px; width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: var(--mlt-shadow-lg);
    animation: mlt-fade-up .25s ease-out;
}
.mlt-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mlt-modal-title { font-size: 18px; font-weight: 600; margin: 0; }
.mlt-modal-close { cursor: pointer; color: var(--mlt-text-muted); font-size: 20px; background: none; border: none; }

/* Select2 polish */
.select2-container .select2-selection--single { height: 40px !important; border-color: var(--mlt-border) !important; border-radius: var(--mlt-radius-sm) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px !important; padding-left: 12px !important; color: var(--mlt-text) !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px !important; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--mlt-accent) !important; box-shadow: 0 0 0 3px var(--mlt-accent-soft) !important; }

/* Responsive */
@media (max-width: 900px) {
    .mlt-sidebar { transform: translateX(-100%); transition: transform .2s; }
    .mlt-sidebar.open { transform: translateX(0); }
    .mlt-main { margin-left: 0; padding: 20px; }
    .mlt-hero h1 { font-size: 40px; }
    .mlt-hero p { font-size: 16px; }
    .mlt-section h2 { font-size: 28px; }
}

/* Tab bar (used on fans, merch, etc.) */
.mlt-tabs {
    display: flex; flex-wrap: wrap; gap: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--mlt-border);
}
.mlt-tabs a {
    padding: 10px 16px;
    font-size: 14px; font-weight: 500;
    color: var(--mlt-text-soft);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.mlt-tabs a:hover { color: var(--mlt-text); background: var(--mlt-bg-soft); }
.mlt-tabs a.active {
    color: var(--mlt-accent);
    border-bottom-color: var(--mlt-accent);
    background: transparent;
}
.mlt-tabs a i { font-size: 13px; }

/* Toolbar — keeps controls inline and compact */
.mlt-toolbar {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 8px;
    padding: 10px 12px;
    background: var(--mlt-bg-soft);
    border: 1px solid var(--mlt-border);
    border-radius: var(--mlt-radius-sm, 6px);
    margin-bottom: 14px;
}
.mlt-toolbar input[type="text"],
.mlt-toolbar input[type="search"],
.mlt-toolbar select {
    height: 32px; padding: 4px 8px;
    font-size: 13px;
    border: 1px solid var(--mlt-border);
    border-radius: 4px;
    background: var(--mlt-bg);
    color: var(--mlt-text);
    width: auto; flex: 0 0 auto; margin: 0;
}
.mlt-toolbar input[type="search"], .mlt-toolbar input.mlt-toolbar-search { flex: 1 1 200px; min-width: 160px; }
.mlt-toolbar select { min-width: 130px; max-width: 180px; }
.mlt-toolbar .mlt-toolbar-spacer { flex: 1 1 auto; }
.mlt-toolbar .mlt-btn { height: 32px; padding: 0 12px; font-size: 13px; }
.mlt-toolbar-divider { width: 1px; height: 20px; background: var(--mlt-border); margin: 0 4px; }

/* Comparison list on landing page */
.mlt-compare { list-style: none; padding: 0; margin: 0; }
.mlt-compare li {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 10px 0; border-bottom: 1px solid var(--mlt-border);
    font-size: 14px; color: var(--mlt-text); gap: 12px;
}
.mlt-compare li:last-child { border-bottom: 0; }
.mlt-compare li span { color: var(--mlt-text-muted); font-size: 12px; white-space: nowrap; font-weight: 500; }
.mlt-compare li strong { color: var(--mlt-text); }

/* Utility */
.mlt-flex { display: flex; gap: 12px; align-items: center; }
.mlt-flex-between { display: flex; justify-content: space-between; align-items: center; }
.mlt-gap-8 { gap: 8px; } .mlt-gap-16 { gap: 16px; }
.mlt-mb-8 { margin-bottom: 8px; } .mlt-mb-16 { margin-bottom: 16px; } .mlt-mb-24 { margin-bottom: 24px; }
.mlt-mt-16 { margin-top: 16px; } .mlt-mt-24 { margin-top: 24px; }
.mlt-text-muted { color: var(--mlt-text-muted); }
.mlt-text-center { text-align: center; }
.mlt-text-sm { font-size: 13px; }
.mlt-hidden { display: none !important; }
