:root{
  --bg:#06080d;--bg-soft:#090c13;--surface:#0c111a;--surface-2:#111722;--surface-3:#151d2a;
  --border:#202a3a;--border-soft:rgba(255,255,255,.065);--text:#f5f7fb;--text-2:#a6b0c1;--muted:#687488;
  --blue:#4c7dff;--blue-2:#6b63ff;--blue-soft:rgba(76,125,255,.13);--cyan:#20c6e8;
  --green:#31d39a;--green-soft:rgba(49,211,154,.12);--amber:#f1b84b;--amber-soft:rgba(241,184,75,.11);
  --red:#ff667a;--red-soft:rgba(255,102,122,.11);--purple:#9a72ff;--radius:18px;--radius-sm:12px;
  --shadow:0 18px 55px rgba(0,0,0,.26);--shadow-lg:0 32px 90px rgba(0,0,0,.42)
}
*{box-sizing:border-box}html{color-scheme:dark}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}body{background:radial-gradient(900px 520px at 88% -10%,rgba(76,125,255,.12),transparent 60%),radial-gradient(720px 440px at 2% 105%,rgba(49,211,154,.055),transparent 63%),var(--bg)}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.35;background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.7),transparent 78%)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}a{color:inherit;text-decoration:none}

/* Auth */
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px}.auth-box{width:min(460px,100%);position:relative;background:linear-gradient(155deg,rgba(17,24,36,.98),rgba(8,12,18,.99));border:1px solid var(--border-soft);border-radius:26px;padding:32px;box-shadow:var(--shadow-lg);overflow:hidden}.auth-box:before{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:radial-gradient(420px 160px at 20% 0,rgba(76,125,255,.12),transparent 70%)}.auth-brand{position:relative;display:flex;align-items:center;gap:13px;margin-bottom:30px}.auth-brand strong{display:block;font-size:15px}.auth-brand span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.auth-box h1{position:relative;font-size:28px;letter-spacing:-.045em;margin:0 0 8px}.auth-box>p{position:relative;color:var(--text-2);font-size:11px;line-height:1.65;margin:0 0 24px}.auth-note{position:relative;margin-top:16px;padding:13px;border-radius:13px;background:#0a1018;border:1px solid var(--border);color:#748198;font-size:9px;line-height:1.6}

/* App shell */
#appRoot{min-height:100vh;display:grid;grid-template-columns:258px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,rgba(9,12,18,.99),rgba(7,10,15,.99));border-right:1px solid var(--border-soft);padding:17px 13px 16px;display:flex;flex-direction:column;z-index:30}.brand-wrap{display:flex;align-items:center;gap:12px;padding:6px 8px 22px}.brand-logo{width:42px;height:42px;border-radius:13px;overflow:hidden;display:grid;place-items:center;background:#08101b;border:1px solid rgba(88,131,255,.22);box-shadow:0 10px 30px rgba(46,86,190,.14)}.brand-logo img{width:100%;height:100%;object-fit:cover;transform:scale(1.55)}.brand-wrap strong{display:block;font-size:13px;letter-spacing:-.015em}.brand-wrap span{display:block;color:#58657a;font-size:8.5px;margin-top:3px;letter-spacing:.08em;text-transform:uppercase}.nav-label{color:#465268;text-transform:uppercase;letter-spacing:.16em;font-size:7.5px;font-weight:800;padding:15px 10px 7px}.nav-item{width:100%;min-height:42px;display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;color:#7c8799;border-radius:11px;padding:0 11px;font-size:10px;font-weight:680;text-align:left;margin:2px 0;transition:.18s ease}.nav-item:hover{color:#e3e8f0;background:rgba(255,255,255,.026);transform:translateX(1px)}.nav-item.active{color:#f4f7fb;background:linear-gradient(90deg,rgba(76,125,255,.16),rgba(76,125,255,.055));border-color:rgba(95,131,255,.15);box-shadow:inset 3px 0 #6385ff,0 6px 22px rgba(0,0,0,.12)}.nav-item .ico{width:20px;text-align:center;color:#657289;font-size:15px}.nav-item.active .ico{color:#8da5ff}.nav-pill{margin-left:auto;border:1px solid rgba(76,125,255,.2);color:#8fa6ff;background:rgba(76,125,255,.09);border-radius:99px;padding:2px 6px;font-size:7px}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border-soft);padding:15px 5px 0}.server-state{display:flex;align-items:center;gap:9px;padding:6px 4px}.server-state i,.health-chip i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 13px rgba(49,211,154,.7)}.server-state strong{display:block;font-size:9.5px}.server-state span{display:block;color:#4f5b6d;font-size:8px;margin-top:2px}.logout-btn{width:100%;margin-top:10px;border:1px solid var(--border);background:#0a1018;color:#718096;border-radius:9px;padding:8px;font-size:9px}.logout-btn:hover{color:#f1f4f8;border-color:#334158}.main{min-width:0;padding:0 28px 52px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.045);margin-bottom:25px;gap:18px}.top-left,.top-right{display:flex;align-items:center;gap:11px}.eyebrow{display:block;color:#526078;font-size:7.5px;font-weight:850;letter-spacing:.16em;margin-bottom:5px}.topbar h1{margin:0;font-size:24px;letter-spacing:-.045em}.top-action,.icon-button{border:1px solid var(--border);background:#0d131d;color:#909caf;border-radius:10px;padding:9px 12px;font-size:9px;font-weight:720;transition:.15s}.top-action:hover,.icon-button:hover{color:#fff;background:#141d2a}.health-chip{display:flex;align-items:center;gap:7px;color:#8793a6;border:1px solid var(--border);background:#0a1018;border-radius:10px;padding:9px 11px;font-size:9px}.avatar{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#152033,#0f1723);border:1px solid #2b3a50;color:#b1bed0;font-size:9px;font-weight:850}.mobile{display:none}.content{max-width:1580px;margin:auto}

/* Common */
.grid{display:grid;gap:15px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:15px}.two{grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr)}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card,.metric-card{background:linear-gradient(150deg,rgba(16,23,34,.97),rgba(10,15,23,.97));border:1px solid var(--border-soft);border-radius:var(--radius);box-shadow:0 10px 36px rgba(0,0,0,.13)}.card{padding:19px}.metric-card{padding:18px;min-height:142px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;transition:.18s}.metric-card:hover{transform:translateY(-2px);border-color:rgba(112,139,255,.18);box-shadow:0 18px 50px rgba(0,0,0,.18)}.metric-card:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(76,125,255,.08),transparent 67%);right:-62px;top:-65px}.metric-head{display:flex;justify-content:space-between;align-items:center}.metric-label{color:#8490a3;font-size:9px;font-weight:700}.metric-icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:var(--blue-soft);color:#8ca4ff;font-size:14px;border:1px solid rgba(87,125,255,.1)}.metric-icon.green{background:var(--green-soft);color:var(--green)}.metric-icon.yellow{background:var(--amber-soft);color:var(--amber)}.metric-icon.violet{background:rgba(154,114,255,.11);color:#af90ff}.metric-value{font-size:30px;font-weight:850;letter-spacing:-.055em;margin-top:10px}.metric-foot{font-size:8.7px;color:#5f6c7f;margin-top:8px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:17px}.card-title{font-size:13px;font-weight:790;letter-spacing:-.012em}.card-sub{font-size:9px;color:#68768a;margin-top:4px;line-height:1.55}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.toolbar-left{display:flex;align-items:center;gap:9px}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.section-title{font-size:15px;font-weight:820;letter-spacing:-.025em}.section-sub{font-size:9.2px;color:#68768a;margin-top:4px;line-height:1.5}.btn{border:1px solid #304057;background:#162133;color:#dde5f2;border-radius:10px;padding:9px 12px;font-size:9.3px;font-weight:760;transition:.16s ease}.btn:hover{filter:brightness(1.12);transform:translateY(-1px)}.btn.primary{border-color:rgba(76,125,255,.38);background:linear-gradient(135deg,#4f78ef,#6d5fe7);color:#fff;box-shadow:0 9px 28px rgba(78,101,230,.18)}.btn.green{border-color:rgba(49,211,154,.22);background:var(--green-soft);color:var(--green)}.btn.red{border-color:rgba(255,102,122,.18);background:var(--red-soft);color:var(--red)}.btn.ghost{background:#0b121c;border-color:#202c3e;color:#8996a9}.btn.small{padding:6px 9px;font-size:8.2px;border-radius:8px}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.input,.field input,.field select,.field textarea,.search-box input{width:100%;border:1px solid var(--border);background:#090f17;color:#e9eef6;border-radius:10px;padding:10px 11px;outline:none;font-size:9.7px;transition:.15s}.field textarea{min-height:130px;resize:vertical;line-height:1.55}.input:focus,.field input:focus,.field select:focus,.field textarea:focus,.search-box input:focus{border-color:#4562a7;box-shadow:0 0 0 3px rgba(76,125,255,.085);background:#0b121c}.field{display:grid;gap:6px}.field label{font-size:8.8px;color:#8290a4;font-weight:720}.field .hint{font-size:8px;color:#536176;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field.full{grid-column:1/-1}.divider{height:1px;background:var(--border-soft);margin:16px 0}.search-box{position:relative;width:min(430px,100%)}.search-box input{padding-left:36px}.search-box:before{content:"⌕";position:absolute;left:13px;top:9px;color:#5d6b80;font-size:15px;z-index:1}

/* Dashboard premium */
.dashboard-hero{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.075);border-radius:22px;padding:24px 25px;margin-bottom:15px;background:linear-gradient(120deg,#101827 0%,#101522 50%,#0b111a 100%);box-shadow:0 18px 55px rgba(0,0,0,.18)}.dashboard-hero:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-150px;top:-260px;background:radial-gradient(circle,rgba(77,125,255,.22),rgba(74,68,180,.06) 45%,transparent 67%)}.hero-content{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:22px}.hero-kicker{display:flex;align-items:center;gap:7px;color:#8da0bc;font-size:8px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hero-kicker i{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 10px rgba(49,211,154,.6)}.dashboard-hero h2{font-size:25px;letter-spacing:-.045em;margin:8px 0 7px}.dashboard-hero p{max-width:640px;margin:0;color:#7f8da2;font-size:9.5px;line-height:1.6}.hero-actions{position:relative;z-index:1;display:flex;gap:8px;flex-wrap:wrap}.hero-stats{position:relative;z-index:1;display:flex;gap:22px;margin-top:21px;padding-top:18px;border-top:1px solid rgba(255,255,255,.06)}.hero-stat strong{display:block;font-size:14px}.hero-stat span{font-size:8px;color:#637188}.chart-card{min-height:330px}.chart{height:250px;display:flex;align-items:flex-end;gap:11px;padding:18px 3px 24px;position:relative;background:repeating-linear-gradient(to top,rgba(255,255,255,.03) 0,rgba(255,255,255,.03) 1px,transparent 1px,transparent 50px)}.bar-wrap{height:100%;flex:1;display:flex;align-items:flex-end;justify-content:center;position:relative}.bar{width:min(34px,72%);min-height:5px;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#7393ff,#5a5ad9);box-shadow:0 10px 28px rgba(75,98,217,.16);transition:.18s}.bar:hover{filter:brightness(1.2)}.bar-label{position:absolute;bottom:-20px;color:#59677b;font-size:7.8px}.kpi-row{display:grid;grid-template-columns:1fr auto;gap:9px;padding:11px 0;border-bottom:1px solid var(--border-soft)}.kpi-row:last-child{border:0}.kpi-row span{font-size:9px;color:#738197}.ecosystem-list{display:grid;gap:8px}.eco-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid var(--border-soft);border-radius:12px;background:#0a1018}.eco-left{display:flex;align-items:center;gap:10px}.eco-left strong{font-size:9.5px;display:block}.eco-left span{font-size:7.8px;color:#5f6c7f;display:block;margin-top:2px}.eco-dot{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-size:8px;font-weight:850;border:1px solid rgba(255,255,255,.07);background:#111927}.eco-dot.shopee{color:#ff876b;background:rgba(255,111,80,.08)}.eco-dot.aliexpress{color:#ff8b57;background:rgba(255,110,66,.08)}.eco-dot.mercadolivre{color:#ffe36a;background:rgba(255,226,80,.08)}.eco-dot.whatsapp{color:#63e2a0;background:rgba(49,211,154,.08)}.quick-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.quick-action{border:1px solid var(--border-soft);background:#0b111a;border-radius:13px;padding:13px;transition:.15s;text-align:left}.quick-action:hover{border-color:#32435c;background:#0f1723;transform:translateY(-1px)}.quick-action b{display:block;font-size:9.5px;margin-bottom:3px}.quick-action span{font-size:8px;color:#617087;line-height:1.45}

/* Tables */
.table-card{padding:0;overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:13px 15px;border-bottom:1px solid rgba(255,255,255,.045);text-align:left;font-size:9.3px}th{color:#5e6b7f;text-transform:uppercase;font-size:7.4px;letter-spacing:.11em;background:#090f17;position:sticky;top:0}tbody tr{transition:.12s}tbody tr:hover{background:rgba(255,255,255,.018)}tbody tr:last-child td{border-bottom:0}td strong{font-size:10.4px;color:#e0e7f1}.subtext{font-size:8.2px;color:#5e6c80;margin-top:3px}.price{font-weight:820;color:#edf2f8}.old{text-decoration:line-through;color:#5c697c;font-size:8.3px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:4px 7px;font-size:7.8px;font-weight:820;border:1px solid transparent;white-space:nowrap}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.green{color:var(--green);background:var(--green-soft);border-color:rgba(49,211,154,.13)}.badge.blue{color:#83a6ff;background:rgba(76,125,255,.1);border-color:rgba(76,125,255,.14)}.badge.yellow{color:var(--amber);background:var(--amber-soft);border-color:rgba(241,184,75,.13)}.badge.red{color:var(--red);background:var(--red-soft);border-color:rgba(255,102,122,.13)}.row-actions{display:flex;gap:5px;flex-wrap:wrap}.empty{padding:48px;text-align:center;color:#5f6d80;font-size:9.5px}.empty strong{display:block;color:#8996a8;font-size:11px;margin-bottom:5px}.list{display:grid}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 1px;border-bottom:1px solid var(--border-soft)}.list-row:last-child{border-bottom:0}.list-title{font-size:10px;font-weight:700}.list-meta{font-size:8.3px;color:#5c697e;margin-top:3px}

/* Catalog */
.catalog-search{display:grid;grid-template-columns:175px 1fr auto;gap:9px}.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:15px}.product-card{background:linear-gradient(150deg,#0e1621,#0a1018);border:1px solid var(--border-soft);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:.18s}.product-card:hover{transform:translateY(-2px);border-color:rgba(100,130,255,.16);box-shadow:0 16px 42px rgba(0,0,0,.2)}.product-img{height:170px;background:#080e15;display:grid;place-items:center;overflow:hidden;border-bottom:1px solid var(--border-soft)}.product-img img{width:100%;height:100%;object-fit:cover}.product-img span{color:#445166;font-size:8.5px}.product-body{padding:13px;display:flex;flex-direction:column;gap:7px;flex:1}.product-name{font-size:10.2px;font-weight:730;line-height:1.42;min-height:29px}.product-meta{display:flex;justify-content:space-between;gap:8px;color:#66748a;font-size:7.8px}.product-price{font-size:18px;font-weight:860;letter-spacing:-.04em}.commission{color:var(--green);font-size:8.4px;font-weight:720}.product-actions{display:flex;gap:6px;margin-top:auto;padding-top:5px}.product-actions .btn{flex:1}

/* Integrations premium */
.integrations-hero{position:relative;overflow:hidden;background:linear-gradient(130deg,#111a28,#0a1119);border:1px solid var(--border-soft);border-radius:20px;padding:21px 22px;margin-bottom:15px}.integrations-hero:after{content:"";position:absolute;width:330px;height:330px;right:-130px;top:-210px;border-radius:50%;background:radial-gradient(circle,rgba(76,125,255,.18),transparent 67%)}.integrations-hero-inner{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:20px}.integrations-hero h2{font-size:19px;margin:0 0 6px;letter-spacing:-.035em}.integrations-hero p{font-size:9px;color:#738197;line-height:1.55;max-width:670px;margin:0}.integration-summary{display:flex;gap:8px;flex-wrap:wrap}.summary-pill{border:1px solid var(--border);background:#0a1018;border-radius:11px;padding:9px 11px;min-width:95px}.summary-pill strong{display:block;font-size:13px}.summary-pill span{display:block;color:#68768b;font-size:7.5px;margin-top:2px}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.integration-card{background:linear-gradient(150deg,#101823,#0a1018);border:1px solid var(--border-soft);border-radius:19px;padding:0;position:relative;overflow:hidden;box-shadow:0 10px 32px rgba(0,0,0,.12)}.integration-card:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,rgba(106,134,255,.65),transparent);opacity:.45}.integration-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px 15px;border-bottom:1px solid var(--border-soft);background:rgba(255,255,255,.008)}.integration-brand{display:flex;align-items:center;gap:11px}.integration-brand strong{font-size:11px;display:block}.integration-brand span{font-size:8.1px;color:#647287;display:block;margin-top:3px;line-height:1.45;max-width:340px}.integration-body{padding:17px 18px}.integration-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px;padding-top:14px;border-top:1px solid var(--border-soft)}.integration-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.secret-placeholder{color:#536175;font-size:8px}.market-logo{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:8.5px;background:#101925;border:1px solid #223047;color:#8ea0b6;box-shadow:inset 0 1px rgba(255,255,255,.035)}.market-logo.shopee{color:#ff8768;background:linear-gradient(145deg,rgba(255,104,75,.11),rgba(255,104,75,.035));border-color:rgba(255,117,84,.13)}.market-logo.ali{color:#ff8a56;background:linear-gradient(145deg,rgba(255,105,65,.11),rgba(255,105,65,.035));border-color:rgba(255,118,78,.13)}.market-logo.ml{color:#ffe36a;background:linear-gradient(145deg,rgba(255,226,95,.11),rgba(255,226,95,.025));border-color:rgba(255,226,95,.12)}.market-logo.wa{color:#5ee09a;background:linear-gradient(145deg,rgba(49,211,154,.11),rgba(49,211,154,.025));border-color:rgba(49,211,154,.12)}.integration-step{display:flex;gap:9px;align-items:flex-start;padding:10px 11px;border:1px solid var(--border-soft);border-radius:11px;background:#090f17;margin-top:11px}.integration-step-num{flex:0 0 22px;width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:var(--blue-soft);color:#8fa7ff;font-size:7.5px;font-weight:850}.integration-step b{display:block;font-size:8.7px;margin:1px 0 2px}.integration-step span{display:block;font-size:7.8px;color:#5f6e83;line-height:1.45}.security-note{display:flex;gap:9px;padding:12px;border:1px solid #1e2b3d;background:#091019;border-radius:12px;color:#66758b;font-size:8.3px;line-height:1.55;margin-top:14px}.security-note b{color:#8d9bb0}.security-note code{color:#9aa8bb}.progress{height:6px;border-radius:99px;background:#090f17;overflow:hidden;border:1px solid rgba(255,255,255,.04)}.progress i{display:block;height:100%;background:linear-gradient(90deg,#4f7cff,#7a65ef);border-radius:inherit}

/* Modal & toast */
.modal-backdrop{position:fixed;inset:0;background:rgba(2,4,8,.78);backdrop-filter:blur(8px);z-index:90;display:grid;place-items:center;padding:18px}.modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:linear-gradient(150deg,#111a26,#0a1119);border:1px solid #27364c;border-radius:21px;padding:22px;box-shadow:0 42px 115px rgba(0,0,0,.57)}.modal.wide{width:min(920px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border-soft);padding-bottom:15px;margin-bottom:17px}.modal-head h2{margin:2px 0 0;font-size:18px;letter-spacing:-.035em}.modal-head p{margin:5px 0 0;color:#68768b;font-size:8.8px}.close{width:32px;height:32px;border-radius:9px;background:#0c141e;color:#78869a;border:1px solid #223148}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:15px;border-top:1px solid var(--border-soft)}.toast{position:fixed;right:22px;bottom:22px;z-index:100;background:#131d2b;border:1px solid #2c3b51;color:#edf2f8;padding:12px 15px;border-radius:12px;box-shadow:var(--shadow);font-size:9.3px;max-width:400px}.toast.error{border-color:rgba(255,102,122,.28);color:#ffb0bb}.toast.success:before{content:"✓";color:var(--green);margin-right:7px}.loading{padding:56px;text-align:center;color:#657287;font-size:9.5px}.spinner{width:20px;height:20px;border:2px solid #223047;border-top-color:#6d83ff;border-radius:50%;animation:spin .7s linear infinite;margin:0 auto 10px}@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:1180px){.metrics{grid-template-columns:repeat(2,1fr)}.products-grid{grid-template-columns:repeat(3,1fr)}.integration-grid{grid-template-columns:1fr}.two{grid-template-columns:1fr}.quick-panel{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:900px){#appRoot{display:block}.sidebar{position:fixed;left:-270px;width:258px;transition:left .2s;box-shadow:30px 0 80px rgba(0,0,0,.5)}.sidebar.open{left:0}.main{padding:0 16px 40px}.mobile{display:block}.health-chip{display:none}.products-grid{grid-template-columns:repeat(2,1fr)}.hero-content{align-items:flex-start;flex-direction:column}.integrations-hero-inner{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.topbar{height:76px}.topbar h1{font-size:20px}.top-action span{display:none}.metrics{grid-template-columns:1fr}.three{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.catalog-search{grid-template-columns:1fr}.products-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.toolbar-actions{width:100%}.toolbar-actions .btn{flex:1}.product-img{height:215px}.modal{padding:17px}.auth-box{padding:24px}.quick-panel{grid-template-columns:1fr}.hero-stats{display:grid;grid-template-columns:1fr 1fr}.integration-summary{width:100%}.summary-pill{flex:1}.dashboard-hero{padding:20px}}


/* =========================================================
   V4 — LEGIBILIDADE + AMBIENTE PREMIUM
   Tipografia ampliada, contraste reforçado e atmosfera SaaS
   ========================================================= */
:root{
  --bg:#05080e;
  --bg-soft:#09101a;
  --surface:#0e1621;
  --surface-2:#121d2b;
  --surface-3:#182538;
  --border:#2b3b52;
  --border-soft:rgba(188,207,238,.11);
  --text:#f7f9fc;
  --text-2:#c3cede;
  --muted:#94a2b7;
  --blue:#5d86ff;
  --green:#39dca3;
  --amber:#f7c55d;
}

html{font-size:16px}
body{
  font-size:15px;
  line-height:1.55;
  background:
    radial-gradient(1000px 620px at 92% -8%,rgba(73,115,255,.19),transparent 60%),
    radial-gradient(820px 560px at 1% 92%,rgba(41,210,158,.10),transparent 62%),
    radial-gradient(700px 430px at 55% 38%,rgba(112,82,220,.055),transparent 70%),
    linear-gradient(180deg,#060a11 0%,#05080e 100%);
}
body:before{opacity:.48;background-size:52px 52px}
body:after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(115deg,rgba(255,255,255,.018),transparent 24%,transparent 76%,rgba(95,133,255,.025));}
::selection{background:rgba(93,134,255,.35);color:white}
*{scrollbar-width:thin;scrollbar-color:#34445d #0a1018}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#0a1018}::-webkit-scrollbar-thumb{background:#34445d;border:2px solid #0a1018;border-radius:10px}

/* Sidebar */
#appRoot{grid-template-columns:280px minmax(0,1fr)}
.sidebar{padding:20px 15px 18px;background:linear-gradient(180deg,rgba(10,15,24,.995),rgba(6,10,16,.995));box-shadow:18px 0 70px rgba(0,0,0,.16)}
.brand-wrap{gap:14px;padding:7px 9px 24px}.brand-logo{width:48px;height:48px;border-radius:15px;box-shadow:0 12px 34px rgba(51,94,221,.2)}
.brand-wrap strong{font-size:16px}.brand-wrap span{font-size:10px;color:#8493aa;letter-spacing:.1em}
.nav-label{font-size:10px;color:#738198;padding:18px 12px 8px;letter-spacing:.14em}
.nav-item{min-height:48px;gap:12px;border-radius:13px;padding:0 13px;font-size:13.5px;color:#a2afc2;margin:3px 0}
.nav-item .ico{width:23px;font-size:17px}.nav-item.active{color:#fff;background:linear-gradient(90deg,rgba(83,124,255,.22),rgba(83,124,255,.065));border-color:rgba(111,147,255,.22)}
.nav-pill{font-size:9px;padding:3px 7px}.server-state{padding:8px 5px}.server-state strong{font-size:12px}.server-state span{font-size:10.5px;color:#7f8ca0}.logout-btn{padding:10px;font-size:12px;border-radius:11px;color:#9aa8bb}

/* Header */
.main{padding:0 34px 64px}.topbar{height:102px;margin-bottom:30px}.eyebrow{font-size:10px;color:#8594aa;margin-bottom:6px}.topbar h1{font-size:31px;letter-spacing:-.04em}.top-action,.icon-button{padding:11px 14px;font-size:12px;border-radius:12px;color:#b7c2d2}.health-chip{padding:10px 13px;font-size:12px;color:#afbacb}.avatar{width:40px;height:40px;font-size:11px;border-radius:13px}.content{max-width:1640px}

/* Cards and typography */
.grid{gap:18px}.metrics{margin-bottom:18px}.card,.metric-card{border-color:rgba(181,202,236,.105);background:linear-gradient(145deg,rgba(18,28,42,.98),rgba(10,16,25,.98));box-shadow:0 18px 50px rgba(0,0,0,.17),inset 0 1px rgba(255,255,255,.018)}
.card{padding:23px}.metric-card{padding:22px;min-height:164px}.metric-label{font-size:12px;color:#aab6c7}.metric-icon{width:41px;height:41px;font-size:17px;border-radius:13px}.metric-value{font-size:36px;margin-top:12px}.metric-foot{font-size:11.5px;color:#8895aa;line-height:1.45}
.card-head{margin-bottom:20px}.card-title{font-size:17px;line-height:1.3}.card-sub{font-size:12.5px;color:#94a2b7;line-height:1.55;margin-top:5px}.section-title{font-size:21px}.section-sub{font-size:13px;color:#98a6ba;line-height:1.55;margin-top:5px}
.toolbar{margin-bottom:18px;gap:16px}.btn{padding:11px 15px;font-size:12.5px;border-radius:11px}.btn.small{padding:8px 11px;font-size:11px;border-radius:9px}.top-action:hover,.icon-button:hover,.btn.ghost:hover{border-color:#3c506d;background:#151f2d}

/* Forms */
.input,.field input,.field select,.field textarea,.search-box input{font-size:13px;padding:12px 13px;border-radius:11px;background:#0b121c;color:#f1f5fa;border-color:#2a3a50}.field{gap:8px}.field label{font-size:12px;color:#b7c3d4;font-weight:730}.field .hint{font-size:11px;color:#8190a6;line-height:1.55}.field textarea{min-height:150px;line-height:1.6}.form-grid{gap:15px}.search-box input{padding-left:40px}.search-box:before{left:14px;top:10px;font-size:18px}input::placeholder,textarea::placeholder{color:#697991;opacity:1}

/* Dashboard atmosphere */
.dashboard-hero{padding:32px 32px 28px;border-radius:25px;margin-bottom:18px;background:linear-gradient(118deg,rgba(20,35,57,.98) 0%,rgba(15,25,42,.98) 47%,rgba(10,18,29,.98) 100%);border-color:rgba(132,160,213,.16);box-shadow:0 28px 80px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.025)}
.dashboard-hero:before{content:"";position:absolute;left:-120px;bottom:-230px;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(47,214,158,.09),transparent 67%)}
.dashboard-hero:after{width:560px;height:560px;right:-180px;top:-335px;background:radial-gradient(circle,rgba(77,125,255,.31),rgba(85,62,185,.08) 47%,transparent 68%)}
.hero-kicker{font-size:11px;color:#b3c1d5}.hero-kicker i{width:8px;height:8px}.dashboard-hero h2{font-size:34px;line-height:1.15;margin:12px 0 10px;max-width:850px}.dashboard-hero p{max-width:780px;font-size:14px;color:#a7b4c8;line-height:1.65}.hero-stats{gap:34px;margin-top:27px;padding-top:22px}.hero-stat strong{font-size:20px}.hero-stat span{font-size:11.5px;color:#91a0b6;margin-top:2px;display:block}.chart-card{min-height:365px}.chart{height:275px;gap:13px}.bar-label{font-size:10.5px;color:#8b98ac;bottom:-22px}.kpi-row{padding:14px 0}.kpi-row span{font-size:12.5px;color:#a3afc0}
.ecosystem-list{gap:10px}.eco-item{padding:14px;border-radius:14px;background:linear-gradient(145deg,#0c1420,#0a111a);border-color:rgba(180,201,235,.09)}.eco-left{gap:12px}.eco-left strong{font-size:13px}.eco-left span{font-size:11px;color:#8997aa;margin-top:3px}.eco-dot{width:38px;height:38px;border-radius:11px;font-size:10px}.quick-panel{gap:11px;margin-top:17px}.quick-action{padding:16px;border-radius:14px;background:linear-gradient(145deg,#0e1723,#0a111a)}.quick-action b{font-size:13px;margin-bottom:5px}.quick-action span{font-size:11px;color:#8d9aae;line-height:1.5}

/* Tables */
table{min-width:820px}th,td{padding:16px 18px;font-size:13px;line-height:1.45}th{font-size:10.5px;color:#8e9cb0;letter-spacing:.1em;background:#0b121b}td strong{font-size:13.5px}.subtext{font-size:11px;color:#8997ab;margin-top:4px}.old{font-size:11.5px;color:#8996a9}.badge{padding:5px 9px;font-size:10.5px;gap:6px}.badge:before{width:6px;height:6px}.empty{padding:58px 28px;font-size:12.5px;color:#8d9aaf}.empty strong{font-size:15px;color:#bdc7d6;margin-bottom:7px}.list-row{padding:15px 2px}.list-title{font-size:13.5px}.list-meta{font-size:11.5px;color:#8d9aaf}

/* Catalog */
.catalog-search{grid-template-columns:205px 1fr auto;gap:11px}.products-grid{gap:17px;margin-top:18px}.product-card{border-radius:18px;background:linear-gradient(150deg,#111c29,#0a111a);box-shadow:0 18px 50px rgba(0,0,0,.13)}.product-img{height:190px}.product-img span{font-size:12px;color:#7f8da2}.product-body{padding:17px;gap:10px}.product-name{font-size:14px;line-height:1.45;min-height:40px}.product-meta{font-size:11px;color:#8b99ad}.product-price{font-size:23px}.commission{font-size:11.5px}.product-actions{gap:8px;padding-top:7px}

/* Integrations — more immersive, branded and readable */
.integrations-hero{padding:29px 30px;border-radius:24px;margin-bottom:18px;background:linear-gradient(125deg,rgba(20,34,54,.98),rgba(10,18,29,.98));border-color:rgba(132,160,213,.15);box-shadow:0 24px 70px rgba(0,0,0,.22)}
.integrations-hero:before{content:"";position:absolute;left:-130px;bottom:-240px;width:430px;height:430px;border-radius:50%;background:radial-gradient(circle,rgba(47,211,154,.09),transparent 66%)}.integrations-hero:after{width:470px;height:470px;right:-155px;top:-300px;background:radial-gradient(circle,rgba(76,125,255,.28),transparent 67%)}
.integrations-hero h2{font-size:27px;margin-bottom:8px}.integrations-hero p{font-size:13.5px;color:#a4b1c4;line-height:1.6;max-width:760px}.integration-summary{gap:10px}.summary-pill{padding:12px 15px;min-width:118px;border-radius:13px;background:rgba(8,15,25,.68);backdrop-filter:blur(8px)}.summary-pill strong{font-size:18px}.summary-pill span{font-size:10.5px;color:#95a3b7;margin-top:3px}
.integration-grid{gap:18px}.integration-card{border-radius:21px;background:linear-gradient(145deg,#121d2b,#0a111a);box-shadow:0 22px 65px rgba(0,0,0,.19);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.integration-card:hover{transform:translateY(-2px);border-color:rgba(125,153,205,.22);box-shadow:0 28px 75px rgba(0,0,0,.25)}.integration-card:after{content:"";position:absolute;right:-85px;top:-110px;width:230px;height:230px;border-radius:50%;pointer-events:none;opacity:.14;background:radial-gradient(circle,#5d86ff,transparent 68%)}
.integration-card[data-integration="shopee"]:before{background:linear-gradient(90deg,transparent,#ff775e,transparent);opacity:.85}.integration-card[data-integration="shopee"]:after{background:radial-gradient(circle,#ff6d54,transparent 68%)}
.integration-card[data-integration="aliexpress"]:before{background:linear-gradient(90deg,transparent,#ff704b,transparent);opacity:.8}.integration-card[data-integration="aliexpress"]:after{background:radial-gradient(circle,#ff6847,transparent 68%)}
.integration-card[data-integration="mercadolivre"]:before{background:linear-gradient(90deg,transparent,#f6d94b,transparent);opacity:.75}.integration-card[data-integration="mercadolivre"]:after{background:radial-gradient(circle,#f4d948,transparent 68%)}
.integration-card[data-integration="whatsapp"]:before{background:linear-gradient(90deg,transparent,#39dca3,transparent);opacity:.8}.integration-card[data-integration="whatsapp"]:after{background:radial-gradient(circle,#36d99e,transparent 68%)}
.integration-head{padding:21px 22px 18px}.integration-brand{gap:14px}.integration-brand strong{font-size:15.5px}.integration-brand span{font-size:11.5px;color:#94a2b7;margin-top:4px;line-height:1.5;max-width:430px}.integration-body{padding:21px 22px;position:relative;z-index:1}.market-logo{width:48px;height:48px;border-radius:14px;font-size:11px}.integration-actions{gap:9px;margin-top:19px;padding-top:18px}.integration-meta{margin-top:15px}.secret-placeholder{font-size:11px;color:#8391a6}.integration-step{gap:12px;padding:13px 14px;border-radius:13px;margin-top:14px;background:#0b131e}.integration-step-num{flex-basis:28px;width:28px;height:28px;font-size:10px;border-radius:8px}.integration-step b{font-size:12px;margin:1px 0 3px}.integration-step span{font-size:11px;color:#8795aa;line-height:1.5}.security-note{gap:11px;padding:15px 16px;border-radius:14px;font-size:11.5px;color:#91a0b5;line-height:1.6;margin-top:17px}.security-note b{color:#c1cbd9}.security-note code{color:#bec9d8}

/* Auth + modal */
.auth-box{width:min(510px,100%);padding:38px;border-radius:28px}.auth-brand strong{font-size:17px}.auth-brand span{font-size:11px;color:#8795aa}.auth-box h1{font-size:34px}.auth-box>p{font-size:13px;line-height:1.65}.auth-note{font-size:11.5px;color:#8e9bb0;padding:15px}.modal{width:min(740px,100%);padding:27px;border-radius:23px}.modal-head h2{font-size:24px}.modal-head p{font-size:12.5px;color:#95a2b5}.close{width:37px;height:37px;font-size:18px}.toast{padding:14px 17px;font-size:12.5px;max-width:460px}.loading{padding:64px;font-size:12.5px}.spinner{width:24px;height:24px}

@media(max-width:900px){
  .sidebar{width:280px;left:-292px}.main{padding:0 18px 46px}.topbar{height:88px}.topbar h1{font-size:26px}.dashboard-hero h2{font-size:29px}.dashboard-hero p,.integrations-hero p{font-size:13px}
}
@media(max-width:620px){
  body{font-size:14px}.main{padding:0 13px 38px}.topbar{height:78px;margin-bottom:20px}.topbar h1{font-size:23px}.eyebrow{font-size:9px}.dashboard-hero,.integrations-hero{padding:23px 20px}.dashboard-hero h2{font-size:26px}.dashboard-hero p,.integrations-hero p{font-size:13px}.hero-stat strong{font-size:18px}.hero-stat span{font-size:10.5px}.card{padding:18px}.metric-card{min-height:148px}.metric-value{font-size:32px}.card-title{font-size:16px}.section-title{font-size:19px}.integration-head,.integration-body{padding-left:17px;padding-right:17px}.integration-brand strong{font-size:14.5px}.integration-brand span{font-size:11px}.product-name{font-size:13.5px}.product-price{font-size:21px}.modal{padding:20px}.modal-head h2{font-size:21px}
}
