/* WhatSell CRM Partners — brand layer (Whatsell Brand Guideline 2026).
 * Loaded after css/style.css and the shared /v2/ui/whatsell-ui.css; selectors start with `html body`
 * so they win over both. Purely visual: no ids or behaviour depend on this file. */
:root {
  --p-green: #2a9245; --p-green-600: #23803b; --p-deep: #1f6f35; --p-forest: #133f22;
  --p-lime: #96c93e; --p-ink: #2d2c2c; --p-text-2: #5b6159; --p-text-3: #6f766d;
  --p-mint: #eefde9; --p-mint-2: #e4f4e8; --p-bg: #f4faf5; --p-line: #e3ece4; --p-line-2: #d3e2d5;
  --p-red: #b42318; --p-amber: #a15c07;
  --p-radius: 18px; --p-shadow: 0 1px 2px rgba(31, 60, 38, .05), 0 12px 32px rgba(31, 60, 38, .08);
  --p-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html { scroll-behavior: smooth; }
html body { font-family: var(--p-font); color: var(--p-ink); background: var(--p-bg); -webkit-font-smoothing: antialiased; }
html body svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html body :focus-visible { outline: 3px solid rgba(42, 146, 69, .4); outline-offset: 2px; }

/* ---------- Buttons ---------- */
html body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid var(--p-line-2); background: #fff; color: var(--p-ink); font: 600 14px/1.2 var(--p-font); cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
html body .btn:hover { border-color: var(--p-green); color: var(--p-deep); background: var(--p-mint); }
html body .btn svg { width: 16px; height: 16px; }
html body .btn-primary { background: var(--p-green); border-color: var(--p-green); color: #fff; box-shadow: 0 6px 16px rgba(42, 146, 69, .24); }
html body .btn-primary:hover { background: var(--p-green-600); border-color: var(--p-green-600); color: #fff; }
html body .btn-inline { width: auto; }
html body .btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
html body .btn-soft { background: var(--p-mint-2); border-color: transparent; color: var(--p-deep); }
html body .btn-soft:hover { background: var(--p-green); color: #fff; }
html body .btn-approve { background: var(--p-green); border-color: var(--p-green); color: #fff; margin-inline-end: 6px; }
html body .btn-approve:hover { background: var(--p-deep); color: #fff; }
html body .btn-reject { background: #fff; border-color: #f0c7c2; color: var(--p-red); }
html body .btn-reject:hover { background: #fdeceb; border-color: var(--p-red); color: var(--p-red); }
html body .btn-logout { background: #fff; }
html body .btn-whatsell { width: 100%; background: #fff; border-color: var(--p-line-2); color: var(--p-deep); }

/* ---------- Forms ---------- */
html body .form-group { margin-bottom: 16px; }
html body .form-group label { display: block; margin-bottom: 6px; font: 500 13px var(--p-font); color: var(--p-ink); }
html body .form-group input, html body .form-group textarea, html body .form-group select { width: 100%; padding: 12px 14px; border: 1px solid var(--p-line-2); border-radius: 11px; background: #f7f9f7; font: 14px var(--p-font); color: var(--p-ink); transition: border-color .15s, box-shadow .15s, background .15s; }
html body .form-group input:focus, html body .form-group textarea:focus { outline: none; border-color: var(--p-green); background: #fff; box-shadow: 0 0 0 3px rgba(42, 146, 69, .14); }
html body .form-group input[readonly] { background: var(--p-bg); color: var(--p-text-2); }
html body .form-group textarea { min-height: 0; }
html body .hint { display: block; margin-top: 6px; color: var(--p-text-3); font-size: 12.5px; }
html body .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
html body .form-section { border: 0; margin: 0 0 8px; padding: 0; }
html body .form-section legend { padding: 0; margin: 10px 0 12px; font: 600 12px var(--p-font); letter-spacing: 1px; text-transform: uppercase; color: var(--p-text-3); }
html body .form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
html body .form-panel { margin: 18px 0 8px; padding: 20px; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 14px; }
html body .form-narrow { max-width: 520px; }
html body .code-field { max-width: 360px; }
html body .code-field input, html body .code-field input[readonly] { font: 600 18px var(--p-font); letter-spacing: 2px; color: var(--p-deep); background: var(--p-mint); border-color: #cfe9c8; }
html body .error-message { color: var(--p-red); font-size: 13px; }

/* ================= Landing page (Whatsell.ai company side) ================= */
html body .landing-page { background: var(--p-bg); min-height: 100vh; }
html body .lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
html body .lp-top { position: absolute; inset: 0 0 auto; z-index: 5; }
html body .lp-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
html body .lp-brand img { display: block; height: 34px; width: auto; }
html body .lp-top-links { display: flex; align-items: center; gap: 4px; }
html body .lp-top-links a { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
html body .lp-top-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
html body .lp-top-links .lp-top-signin { border: 1px solid rgba(255, 255, 255, .45); color: #fff; margin-inline-start: 6px; }
html body .lp-top-links .lp-top-signin:hover { background: #fff; color: var(--p-forest); }

html body .hero-section { position: relative; overflow: hidden; padding: 132px 0 92px; color: #fff; text-align: left; background: radial-gradient(900px 420px at 88% -10%, rgba(150, 201, 62, .32), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(150, 201, 62, .16), transparent 60%), linear-gradient(135deg, var(--p-forest) 0%, #1a5a2e 52%, var(--p-deep) 100%); }
html body .hero-section::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); right: -160px; bottom: -260px; }
html body .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
html body .hero-content { max-width: none; margin: 0; }
html body .lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 500; color: #eaf7e4; margin-bottom: 22px; }
html body .lp-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--p-lime); box-shadow: 0 0 0 4px rgba(150, 201, 62, .25); }
html body .landing-page .hero-title { color: #fff; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; font-weight: 700; letter-spacing: -1.2px; margin: 0 0 18px; text-shadow: none; }
html body .hero-title em { font-style: normal; color: var(--p-lime); }
html body .hero-subtitle { font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .92); margin: 0 0 10px; opacity: 1; }
html body .hero-description { font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, .78); max-width: 560px; margin: 0 0 30px; opacity: 1; }
html body .cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; margin: 0 0 26px; }
html body .btn-hero { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font: 600 15.5px var(--p-font); cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
html body .btn-hero svg { width: 18px; height: 18px; transition: transform .15s; }
html body .btn-hero:hover svg { transform: translateX(3px); }
html body .btn-hero-primary { background: #fff; color: var(--p-forest); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
html body .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
html body .btn-hero-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
html body .btn-hero-secondary:hover { background: rgba(255, 255, 255, .1); }
html body .hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255, 255, 255, .85); }
html body .hero-points li { position: relative; padding-inline-start: 26px; }
html body .hero-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(150, 201, 62, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9ec8a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Hero illustration */
html body .hero-visual { position: relative; padding: 24px 4% 48px 8%; }
html body .hv-card { background: #fff; color: var(--p-ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(4, 30, 13, .38); }
html body .hv-main { position: relative; padding: 22px 24px 40px; display: grid; gap: 4px; border-radius: 22px 22px 22px 8px; }
html body .hv-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--p-text-2); margin-bottom: 10px; }
html body .hv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-green); box-shadow: 0 0 0 4px var(--p-mint-2); }
html body .hv-main small { color: var(--p-text-3); font-size: 12px; }
html body .hv-main strong { font-size: 30px; letter-spacing: -.6px; color: var(--p-deep); }
html body .hv-bars { display: flex; align-items: flex-end; gap: 8px; height: 86px; margin: 12px 0 14px; }
html body .hv-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--p-lime), var(--p-green)); opacity: .9; }
html body .hv-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--p-line); font-size: 13px; color: var(--p-text-2); }
html body .hv-row b { color: var(--p-ink); }
html body .hv-toast { position: absolute; left: -36px; bottom: -38px; display: flex; align-items: center; gap: 12px; padding: 13px 18px 13px 13px; }
html body .hv-toast b { display: block; font-size: 13.5px; }
html body .hv-toast small { color: var(--p-text-3); font-size: 12px; }
html body .hv-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--p-mint-2); color: var(--p-green); font-weight: 700; font-size: 20px; }
html body .landing-page .commission-badge { position: absolute; right: -2%; top: -18px; display: grid; place-items: center; width: 118px; height: 118px; padding: 0; margin: 0; border-radius: 50%; background: var(--p-lime); color: var(--p-forest); border: 6px solid rgba(255, 255, 255, .25); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); text-align: center; backdrop-filter: none; font-size: 12px; font-weight: 600; line-height: 1.2; }
html body .commission-badge b { display: block; font-size: 32px; letter-spacing: -1px; line-height: 1; }
html body .commission-badge span { display: block; max-width: 80px; }

/* Sections */
html body .landing-page .benefits-section, html body .landing-page .workflow-section, html body .landing-page .commission-policy-section { padding: 88px 0; }
html body .landing-page .benefits-section { background: #fff; }
html body .landing-page .commission-policy-section { background: linear-gradient(180deg, var(--p-mint), #fff); }
html body .landing-page .workflow-section { background: var(--p-bg); }
html body .lp-kicker { margin: 0 0 8px; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--p-green); }
html body .landing-page .section-title { text-align: center; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -.6px; margin: 0 auto 12px; max-width: 720px; color: var(--p-ink); }
html body .landing-page .section-subtitle { text-align: center; font-size: 16px; color: var(--p-text-2); margin: 0 auto 48px; max-width: 620px; }
html body .landing-page .benefits-grid { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
html body .landing-page .benefit-card { text-align: left; padding: 26px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
html body .landing-page .benefit-card:hover { transform: translateY(-3px); border-color: #cfe5d2; box-shadow: 0 18px 40px rgba(31, 60, 38, .12); }
html body .landing-page .benefit-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 16px; border-radius: 14px; background: linear-gradient(135deg, var(--p-lime), var(--p-green)); color: #fff; font-size: 0; }
html body .benefit-icon svg { width: 24px; height: 24px; stroke-width: 1.9; }
html body .landing-page .benefit-title { font-size: 17.5px; font-weight: 600; margin: 0 0 6px; color: var(--p-ink); }
html body .landing-page .benefit-description { font-size: 14.5px; line-height: 1.65; color: var(--p-text-2); margin: 0; }

/* Commission slabs */
html body .commission-policy-wrapper { max-width: 980px; }
html body .slabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
html body .slab { position: relative; display: grid; gap: 6px; padding: 22px 20px 26px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow); overflow: hidden; }
html body .slab-range { font-size: 13.5px; color: var(--p-text-2); font-weight: 500; }
html body .slab b { font-size: 36px; letter-spacing: -1px; color: var(--p-deep); line-height: 1.1; }
html body .slab i { position: absolute; left: 0; bottom: 0; height: 5px; width: var(--w); background: linear-gradient(90deg, var(--p-lime), var(--p-green)); border-radius: 0 5px 5px 0; }
html body .slab.top { background: linear-gradient(150deg, var(--p-deep), var(--p-forest)); border-color: transparent; color: #fff; }
html body .slab.top .slab-range { color: rgba(255, 255, 255, .8); }
html body .slab.top b { color: var(--p-lime); }
html body .slab em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 11px; font-weight: 600; background: var(--p-lime); color: var(--p-forest); padding: 3px 9px; border-radius: 999px; }
html body .commission-policy-list { background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow); padding: 26px 28px; color: var(--p-text-2); }
html body .commission-policy-list h3 { margin: 0 0 14px; font-size: 17px; color: var(--p-ink); }
html body .commission-policy-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
html body .commission-policy-list li { position: relative; padding-inline-start: 28px; margin: 0; font-size: 14.5px; line-height: 1.55; }
html body .commission-policy-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--p-mint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f35' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
html body .commission-policy-list strong { color: var(--p-ink); }

/* Steps */
html body .landing-page .workflow-steps { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
html body .landing-page .workflow-step { position: relative; display: block; margin: 0; padding: 28px 26px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow); }
html body .landing-page .workflow-step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -21px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--p-lime) 0 5px, transparent 5px 9px); }
html body .landing-page .step-number { display: grid; place-items: center; color: #fff; font-weight: 700; width: 48px; height: 48px; margin: 0 0 18px; font-size: 20px; border-radius: 14px; background: linear-gradient(135deg, var(--p-lime), var(--p-green)); box-shadow: 0 8px 18px rgba(42, 146, 69, .28); }
html body .landing-page .step-content h3 { font-size: 17.5px; margin: 0 0 8px; color: var(--p-ink); }
html body .landing-page .step-content p { font-size: 14.5px; color: var(--p-text-2); line-height: 1.65; margin: 0; }

/* Stats band */
html body .landing-page .stats-section { padding: 56px 0; background: linear-gradient(135deg, var(--p-deep), var(--p-forest)); color: #fff; text-align: center; }
html body .landing-page .stats-grid-landing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 980px; }
html body .landing-page .stat-item + .stat-item { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
html body .landing-page .stat-item h3 { margin: 0 0 4px; font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -1px; color: var(--p-lime); }
html body .landing-page .stat-item p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14.5px; opacity: 1; }

/* CTA + footer */
html body .lp-cta { padding: 72px 0; background: #fff; }
html body .lp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 40px 44px; border-radius: 26px; background: radial-gradient(500px 240px at 90% 0%, rgba(150, 201, 62, .35), transparent 60%), linear-gradient(135deg, var(--p-green), var(--p-deep)); color: #fff; box-shadow: 0 24px 60px rgba(31, 111, 53, .28); max-width: 1132px; }
html body .lp-cta h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); color: #fff; letter-spacing: -.5px; }
html body .lp-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
html body .landing-page .login-links { padding: 34px 0 40px; background: var(--p-bg); border-top: 1px solid var(--p-line); text-align: left; }
html body .lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
html body .lp-foot img { height: 28px; width: auto; }
html body .lp-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
html body .landing-page .login-links a { margin: 0; color: var(--p-text-2); font-weight: 500; font-size: 14px; text-decoration: none; }
html body .landing-page .login-links a:hover { color: var(--p-green); text-decoration: underline; }
html body .lp-foot small { color: var(--p-text-3); font-size: 13px; }

/* ================= Sign-in screens ================= */
html body .auth-container { min-height: 100vh; padding: 32px 16px; background: radial-gradient(800px 400px at 100% 0%, rgba(150, 201, 62, .18), transparent 60%), linear-gradient(160deg, var(--p-mint), #fff 70%); }
html body .auth-card { max-width: 440px; padding: 38px 36px 30px; border-radius: 24px; border: 1px solid var(--p-line); box-shadow: 0 2px 4px rgba(31, 60, 38, .04), 0 24px 60px rgba(31, 60, 38, .12); }
html body .auth-header { margin-bottom: 26px; }
html body .auth-logo { display: block; height: 40px; width: auto; margin: 0 auto 18px; }
html body .auth-pill { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--p-mint-2); color: var(--p-deep); font-size: 12px; font-weight: 600; letter-spacing: .4px; }
html body .auth-pill.admin { background: #fdf2dc; color: var(--p-amber); }
html body .auth-header h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.4px; color: var(--p-ink); }
html body .auth-header p { color: var(--p-text-2); font-size: 14px; }
html body .auth-card .btn-primary { width: 100%; padding: 13px; font-size: 15px; margin-top: 4px; }
html body .auth-alt { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--p-text-3); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
html body .auth-alt::before, html body .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--p-line); }
html body .auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--p-line); font-size: 13px; }
html body .auth-footer a { color: var(--p-deep); font-weight: 500; text-decoration: none; }
html body .auth-footer a:hover { color: var(--p-green); text-decoration: underline; }
html body .sso-status { color: var(--p-text-2); }
html body .sso-status::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--p-mint-2); border-top-color: var(--p-green); animation: p-spin .8s linear infinite; }
html body #sso-message-page .sso-status::before { display: none; }
@keyframes p-spin { to { transform: rotate(360deg); } }

