/* ============================================================
   MOISSONNEURS MLM — Frontend CSS v2.1
   Thème: Terre africaine • Or • Vert forêt • Blanc crème
   Fonts: Playfair Display + DM Sans
   ============================================================ */

:root {
  --mlm-green:      #1a6b35;
  --mlm-green-light:#2d9b52;
  --mlm-green-pale: #e6f7ec;
  --mlm-gold:       #c9952a;
  --mlm-gold-light: #f0c040;
  --mlm-cream:      #fdf8f0;
  --mlm-dark:       #1a1a2e;
  --mlm-text:       #2c2c2c;
  --mlm-muted:      #6b7280;
  --mlm-border:     #e5e0d8;
  --mlm-white:      #ffffff;
  --mlm-danger:     #dc2626;
  --mlm-warning:    #d97706;
  --mlm-info:       #0ea5e9;
  --mlm-shadow:     0 4px 24px rgba(26,107,53,.12);
  --mlm-shadow-lg:  0 12px 40px rgba(26,107,53,.18);
  --mlm-radius:     16px;
  --mlm-radius-sm:  10px;
  --mlm-font-head:  'Playfair Display', Georgia, serif;
  --mlm-font-body:  'DM Sans', system-ui, sans-serif;
}

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

.mlm-wrap { font-family: var(--mlm-font-body); color: var(--mlm-text); background: var(--mlm-cream); min-height: 100vh; }

/* ---- NAVBAR ---- */
.mlm-navbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--mlm-green); color: #fff;
  padding: 0 24px; height: 64px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.mlm-nav-brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.mlm-nav-logo { font-size: 28px; }
