:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#172033;background:#f5f7fb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#111827,#312e81)}.login-card{width:min(420px,92vw);background:#fff;border-radius:22px;padding:34px;box-shadow:0 25px 70px #0005}.logo{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#5b4cf0;color:#fff;font-weight:800}.login-card h1{margin:18px 0 4px}.muted{color:#6b7280}.login-card form{display:grid;gap:12px;margin-top:24px}.login-card input,.field input,.field select,.field textarea{width:100%;padding:12px 13px;border:1px solid #dbe1ea;border-radius:10px;background:#fff}.login-card button,.primary{border:0;border-radius:10px;padding:12px 15px;background:#5b4cf0;color:#fff;font-weight:700}.msg{min-height:20px;color:#b42318}#panel{min-height:100vh;display:grid;grid-template-columns:250px 1fr}aside{background:#111827;color:#fff;padding:22px;display:flex;flex-direction:column;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand small{display:block;color:#9ca3af;margin-top:2px}nav{display:grid;gap:7px}nav button,.ghost{background:transparent;color:#d1d5db;border:0;text-align:left;padding:11px 12px;border-radius:9px}nav button.active,nav button:hover,.ghost:hover{background:#252b3a;color:#fff}aside .ghost{margin-top:auto;border:1px solid #374151}.logo{flex:none;overflow:hidden}.logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}main{padding:28px;overflow:auto}header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.status-dot{padding:7px 11px;border-radius:99px;background:#dcfce7;color:#166534;font-size:13px;font-weight:700}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid #e7eaf0;border-radius:16px;padding:18px;box-shadow:0 5px 20px #10182808}.stat b{font-size:30px;display:block;margin-top:8px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.toolbar input{min-width:240px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px 10px;border-bottom:1px solid #edf0f4;text-align:left;white-space:nowrap}.badge{display:inline-block;padding:4px 8px;border-radius:99px;font-size:12px;font-weight:700;background:#eef2ff;color:#4338ca}.badge.red{background:#fee2e2;color:#991b1b}.badge.green{background:#dcfce7;color:#166534}.actions{display:flex;gap:6px;flex-wrap:wrap}.actions button,.smallbtn{border:1px solid #dbe1ea;background:#fff;border-radius:8px;padding:7px 9px;font-size:12px}.actions button.primary-sm{background:#5b4cf0;color:#fff;border-color:#5b4cf0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field label{display:block;font-size:12px;font-weight:700;margin-bottom:5px;color:#4b5563}.section-title{margin:0 0 14px}.empty{padding:35px;text-align:center;color:#6b7280}.notice{padding:12px 14px;border-radius:10px;background:#eef2ff;color:#3730a3;margin-bottom:14px}.modal{position:fixed;inset:0;background:#0007;display:grid;place-items:center;padding:20px}.modal>div{background:#fff;border-radius:16px;padding:20px;width:min(520px,95vw)}@media(max-width:900px){#panel{grid-template-columns:1fr}aside{position:static}.grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){main{padding:16px}.grid,.form-grid{grid-template-columns:1fr}}


