:root{
  --bg:#eef8f6;
  --surface:#ffffff;
  --surface-2:#f8fcfb;
  --teal:#11b6a0;
  --teal-2:#24d1ba;
  --teal-3:#0a8f80;
  --ink:#1d2d2b;
  --muted:#6e8580;
  --line:#d9eeea;
  --danger:#ef6b6b;
  --shadow:0 16px 40px rgba(16,83,74,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,Arial,sans-serif;background:linear-gradient(180deg,#f7fcfb 0%,var(--bg) 100%);color:var(--ink)}
a{text-decoration:none;color:inherit}
img{max-width:100%}
.container{width:min(1080px,92%);margin:0 auto}.py-20{padding:20px 0}
.flex{display:flex}.between{justify-content:space-between}.center{align-items:center}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-bottom:1px solid rgba(17,182,160,.12)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:20px}
.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--teal),var(--teal-2));display:grid;place-items:center;color:#fff;font-weight:800;box-shadow:var(--shadow)}
.brand-title{font-size:20px;font-weight:800;letter-spacing:.2px}
.top-links{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.top-links a{font-size:14px;font-weight:700;color:#35504b}
.page{padding:26px 0 110px}.grid{display:grid;gap:20px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card,.stat,.form-box,.shell-card{background:rgba(255,255,255,.94);border:1px solid rgba(17,182,160,.09);border-radius:28px;box-shadow:var(--shadow)}
.card,.shell-card{padding:22px}.hero{position:relative;overflow:hidden;border-radius:34px;padding:28px;background:linear-gradient(135deg,var(--teal-3),var(--teal-2));color:#fff;box-shadow:0 24px 50px rgba(17,182,160,.22)}
.hero:before,.hero:after{content:"";position:absolute;border-radius:999px;background:rgba(255,255,255,.10)}
.hero:before{width:220px;height:220px;right:-60px;top:-40px}.hero:after{width:180px;height:180px;left:-40px;bottom:-70px}.hero>*{position:relative;z-index:1}
.hero h2{font-size:42px;line-height:1.08;margin:0 0 12px}.hero p{max-width:650px;margin:0 0 18px;font-size:18px;line-height:1.55;color:#eafcf8}.hero-chip{display:inline-flex;gap:10px;align-items:center;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.14);font-size:13px;font-weight:700;margin-bottom:16px}
.section-title{margin:0 0 18px;font-size:34px;font-weight:800;letter-spacing:-.5px}.section-sub{color:var(--muted);margin:4px 0 0}
.stat{text-align:left;padding:24px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between}.stat-label{font-size:13px;font-weight:800;color:var(--muted);letter-spacing:.12em;text-transform:uppercase}.stat-value{font-size:46px;line-height:1;font-weight:800;color:#0c2f2a}.stat-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#e8fffb,#dff8f3);border:1px solid #dbf1ed;color:var(--teal-3);font-size:26px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 24px;border:none;border-radius:999px;background:linear-gradient(135deg,var(--teal-3),var(--teal-2));color:#fff;font-weight:800;cursor:pointer;box-shadow:0 10px 22px rgba(17,182,160,.22)}
.btn:hover{filter:brightness(.98)}.btn-outline{background:#fff;color:#0f5e55;border:2px solid rgba(255,255,255,.72);box-shadow:none}.btn-soft{background:#e9fbf8;color:#0f6d62;box-shadow:none}.btn-danger{background:linear-gradient(135deg,#ff7b7b,#f05050)}
.form-box{max-width:560px;margin:24px auto;padding:28px}.form-title{margin:0 0 18px;font-size:34px;font-weight:800}.form-group{margin-bottom:16px}.label{display:block;margin-bottom:7px;font-weight:800;font-size:14px;color:#35504b}
input,select,textarea{width:100%;padding:15px 16px;border-radius:18px;border:1.5px solid var(--line);background:#fff;font-size:15px;outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:#97ddd2;box-shadow:0 0 0 4px rgba(17,182,160,.08)}textarea{min-height:120px;resize:vertical}
.alert{padding:14px 16px;border-radius:18px;margin-bottom:18px;font-weight:700}.success{background:#e2faf1;color:#0b6947}.error{background:#ffe8e8;color:#b94242}
.kpi-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.list-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:22px;background:var(--surface);border:1px solid var(--line);margin-bottom:14px}.list-meta h4{margin:0 0 6px;font-size:19px}.muted{color:var(--muted)}.small{font-size:13px}.mb-20{margin-bottom:20px}.mt-20{margin-top:20px}.mt-8{margin-top:8px}.center-text{text-align:center}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border-radius:22px;overflow:hidden}.table th,.table td{padding:14px 16px;border-bottom:1px solid #edf4f2;text-align:left;white-space:nowrap}.table th{background:#f8fcfb;font-size:13px;color:#53706a;text-transform:uppercase;letter-spacing:.08em}.table tr:last-child td{border-bottom:none}
.badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:#e9fbf8;color:#0f6d62;font-size:12px;font-weight:800}.badge.warn{background:#fff0cf;color:#a66a00}.badge.danger{background:#ffe4e4;color:#b53e3e}
.footer{padding:18px 0 100px;color:#7d8f8b;font-size:14px;text-align:center}
.mobile-bottom{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);width:min(680px,92%);background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border:1px solid rgba(17,182,160,.12);box-shadow:var(--shadow);border-radius:28px;padding:12px 10px;display:none;z-index:60}
.mobile-bottom nav{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.mobile-item{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 8px;border-radius:18px;font-size:12px;font-weight:800;color:#7b918d}.mobile-item.active{background:#e9fbf8;color:#0d6b61}
.premium-top-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(255,255,255,.72);border:1px solid rgba(17,182,160,.14);padding:16px 18px;border-radius:24px;margin-bottom:18px}.avatar-ring{width:72px;height:72px;border-radius:24px;padding:4px;background:linear-gradient(135deg,var(--teal),var(--teal-2));display:grid;place-items:center;box-shadow:var(--shadow)}.avatar-core{width:100%;height:100%;border-radius:20px;background:#fff;display:grid;place-items:center;font-size:30px}
.balance-chip{display:inline-flex;padding:8px 14px;border-radius:999px;background:#e9fbf8;color:#0d6b61;font-weight:800}
.ad-preview{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;padding:14px;border-radius:20px;background:#f8fcfb;border:1px solid #edf4f2;margin-bottom:14px}.ad-thumb{width:84px;height:84px;border-radius:20px;background:linear-gradient(135deg,#dbfbf5,#eefefa);display:grid;place-items:center;font-size:28px;color:#0f7167}
.ref-box{display:flex;gap:10px;flex-wrap:wrap}.ref-box input{flex:1;min-width:200px}.admin-wrap{display:grid;grid-template-columns:260px 1fr;gap:24px}.sidebar{position:sticky;top:88px;height:max-content}.admin-panel{padding:18px;border-radius:28px;background:rgba(255,255,255,.88);border:1px solid rgba(17,182,160,.08);box-shadow:var(--shadow)}.admin-menu a{display:block;padding:14px 16px;margin-bottom:10px;background:#fff;border-radius:18px;border:1px solid rgba(17,182,160,.08);font-weight:800;color:#24413d}.admin-menu a:hover{background:#f6fbfa}.split{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:980px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-wrap{grid-template-columns:1fr}.sidebar{position:static}.top-links{display:none}.mobile-bottom{display:block}.page{padding-bottom:125px}.section-title{font-size:30px}.hero h2{font-size:34px}}
@media (max-width:640px){.container{width:min(100%,94%)}.hero{padding:22px;border-radius:28px}.hero h2{font-size:28px}.hero p{font-size:16px}.grid-2,.grid-3,.grid-4,.kpi-row{grid-template-columns:1fr}.premium-top-card{padding:14px;align-items:flex-start}.brand-title{font-size:18px}.form-box{padding:22px;border-radius:24px}.stat{min-height:auto}.stat-value{font-size:40px}.list-card{flex-direction:column;align-items:flex-start}.ref-box{flex-direction:column}.footer{padding-bottom:110px}}

/* Updated beautiful mobile bottom nav */
.mobile-bottom{
  bottom:14px !important;
  width:min(620px,92%) !important;
  background:rgba(255,255,255,.96) !important;
  backdrop-filter:blur(16px) !important;
  border:1px solid rgba(17,182,160,.10) !important;
  box-shadow:0 12px 28px rgba(9,71,64,.10) !important;
  border-radius:24px !important;
  padding:8px 10px !important;
}
.mobile-bottom nav{
  display:grid !important;
  grid-template-columns:repeat(5,1fr) !important;
  gap:8px !important;
  align-items:center !important;
}
.mobile-item{
  min-height:58px !important;
  padding:6px 4px !important;
  gap:4px !important;
  color:#7a8e89 !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.mobile-item .mobile-icon{
  width:28px;
  height:28px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:18px;
  line-height:1;
  background:transparent;
  color:inherit;
}
.mobile-item .mobile-label{
  font-size:12px;
  line-height:1.1;
  font-weight:700;
  white-space:nowrap;
}
.mobile-item.active{
  background:#ebfaf6 !important;
  color:#0b8271 !important;
  box-shadow:inset 0 0 0 1px rgba(17,182,160,.08) !important;
}
.mobile-item.active .mobile-icon{
  background:#dff6f0;
  color:#0b8271;
}
@media (max-width:640px){
  .mobile-bottom{width:calc(100% - 16px) !important;left:8px !important;right:8px !important;transform:none !important;}
  .mobile-item{min-height:56px !important;}
  .mobile-item .mobile-label{font-size:11px;}
}

/* Full premium UI upgrade */
html,body{
  background:
    radial-gradient(circle at top left, rgba(36,209,186,.16), transparent 28%),
    radial-gradient(circle at top right, rgba(17,182,160,.10), transparent 22%),
    linear-gradient(180deg,#f8fdfc 0%, #eef8f6 100%) !important;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.30),transparent 40%);
}
.topbar{
  top:10px !important;
  width:min(1160px,94%) !important;
  margin:0 auto !important;
  left:0;right:0;
  border:1px solid rgba(17,182,160,.10) !important;
  border-radius:26px !important;
  box-shadow:0 18px 38px rgba(13,86,77,.08) !important;
}
.topbar-inner{padding:14px 18px !important;}
.brand-logo{
  width:48px !important;
  height:48px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#0ea894,#3ad5c2) !important;
}
.top-links a{
  padding:10px 14px;
  border-radius:14px;
  transition:all .18s ease;
}
.top-links a:hover{
  background:#eefaf7;
  color:#0c7667;
}
.page{padding-top:106px !important;}
.card,.stat,.form-box,.shell-card,.admin-panel{
  background:rgba(255,255,255,.82) !important;
  backdrop-filter:blur(14px);
  border:1px solid rgba(17,182,160,.10) !important;
  box-shadow:0 18px 42px rgba(14,74,68,.07) !important;
}
.card:hover,.stat:hover{transform:translateY(-1px);transition:.18s ease;}
.hero{
  padding:34px !important;
  border-radius:38px !important;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 18%),
    linear-gradient(135deg,#078b7f,#11b6a0 54%, #2ad9c2) !important;
  box-shadow:0 26px 54px rgba(17,182,160,.24) !important;
}
.hero-chip{
  background:rgba(255,255,255,.16) !important;
  border:1px solid rgba(255,255,255,.12);
}
.hero h2{letter-spacing:-1.1px;}
.section-title{letter-spacing:-.8px !important;}
.premium-top-card{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,252,251,.82)) !important;
  border:1px solid rgba(17,182,160,.10) !important;
  box-shadow:0 18px 42px rgba(14,74,68,.06) !important;
  border-radius:30px !important;
  padding:18px 20px !important;
}
.balance-chip{
  background:linear-gradient(135deg,#ebfbf7,#ddf6f0) !important;
  border:1px solid rgba(17,182,160,.09);
  color:#0b7d70 !important;
}
.stat{
  position:relative;
  overflow:hidden;
}
.stat::after{
  content:"";
  position:absolute;
  right:-30px;top:-30px;
  width:110px;height:110px;
  border-radius:999px;
  background:rgba(17,182,160,.045);
}
.stat-icon{
  width:60px !important;
  height:60px !important;
  border-radius:20px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.btn{
  min-height:50px;
  padding:14px 24px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#069987,#15c3ad) !important;
  box-shadow:0 14px 26px rgba(17,182,160,.20) !important;
}
.btn-soft{
  background:linear-gradient(135deg,#effbf8,#e4f9f4) !important;
  border:1px solid rgba(17,182,160,.10);
}
input,select,textarea{
  min-height:54px;
  border-radius:20px !important;
  background:rgba(255,255,255,.92) !important;
}
textarea{min-height:140px !important;}
.list-card{
  border-radius:24px !important;
  background:linear-gradient(180deg,#ffffff,#fbfefd) !important;
  transition:all .18s ease;
}
.list-card:hover{border-color:#cceee8 !important;transform:translateY(-1px)}
.ad-preview{
  border-radius:24px !important;
  background:linear-gradient(180deg,#fafffe,#f3fcfa) !important;
}
.table{
  border-radius:26px !important;
  box-shadow:0 10px 24px rgba(16,83,74,.04);
}
.table th{background:#f3fbf8 !important;}
.table tr:hover td{background:#fbfefd;}
.admin-menu a{
  border-radius:18px !important;
  background:linear-gradient(180deg,#ffffff,#fbfefd) !important;
}
.form-box{max-width:620px !important;border-radius:32px !important;}
.alert{border:1px solid rgba(17,182,160,.08)}
.footer{color:#6e8580 !important;}
@media (max-width:980px){
  .topbar{top:8px !important;width:95% !important;}
  .page{padding-top:96px !important;}
}
@media (max-width:640px){
  .topbar{border-radius:22px !important;}
  .topbar-inner{padding:12px 14px !important;}
  .brand-logo{width:44px !important;height:44px !important;}
  .hero{padding:24px !important;border-radius:30px !important;}
  .hero h2{font-size:30px !important;}
  .section-title{font-size:26px !important;}
  .premium-top-card{border-radius:24px !important;}
  .btn{width:100%;}
  .split .btn{width:auto;flex:1;}
}