/* ================= Signed-in dashboards (inside the app: WhatSell CRM) ================= */
html body .navbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--p-line); box-shadow: none; }
html body .navbar-brand { display: flex; align-items: center; gap: 12px; font-size: 15px; }
html body .navbar-logo { height: 28px; width: auto; }
html body .navbar-tag { padding: 4px 11px; border-radius: 999px; background: var(--p-mint-2); color: var(--p-deep); font-size: 12px; font-weight: 600; }
html body .navbar-tag.admin { background: #fdf2dc; color: var(--p-amber); }
html body .navbar-menu { display: flex; align-items: center; gap: 12px; }
html body .navbar-user { font-size: 14px; font-weight: 500; color: var(--p-text-2); }
html body .navbar-user:not(:empty)::before { content: ""; display: inline-block; vertical-align: -3px; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--p-green); box-shadow: 0 0 0 3px var(--p-mint-2); }
html body .container { max-width: 1240px; padding: 28px 28px 48px; }
html body .dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
html body .dash-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--p-green); }
html body .dashboard h2 { margin: 0; font-size: 28px; letter-spacing: -.5px; color: var(--p-ink); }
html body .dash-sub { margin: 4px 0 0; font-size: 14px; color: var(--p-text-2); }
html body .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
html body .stat-card { position: relative; padding: 20px 20px 18px; border-radius: var(--p-radius); border: 1px solid var(--p-line); background: #fff; box-shadow: var(--p-shadow); }
html body .stat-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--p-mint-2); color: var(--p-green); }
html body .stat-ic svg { width: 20px; height: 20px; }
html body .stat-ic.warn { background: #fdf2dc; color: var(--p-amber); }
html body .stat-card h3 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--p-text-2); }
html body .stat-value { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--p-ink); line-height: 1.25; overflow-wrap: anywhere; }
html body .stat-card.stat-hero { background: radial-gradient(300px 160px at 100% 0%, rgba(150, 201, 62, .4), transparent 60%), linear-gradient(140deg, var(--p-green), var(--p-deep)); border-color: transparent; box-shadow: 0 16px 34px rgba(31, 111, 53, .28); }
html body .stat-hero h3 { color: rgba(255, 255, 255, .85); }
html body .stat-hero .stat-value { color: #fff; }
html body .stat-hero .stat-ic { background: rgba(255, 255, 255, .18); color: #fff; }

/* Pill tabs */
html body .dashboard-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-bottom: 18px; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(31, 60, 38, .04); border-bottom: 1px solid var(--p-line); }
html body .dashboard-tabs .tab-btn { margin: 0; padding: 9px 18px; border: 0; border-radius: 10px; background: none; color: var(--p-text-2); font: 600 14px var(--p-font); transition: background .15s, color .15s; }
html body .dashboard-tabs .tab-btn:hover { background: var(--p-mint); color: var(--p-deep); }
html body .dashboard-tabs .tab-btn.active { background: var(--p-green); color: #fff; box-shadow: 0 6px 14px rgba(42, 146, 69, .25); border: 0; }
html body .tab-content { padding: 24px; border-radius: var(--p-radius); border: 1px solid var(--p-line); background: #fff; box-shadow: var(--p-shadow); }
html body .tab-content > h3, html body .tab-head h3 { margin: 0 0 16px; font-size: 18px; color: var(--p-ink); }
html body .tab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
html body .tab-head h3 { margin: 0; }
html body .tab-note { margin: 0 0 16px; color: var(--p-text-2); font-size: 13.5px; }

/* Tables */
html body .tab-content [id$="-list"] { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--p-line); border-radius: 14px; }
html body .tab-content [id$="-list"]:has(> .empty-state), html body .tab-content [id$="-list"]:empty { border: 0; }
html body .tab-content table { width: 100%; min-width: 640px; margin: 0; border-collapse: separate; border-spacing: 0; border-radius: 0; background: #fff; }
html body .tab-content table th { padding: 12px 16px; background: var(--p-bg); color: var(--p-text-3); font: 600 11.5px var(--p-font); letter-spacing: .8px; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--p-line); white-space: nowrap; }
html body .tab-content table td { padding: 14px 16px; font-size: 14px; color: var(--p-ink); border-bottom: 1px solid var(--p-line); vertical-align: middle; }
html body .tab-content table tr:last-child td { border-bottom: 0; }
html body .tab-content table td:not(:last-child) { white-space: nowrap; }
html body .tab-content table tbody tr:hover td { background: #f8fcf7; }
html body .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
html body .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html body .badge-success { background: var(--p-mint-2); color: var(--p-deep); }
html body .badge-warning, html body .badge-orange { background: #fdf2dc; color: var(--p-amber); }
html body .badge-danger { background: #fdeceb; color: var(--p-red); }
html body .badge-info { background: #eef1f6; color: #3d4a5c; }
html body .empty-state { display: grid; justify-items: center; gap: 10px; padding: 36px 16px; margin: 0; text-align: center; color: var(--p-text-2); font-size: 14px; background: var(--p-bg); border: 1px dashed var(--p-line-2); border-radius: 14px; }
html body .empty-state::before { content: ""; width: 44px; height: 44px; border-radius: 14px; background: var(--p-mint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9245' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l2-7h12l2 7v5a1 1 0 01-1 1H5a1 1 0 01-1-1z'/%3E%3Cpath d='M4 13h5l1 2h4l1-2h5'/%3E%3C/svg%3E") center/22px no-repeat; }
html body .pagination { margin-top: 16px; }
html body .pagination-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
html body .page-info { color: var(--p-text-3); font-size: 13px; text-align: center; }

/* ================= Embedded in the portal shell ================= */
html.ws-embedded body .container { padding-top: 22px; max-width: 1280px; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  html body .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .landing-page .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .slabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  html body .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  html body .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  html body .lp-top-links a:not(.lp-top-signin) { display: none; }
  html body .landing-page .workflow-steps { grid-template-columns: 1fr; }
  html body .landing-page .workflow-step::after { display: none; }
  html body .commission-policy-list ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html body .lp-wrap { padding: 0 16px; }
  html body .lp-brand img { height: 28px; }
  html body .hero-section { padding: 104px 0 64px; }
  html body .hero-subtitle { font-size: 16px; }
  html body .cta-buttons { flex-direction: column; align-items: stretch; }
  html body .btn-hero { justify-content: center; }
  html body .hero-visual { padding: 30px 0 44px; }
  html body .hv-toast { left: 10px; right: 10px; bottom: -36px; }
  html body .landing-page .commission-badge { right: -4px; top: -26px; width: 96px; height: 96px; font-size: 10.5px; }
  html body .commission-badge b { font-size: 26px; }
  html body .landing-page .benefits-section, html body .landing-page .workflow-section, html body .landing-page .commission-policy-section { padding: 60px 0; }
  html body .landing-page .benefits-grid { grid-template-columns: 1fr; }
  html body .landing-page .stats-grid-landing { grid-template-columns: 1fr; gap: 18px; }
  html body .landing-page .stat-item + .stat-item { border: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
  html body .lp-cta-inner { padding: 30px 22px; }
  html body .lp-cta .btn-hero { width: 100%; justify-content: center; }
  html body .lp-foot { flex-direction: column; align-items: flex-start; }
  html body .auth-card { padding: 28px 22px 24px; }
  html body .navbar { flex-direction: row; padding: 10px 16px; }
  html body .navbar-user { display: none; }
  html body .navbar-logo { height: 22px; }
  html body .container { padding: 20px 14px 40px; }
  html body .dashboard h2 { font-size: 23px; }
  html body .stats-grid { gap: 10px; }
  html body .stat-card { padding: 16px 14px; }
  html body .stat-ic { width: 34px; height: 34px; margin-bottom: 10px; }
  html body .stat-value { font-size: 19px; }
  html body .dashboard-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  html body .dashboard-tabs::-webkit-scrollbar { display: none; }
  html body .dashboard-tabs .tab-btn { white-space: nowrap; padding: 8px 14px; flex: none; }
  html body .tab-content { padding: 18px 14px; }
}
@media (max-width: 380px) {
  html body .stats-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html body *, html body *::before { transition: none !important; animation: none !important; } }

/* ---------- Referral link card, programme tab (partner programme, Xpert Group FZE-LLC) ---------- */
html body .ref-card { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin: 0 0 20px; padding: 18px 20px; border-radius: var(--p-radius); border: 1px solid var(--p-line); background: #fff; box-shadow: var(--p-shadow); }
html body .ref-main { flex: 1 1 420px; min-width: 0; }
html body .ref-card h3 { margin: 0 0 4px; font-size: 16px; }
html body .ref-card .hint { margin: 0 0 10px; color: var(--p-text-2); font-size: 13px; }
html body .ref-row { display: flex; gap: 8px; flex-wrap: wrap; }
html body .ref-row input { flex: 1 1 260px; min-width: 0; padding: 11px 14px; border: 1px solid var(--p-line-2); border-radius: 11px; background: var(--p-bg); font: 14px var(--p-font); color: var(--p-ink); }
html body .ref-tier { flex: 0 1 260px; padding: 12px 14px; border-radius: 14px; background: var(--p-mint); color: var(--p-deep); font-size: 13px; line-height: 1.5; }
html body .ref-tier strong { display: block; font-size: 20px; color: var(--p-forest); }
html body .stat-value .cur-line { display: block; }
html body .stat-value .cur-line + .cur-line { font-size: .7em; opacity: .85; }
html body .program-rules { margin: 0 0 20px; padding-inline-start: 20px; color: var(--p-text-2); font-size: 14px; line-height: 1.6; }
html body .program-terms { white-space: pre-wrap; padding: 14px 16px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.6; }
html body #tier-form { align-items: end; margin-top: 14px; }
html body .lp-terms { margin-top: 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--p-text-2); }
html body .auth-signup { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--p-text-2, #5b6159); }
html body .auth-signup a { color: var(--p-deep); font-weight: 600; }
/* Yearly progress (partner programme tab) */
html body .program-year { margin: 0 0 22px; padding: 18px; border: 1px solid var(--p-line); border-radius: 14px; background: #fff; }
html body .py-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html body .py-figs div { display: grid; gap: 2px; }
html body .py-figs strong { font-size: 24px; color: var(--p-deep); }
html body .py-figs span { font-size: 12.5px; color: var(--p-text-2); }
html body .py-bar { height: 10px; margin: 16px 0 8px; border-radius: 6px; background: #eef6ef; overflow: hidden; }
html body .py-bar span { display: block; height: 100%; background: linear-gradient(90deg, #96c93e, #2a9245); border-radius: 0 4px 4px 0; }
html body .py-note { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--p-text-2); }
@media (max-width: 640px) { html body .py-figs { grid-template-columns: 1fr; } }