/* Minimal original light dashboard, WhatsApp support accents only */
.support-card{margin-top:16px;border-left:4px solid #16a34a}
.support-card h3{margin:0 0 8px}.support-number{font-weight:750;font-size:1.2rem;margin:12px 0}
.support-whatsapp-btn{display:inline-flex;padding:10px 16px;border-radius:9px;background:#16a34a;color:white;text-decoration:none;font-weight:700}
.support-whatsapp-btn:hover{background:#15803d}

/* Personalized reseller dashboard welcome; retains original light design */
.reseller-welcome{background:linear-gradient(110deg,#fff 0%,#f3f2ff 100%);border:1px solid #e2e4f1;border-left:4px solid #5b4cf0;border-radius:16px;padding:22px 24px;margin-bottom:18px;box-shadow:0 5px 20px #10182808}
.reseller-welcome-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:800;color:#6355ca;margin-bottom:9px}
.reseller-welcome h2{font-size:clamp(20px,2.4vw,29px);margin:0 0 8px;color:#172033;overflow-wrap:anywhere}
.reseller-welcome p{color:#5e697b;margin:0;line-height:1.55;max-width:740px}

/* VO3.1 Ultra Premium Reseller Dashboard - UI-only redesign */
.reseller-portal{background:#f3f6fb;color:#101d37}
.reseller-portal #panel{grid-template-columns:270px minmax(0,1fr)}
.reseller-portal aside{background:linear-gradient(165deg,#101a2d 0%,#142139 80%);padding:25px 18px;gap:36px}
.reseller-portal aside .brand{padding:0 9px;gap:14px}
.reseller-portal aside .brand b{font-size:19px;letter-spacing:-.5px}
.reseller-portal aside .brand .logo{width:58px;height:58px;background:#fff}
.reseller-portal aside .brand small{color:#a6b4cf;font-size:13px}
.reseller-portal nav{gap:8px}
.reseller-portal nav button{display:flex;align-items:center;gap:16px;border-radius:12px;padding:15px 17px;font-size:15px;color:#cad3e5;transition:background .15s}
.reseller-portal nav button.active{background:linear-gradient(100deg,#3b4cb3,#223669);color:#fff;font-weight:650}
.reseller-portal nav button:hover{background:#293c61;color:white}
.ui-icon{width:21px;height:21px;flex:none}
.reseller-portal nav button .ui-icon{width:22px;height:22px}
.reseller-portal aside .ghost{border-color:#425371;border-radius:12px;text-align:center;color:#d1daf0}
.reseller-portal main{padding:34px 35px;min-width:0}
.reseller-portal header{margin-bottom:28px;align-items:center}
.reseller-portal header h2{font-size:32px;letter-spacing:-.8px;margin:0 0 4px;font-weight:800}
.reseller-portal header p{margin:0;color:#70809a;font-size:15px}
.reseller-portal .status-dot{background:#dff9e9;color:#087c46;padding:10px 15px}
.reseller-portal .dashboard-top-meta{display:none}
.reseller-portal .reseller-welcome{min-height:175px;display:flex;gap:24px;align-items:center;padding:32px 38px;border:1px solid #dfe5f4;border-radius:18px;position:relative;overflow:hidden;background:linear-gradient(105deg,#fff 0%,#f5f7ff 65%,#d5ddff 100%);box-shadow:0 3px 16px #1b2a5005;margin-bottom:18px}
.reseller-portal .reseller-welcome:before,.reseller-portal .reseller-welcome:after{content:'';position:absolute;width:450px;height:230px;border-radius:50%;background:#ccd6ff75;right:-80px;bottom:-160px;transform:rotate(-18deg)}
.reseller-portal .reseller-welcome:after{right:110px;bottom:-196px;background:#e1e7ffad}
.reseller-portal .welcome-crown{width:76px;height:76px;border-radius:17px;background:#e6eaff;color:#5149e8;display:grid;place-items:center;font-size:42px;flex:none;z-index:1}
.reseller-portal .welcome-copy{z-index:1;max-width:730px}
.reseller-portal .reseller-welcome h2{font-size:clamp(22px,2.2vw,32px);margin:0 0 9px;letter-spacing:-.7px;overflow-wrap:normal}
.reseller-portal .reseller-welcome h2 span{color:#4d44dc}
.reseller-portal .reseller-welcome p{font-size:16px;color:#5f6f8b;max-width:530px}
.reseller-portal .welcome-art{margin-left:auto;width:190px;height:120px;z-index:1;display:flex;align-items:center;justify-content:center;flex:none}
.reseller-portal .art-card{width:175px;height:115px;background:#ffffffde;border:1px solid #e1e7ff;box-shadow:0 12px 23px #6f7cd133;transform:rotate(-6deg);border-radius:15px;padding:16px}
.reseller-portal .art-dots{color:#736dff;font-size:10px;letter-spacing:2px}.reseller-portal .art-line{width:56%;height:8px;border-radius:9px;background:#e2e8ff;margin-top:15px}.reseller-portal .art-line.short{width:38%;margin-top:7px}.reseller-portal .art-bars{display:flex;gap:5px;align-items:end;position:absolute;right:21px;bottom:20px;height:42px}.reseller-portal .art-bars i{display:block;width:9px;background:#7974f7;border-radius:3px 3px 0 0}.reseller-portal .art-bars i:nth-child(1){height:14px}.reseller-portal .art-bars i:nth-child(2){height:25px}.reseller-portal .art-bars i:nth-child(3){height:20px}.reseller-portal .art-bars i:nth-child(4){height:37px}
.reseller-portal .kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.reseller-portal .kpi-card{display:flex;align-items:center;gap:19px;padding:22px 20px;background:#fff;border:1px solid #e3e9f2;border-radius:17px;min-height:117px;box-shadow:0 3px 14px #24345606;min-width:0}
.reseller-portal .kpi-icon{width:57px;height:57px;border-radius:15px;display:grid;place-items:center;flex:none}
.reseller-portal .kpi-icon .ui-icon{width:27px;height:27px}
.reseller-portal .kpi-icon.blue{background:#e8f1ff;color:#277bea}.reseller-portal .kpi-icon.green{background:#e6faef;color:#0db66e}.reseller-portal .kpi-icon.red{background:#ffeded;color:#fa4f60}.reseller-portal .kpi-icon.orange{background:#fff0e9;color:#fa6b35}.reseller-portal .kpi-icon.purple{background:#efeaff;color:#6b4dec}.reseller-portal .kpi-icon.amber{background:#fff4dd;color:#efa400}
.reseller-portal .kpi-info{min-width:0}.reseller-portal .kpi-label{font-size:14px;color:#6b7a93;margin-bottom:7px}.reseller-portal .kpi-info strong{font-size:clamp(19px,2vw,27px);font-weight:800;letter-spacing:-.5px;overflow-wrap:anywhere}
.reseller-portal .billing-panel{background:#fff;padding:24px;border-radius:18px;border:1px solid #e3e9f2;margin-bottom:20px;box-shadow:0 3px 14px #24345606}
.reseller-portal .billing-heading{display:flex;align-items:center;gap:13px;margin-bottom:20px}.reseller-portal .billing-heading-icon{width:53px;height:53px;border-radius:13px;background:#eff3ff;color:#5448f4;display:grid;place-items:center}.reseller-portal .billing-heading h3{margin:0;font-size:21px}.reseller-portal .billing-heading p{margin:4px 0 0;color:#71809a;font-size:13px}
.reseller-portal .billing-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.reseller-portal .billing-plan{display:flex;align-items:center;gap:18px;background:#fafcff;border:1px solid #e4eaf4;padding:18px;border-radius:15px}.reseller-portal .billing-plan span{display:block;color:#64748b;font-size:14px}.reseller-portal .billing-plan strong{display:block;font-size:27px;margin-top:6px}.reseller-portal .billing-plan small{font-size:13px;color:#8490a6;font-weight:500}
.reseller-portal .account-info{margin-top:18px}.reseller-portal .account-info p{color:#68758c}.reseller-portal .account-rates{margin-top:10px}
@media(max-width:1250px){.reseller-portal .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reseller-portal .welcome-art{width:135px}}
@media(max-width:900px){.reseller-portal #panel{grid-template-columns:1fr}.reseller-portal aside{gap:15px}.reseller-portal nav{grid-template-columns:repeat(3,minmax(0,1fr))}.reseller-portal main{padding:22px}.reseller-portal .welcome-art{display:none}}
@media(max-width:600px){.reseller-portal nav{grid-template-columns:repeat(2,minmax(0,1fr))}.reseller-portal .kpi-grid,.reseller-portal .billing-plan-grid{grid-template-columns:1fr}.reseller-portal .reseller-welcome{padding:22px;gap:15px}.reseller-portal .welcome-crown{height:52px;width:52px;font-size:26px}.reseller-portal header h2{font-size:26px}}