.mlm-nav-name { font-family: var(--mlm-font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: .5px; }
.mlm-nav-links { display: flex; list-style: none; gap: 4px; }
.mlm-nav-links a { color: rgba(255,255,255,.85); text-decoration: none; padding: 6px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; transition: background .2s; }
.mlm-nav-links a:hover, .mlm-nav-links a.active { background: rgba(255,255,255,.15); color: #fff; }
.mlm-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mlm-nav-user { display: flex; align-items: center; gap: 12px; }
.mlm-nav-wallet { background: rgba(255,255,255,.15); padding: 5px 14px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.mlm-nav-avatar-menu { position: relative; }
.mlm-nav-avatar { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.5); }
.mlm-nav-dropdown { display: none; position: absolute; right: 0; top: 46px; background: #fff; border-radius: var(--mlm-radius-sm); box-shadow: var(--mlm-shadow-lg); min-width: 180px; overflow: hidden; z-index: 200; }
.mlm-nav-dropdown.open { display: block; }
.mlm-nav-dropdown a { display: block; padding: 11px 18px; color: var(--mlm-text); text-decoration: none; font-size: .9rem; }
.mlm-nav-dropdown a:hover { background: var(--mlm-green-pale); color: var(--mlm-green); }
.mlm-nav-dropdown hr { border: none; border-top: 1px solid var(--mlm-border); margin: 2px 0; }

/* ---- PAGE HEADER ---- */
.mlm-page-header { background: linear-gradient(135deg,var(--mlm-green) 0%,var(--mlm-green-light) 100%); color: #fff; padding: 32px 32px 24px; }
.mlm-page-header h2 { font-family: var(--mlm-font-head); font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.mlm-page-header p { opacity: .88; font-size: 1rem; }
.mlm-header-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.mlm-user-greeting { display: flex; align-items: center; gap: 16px; }
.mlm-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5); }
.mlm-career-badge { display: flex; align-items: center; gap: 8px; font-size: .95rem; opacity: .9; margin-top: 4px; }
.mlm-code-badge { background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600; }
.mlm-wallet-chip { background: rgba(255,255,255,.18); padding: 8px 20px; border-radius: 24px; font-size: .95rem; font-weight: 600; margin-top: 10px; display: inline-block; }

/* ---- DASHBOARD GRID ---- */
.mlm-dashboard-wrap { padding-bottom: 48px; }
.mlm-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 24px 32px 8px; }
.mlm-stat-card { background: #fff; border-radius: var(--mlm-radius); padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--mlm-shadow); position: relative; overflow: hidden; transition: transform .2s; }
.mlm-stat-card:hover { transform: translateY(-2px); }
.mlm-stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.mlm-stat-wallet::before { background: var(--mlm-gold); }
.mlm-stat-team::before   { background: var(--mlm-green); }
.mlm-stat-network::before { background: var(--mlm-info); }
.mlm-stat-commission::before { background: var(--mlm-gold-light); }
.mlm-stat-icon { font-size: 2rem; }
.mlm-stat-body { flex: 1; }
.mlm-stat-label { display: block; font-size: .78rem; color: var(--mlm-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.mlm-stat-value { display: block; font-size: 1.4rem; font-weight: 700; color: var(--mlm-dark); line-height: 1.2; margin-top: 2px; }
.mlm-stat-convert { display: block; font-size: .75rem; color: var(--mlm-muted); margin-top: 2px; }
.mlm-stat-link { font-size: .8rem; color: var(--mlm-green); text-decoration: none; font-weight: 600; white-space: nowrap; }

.mlm-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 32px 0; }
.mlm-stats-row { grid-column: 1/-1; }
.mlm-col-left, .mlm-col-right { display: flex; flex-direction: column; gap: 20px; }

/* ---- CARDS ---- */
.mlm-card { background: #fff; border-radius: var(--mlm-radius); box-shadow: var(--mlm-shadow); overflow: hidden; }
.mlm-card-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 14px; border-bottom: 1px solid var(--mlm-border); }
.mlm-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--mlm-dark); }
.mlm-card-link { font-size: .82rem; color: var(--mlm-green); text-decoration: none; font-weight: 600; }

/* ---- CAREER SECTION ---- */
.mlm-career-section { padding: 18px 22px; }
.mlm-career-current { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mlm-level-icon { font-size: 2.2rem; }
.mlm-career-current strong { font-size: 1.05rem; }
.mlm-career-current p { font-size: .85rem; color: var(--mlm-muted); margin-top: 2px; }
.mlm-career-next { background: var(--mlm-green-pale); border-radius: var(--mlm-radius-sm); padding: 14px; }
.mlm-next-label { font-size: .9rem; margin-bottom: 10px; }
.mlm-progress-item { margin-bottom: 8px; }
.mlm-progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--mlm-muted); margin-bottom: 3px; }
.mlm-progress-bar { background: #d1fae5; height: 8px; border-radius: 4px; overflow: hidden; }
.mlm-progress-fill { background: var(--mlm-green); height: 100%; transition: width .4s ease; border-radius: 4px; }
.mlm-bonus-preview { font-size: .85rem; margin-top: 10px; color: var(--mlm-gold); font-weight: 600; }

/* ---- REFERRAL ---- */
.mlm-referral-section { padding: 18px 22px; }
.mlm-code-label { display: block; font-size: .78rem; color: var(--mlm-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.mlm-code-box, .mlm-link-box { display: flex; align-items: center; gap: 8px; background: var(--mlm-cream); border: 1px solid var(--mlm-border); border-radius: var(--mlm-radius-sm); padding: 8px 12px; margin-bottom: 12px; }
.mlm-code-box span { font-size: 1.1rem; font-weight: 700; font-family: monospace; color: var(--mlm-green); flex: 1; }
.mlm-link-box input { border: none; background: none; flex: 1; font-size: .82rem; color: var(--mlm-muted); outline: none; }
.mlm-copy-btn { background: var(--mlm-green); color: #fff; border: none; border-radius: 8px; padding: 5px 12px; font-size: .8rem; cursor: pointer; transition: background .2s; white-space: nowrap; }
.mlm-copy-btn:hover { background: var(--mlm-green-light); }
.mlm-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mlm-share-btn { padding: 7px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.mlm-share-btn:hover { opacity: .85; }
.mlm-share-wa { background: #25d366; color: #fff; }
.mlm-share-fb { background: #1877f2; color: #fff; }
.mlm-share-tg { background: #0088cc; color: #fff; }
.mlm-share-tw { background: #000; color: #fff; }

/* ---- TRANSACTIONS ---- */
.mlm-transactions-list { padding: 8px 0; }
.mlm-tx-item { display: flex; align-items: center; gap: 12px; padding: 11px 22px; border-bottom: 1px solid var(--mlm-border); }
.mlm-tx-item:last-child { border-bottom: none; }
.mlm-tx-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.tx-credit { background: var(--mlm-green-pale); }
.tx-debit  { background: #fee2e2; }
.mlm-tx-details { flex: 1; }
.mlm-tx-desc { display: block; font-size: .88rem; font-weight: 500; color: var(--mlm-dark); }
.mlm-tx-date { display: block; font-size: .75rem; color: var(--mlm-muted); margin-top: 2px; }
.mlm-tx-amount { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.tx-positive { color: var(--mlm-green); }
.tx-negative { color: var(--mlm-danger); }

/* ---- TEAM LIST ---- */
.mlm-team-list { padding: 8px 0; }
.mlm-team-item { display: flex; align-items: center; gap: 10px; padding: 10px 22px; border-bottom: 1px solid var(--mlm-border); }
.mlm-team-avatar { width: 36px; height: 36px; border-radius: 50%; }
.mlm-team-info { flex: 1; }
.mlm-team-name { display: block; font-size: .88rem; font-weight: 600; }
.mlm-team-code { display: block; font-size: .75rem; color: var(--mlm-muted); font-family: monospace; }
.mlm-team-status { font-size: .78rem; font-weight: 600; }

/* ---- AUTH PAGES ---- */
.mlm-auth-wrap { background: linear-gradient(135deg,#0f3d1f 0%,#1a6b35 50%,#c9952a 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.mlm-auth-container { width: 100%; max-width: 480px; padding: 24px; }
.mlm-auth-register { max-width: 600px; }
.mlm-auth-brand { text-align: center; color: #fff; margin-bottom: 24px; }
.mlm-brand-logo { font-size: 4rem; margin-bottom: 8px; }
.mlm-brand-name { font-family: var(--mlm-font-head); font-size: 2.2rem; font-weight: 800; letter-spacing: 1px; }
.mlm-brand-slogan { font-size: 1rem; opacity: .8; margin-top: 6px; font-style: italic; }
.mlm-auth-card { background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.mlm-auth-card h2 { font-family: var(--mlm-font-head); font-size: 1.8rem; color: var(--mlm-dark); margin-bottom: 6px; }
.mlm-auth-sub { color: var(--mlm-muted); font-size: .92rem; margin-bottom: 24px; }
.mlm-auth-links { text-align: center; margin-top: 20px; font-size: .9rem; }
.mlm-auth-links a { color: var(--mlm-green); font-weight: 600; text-decoration: none; }

/* ---- FORMS ---- */
.mlm-form { display: flex; flex-direction: column; gap: 16px; }
.mlm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mlm-field { display: flex; flex-direction: column; gap: 6px; }
.mlm-field label { font-size: .85rem; font-weight: 600; color: var(--mlm-dark); }
.mlm-field input, .mlm-field select, .mlm-field textarea {
  border: 1.5px solid var(--mlm-border); border-radius: var(--mlm-radius-sm);
  padding: 10px 14px; font-family: var(--mlm-font-body); font-size: .95rem; color: var(--mlm-text);
  background: #fff; outline: none; transition: border-color .2s;
}
.mlm-field input:focus, .mlm-field select:focus, .mlm-field textarea:focus { border-color: var(--mlm-green); box-shadow: 0 0 0 3px rgba(26,107,53,.1); }
.mlm-field small { font-size: .78rem; color: var(--mlm-muted); }
.mlm-input-icon { position: relative; }
.mlm-input-icon input { padding-right: 44px; width: 100%; }
.mlm-toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .5; }
.mlm-ref-field input { font-family: monospace; font-weight: 600; letter-spacing: 1px; }
.req { color: var(--mlm-danger); }
.mlm-terms { font-size: .85rem; }
.mlm-terms input { width: auto; margin-right: 6px; }

/* ---- BUTTONS ---- */
.mlm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: var(--mlm-radius-sm); font-family: var(--mlm-font-body); font-size: .95rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .2s; line-height: 1; }
.mlm-btn-full { width: 100%; }
.mlm-btn-primary { background: var(--mlm-green); color: #fff; }
.mlm-btn-primary:hover { background: var(--mlm-green-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,107,53,.3); }
.mlm-btn-success { background: #16a34a; color: #fff; }
.mlm-btn-success:hover { background: #15803d; }
.mlm-btn-warning { background: var(--mlm-warning); color: #fff; }
.mlm-btn-outline { background: transparent; color: var(--mlm-green); border: 2px solid var(--mlm-green); }
.mlm-btn-outline:hover { background: var(--mlm-green-pale); }
.mlm-btn-disabled, .mlm-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.mlm-btn-sm { padding: 7px 14px; font-size: .82rem; }
.mlm-cta-activate a { padding: 14px 28px; font-size: 1rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(217,119,6,.4)} 70%{box-shadow:0 0 0 10px rgba(217,119,6,0)} }

/* ---- ALERTS ---- */
.mlm-alert { padding: 12px 18px; border-radius: var(--mlm-radius-sm); font-size: .9rem; font-weight: 500; margin: 12px 0; }
.mlm-alert-success { background: var(--mlm-green-pale); color: var(--mlm-green); border: 1px solid #bbf7d0; }
.mlm-alert-error   { background: #fee2e2; color: var(--mlm-danger); border: 1px solid #fecaca; }
.mlm-alert-info    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

/* ---- MODALS ---- */
.mlm-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mlm-modal-box { background: #fff; border-radius: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.mlm-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 16px; border-bottom: 1px solid var(--mlm-border); }
.mlm-modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.mlm-modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--mlm-muted); }
.mlm-modal-footer { padding: 16px 24px; border-top: 1px solid var(--mlm-border); display: flex; justify-content: flex-end; gap: 10px; }
.mlm-modal-body, .mlm-modal form { padding: 20px 24px; }

/* ---- PAYMENT METHODS GRID ---- */
.mlm-payment-methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px; }
.mlm-method-option input { display: none; }
.mlm-method-card { border: 2px solid var(--mlm-border); border-radius: var(--mlm-radius-sm); padding: 12px; text-align: center; cursor: pointer; transition: all .2s; }
.mlm-method-card:hover { border-color: var(--mlm-green); }
.mlm-method-option input:checked + .mlm-method-card { border-color: var(--mlm-green); background: var(--mlm-green-pale); }
.mlm-method-icon { display: block; font-size: 1.8rem; margin-bottom: 4px; }
.mlm-method-name { display: block; font-size: .8rem; font-weight: 700; }
.mlm-method-type { display: block; font-size: .7rem; color: var(--mlm-muted); }
.mlm-method-details-box { background: var(--mlm-cream); border: 1px solid var(--mlm-border); border-radius: var(--mlm-radius-sm); padding: 14px; margin-top: 4px; font-size: .88rem; }

/* ---- WALLET PAGE ---- */
.mlm-wallet-hero { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px; flex-wrap: wrap; gap: 20px; }
.mlm-balance-card { background: linear-gradient(135deg,var(--mlm-green),var(--mlm-green-light)); border-radius: 20px; padding: 28px 36px; color: #fff; min-width: 300px; }
.mlm-balance-label { font-size: .85rem; opacity: .85; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.mlm-balance-main { font-size: 2.8rem; font-weight: 800; font-family: var(--mlm-font-head); line-height: 1.1; }
.mlm-balance-main span { font-size: 1.2rem; opacity: .8; }
.mlm-balance-convert { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.mlm-currency-select { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: .85rem; outline: none; }
#converted-balance { font-size: 1rem; font-weight: 600; opacity: .9; }
.mlm-wallet-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- TABS ---- */
.mlm-tabs-header { display: flex; gap: 4px; border-bottom: 2px solid var(--mlm-border); padding: 0 32px; margin-bottom: 0; }
.mlm-tab-btn { background: none; border: none; padding: 12px 20px; font-family: var(--mlm-font-body); font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--mlm-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.mlm-tab-btn.active, .mlm-tab-btn:hover { color: var(--mlm-green); border-bottom-color: var(--mlm-green); }
.mlm-tab-content { display: none; padding: 24px 32px; }
.mlm-tab-content.active { display: block; }
.mlm-wallet-tabs { background: #fff; border-radius: 0 0 var(--mlm-radius) var(--mlm-radius); box-shadow: var(--mlm-shadow); margin: 0 0 32px; }
.mlm-network-tabs, .mlm-wallet-tabs { background: #fff; margin: 20px 32px; border-radius: var(--mlm-radius); box-shadow: var(--mlm-shadow); }

/* ---- TABLE ---- */
.mlm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mlm-table thead tr { background: var(--mlm-green-pale); }
.mlm-table th { padding: 11px 14px; text-align: left; font-weight: 700; color: var(--mlm-green); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.mlm-table td { padding: 11px 14px; border-bottom: 1px solid var(--mlm-border); }
.mlm-table tbody tr:hover { background: #fafaf7; }
.mlm-transactions-table-wrap { overflow-x: auto; }
.mlm-tx-desc-cell { max-width: 250px; }
.mlm-tx-ref { font-family: monospace; font-size: .8rem; color: var(--mlm-muted); }

/* ---- STATUS BADGES ---- */
.mlm-status-badge { padding: 3px 10px; border-radius: 12px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.mlm-status-active   { background: var(--mlm-green-pale); color: var(--mlm-green); }
.mlm-status-pending  { background: #fef3c7; color: #92400e; }
.mlm-status-approved { background: var(--mlm-green-pale); color: var(--mlm-green); }
.mlm-status-rejected { background: #fee2e2; color: var(--mlm-danger); }
.mlm-status-suspended{ background: #fee2e2; color: var(--mlm-danger); }

.mlm-type-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: .75rem; font-weight: 600; background: var(--mlm-cream); }
.mlm-type-commission { background: #fef9c3; color: #854d0e; }
.mlm-type-bonus      { background: #e0e7ff; color: #3730a3; }
.mlm-type-recharge   { background: var(--mlm-green-pale); color: var(--mlm-green); }
.mlm-type-withdrawal { background: #fee2e2; color: var(--mlm-danger); }
.mlm-type-pack_purchase { background: #f3e8ff; color: #7e22ce; }

/* ---- NETWORK ---- */
.mlm-network-stats { display: flex; gap: 0; background: var(--mlm-dark); color: #fff; padding: 20px 32px; }
.mlm-nstat { flex: 1; text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,.1); }
.mlm-nstat:last-child { border-right: none; }
.mlm-nstat-val { display: block; font-size: 2rem; font-weight: 800; font-family: var(--mlm-font-head); color: var(--mlm-gold-light); }
.mlm-nstat-lbl { display: block; font-size: .8rem; opacity: .7; margin-top: 2px; }

/* Tree */
.mlm-tree-container { height: 550px; position: relative; overflow: hidden; background: #f8f9fa; border-radius: var(--mlm-radius-sm); margin-top: 12px; }
.mlm-tree-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#mlm-tree-svg { width: 100%; height: 100%; }
.mlm-tree-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--mlm-muted); }
.mlm-node-tooltip { position: fixed; background: var(--mlm-dark); color: #fff; padding: 10px 14px; border-radius: var(--mlm-radius-sm); font-size: .82rem; pointer-events: none; z-index: 500; max-width: 200px; }
.mlm-level-badge { background: var(--mlm-green-pale); color: var(--mlm-green); padding: 3px 10px; border-radius: 10px; font-size: .8rem; font-weight: 700; }

/* Team Grid */
.mlm-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; padding-top: 16px; }
.mlm-member-card { background: #fff; border-radius: var(--mlm-radius-sm); border: 1px solid var(--mlm-border); overflow: hidden; transition: box-shadow .2s; }
.mlm-member-card:hover { box-shadow: var(--mlm-shadow); }
.mlm-member-header { position: relative; text-align: center; padding-top: 20px; }
.mlm-member-avatar { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--mlm-border); }
.mlm-member-status { position: absolute; top: 12px; right: 12px; font-size: .8rem; }
.mlm-member-body { padding: 10px 14px; text-align: center; }
.mlm-member-body h4 { font-size: .9rem; font-weight: 700; margin-bottom: 3px; }
.mlm-member-code { font-family: monospace; font-size: .75rem; color: var(--mlm-muted); }
.mlm-member-career { font-size: .8rem; color: var(--mlm-green); margin: 3px 0; }
.mlm-member-pack { font-size: .75rem; color: var(--mlm-muted); }
.mlm-member-footer { padding: 8px 14px; border-top: 1px solid var(--mlm-border); background: var(--mlm-cream); }
.mlm-member-date { font-size: .75rem; color: var(--mlm-muted); }

/* ---- PACKS ---- */
.mlm-packs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; padding: 24px 32px; }
.mlm-pack-card { background: #fff; border-radius: 20px; box-shadow: var(--mlm-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; position: relative; }
.mlm-pack-card:hover { transform: translateY(-4px); box-shadow: var(--mlm-shadow-lg); }
.mlm-pack-active { border: 3px solid var(--mlm-green); }
.mlm-pack-current-badge { background: var(--mlm-green); color: #fff; text-align: center; padding: 8px; font-size: .82rem; font-weight: 700; }
.mlm-pack-images { position: relative; height: 200px; overflow: hidden; }
.mlm-pack-img { width: 100%; height: 200px; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .4s; }
.mlm-pack-img.active { opacity: 1; }
.mlm-slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.mlm-dot { width: 8px; height: 8px; background: rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; transition: background .2s; }
.mlm-dot.active { background: #fff; }
.mlm-pack-body { padding: 20px; }
.mlm-pack-name { font-family: var(--mlm-font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.mlm-pack-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.mlm-price-main { font-size: 2rem; font-weight: 800; color: var(--mlm-green); font-family: var(--mlm-font-head); }
.mlm-price-currency { font-size: .9rem; color: var(--mlm-muted); }
.mlm-pack-desc { font-size: .88rem; color: var(--mlm-muted); margin-bottom: 14px; line-height: 1.5; }
.mlm-pack-prizes { background: var(--mlm-cream); border-radius: var(--mlm-radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.mlm-pack-prizes h4 { font-size: .85rem; font-weight: 700; margin-bottom: 8px; color: var(--mlm-gold); }
.mlm-pack-prizes li { font-size: .83rem; color: var(--mlm-text); list-style: none; padding: 2px 0; }
.mlm-pack-commissions { margin-bottom: 14px; }
.mlm-pack-commissions h4 { font-size: .82rem; font-weight: 700; color: var(--mlm-muted); margin-bottom: 8px; text-transform: uppercase; }
.mlm-commission-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.mlm-commission-pill { background: #e0f2fe; color: #0369a1; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.mlm-pill-more { background: #f3f4f6; color: var(--mlm-muted); }
.mlm-pack-partner { display: flex; align-items: center; gap: 10px; background: var(--mlm-cream); border-radius: var(--mlm-radius-sm); padding: 10px; margin-bottom: 14px; }
.mlm-partner-logo-sm { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.mlm-partner-label { display: block; font-size: .7rem; color: var(--mlm-muted); }
.mlm-partner-name { display: block; font-size: .88rem; font-weight: 700; }
.mlm-delivery-note { font-size: .75rem; color: var(--mlm-muted); text-align: center; margin-top: 8px; }

/* ---- DELIVERY FORM ---- */
.mlm-delivery-form { background: var(--mlm-cream); border-radius: var(--mlm-radius-sm); padding: 16px; margin: 14px 0; }
.mlm-delivery-form h4 { margin-bottom: 12px; font-size: .95rem; }
.mlm-geo-status, .mlm-geo-saved { font-size: .8rem; color: var(--mlm-green); margin-left: 8px; }

/* ---- PARTNERS ---- */
.mlm-partners-hero { background: linear-gradient(135deg,var(--mlm-dark) 0%,var(--mlm-green) 100%); color: #fff; padding: 48px 32px; text-align: center; }
.mlm-partners-hero h1 { font-family: var(--mlm-font-head); font-size: 2.5rem; margin-bottom: 12px; }
.mlm-partners-search { padding: 24px 32px 0; }
.mlm-partners-search input { width: 100%; max-width: 500px; display: block; margin: 0 auto; padding: 14px 24px; border-radius: 50px; border: 2px solid var(--mlm-border); font-size: 1rem; outline: none; }
.mlm-partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 24px; padding: 28px 32px; }
.mlm-partner-stand { background: #fff; border-radius: 20px; box-shadow: var(--mlm-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mlm-partner-stand:hover { transform: translateY(-4px); box-shadow: var(--mlm-shadow-lg); }
.mlm-stand-header { height: 160px; background: var(--mlm-green); position: relative; display: flex; align-items: flex-end; justify-content: center; background-size: cover; background-position: center; }
.mlm-stand-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mlm-stand-logo-wrap { position: absolute; bottom: -30px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--mlm-shadow); }
.mlm-stand-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; }
.mlm-stand-duration { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: .75rem; padding: 4px 10px; border-radius: 10px; }
.mlm-stand-body { padding: 44px 20px 20px; }
.mlm-stand-name { font-family: var(--mlm-font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.mlm-stand-desc { font-size: .86rem; color: var(--mlm-muted); margin-bottom: 14px; line-height: 1.5; }
.mlm-stand-gallery { display: flex; gap: 6px; margin-bottom: 14px; }
.mlm-gallery-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.mlm-stand-products h4 { font-size: .82rem; font-weight: 700; color: var(--mlm-muted); margin-bottom: 10px; text-transform: uppercase; }
.mlm-products-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.mlm-product-card { flex-shrink: 0; width: 100px; border: 1px solid var(--mlm-border); border-radius: 10px; overflow: hidden; }
.mlm-product-img { width: 100%; height: 70px; object-fit: cover; }
.mlm-product-info { padding: 6px 8px; }
.mlm-product-info h5 { font-size: .75rem; font-weight: 700; margin-bottom: 2px; }
.mlm-product-price { font-size: .72rem; color: var(--mlm-green); font-weight: 600; }
.mlm-stand-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mlm-contact-btn { padding: 7px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.mlm-contact-wa  { background: #25d366; color: #fff; }
.mlm-contact-fb  { background: #1877f2; color: #fff; }
.mlm-contact-web { background: var(--mlm-cream); color: var(--mlm-green); border: 1px solid var(--mlm-border); }

/* Lightbox */
.mlm-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 2000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.mlm-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; }

/* ---- PROFILE ---- */
.mlm-profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; padding: 24px 32px; align-items: start; }
.mlm-profile-card { background: #fff; border-radius: 20px; box-shadow: var(--mlm-shadow); padding: 28px; text-align: center; }
.mlm-profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.mlm-profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--mlm-green); }
.mlm-profile-career-badge { position: absolute; bottom: 0; right: 0; font-size: 1.5rem; background: #fff; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.mlm-profile-card h3 { font-family: var(--mlm-font-head); font-size: 1.4rem; font-weight: 700; }
.mlm-profile-level { color: var(--mlm-green); font-weight: 600; margin: 4px 0; }
.mlm-profile-email { font-size: .85rem; color: var(--mlm-muted); }
.mlm-profile-code-box, .mlm-profile-ref-box { background: var(--mlm-cream); border-radius: var(--mlm-radius-sm); padding: 14px; margin-top: 14px; text-align: left; }
.mlm-code-display-large { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.mlm-code-display-large span { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: var(--mlm-green); }
.mlm-ref-link-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--mlm-border); border-radius: 8px; padding: 7px 10px; margin: 6px 0; }
.mlm-ref-link-box input { border: none; background: none; flex: 1; font-size: .78rem; outline: none; }
.mlm-profile-stats { display: flex; gap: 0; margin-top: 16px; border-top: 1px solid var(--mlm-border); padding-top: 16px; }
.mlm-pstat { flex: 1; text-align: center; }
.mlm-pstat strong { display: block; font-size: 1.2rem; font-weight: 700; color: var(--mlm-dark); }
.mlm-pstat span { display: block; font-size: .72rem; color: var(--mlm-muted); margin-top: 2px; }
.mlm-profile-edit { display: flex; flex-direction: column; gap: 20px; }
.mlm-career-path-card { grid-column: 1/-1; }
.mlm-career-ladder { display: flex; flex-direction: column; gap: 0; padding: 0 20px 20px; }
.mlm-career-step { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--mlm-border); opacity: .5; }
.mlm-career-step.achieved { opacity: 1; }
.mlm-career-step.current { background: var(--mlm-green-pale); margin: 0 -20px; padding: 16px 20px; border-radius: var(--mlm-radius-sm); opacity: 1; border: 1.5px solid var(--mlm-green); }
.mlm-step-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.mlm-step-content { flex: 1; }
.mlm-step-content strong { font-size: .95rem; }
.mlm-step-content p { font-size: .82rem; color: var(--mlm-muted); margin-top: 2px; }
.mlm-step-bonus { display: inline-block; font-size: .78rem; background: #fef9c3; color: #854d0e; padding: 2px 8px; border-radius: 8px; margin-top: 4px; font-weight: 600; }
.mlm-monthly-bonus { background: #e0e7ff; color: #3730a3; }
.mlm-step-check { font-size: 1.2rem; }

/* ---- EMPTY STATES ---- */
.mlm-empty { text-align: center; color: var(--mlm-muted); font-style: italic; padding: 20px; }
.mlm-empty-state { text-align: center; padding: 48px; color: var(--mlm-muted); }
.mlm-empty-team { text-align: center; padding: 32px; color: var(--mlm-muted); grid-column: 1/-1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .mlm-dashboard-grid { grid-template-columns: 1fr; }
  .mlm-profile-grid { grid-template-columns: 1fr; }
  .mlm-nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--mlm-green); padding: 12px; }
  .mlm-nav-links.open { display: flex; }
  .mlm-nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .mlm-page-header, .mlm-stats-row, .mlm-wallet-hero, .mlm-packs-grid, .mlm-partners-grid, .mlm-network-tabs, .mlm-tab-content { padding-left: 16px; padding-right: 16px; }
  .mlm-form-row { grid-template-columns: 1fr; }
  .mlm-network-stats { flex-wrap: wrap; }
  .mlm-nstat { min-width: 50%; }
  .mlm-auth-card { padding: 24px; }
  .mlm-balance-main { font-size: 2rem; }
}
