*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:#07162d;background:#f4f6fc}a{text-decoration:none;color:inherit}button,input,select,textarea{font-family:inherit}.side{position:fixed;left:0;top:0;bottom:0;width:265px;background:linear-gradient(180deg,#192036,#071327);color:#d8e1f3;padding:26px 15px;z-index:5;box-shadow:12px 0 35px rgba(8,16,32,.15)}.logo{display:flex;gap:14px;align-items:center;padding:0 10px 24px;border-bottom:1px solid rgba(255,255,255,.09);margin-bottom:18px}.logoicon{width:58px;height:58px;border-radius:18px;background:#29304a;display:grid;place-items:center;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}.logo b{display:block;font-size:24px;color:#fff;font-weight:900;letter-spacing:.3px}.logo small{display:block;font-size:11px;letter-spacing:4px;color:#c5ccdb;font-weight:800;margin-top:7px}.userbox{display:flex;align-items:center;gap:14px;margin:10px 0 24px;padding:18px;border-radius:20px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08)}.avatar{width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#6c5cff,#9357f5);display:grid;place-items:center;color:white;font-weight:900}.nav{display:block;margin:8px 0;padding:15px 18px;border-radius:14px;font-weight:800;color:#c7d0e3;font-size:14px}.nav:hover,.nav.on{background:linear-gradient(135deg,#6757f7,#8c54f3);color:#fff;box-shadow:0 13px 34px rgba(110,86,247,.34)}.panel{margin-left:265px;min-height:100vh;background:linear-gradient(135deg,#f7f9ff 0,#f2f5fb 56%,#eef1ff 100%);padding-bottom:52px}.bar{height:78px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid #e4e8f2;box-shadow:0 5px 28px rgba(10,22,45,.04);position:sticky;top:0;z-index:3}.round{width:46px;height:46px;border-radius:15px;border:0;background:#fff;color:#6957ff;margin-right:10px;box-shadow:0 7px 22px rgba(31,43,74,.08);font-weight:900}.topright{display:flex;align-items:center;gap:15px}.search{width:270px;border:1px solid #e2e7f1;border-radius:16px;padding:14px 18px;background:#fff;outline:none}.balance{background:#fff;border-radius:16px;padding:14px 22px;font-size:22px;font-weight:900;box-shadow:0 7px 22px rgba(31,43,74,.06)}.content{padding:38px 32px}.content h1{font-size:32px;margin:0 0 22px;font-weight:950;letter-spacing:-.8px}.card{background:#fff;border-radius:24px;padding:28px;box-shadow:0 24px 60px rgba(16,26,50,.08);border:1px solid #edf0f7}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.grid2{display:grid;grid-template-columns:2fr 1fr;gap:24px}.statbox{text-align:center;min-height:148px;display:flex;flex-direction:column;align-items:center;justify-content:center}.staticon{width:58px;height:58px;border-radius:19px;background:#dcffe9;display:grid;place-items:center;margin-bottom:14px;font-size:24px}.stat{font-size:32px;font-weight:950}.muted{color:#7d8ca6}.purple{color:#6d58f4;font-weight:900}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:16px;padding:14px 22px;background:linear-gradient(135deg,#6957f6,#8553f1);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 16px 28px rgba(112,83,246,.23)}.btn.full{width:100%}.btn.light{background:#eef0ff;color:#6d58f4;box-shadow:none}.input,select,textarea{width:100%;border:1px solid #e3e7f2;border-radius:15px;padding:15px 17px;background:#fff;outline:none;color:#1d2b45;margin:8px 0 16px}.inputrow{display:flex}.inputrow span{width:55px;background:#f1ecff;border:1px solid #e3e7f2;border-right:0;border-radius:15px 0 0 15px;display:grid;place-items:center;color:#6d58f4;font-weight:900;margin:8px 0 16px}.inputrow .input{border-radius:0 15px 15px 0}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:20px;overflow:hidden}.table th{background:#f5f7fb;color:#52617a;font-size:13px;text-transform:uppercase}.table th,.table td{padding:18px;text-align:left;border-bottom:1px solid #e8ecf4}.pill{display:inline-block;border-radius:999px;padding:8px 13px;background:#efe9ff;color:#6c56f5;font-weight:900;font-size:12px}.pill.red{background:#ffe8ec;color:#ff3e65}.pill.green{background:#dcffe9;color:#00a561}.orderbox{max-width:1160px;margin:0 auto;background:#fff;border-radius:28px;padding:24px;box-shadow:0 27px 60px rgba(24,30,72,.08);border:1px solid #e8e8ff}.orderhead{background:linear-gradient(135deg,#6957f6,#9251ec);color:#fff;border-radius:18px;padding:20px;font-weight:900;margin-bottom:20px}.formcenter{max-width:560px;margin:0 auto}.sidecard{background:linear-gradient(135deg,#6957f6,#6d58f4);color:#fff;border-radius:20px;padding:28px}.alert{padding:14px 17px;border-radius:15px;margin:12px 0;font-weight:800}.err{background:#fff0f0;border:1px solid #ffd1d1;color:#d7263d}.ok{background:#eafff3;border:1px solid #bdf5d3;color:#008648}.loginpage{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#eef0ff,transparent 30%),linear-gradient(135deg,#f9fbff,#eef2ff);padding:20px}.loginwrap{width:min(1060px,100%);display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}.loginhero h1{font-size:60px;line-height:1.02;margin:0 0 18px;font-weight:950}.loginhero p{font-size:18px;color:#697891;line-height:1.6}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.tabs button{border:0;border-radius:14px;padding:13px;background:#f0edff;font-weight:900;color:#7058f3}.tabs button.active{background:linear-gradient(135deg,#6957f6,#9251ec);color:#fff}.hide{display:none}footer{position:fixed;left:265px;right:0;bottom:12px;text-align:center;color:#65728a;font-size:13px}.mini_chart{height:190px;background:linear-gradient(to bottom,transparent 24%,#e8ebf2 24%,#e8ebf2 25%,transparent 25%,transparent 49%,#e8ebf2 49%,#e8ebf2 50%,transparent 50%,transparent 74%,#e8ebf2 74%,#e8ebf2 75%,transparent 75%);position:relative}.mini_chart:after{content:"";position:absolute;left:0;right:0;bottom:25px;height:5px;background:#c95cff}.months{display:flex;justify-content:space-around;font-size:13px;color:#60718d}.serviceitem{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #edf0f7}.actions{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:900px){.side{position:relative;width:auto}.panel{margin-left:0}.bar{padding:0 14px}.content{padding:24px 14px}.grid,.grid2,.loginwrap{grid-template-columns:1fr}.search{display:none}.loginhero h1{font-size:42px}footer{left:0}.topright{gap:8px}.balance{font-size:16px;padding:12px}.side{padding:16px}.nav{display:inline-block}.logo small{letter-spacing:2px}}
body.dark{color:#eaf0ff;background:#071327}body.dark .panel{background:linear-gradient(135deg,#071327,#10182c 55%,#15112a)}body.dark .bar,body.dark .card,body.dark .orderbox,body.dark .balance,body.dark .round,body.dark .input,body.dark select,body.dark textarea{background:#111a2f;color:#eaf0ff;border-color:#283652}body.dark .table,body.dark .table th{background:#111a2f;color:#eaf0ff}body.dark .table td,body.dark .table th,body.dark .serviceitem{border-color:#283652}body.dark .muted{color:#aeb9d0}body.dark footer{color:#aeb9d0}.btn.small{padding:9px 12px;border-radius:12px;font-size:12px}.btn.danger{background:#ff5573}.btn.green{background:#13b981}.pricebox{max-width:110px}.checkcell{width:44px}.synclist{max-height:520px;overflow:auto}.inlineform{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inlineform input,.inlineform select{margin:4px 0}.rawbox{white-space:pre-wrap;max-height:280px;overflow:auto;background:#0c1222;color:#d7e3ff;border-radius:14px;padding:14px;font-size:12px}
.apiBalanceBox{border:1px solid rgba(44,183,120,.25);background:linear-gradient(135deg,#ffffff,#f4fff9)}
.balanceHero{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap}
.bigCredit{font-size:34px;font-weight:900;color:#0b8f54;background:#eafff3;border:1px solid #bdf4d5;border-radius:20px;padding:16px 20px;box-shadow:0 12px 35px rgba(11,143,84,.12)}
.bigCredit small{font-size:15px;color:#4b6b58}
.statgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.stat{background:#fff;border:1px solid #edf0f7;border-radius:16px;padding:14px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.stat small{display:block;color:#7b8496;margin-bottom:6px}.stat b{word-break:break-all;color:#12223f}
@media(max-width:800px){.statgrid{grid-template-columns:1fr 1fr}.bigCredit{font-size:25px;width:100%;text-align:center}}
.serviceTop{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}.bulkbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#f7f8ff;border:1px solid #e8ecf7;border-radius:18px;padding:12px;margin:12px 0}.softbar{background:#fbfcff}.checkLabel{font-weight:900;color:#5e6b82}.bulkselect{width:auto;min-width:120px;margin:0}.miniInput{width:120px!important;margin:0!important}.tablewrap{overflow:auto;border-radius:18px;border:1px solid #edf0f7}.serviceTable th,.serviceTable td{white-space:nowrap;vertical-align:middle}.tableInput,.tableSelect{margin:0!important;border-radius:11px!important;padding:10px 11px!important}.serviceName{min-width:260px}.priceSmall{width:86px!important}.apiSmall{width:70px!important}.apiService{width:110px!important}.tableSelect{width:105px!important}.adminServiceCheck{width:18px;height:18px}body.dark .bulkbar{background:#111a2f;border-color:#283652}body.dark .tablewrap{border-color:#283652}

.minierr{color:#ff5577;font-size:11px;margin-top:4px}.smallhint{font-size:12px;margin-top:12px}.checkLabel{display:inline-flex;gap:8px;align-items:center}
/* PREMIUM UI REDESIGN PATCH */
:root{--ui-bg:#f5f7ff;--ui-card:#ffffff;--ui-text:#111827;--ui-muted:#72809b;--ui-primary:#6957f6;--ui-primary2:#9b5cf6;--ui-cyan:#13c8ff;--ui-green:#11b981;--ui-red:#ff4778;--ui-border:#e8ecf7;--ui-shadow:0 22px 70px rgba(23,31,72,.10);--ui-soft:0 10px 30px rgba(38,47,86,.08)}
body{background:radial-gradient(circle at 12% 12%,rgba(105,87,246,.16),transparent 32%),radial-gradient(circle at 88% 16%,rgba(19,200,255,.13),transparent 28%),linear-gradient(135deg,#f9fbff,#eef2ff)!important;color:var(--ui-text);}
.side{background:linear-gradient(180deg,#0c1226 0%,#111a33 48%,#080d1d 100%)!important;border-right:1px solid rgba(255,255,255,.08);box-shadow:18px 0 65px rgba(7,13,33,.28)!important;}
.side:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 0%,rgba(105,87,246,.38),transparent 35%),radial-gradient(circle at 90% 22%,rgba(19,200,255,.16),transparent 30%);pointer-events:none;}
.side>*{position:relative}.logo{border-bottom:1px solid rgba(255,255,255,.10)!important}.logoicon{background:linear-gradient(135deg,var(--ui-primary),var(--ui-primary2))!important;box-shadow:0 16px 38px rgba(105,87,246,.36), inset 0 0 0 1px rgba(255,255,255,.18)!important}.logo b{letter-spacing:.2px}.logo small{color:#96a5c7!important}.userbox{background:rgba(255,255,255,.075)!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.avatar{background:linear-gradient(135deg,#13c8ff,#6957f6)!important;box-shadow:0 12px 26px rgba(19,200,255,.20)}.nav{position:relative;overflow:hidden;transition:.22s ease!important}.nav:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:4px;background:linear-gradient(180deg,#13c8ff,#9b5cf6);opacity:0;transition:.22s}.nav:hover:before,.nav.on:before{opacity:1}.nav:hover,.nav.on{transform:translateX(4px);background:linear-gradient(135deg,rgba(105,87,246,.96),rgba(155,92,246,.86))!important;color:#fff!important;box-shadow:0 14px 34px rgba(105,87,246,.34)!important}.panel{background:transparent!important;}.bar{height:84px!important;background:rgba(255,255,255,.72)!important;backdrop-filter:blur(18px);border-bottom:1px solid rgba(232,236,247,.75)!important;box-shadow:0 10px 35px rgba(23,31,72,.06)!important}.round,.balance,.search{border:1px solid rgba(232,236,247,.9)!important;box-shadow:var(--ui-soft)!important}.round{transition:.2s ease}.round:hover{transform:translateY(-2px);background:#f2efff!important;color:var(--ui-primary)!important}.balance{background:linear-gradient(135deg,#fff,#f8f6ff)!important;color:#17213b}.content h1{font-size:36px!important;letter-spacing:-1.2px;background:linear-gradient(135deg,#121a2f,#6957f6 72%,#13c8ff);-webkit-background-clip:text;background-clip:text;color:transparent}.card,.orderbox{background:rgba(255,255,255,.88)!important;backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.7)!important;box-shadow:var(--ui-shadow)!important}.card{position:relative;overflow:hidden}.card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#13c8ff,#6957f6,#ff5baf);opacity:.85}.grid .card,.statbox{transition:.25s ease}.grid .card:hover,.statbox:hover,.orderbox:hover{transform:translateY(-4px);box-shadow:0 26px 80px rgba(23,31,72,.14)!important}.staticon{background:linear-gradient(135deg,#e8fbff,#f0edff)!important;color:#6957f6!important;box-shadow:inset 0 0 0 1px rgba(105,87,246,.10)}.stat{color:#12223f!important}.muted{color:var(--ui-muted)!important}.btn{background:linear-gradient(135deg,#6957f6,#9b5cf6)!important;box-shadow:0 14px 32px rgba(105,87,246,.28)!important;transition:.22s ease!important}.btn:hover{transform:translateY(-2px);filter:saturate(1.08)}.btn.light{background:#f0edff!important;color:#6957f6!important;box-shadow:inset 0 0 0 1px rgba(105,87,246,.12)!important}.btn.green{background:linear-gradient(135deg,#10b981,#13c8a8)!important}.btn.danger{background:linear-gradient(135deg,#ff4778,#ff7a59)!important}.btn.loading{opacity:.8;pointer-events:none}.input,select,textarea{background:rgba(255,255,255,.95)!important;border:1px solid #e1e7f5!important;box-shadow:0 7px 18px rgba(23,31,72,.035);transition:.2s}.input:focus,select:focus,textarea:focus{border-color:#826dff!important;box-shadow:0 0 0 4px rgba(105,87,246,.12)!important}.tablewrap,.table{box-shadow:var(--ui-soft);border-radius:20px!important;overflow:hidden}.table th{background:linear-gradient(135deg,#f7f8ff,#f0f4ff)!important;color:#63708b!important}.table td{background:rgba(255,255,255,.75)}.pill{border:1px solid rgba(105,87,246,.13)}.pill.green{background:#e9fff5!important;color:#079b5c!important;border-color:#c6f5df}.pill.red{background:#fff0f4!important;color:#e53562!important;border-color:#ffd0dc}.pill.pending,.pill.yellow{background:#fff8df!important;color:#b98500!important;border-color:#ffe9a3}.orderhead{background:linear-gradient(135deg,#6957f6,#9b5cf6 55%,#13c8ff)!important;box-shadow:0 16px 42px rgba(105,87,246,.25)}.bulkbar{background:rgba(255,255,255,.72)!important;border:1px solid rgba(232,236,247,.85)!important;box-shadow:var(--ui-soft)}.apiBalanceBox{background:linear-gradient(135deg,#ffffff,#f5fff9)!important;border:1px solid rgba(17,185,129,.18)!important}.bigCredit{background:linear-gradient(135deg,#eafff4,#ffffff)!important}.loginpage{background:radial-gradient(circle at 20% 10%,rgba(105,87,246,.22),transparent 28%),radial-gradient(circle at 80% 30%,rgba(19,200,255,.16),transparent 32%),linear-gradient(135deg,#f9fbff,#edf2ff)!important}.loginhero h1{background:linear-gradient(135deg,#111827,#6957f6 65%,#13c8ff);-webkit-background-clip:text;background-clip:text;color:transparent}.tabs button{transition:.2s}.tabs button:hover{transform:translateY(-1px)}footer{opacity:.78}.serviceTop h2,.section-title{letter-spacing:-.4px}.rawbox{border:1px solid rgba(105,87,246,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
body.dark{background:radial-gradient(circle at 15% 8%,rgba(105,87,246,.28),transparent 30%),radial-gradient(circle at 86% 18%,rgba(19,200,255,.13),transparent 28%),linear-gradient(135deg,#070b18,#10172b 56%,#14102b)!important;color:#eaf0ff!important}body.dark .bar{background:rgba(15,23,42,.72)!important;border-color:#283652!important}body.dark .card,body.dark .orderbox,body.dark .balance,body.dark .round,body.dark .input,body.dark select,body.dark textarea,body.dark .table td{background:rgba(17,26,47,.86)!important;color:#eaf0ff!important;border-color:#283652!important}body.dark .content h1{background:linear-gradient(135deg,#fff,#9b8cff 70%,#13c8ff);-webkit-background-clip:text;background-clip:text;color:transparent}body.dark .table th{background:#18233d!important;color:#b7c2da!important}body.dark .bulkbar{background:rgba(17,26,47,.82)!important}body.dark .stat b,body.dark .stat{color:#eef4ff!important}body.dark .search::placeholder{color:#96a5c7}.mobileOnly{display:none}@media(max-width:900px){.content h1{font-size:29px!important}.bar{height:74px!important}.side{box-shadow:none!important}.mobileOnly{display:block}.nav{margin:6px 4px;padding:12px 14px}.grid{gap:16px}.card{padding:22px!important}}

/* DAY/NIGHT + MOBILE SIDEBAR FIX */
.themeToggle{font-size:18px!important;line-height:1!important}
.sideToggle{font-size:18px!important;line-height:1!important}
body.dark .loginpage{background:radial-gradient(circle at 20% 10%,rgba(105,87,246,.25),transparent 30%),linear-gradient(135deg,#070b18,#10172b)!important}
body.dark .loginbox,body.dark .loginhero{background:rgba(17,26,47,.88)!important;color:#eaf0ff!important;border-color:#283652!important}
body.dark .tabs,body.dark .tabs button{background:#111a2f!important;color:#eaf0ff!important}
body.dark .tabs button.active{background:linear-gradient(135deg,#6957f6,#9b5cf6)!important;color:#fff!important}
@media(max-width:900px){body.sidebar-open .side{transform:translateX(0)!important;z-index:9999}.side{transition:transform .25s ease}.panel{margin-left:0!important}.bar{padding:0 14px!important}.topright{gap:8px}.search{display:none}.balance{font-size:16px!important;padding:11px 13px!important}}

/* FINAL DAY/NIGHT FIX */
html[data-theme="dark"] body, body.dark{background:radial-gradient(circle at 15% 8%,rgba(105,87,246,.28),transparent 30%),radial-gradient(circle at 86% 18%,rgba(19,200,255,.13),transparent 28%),linear-gradient(135deg,#070b18,#10172b 56%,#14102b)!important;color:#eaf0ff!important}
body.dark .loginhero .logo b{color:#eaf0ff!important}
body.dark .loginhero .logo small{color:#a9b8d4!important}
body.dark .loginhero p{color:#a9b8d4!important}
body.dark .card,body.dark .loginhero,body.dark .loginwrap .card{background:rgba(17,26,47,.90)!important;color:#eaf0ff!important;border-color:#283652!important}
body.dark .input,body.dark input,body.dark select,body.dark textarea{background:rgba(14,22,40,.95)!important;color:#eaf0ff!important;border-color:#33415f!important}
body.dark .input::placeholder,body.dark input::placeholder{color:#8da0c2!important}
.themeFloat{position:fixed;right:18px;top:18px;z-index:99999;width:48px;height:48px;border-radius:16px;border:1px solid rgba(105,87,246,.22);background:#fff;color:#6957f6;font-size:20px;font-weight:900;box-shadow:0 14px 36px rgba(23,31,72,.14);cursor:pointer}
body.dark .themeFloat{background:#111a2f!important;color:#fff!important;border-color:#33415f!important}


/* FINAL DAY / NIGHT FIX */
html[data-theme="light"] body:not(.dark){background:radial-gradient(circle at 14% 8%,rgba(105,87,246,.13),transparent 30%),linear-gradient(135deg,#f6f8ff,#eef3ff 52%,#f8f4ff)!important;color:#17213a!important;}
html[data-theme="light"] body:not(.dark) .card,
html[data-theme="light"] body:not(.dark) .bar,
html[data-theme="light"] body:not(.dark) .orderbox,
html[data-theme="light"] body:not(.dark) .balance,
html[data-theme="light"] body:not(.dark) .round,
html[data-theme="light"] body:not(.dark) .input,
html[data-theme="light"] body:not(.dark) select,
html[data-theme="light"] body:not(.dark) textarea,
html[data-theme="light"] body:not(.dark) .table td{background:rgba(255,255,255,.92)!important;color:#17213a!important;border-color:#e5eaf5!important;}
html[data-theme="light"] body:not(.dark) .table th{background:#f3f6ff!important;color:#66748f!important;}
html[data-theme="dark"] body,
body.dark{background:radial-gradient(circle at 15% 8%,rgba(105,87,246,.30),transparent 30%),radial-gradient(circle at 86% 18%,rgba(19,200,255,.16),transparent 28%),linear-gradient(135deg,#070b18,#10172b 56%,#14102b)!important;color:#eaf0ff!important;}
html[data-theme="dark"] body .card,
body.dark .card,
html[data-theme="dark"] body .bar,
body.dark .bar,
html[data-theme="dark"] body .orderbox,
body.dark .orderbox,
html[data-theme="dark"] body .balance,
body.dark .balance,
html[data-theme="dark"] body .round,
body.dark .round,
html[data-theme="dark"] body .input,
body.dark .input,
html[data-theme="dark"] body input,
body.dark input,
html[data-theme="dark"] body select,
body.dark select,
html[data-theme="dark"] body textarea,
body.dark textarea,
html[data-theme="dark"] body .table td,
body.dark .table td{background:rgba(17,26,47,.90)!important;color:#eaf0ff!important;border-color:#283652!important;}
html[data-theme="dark"] body .table th,
body.dark .table th{background:#18233d!important;color:#b7c2da!important;}
.themeToggle,[data-theme-toggle],#themeToggle,#darkModeToggle,#dayNightToggle{cursor:pointer!important;user-select:none!important;position:relative;z-index:999999!important;}

/* iHPro Tool DARK THEME READABILITY FINAL FIX */
/* Fix global .stat card style breaking dashboard numbers */
.statbox .stat,
.card .statbox .stat,
.content .statbox .stat{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  color:#111827!important;
  font-size:32px!important;
  font-weight:950!important;
  line-height:1.15!important;
}
body.dark .statbox .stat,
html[data-theme="dark"] body .statbox .stat,
body.dark .card .statbox .stat,
html[data-theme="dark"] body .card .statbox .stat{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#f8fbff!important;
  text-shadow:0 2px 12px rgba(0,0,0,.25)!important;
}
body.dark .panel,
html[data-theme="dark"] body .panel{
  background:radial-gradient(circle at 16% 12%,rgba(105,87,246,.22),transparent 28%),radial-gradient(circle at 85% 20%,rgba(19,200,255,.14),transparent 30%),linear-gradient(135deg,#0b1225 0%,#111b31 55%,#13172b 100%)!important;
}
body.dark .card,
body.dark .orderbox,
body.dark .sidecard,
html[data-theme="dark"] body .card,
html[data-theme="dark"] body .orderbox,
html[data-theme="dark"] body .sidecard{
  background:rgba(20,31,56,.96)!important;
  border-color:rgba(101,123,166,.45)!important;
  color:#f8fbff!important;
  box-shadow:0 24px 60px rgba(0,0,0,.32)!important;
}
body.dark .bar,
html[data-theme="dark"] body .bar{
  background:rgba(13,21,40,.98)!important;
  border-color:rgba(101,123,166,.35)!important;
  box-shadow:0 10px 32px rgba(0,0,0,.30)!important;
}
body.dark .muted,
body.dark small,
html[data-theme="dark"] body .muted,
html[data-theme="dark"] body small{
  color:#b9c7e6!important;
}
body.dark .purple,
html[data-theme="dark"] body .purple{
  color:#a998ff!important;
}
body.dark .staticon,
html[data-theme="dark"] body .staticon{
  background:linear-gradient(135deg,rgba(105,87,246,.25),rgba(19,200,255,.16))!important;
  border:1px solid rgba(145,161,196,.35)!important;
  color:#ffffff!important;
  box-shadow:0 12px 28px rgba(0,0,0,.25)!important;
}
body.dark .content h1,
html[data-theme="dark"] body .content h1,
body.dark h1,
html[data-theme="dark"] body h1{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  background:none!important;
  text-shadow:0 2px 16px rgba(0,0,0,.25)!important;
}
body.dark h2,
body.dark h3,
body.dark b,
html[data-theme="dark"] body h2,
html[data-theme="dark"] body h3,
html[data-theme="dark"] body b{
  color:#f8fbff!important;
}
body.dark .search,
body.dark .input,
body.dark input,
body.dark select,
body.dark textarea,
html[data-theme="dark"] body .search,
html[data-theme="dark"] body .input,
html[data-theme="dark"] body input,
html[data-theme="dark"] body select,
html[data-theme="dark"] body textarea{
  background:#0d162a!important;
  color:#f8fbff!important;
  border-color:#3a4a6d!important;
}
body.dark .search::placeholder,
body.dark input::placeholder,
body.dark textarea::placeholder,
html[data-theme="dark"] body .search::placeholder,
html[data-theme="dark"] body input::placeholder,
html[data-theme="dark"] body textarea::placeholder{
  color:#9fb0d1!important;
}
body.dark .balance,
html[data-theme="dark"] body .balance{
  background:#101a30!important;
  color:#ffffff!important;
  border:1px solid rgba(145,161,196,.35)!important;
}
body.dark .round,
html[data-theme="dark"] body .round{
  background:#101a30!important;
  color:#ffffff!important;
  border:1px solid rgba(145,161,196,.35)!important;
}
body.dark .table,
html[data-theme="dark"] body .table{
  background:#141f38!important;
  color:#eef4ff!important;
}
body.dark .table th,
html[data-theme="dark"] body .table th{
  background:#1c2946!important;
  color:#dbe6ff!important;
}
body.dark .table td,
html[data-theme="dark"] body .table td{
  background:#141f38!important;
  color:#eef4ff!important;
  border-color:#33415f!important;
}
body.dark footer,
html[data-theme="dark"] body footer{
  color:#c5d1ec!important;
}


/* iHPro Tool FINAL PREMIUM DASHBOARD FIX */
.logoicon{background:linear-gradient(135deg,#24c8ff,#8c54f3 55%,#f04fc8)!important;font-size:28px!important;font-weight:950!important;color:#fff!important;box-shadow:0 16px 35px rgba(104,86,247,.25)!important}
.logoicon:before{content:'S';}.logoicon{font-size:0!important}.logoicon:before{font-size:30px!important;line-height:1!important}
.logo b{font-size:25px!important;letter-spacing:-.4px!important}.logo small{letter-spacing:3px!important;color:#9faccc!important}
.dashboard-top{display:grid;grid-template-columns:180px 180px minmax(360px,1fr);gap:24px;align-items:stretch}.hero-stat{min-height:245px!important}.orders-stat-card{min-height:245px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}.orders-stat-card h2{margin:0 0 26px!important;font-size:23px!important}.orders-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;align-items:center}.order-stat-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:118px;text-align:center}.order-stat-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(105,87,246,.90),rgba(43,200,255,.45));color:#fff;font-size:27px;font-weight:900;box-shadow:0 16px 35px rgba(85,105,255,.22)}.order-stat-num{font-size:42px;line-height:1;font-weight:950;color:#18bfff;text-shadow:0 0 22px rgba(24,191,255,.25)}.order-stat-label{font-size:16px;color:#65728a}.statbox .stat{white-space:nowrap!important}.statbox h2{margin:10px 0 4px!important}.phone-icon{background:linear-gradient(135deg,rgba(105,87,246,.25),rgba(240,79,200,.18))!important}.card{position:relative;overflow:hidden}.card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#13c8ff,#7957ff,#f04fc8);opacity:.85}.statbox .staticon{background:linear-gradient(135deg,#6957f6,#5426bd)!important;color:#fff!important}.mini_chart{border-radius:16px;margin-top:20px}
body.dark .order-stat-label,html[data-theme="dark"] body .order-stat-label{color:#c4d1ee!important}.order-stat-card .order-stat-num{background:transparent!important;border:0!important;padding:0!important;margin:0!important;display:block!important}.order-stat-card .order-stat-icon{background:linear-gradient(135deg,rgba(105,87,246,.72),rgba(36,200,255,.22))!important;color:#dfe9ff!important;border:1px solid rgba(154,175,220,.18)!important}.order-stat-card,.dashboard-top .card{background:rgba(255,255,255,.94)!important}body.dark .order-stat-card,body.dark .dashboard-top .card,html[data-theme="dark"] body .order-stat-card,html[data-theme="dark"] body .dashboard-top .card{background:linear-gradient(180deg,rgba(18,29,54,.98),rgba(9,17,34,.98))!important;border-color:rgba(80,105,153,.70)!important;box-shadow:0 24px 65px rgba(0,0,0,.38)!important}body.dark .order-stat-card h2,html[data-theme="dark"] body .order-stat-card h2{color:#fff!important}.order-stat-card:before,.dashboard-top .card:before{height:4px!important;background:linear-gradient(90deg,#16c8ff,#7957ff,#f04fc8)!important;opacity:1!important}.order-stat-card .order-stat-num{color:#20bdff!important;text-shadow:0 0 18px rgba(32,189,255,.32)!important}.order-stat-card .order-stat-label{margin-top:0!important}.orders-stat-grid>div{position:relative!important}.orders-stat-grid b,.orders-stat-grid .stat{background:transparent!important;color:#20bdff!important;border:0!important;box-shadow:none!important}.statbox .stat,body.dark .statbox .stat,html[data-theme="dark"] body .statbox .stat{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;color:inherit!important}.hero-stat .stat{font-size:29px!important;color:#f5f8ff!important}.hero-stat{background:linear-gradient(180deg,#111b32,#0a1428)!important;color:#fff!important;border-color:rgba(80,105,153,.70)!important}.hero-stat .muted{color:#b8c6e4!important}.hero-stat .purple{color:#a78bff!important}.hero-stat .staticon{margin-bottom:22px!important}
body:not(.dark) .hero-stat{background:#fff!important;color:#101827!important}.panel{transition:background .25s ease}.themeToggle{cursor:pointer!important}.themeToggle:hover{transform:translateY(-2px);box-shadow:0 0 24px rgba(121,87,255,.22)!important}
@media(max-width:1100px){.dashboard-top{grid-template-columns:1fr 1fr}.orders-stat-card{grid-column:1/-1}}@media(max-width:700px){.dashboard-top,.orders-stat-grid{grid-template-columns:1fr}.hero-stat{min-height:190px!important}.orders-stat-card{min-height:auto!important}.order-stat-item{min-height:96px}.order-stat-num{font-size:34px}.content{padding:24px 14px!important}}

/* iHPro Tool FRPKING-style homepage */
.side-logo-img{width:58px;height:58px;border-radius:16px;object-fit:cover;box-shadow:0 0 24px rgba(20,145,255,.35)}
.ih-home{min-height:100vh;color:#eaf4ff;background:radial-gradient(circle at 18% 26%,rgba(0,107,255,.32),transparent 31%),radial-gradient(circle at 80% 15%,rgba(0,190,255,.15),transparent 25%),linear-gradient(135deg,#020713,#05142a 48%,#020817);overflow:hidden}.ih-home:before{content:"";position:fixed;inset:92px 0 0;background:linear-gradient(90deg,rgba(36,150,255,.07) 1px,transparent 1px),linear-gradient(rgba(36,150,255,.05) 1px,transparent 1px);background-size:80px 80px;pointer-events:none}.ih-nav{height:92px;display:flex;align-items:center;gap:26px;padding:0 6%;border-bottom:1px solid rgba(111,173,255,.18);background:rgba(2,9,22,.86);backdrop-filter:blur(18px);position:sticky;top:0;z-index:20}.ih-brand{display:flex;align-items:center;gap:14px;margin-right:auto}.ih-brand img{width:78px;height:56px;object-fit:contain;border-radius:10px}.ih-brand span{font-size:22px;font-weight:950;letter-spacing:.3px}.ih-menu{display:flex;align-items:center;gap:28px;font-weight:800}.ih-menu a{padding:34px 0;color:#eef6ff}.ih-menu a:hover{color:#43b6ff;border-bottom:2px solid #1d98ff}.ih-menu-btn{display:none}.ih-contact,.ih-menu-btn{border:1px solid rgba(128,180,255,.30);border-radius:10px;padding:15px 22px;background:rgba(255,255,255,.04);color:#fff;font-weight:900}.ih-contact{background:linear-gradient(135deg,#0f8cff,#0867df);box-shadow:0 14px 28px rgba(0,112,255,.25)}.ih-hero{position:relative;z-index:1;display:grid;grid-template-columns:.9fr 1.1fr;gap:40px;align-items:center;min-height:680px;padding:70px 7% 45px}.ih-hero-left{text-align:center}.ih-logo-big img{width:min(420px,88vw);border-radius:22px;filter:drop-shadow(0 0 28px rgba(0,153,255,.55))}.ih-hero h1{font-size:64px;line-height:1;margin:10px 0 8px;background:linear-gradient(135deg,#fff 0,#cfd8e8 40%,#1fb4ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:950;letter-spacing:-2px;text-transform:lowercase}.ih-hero h2{margin:0;color:#45baff;font-size:25px}.ih-hero p{max-width:520px;margin:25px auto;color:#c3d4ee;font-size:18px;line-height:1.7}.ih-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.ih-app-card{background:rgba(5,16,33,.76);border:1px solid rgba(70,163,255,.55);box-shadow:0 0 36px rgba(0,132,255,.22),inset 0 0 0 1px rgba(255,255,255,.04);border-radius:22px;padding:28px;transform:perspective(900px) rotateY(-4deg)}.ih-window-top{display:flex;gap:30px;align-items:center;border-bottom:1px solid rgba(126,183,255,.18);padding-bottom:18px;color:#cfe5ff}.ih-window-top b{margin-right:auto}.ih-app-body{display:grid;grid-template-columns:140px 1fr 1.35fr;gap:28px;padding:24px 0}.ih-sidebar{display:grid;gap:12px;color:#bcd4ef}.ih-sidebar b,.ih-sidebar span{padding:11px 12px;border-radius:9px}.ih-sidebar b{background:linear-gradient(135deg,#1479db,#0b4b96);color:#fff}.ih-phone{height:130px;width:72px;margin:auto;border-radius:18px;background:radial-gradient(circle at 65% 15%,#7569ff,#040815 62%);border:3px solid #6d79ff;box-shadow:0 0 24px rgba(109,121,255,.35)}.ih-device{text-align:center}.ih-device h3{margin:12px 0 4px}.ih-device small{background:#062f25;color:#56f2a4;padding:6px 10px;border-radius:99px;font-weight:900}.ih-info p{display:grid;grid-template-columns:1fr 1fr;margin:0;padding:10px 0;color:#cde2ff}.ih-info b{color:#eaf6ff}.ih-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ih-tools span,.ih-cards div,.ih-feature-row div{background:rgba(7,24,47,.72);border:1px solid rgba(87,161,255,.22);border-radius:14px;padding:18px;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}.ih-feature-row{position:relative;z-index:1;margin:0 6% 45px;display:grid;grid-template-columns:repeat(5,1fr);gap:0;border:1px solid rgba(87,161,255,.24);border-radius:16px;overflow:hidden;background:rgba(4,16,33,.75)}.ih-feature-row div{border:0;border-radius:0;min-height:105px}.ih-feature-row b{display:block;font-size:18px}.ih-feature-row span{display:block;color:#bad1ec;margin-top:8px}.ih-section{position:relative;z-index:1;margin:0 6% 34px;padding:34px;border:1px solid rgba(87,161,255,.24);border-radius:20px;background:rgba(5,17,35,.72);box-shadow:0 24px 60px rgba(0,0,0,.24)}.ih-section h2{font-size:34px;margin:0 0 15px}.ih-section p{color:#c5d6ee;font-size:17px}.ih-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.ih-login-panel{position:relative;z-index:1;max-width:620px;margin:0 auto 40px;padding:0 20px}.ih-login-panel .card{background:rgba(8,20,42,.92)!important;border:1px solid rgba(87,161,255,.28)!important;color:#eef7ff!important}.ih-login-panel .muted{color:#aebdda}.ih-login-panel .input{background:#061326!important;border-color:#294162!important;color:#fff!important}@media(max-width:980px){.ih-nav{height:auto;min-height:82px;flex-wrap:wrap;padding:14px 18px}.ih-menu{display:none;width:100%;grid-template-columns:1fr 1fr;gap:10px}.ih-menu.show{display:grid}.ih-menu a{padding:12px;background:rgba(255,255,255,.05);border-radius:10px}.ih-menu-btn{display:inline-flex}.ih-contact{padding:13px 14px}.ih-hero{grid-template-columns:1fr;padding:40px 18px}.ih-hero h1{font-size:48px}.ih-app-card{transform:none}.ih-app-body{grid-template-columns:1fr}.ih-feature-row,.ih-cards{grid-template-columns:1fr}.ih-feature-row{margin:0 18px 30px}.ih-section{margin:0 18px 26px}.ih-tools{grid-template-columns:1fr 1fr}}

/* iHPro Tool homepage premium redesign v2 */
.ih-home{background:#020712;color:#eff7ff;position:relative}.ih-home:after{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 0,rgba(0,144,255,.20),transparent 35%),linear-gradient(120deg,transparent 0 45%,rgba(0,145,255,.07) 45% 46%,transparent 46% 100%)}
.ih-nav{box-shadow:0 18px 55px rgba(0,0,0,.28)}.ih-brand img{filter:drop-shadow(0 0 15px rgba(0,145,255,.7))}.ih-brand span{text-transform:lowercase;background:linear-gradient(135deg,#fff,#41bfff);-webkit-background-clip:text;background-clip:text;color:transparent}.ih-menu a{position:relative}.ih-menu a:after{content:"";position:absolute;left:0;right:100%;bottom:24px;height:2px;background:#1ca5ff;transition:.25s}.ih-menu a:hover:after{right:0}.ih-menu a:hover{border-bottom:0!important}.ih-hero-pro{min-height:760px;background:linear-gradient(180deg,rgba(0,0,0,.10),transparent)}.ih-hero-copy{position:relative}.ih-badge{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:rgba(14,112,230,.12);border:1px solid rgba(82,170,255,.32);color:#aeddff;font-weight:900;margin-bottom:18px;box-shadow:0 0 30px rgba(0,130,255,.16)}.ih-logo-big img{background:rgba(255,255,255,.03);padding:10px;border:1px solid rgba(77,160,255,.18);box-shadow:0 0 55px rgba(0,151,255,.30)}.ih-hero h1{text-shadow:0 0 34px rgba(41,170,255,.24)}.ih-primary{background:linear-gradient(135deg,#17a7ff,#075fe2)!important;border:1px solid rgba(150,213,255,.4)!important;box-shadow:0 18px 42px rgba(0,119,255,.34)!important}.ih-ghost{background:rgba(255,255,255,.055)!important;color:#fff!important;border:1px solid rgba(172,210,255,.28)!important}.ih-mini-stats{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:26px}.ih-mini-stats span{min-width:120px;border:1px solid rgba(92,169,255,.24);background:rgba(5,19,42,.7);border-radius:16px;padding:12px 14px;color:#b9cce7}.ih-mini-stats b{display:block;color:#fff;font-size:22px}.ih-glow-orb{position:absolute;border-radius:50%;filter:blur(18px);pointer-events:none}.ih-orb-one{width:180px;height:180px;background:rgba(0,132,255,.22);left:4%;top:130px}.ih-orb-two{width:240px;height:240px;background:rgba(0,210,255,.13);right:8%;bottom:120px}.ih-app-card-pro{position:relative;overflow:hidden}.ih-app-card-pro:before{content:"";position:absolute;inset:-1px;background:linear-gradient(120deg,transparent,rgba(41,184,255,.20),transparent);transform:translateX(-65%);animation:ihshine 5s infinite}.ih-app-card-pro>*{position:relative}@keyframes ihshine{50%{transform:translateX(65%)}}.ih-window-top i{font-style:normal;color:#8fb8e9}.ih-ok{color:#65f0a9!important;font-weight:900}.ih-feature-pro{box-shadow:0 25px 70px rgba(0,0,0,.25)}.ih-feature-pro div{transition:.25s}.ih-feature-pro div:hover{background:rgba(10,44,85,.82);transform:translateY(-4px)}.ih-feature-pro em{font-style:normal;display:inline-grid;place-items:center;width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,rgba(20,151,255,.35),rgba(11,86,206,.16));border:1px solid rgba(91,176,255,.25);margin-bottom:12px;font-size:22px}.ih-section-pro,.ih-download-pro,.ih-reseller-pro,.ih-contact-section{background:linear-gradient(180deg,rgba(7,23,48,.82),rgba(3,12,28,.78));border:1px solid rgba(89,169,255,.28);box-shadow:0 25px 75px rgba(0,0,0,.28)}.ih-section-title span,.ih-tag{display:inline-block;color:#58c4ff;font-weight:950;text-transform:uppercase;letter-spacing:2px;margin-bottom:8px}.ih-section-title h2,.ih-download-pro h2{font-size:40px;margin:0 0 10px;letter-spacing:-1px}.ih-product-cards div{min-height:150px;display:flex;flex-direction:column;gap:12px;justify-content:center;transition:.25s;background:linear-gradient(180deg,rgba(13,43,82,.70),rgba(5,18,41,.82))}.ih-product-cards div:hover{transform:translateY(-6px);border-color:rgba(70,184,255,.55);box-shadow:0 18px 45px rgba(0,105,255,.18)}.ih-product-cards b{font-size:20px}.ih-product-cards span{color:#b8ccea}.ih-download-pro{display:flex;align-items:center;justify-content:space-between;gap:25px}.ih-reseller-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.ih-reseller-grid div{padding:18px;border-radius:16px;background:rgba(8,30,62,.72);border:1px solid rgba(86,161,255,.22);font-weight:900}.ih-contact-section{text-align:center}.ih-login-panel .card{box-shadow:0 25px 75px rgba(0,0,0,.35)!important}.ih-login-panel .tabs button{background:rgba(255,255,255,.06);color:#d9e8ff;border:1px solid rgba(103,174,255,.20);border-radius:12px;padding:12px 18px;font-weight:900}.ih-login-panel .tabs button.active{background:linear-gradient(135deg,#148cff,#065ee0);color:#fff}
@media(max-width:980px){.ih-hero-pro{min-height:auto}.ih-section-title h2,.ih-download-pro h2{font-size:30px}.ih-download-pro{display:block}.ih-download-pro .btn{margin-top:15px}.ih-reseller-grid{grid-template-columns:1fr 1fr}.ih-mini-stats span{min-width:30%}}
@media(max-width:560px){.ih-hero h1{font-size:40px}.ih-hero h2{font-size:20px}.ih-reseller-grid,.ih-tools{grid-template-columns:1fr!important}.ih-mini-stats span{width:100%}.ih-brand span{font-size:18px}.ih-contact{display:none}}

.ih-auth-top{display:flex;align-items:center;gap:10px;margin-left:6px}
.ih-login-top,.ih-register-top{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:14px;font-weight:950;letter-spacing:.2px;white-space:nowrap;transition:.25s}
.ih-login-top{color:#eaf6ff;background:rgba(255,255,255,.055);border:1px solid rgba(153,202,255,.28);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.ih-login-top:hover{background:rgba(20,130,255,.16);border-color:rgba(80,180,255,.55);transform:translateY(-2px)}
.ih-register-top{color:#fff;background:linear-gradient(135deg,#19b7ff,#075ee8);border:1px solid rgba(173,224,255,.44);box-shadow:0 16px 35px rgba(0,120,255,.30)}
.ih-register-top:hover{transform:translateY(-2px);box-shadow:0 20px 45px rgba(0,145,255,.42)}
@media(max-width:1180px){.ih-menu{gap:18px}.ih-auth-top{order:3;width:100%;justify-content:center}.ih-login-top,.ih-register-top{min-width:135px}}
@media(max-width:560px){.ih-auth-top{display:flex;width:auto;order:0;margin-left:auto}.ih-login-top,.ih-register-top{min-height:42px;padding:0 13px;border-radius:12px;font-size:13px}.ih-contact{display:none}}

/* MOBILE HEADER FIX - clean iPhone layout */
@media (max-width: 980px){
  .ih-nav{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
    height:auto !important;
    min-height:0 !important;
    padding:18px 18px 20px !important;
    position:sticky !important;
    top:0 !important;
    background:rgba(2,10,22,.96) !important;
    backdrop-filter:blur(18px) !important;
    border-bottom:1px solid rgba(73,152,255,.22) !important;
  }
  .ih-brand{
    width:100% !important;
    justify-content:flex-start !important;
    gap:14px !important;
  }
  .ih-brand img{
    width:86px !important;
    height:58px !important;
    object-fit:contain !important;
    border-radius:12px !important;
    background:#fff !important;
    padding:6px !important;
  }
  .ih-brand span{font-size:28px !important;font-weight:950 !important;line-height:1 !important;}
  .ih-auth-top{
    order:2 !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
    margin:0 !important;
  }
  .ih-login-top,.ih-register-top{
    width:100% !important;
    min-height:56px !important;
    border-radius:18px !important;
    font-size:17px !important;
    padding:0 14px !important;
  }
  .ih-menu-btn{
    order:3 !important;
    display:flex !important;
    width:100% !important;
    min-height:56px !important;
    justify-content:center !important;
    align-items:center !important;
    border-radius:18px !important;
    margin:0 !important;
    font-size:16px !important;
    background:rgba(255,255,255,.055) !important;
    border:1px solid rgba(130,184,255,.30) !important;
  }
  .ih-contact{display:none !important;}
  .ih-menu{
    order:4 !important;
    display:none !important;
    width:100% !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    padding:4px 0 0 !important;
  }
  .ih-menu.show{display:grid !important;}
  .ih-menu a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:52px !important;
    padding:12px !important;
    border-radius:16px !important;
    background:rgba(255,255,255,.07) !important;
    border:1px solid rgba(133,187,255,.12) !important;
    color:#f4f9ff !important;
    font-size:16px !important;
    font-weight:900 !important;
  }
  .ih-menu a:after{display:none !important;}
  .ih-menu a:hover{background:rgba(28,156,255,.16) !important;}
  .ih-hero{padding-top:32px !important;}
}
@media (max-width: 430px){
  .ih-nav{padding:15px 16px 18px !important;gap:12px !important;}
  .ih-brand img{width:78px !important;height:54px !important;}
  .ih-brand span{font-size:24px !important;}
  .ih-login-top,.ih-register-top,.ih-menu-btn{min-height:52px !important;border-radius:16px !important;font-size:16px !important;}
  .ih-menu{grid-template-columns:1fr !important;}
  .ih-menu a{min-height:48px !important;justify-content:flex-start !important;padding-left:18px !important;}
}

/* Resellers page */
.ih-reseller-page{max-width:1180px;margin:40px auto 80px;padding:30px}
.ih-reseller-list{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px;margin-top:25px}
.ih-reseller-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:24px!important}
.reseller-logo-wrap{width:120px;height:88px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 24px rgba(32,157,255,.25);overflow:hidden}
.reseller-logo-wrap img{max-width:100%;max-height:100%;object-fit:contain}
.reseller-link{display:block;width:100%;padding:11px 14px;border-radius:14px;border:1px solid rgba(59,159,255,.35);background:rgba(4,24,54,.75);color:#eaf6ff;text-decoration:none;font-weight:800}
.reseller-link:hover{background:linear-gradient(135deg,#119dff,#085dff);color:#fff}
.ih-menu a.active{color:#34bfff;border-bottom:2px solid #34bfff}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.btn.small{padding:8px 12px;font-size:12px}.btn.danger{background:#dc3545}
@media(max-width:760px){.grid2{grid-template-columns:1fr}.ih-reseller-page{margin:20px 10px;padding:18px}.ih-reseller-list{grid-template-columns:1fr}}


/* Reseller / Distributor status */
.partner-badge,.badge{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;background:rgba(45,212,191,.16);border:1px solid rgba(45,212,191,.35);color:#9fffee;margin-bottom:10px}
.partner-badge.distributor{background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.4);color:#b9d7ff}
.ih-reseller-card{position:relative;overflow:hidden}
.ih-reseller-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(45,212,191,.18),transparent 45%);pointer-events:none}
.ih-reseller-card>*{position:relative;z-index:1}
select.input{appearance:none;background:#07142b;color:#fff}

/* Premium footer like FRPKing style */
.ih-footer-stats{
  max-width:1420px;margin:40px auto 0;padding:0 28px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px
}
.ih-footer-stats div{min-height:105px;border:1px solid rgba(59,159,255,.25);background:linear-gradient(180deg,rgba(8,30,64,.78),rgba(2,10,25,.88));border-radius:22px;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 18px 45px rgba(0,0,0,.28), inset 0 0 35px rgba(0,133,255,.05)}
.ih-footer-stats b{font-size:32px;color:#fff;line-height:1}.ih-footer-stats span{margin-top:8px;color:#9ed6ff;font-weight:800}
.ih-site-footer{position:relative;overflow:hidden;margin-top:36px;padding:58px 28px 24px;background:radial-gradient(circle at 0% 15%,rgba(10,120,255,.18),transparent 28%),radial-gradient(circle at 100% 10%,rgba(116,54,255,.15),transparent 30%),linear-gradient(180deg,rgba(3,13,30,.96),#020814);border-top:1px solid rgba(68,162,255,.24)}
.ih-site-footer:before,.ih-site-footer:after{content:'';position:absolute;top:28px;bottom:72px;width:330px;opacity:.22;background-image:linear-gradient(90deg,rgba(59,159,255,.45) 1px,transparent 1px),linear-gradient(rgba(59,159,255,.30) 1px,transparent 1px);background-size:28px 28px;transform:skewY(-18deg);pointer-events:none}.ih-site-footer:before{left:-115px}.ih-site-footer:after{right:-115px}
.ih-footer-grid{position:relative;z-index:1;max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:58px;color:#fff}.ih-footer-grid h3{font-size:22px;margin:0 0 20px;color:#fff}.ih-footer-grid a{display:block;color:#dcecff;text-decoration:none;font-weight:800;margin:0 0 13px;transition:.2s}.ih-footer-grid a:before{content:'›';color:#ffc400;margin-right:10px;font-size:20px;line-height:0}.ih-footer-grid a:hover{color:#35c2ff;transform:translateX(4px)}
.ih-footer-about p,.ih-footer-grid p{color:#d8e7ff;line-height:1.65;font-weight:650;margin:10px 0 16px}.ih-footer-logo{display:flex!important;align-items:center;gap:14px;margin:0 0 18px!important}.ih-footer-logo:before{display:none}.ih-footer-logo img{width:95px;height:62px;object-fit:contain;background:#fff;border-radius:14px;padding:6px;box-shadow:0 0 24px rgba(30,163,255,.28)}.ih-footer-logo span{font-size:28px;font-weight:950;color:#fff}
.ih-socials{display:flex;gap:12px;margin-top:18px}.ih-socials a{width:42px;height:42px;margin:0!important;border-radius:50%;display:flex!important;align-items:center;justify-content:center;background:linear-gradient(135deg,#10baff,#075ef0);color:#fff;font-weight:950;box-shadow:0 12px 28px rgba(0,126,255,.28)}.ih-socials a:before{display:none}.ih-socials a:hover{transform:translateY(-3px);color:#fff}
.ih-footer-bottom{position:relative;z-index:1;max-width:1180px;margin:46px auto 0;padding-top:22px;border-top:1px solid rgba(110,180,255,.18);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#eaf4ff;font-weight:800}.ih-footer-bottom nav{display:flex;gap:24px;flex-wrap:wrap}.ih-footer-bottom a{color:#eaf4ff;text-decoration:none}.ih-footer-bottom a:hover{color:#35c2ff}
@media(max-width:900px){.ih-footer-stats{grid-template-columns:repeat(2,1fr);padding:0 16px}.ih-footer-grid{grid-template-columns:1fr 1fr;gap:30px}.ih-footer-bottom{flex-direction:column;text-align:center}.ih-footer-bottom nav{justify-content:center}.ih-site-footer{padding-left:18px;padding-right:18px}}
@media(max-width:560px){.ih-footer-stats{grid-template-columns:1fr}.ih-footer-stats b{font-size:28px}.ih-footer-grid{grid-template-columns:1fr;gap:26px}.ih-footer-logo img{width:82px;height:56px}.ih-footer-logo span{font-size:24px}.ih-footer-bottom nav{gap:14px;font-size:13px}.ih-site-footer:before,.ih-site-footer:after{opacity:.12}}


/* FINAL footer size fix: align bottom area with main page width */
.ih-footer-stats{
  max-width:none !important;
  width:auto !important;
  margin:40px 6% 0 !important;
  padding:0 !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
}
.ih-site-footer{
  max-width:none !important;
  width:auto !important;
  margin:36px 6% 0 !important;
  padding:58px 54px 24px !important;
  border:1px solid rgba(68,162,255,.24) !important;
  border-radius:24px !important;
}
.ih-footer-grid{
  max-width:none !important;
  width:100% !important;
  grid-template-columns:1.25fr .9fr .9fr 1.05fr !important;
  gap:48px !important;
  align-items:start !important;
}
.ih-footer-bottom{
  max-width:none !important;
  width:100% !important;
}
.ih-footer-about p{max-width:430px !important;}
.ih-footer-logo span,.ih-brand span{text-transform:none !important;}
.ih-socials a{width:50px !important;height:50px !important;font-size:18px !important;}
@media(max-width:980px){
  .ih-footer-stats{margin:34px 18px 0 !important;grid-template-columns:repeat(2,1fr) !important;}
  .ih-site-footer{margin:28px 18px 0 !important;padding:36px 22px 22px !important;}
  .ih-footer-grid{grid-template-columns:1fr 1fr !important;gap:28px !important;}
}
@media(max-width:560px){
  .ih-footer-stats{grid-template-columns:1fr !important;}
  .ih-footer-grid{grid-template-columns:1fr !important;}
  .ih-footer-bottom{align-items:flex-start !important;text-align:left !important;}
}

/* HARD FINAL FIX: footer must use the same full page width as sections */
.ih-home > .ih-footer-stats{
  position:relative !important;
  left:auto !important; right:auto !important; bottom:auto !important;
  width:88vw !important;
  max-width:88vw !important;
  margin:40px auto 0 !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
}
.ih-home > footer.ih-site-footer{
  position:relative !important;
  left:auto !important; right:auto !important; bottom:auto !important;
  width:88vw !important;
  max-width:88vw !important;
  min-width:0 !important;
  margin:36px auto 0 !important;
  padding:54px 56px 24px !important;
  display:block !important;
  text-align:left !important;
  border-radius:24px !important;
  box-sizing:border-box !important;
}
.ih-home > footer.ih-site-footer .ih-footer-grid{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:minmax(260px,1.4fr) minmax(170px,.85fr) minmax(180px,.9fr) minmax(260px,1.1fr) !important;
  gap:46px !important;
  align-items:start !important;
}
.ih-home > footer.ih-site-footer .ih-footer-bottom{
  width:100% !important;
  max-width:none !important;
  margin:44px 0 0 !important;
}
.ih-home > footer.ih-site-footer .ih-footer-about p{
  max-width:520px !important;
}
.ih-home > footer.ih-site-footer .ih-socials{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:14px !important;
}
.ih-home > footer.ih-site-footer .ih-socials a{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  min-height:52px !important;
  font-size:19px !important;
}
@media(max-width:980px){
  .ih-home > .ih-footer-stats{width:calc(100vw - 36px) !important;max-width:calc(100vw - 36px) !important;grid-template-columns:repeat(2,1fr) !important;}
  .ih-home > footer.ih-site-footer{width:calc(100vw - 36px) !important;max-width:calc(100vw - 36px) !important;padding:34px 22px 22px !important;}
  .ih-home > footer.ih-site-footer .ih-footer-grid{grid-template-columns:1fr 1fr !important;gap:28px !important;}
}
@media(max-width:560px){
  .ih-home > .ih-footer-stats{grid-template-columns:1fr !important;}
  .ih-home > footer.ih-site-footer .ih-footer-grid{grid-template-columns:1fr !important;}
  .ih-home > footer.ih-site-footer .ih-footer-bottom{flex-direction:column !important;align-items:flex-start !important;text-align:left !important;}
}

/* ABSOLUTE FINAL OVERRIDE 2026-06-01: footer full width + brand case */
.ih-home .ih-brand span,
.ih-home .ih-hero h1,
.ih-home .ih-footer-logo span,
.ih-home .ih-window-top b,
.ih-home h1,
.ih-home h2,
.ih-home h3{
  text-transform:none !important;
}
.ih-home .ih-hero h1{
  font-size:64px !important;
  letter-spacing:-1.6px !important;
}
.ih-home > .ih-footer-stats{
  width:calc(100% - 12%) !important;
  max-width:none !important;
  margin-left:6% !important;
  margin-right:6% !important;
}
.ih-home > footer.ih-site-footer{
  width:calc(100% - 12%) !important;
  max-width:none !important;
  margin-left:6% !important;
  margin-right:6% !important;
  padding:62px 64px 28px !important;
}
.ih-home > footer.ih-site-footer .ih-footer-grid{
  max-width:none !important;
  width:100% !important;
  grid-template-columns:minmax(320px,1.35fr) minmax(210px,.85fr) minmax(240px,.9fr) minmax(310px,1fr) !important;
  gap:64px !important;
}
.ih-home > footer.ih-site-footer .ih-footer-logo span{font-size:32px !important;}
.ih-home > footer.ih-site-footer .ih-footer-logo img{width:105px !important;height:70px !important;}
@media(max-width:980px){
  .ih-home .ih-hero h1{font-size:46px !important;}
  .ih-home > .ih-footer-stats,
  .ih-home > footer.ih-site-footer{width:calc(100% - 36px) !important;margin-left:18px !important;margin-right:18px !important;}
  .ih-home > footer.ih-site-footer{padding:36px 22px 22px !important;}
  .ih-home > footer.ih-site-footer .ih-footer-grid{grid-template-columns:1fr 1fr !important;gap:28px !important;}
}
@media(max-width:560px){
  .ih-home > footer.ih-site-footer .ih-footer-grid{grid-template-columns:1fr !important;}
}

/* Clean admin users page */
.adminUsersCard{padding:28px!important;overflow:hidden}.cleanTop{align-items:flex-start!important;margin-bottom:22px!important}.sectionLabel{display:inline-block;color:#42cfff;letter-spacing:.22em;font-size:12px;font-weight:950;margin-bottom:8px}.adminUsersList{display:grid;gap:18px}.adminUserItem{border:1px solid rgba(95,151,255,.22);border-radius:22px;background:linear-gradient(180deg,rgba(18,31,58,.92),rgba(14,24,48,.88));box-shadow:0 16px 38px rgba(0,0,0,.18);overflow:hidden}.adminUserHead{display:grid;grid-template-columns:54px minmax(240px,1fr) auto 150px;gap:16px;align-items:center;padding:18px 20px;border-bottom:1px solid rgba(110,160,255,.16);background:rgba(255,255,255,.025)}.adminUserAvatar{width:54px;height:54px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#14baff,#7b4cff);font-weight:950;color:#fff;font-size:20px}.adminUserInfo b{display:block;font-size:16px;color:#fff}.adminUserInfo span{display:block;color:#b9c7dc;font-size:13px;margin-top:4px;word-break:break-all}.roleBadge{padding:9px 14px;border-radius:999px;background:rgba(120,130,160,.16);border:1px solid rgba(165,175,210,.22);color:#dce6ff;font-weight:950;font-size:12px;text-transform:uppercase}.roleBadge.reseller{background:rgba(45,212,191,.16);border-color:rgba(45,212,191,.35);color:#99fff0}.roleBadge.distributor{background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.42);color:#b9d7ff}.balanceBox{text-align:right;padding:10px 14px;border-radius:16px;background:rgba(0,0,0,.18);border:1px solid rgba(100,160,255,.16)}.balanceBox small{display:block;color:#9fb0c8;font-weight:800;font-size:11px;text-transform:uppercase}.balanceBox b{display:block;color:#fff;font-size:18px;margin-top:3px}.adminUserBody{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;padding:20px}.userEditGrid{display:grid;grid-template-columns:1.2fr 1.4fr .8fr .75fr auto;gap:12px;align-items:end}.userEditGrid label,.balanceEditBox label{display:grid;gap:7px;margin:0}.userEditGrid label span,.balanceEditBox label span{color:#aebbd1;font-weight:900;font-size:12px}.adminUsersCard .input{width:100%!important;margin:0!important;min-height:46px!important;box-sizing:border-box!important}.saveUserBox{display:flex;align-items:end}.saveUserBox .btn,.applyBalance{min-height:46px!important;white-space:nowrap!important}.balanceEditBox{display:grid;grid-template-columns:1.1fr .75fr auto;gap:12px;align-items:end;padding:16px;border:1px solid rgba(115,155,255,.18);border-radius:18px;background:rgba(5,13,30,.36)}.adminHelpCard{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px!important}.adminHelpCard p{margin:0!important}.adminHelpCard h2{margin:0 0 5px!important}@media(max-width:1250px){.adminUserBody{grid-template-columns:1fr}.userEditGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.saveUserBox{grid-column:1/-1}.balanceEditBox{grid-template-columns:1fr 1fr auto}}@media(max-width:820px){.adminUserHead{grid-template-columns:48px 1fr;gap:12px}.roleBadge,.balanceBox{justify-self:start}.adminUserBody{padding:16px}.userEditGrid,.balanceEditBox{grid-template-columns:1fr}.adminHelpCard{display:block}.adminHelpCard .btn{margin-top:14px}.adminUsersCard{padding:18px!important}}

/* ADMIN SIDEBAR SCROLL FIX - 2026-06-01 */
.side{
  position:fixed !important;
  left:0 !important;
  top:0 !important;
  bottom:auto !important;
  width:265px !important;
  height:100vh !important;
  height:100dvh !important;
  max-height:100vh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:22px 15px 34px !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:thin !important;
  scrollbar-color:#6d58f4 rgba(255,255,255,.08) !important;
}
.side::-webkit-scrollbar{width:7px !important;}
.side::-webkit-scrollbar-track{background:rgba(255,255,255,.06) !important;border-radius:20px !important;}
.side::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#6d58f4,#1d9bf0) !important;border-radius:20px !important;}
.side .logo{position:relative !important;top:auto !important;}
.side .nav{display:flex !important;align-items:center !important;min-height:44px !important;margin:6px 0 !important;white-space:normal !important;line-height:1.2 !important;}
.panel{margin-left:265px !important;}
@media(max-width:900px){
  .side{width:245px !important;transform:none !important;}
  .panel{margin-left:245px !important;}
}
@media(max-width:720px){
  .side{position:relative !important;width:100% !important;height:auto !important;max-height:70vh !important;border-radius:0 0 22px 22px !important;}
  .panel{margin-left:0 !important;}
}


/* Device Manager live branding */
.ih-device-img{width:92px;height:132px;object-fit:contain;display:block;margin:0 auto 10px;border-radius:18px;filter:drop-shadow(0 0 18px rgba(80,140,255,.35));}
.ih-tools a{display:block;text-decoration:none;background:rgba(7,24,47,.72);border:1px solid rgba(87,161,255,.22);border-radius:14px;padding:18px;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);text-align:center;font-weight:800;}
.ih-tools a:hover{border-color:rgba(80,190,255,.55);transform:translateY(-2px);}
.adminUserMeta{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 14px;padding:10px 12px;border-radius:14px;background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.18);font-size:13px;color:var(--theme-text,#111827)}
.adminUserMeta span{display:inline-flex;gap:6px;align-items:center}.adminUserMeta b{font-weight:900}.deleteUserBox{display:flex;align-items:end}.btn.danger,.danger{background:linear-gradient(135deg,#ef4444,#b91c1c)!important;color:#fff!important;border:0!important}.btn.danger:hover{filter:brightness(1.08)}

/* Secure Day/Night top button */
.themeTopBtn{width:44px;height:44px;border-radius:14px;border:1px solid rgba(105,87,246,.22);background:rgba(255,255,255,.86);color:#6957f6;font-size:19px;font-weight:900;box-shadow:0 12px 28px rgba(23,31,72,.10);cursor:pointer;display:inline-grid;place-items:center;transition:.2s}
.themeTopBtn:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(23,31,72,.16)}
body.dark .themeTopBtn,html[data-theme="dark"] body .themeTopBtn{background:rgba(17,26,47,.92)!important;color:#fff!important;border-color:rgba(101,123,166,.45)!important}
.topright{align-items:center!important}

/* Secure Day/Night top button */
.themeTopBtn{width:44px;height:44px;border-radius:14px;border:1px solid rgba(105,87,246,.22);background:rgba(255,255,255,.86);color:#6957f6;font-size:19px;font-weight:900;box-shadow:0 12px 28px rgba(23,31,72,.10);cursor:pointer;display:inline-grid;place-items:center;transition:.2s}
.themeTopBtn:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(23,31,72,.16)}
body.dark .themeTopBtn,html[data-theme="dark"] body .themeTopBtn{background:rgba(17,26,47,.92)!important;color:#fff!important;border-color:rgba(101,123,166,.45)!important}
.topright{align-items:center!important}


/* iHPro Tool installer branding */
:root{--ih-brand:#1d9bf0;--brand:#1d9bf0;--primary:#1d9bf0;--accent:#1d9bf0;--ui-primary:#1d9bf0!important;--ui-primary2:#1d9bf0!important}
.logo img,.ih-logo-big img,.ih-footer-logo img,.side-logo-img{object-fit:contain}
.btn,.ih-primary{background:linear-gradient(135deg,#1d9bf0,#55e0ff)!important}
