/* =========================================================
   WAKOTP PREMIUM REDESIGN
   Inspired by modern virtual-number catalog UX
   ========================================================= */

:root{
  --wk-bg:#070b10;
  --wk-panel:#0d131a;
  --wk-panel2:#111923;
  --wk-border:#202b36;
  --wk-text:#f5f7fa;
  --wk-muted:#8996a5;
  --wk-accent:#6ee7b7;
  --wk-accent2:#34d399;
  --wk-danger:#fb7185;
  --wk-radius:20px;
}

body{
  background:
    radial-gradient(circle at 20% -10%,rgba(52,211,153,.12),transparent 35%),
    radial-gradient(circle at 90% 0%,rgba(59,130,246,.10),transparent 30%),
    var(--wk-bg)!important;
  color:var(--wk-text)!important;
}

.container,
main,
.content{
  max-width:1280px!important;
}

.heading h1,
.heading h2{
  letter-spacing:-1.5px;
}

/* ===== CATALOG ===== */

#services{
  padding-top:30px;
}

#serviceFilters{
  background:rgba(13,19,26,.85)!important;
  border:1px solid var(--wk-border)!important;
  padding:14px!important;
  border-radius:18px!important;
  backdrop-filter:blur(14px);
}

#serviceFilters select{
  background:#0a1016!important;
  color:#eef2f7!important;
  border:1px solid #273442!important;
  outline:none;
}

#serviceFilters select:focus{
  border-color:var(--wk-accent)!important;
}

#filterSearch,
#filterReset{
  min-height:46px;
  border-radius:13px!important;
}

#serviceGrid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr))!important;
  gap:16px!important;
}

/* service card */
.service-card{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(145deg,rgba(20,29,39,.98),rgba(9,14,20,.98))!important;
  border:1px solid var(--wk-border)!important;
  border-radius:22px!important;
  padding:18px!important;
  min-height:245px;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.service-card:hover{
  transform:translateY(-4px);
  border-color:#355047!important;
  box-shadow:0 18px 45px rgba(0,0,0,.35);
}

.service-card:before{
  content:"";
  position:absolute;
  width:100px;
  height:100px;
  right:-50px;
  top:-50px;
  background:rgba(52,211,153,.08);
  border-radius:50%;
}

.service-card .card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:18px;
}

.app-icon{
  width:52px!important;
  height:52px!important;
  min-width:52px;
  border-radius:16px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  font-size:25px!important;
  font-weight:900;
  background:linear-gradient(145deg,#1c2935,#0b1117)!important;
  border:1px solid #30404e!important;
  box-shadow:inset 0 1px rgba(255,255,255,.06);
}

.stock{
  background:rgba(52,211,153,.08)!important;
  color:#7ee7bd!important;
  border:1px solid rgba(52,211,153,.15);
  padding:6px 9px!important;
  border-radius:999px!important;
  font-size:11px!important;
  white-space:nowrap;
}

.service-card h3{
  margin:8px 0 5px!important;
  font-size:18px!important;
  color:#fff!important;
}

.country-name{
  color:var(--wk-muted)!important;
  font-size:13px!important;
}

.service-card .price{
  margin-top:18px!important;
  font-size:21px!important;
  font-weight:900;
  color:#fff!important;
}

.order-btn{
  width:100%;
  margin-top:15px;
  border:0;
  border-radius:13px!important;
  min-height:44px;
  cursor:pointer;
  color:#06100c!important;
  background:linear-gradient(135deg,#6ee7b7,#34d399)!important;
  font-weight:900;
  transition:.18s;
}

.order-btn:hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
}

/* ===== DASHBOARD ===== */

.dashboard-head{
  background:linear-gradient(145deg,#111a23,#0b1117)!important;
  border:1px solid var(--wk-border)!important;
  border-radius:22px!important;
  padding:22px!important;
}

.dashboard-head h2{
  color:#fff!important;
  margin-bottom:4px;
}

.kpis{
  gap:14px!important;
}

.kpi{
  background:linear-gradient(145deg,#111923,#0b1117)!important;
  border:1px solid var(--wk-border)!important;
  border-radius:18px!important;
  padding:19px!important;
}

.kpi b{
  color:#fff!important;
  font-size:22px!important;
}

.green{
  color:var(--wk-accent)!important;
}

/* ===== BUTTONS ===== */

.btn{
  border-radius:12px!important;
  min-height:42px;
  font-weight:800!important;
}

.dashboard-head .btn{
  background:linear-gradient(135deg,#6ee7b7,#34d399)!important;
  color:#06100c!important;
  border:0!important;
}

/* ===== TABLE ===== */

.tablewrap{
  background:#0c131a!important;
  border:1px solid var(--wk-border)!important;
  border-radius:18px!important;
  overflow:auto;
}

.table th{
  color:#9aa8b7!important;
  background:#111923!important;
}

.table td{
  border-color:#1c2731!important;
  color:#e9eef4!important;
}

/* ===== TOPUP MODAL ===== */

#topupModal.overlay{
  position:fixed!important;
  inset:0!important;
  z-index:99999!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(0,0,0,.76)!important;
  backdrop-filter:blur(10px);
}

.topup-modal{
  width:min(470px,100%)!important;
  max-height:92vh;
  overflow:auto;
  position:relative;
  padding:25px!important;
  border-radius:25px!important;
  background:linear-gradient(145deg,#121b24,#090e13)!important;
  border:1px solid #2b3946!important;
  box-shadow:0 30px 100px rgba(0,0,0,.65)!important;
}

.topup-close{
  position:absolute;
  right:14px;
  top:12px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#1a2530;
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

.topup-head{
  display:flex;
  align-items:center;
  gap:14px;
  padding-right:35px;
}

.topup-icon{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:17px;
  color:#062016;
  background:linear-gradient(135deg,#6ee7b7,#34d399);
  font-size:28px;
  font-weight:900;
}

.topup-head h2{
  margin:2px 0;
  color:#fff;
}

.topup-head p{
  margin:0;
  color:#8996a5;
  font-size:13px;
}

.topup-presets{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
  margin:22px 0 17px;
}

.topup-presets button{
  min-height:48px;
  border-radius:13px;
  border:1px solid #293744;
  background:#101923;
  color:#e8eef4;
  font-weight:800;
  cursor:pointer;
}

.topup-presets button:hover{
  border-color:#4c8b72;
  background:#14231f;
}

.topup-label{
  display:block;
  color:#aeb9c4;
  font-size:12px;
  margin-bottom:7px;
}

.topup-input{
  width:100%!important;
  box-sizing:border-box;
  min-height:52px;
  border-radius:14px!important;
  border:1px solid #2c3a47!important;
  background:#080e13!important;
  color:#fff!important;
  padding:0 15px!important;
  font-size:17px!important;
  outline:none;
}

.topup-input:focus{
  border-color:#55c99a!important;
}

.topup-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:14px 0;
  padding:12px;
  border-radius:14px;
  background:#0b1218;
  color:#8794a2;
  font-size:12px;
}

.topup-info b{
  color:#eaf1f6;
  text-align:right;
}

.topup-submit{
  width:100%!important;
  margin-top:7px;
  background:linear-gradient(135deg,#6ee7b7,#34d399)!important;
  color:#06100c!important;
  border:0!important;
}

.topup-secure{
  text-align:center;
  color:#758392!important;
  font-size:11px!important;
  margin-top:13px!important;
}

.payment-success{
  text-align:center;
  padding-top:10px;
}

.payment-check{
  width:58px;
  height:58px;
  margin:0 auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#062016;
  background:#6ee7b7;
  font-size:28px;
  font-weight:900;
}

.payment-success h2{
  color:#fff;
  margin:5px 0;
}

.payment-success p{
  color:#8996a5;
  font-size:13px;
}

.qris-box{
  margin:18px auto;
  width:min(300px,100%);
  min-height:250px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:#fff;
  padding:12px;
  box-sizing:border-box;
}

.qris-image{
  display:block;
  max-width:100%;
  max-height:280px;
  object-fit:contain;
}

.qris-empty{
  color:#555;
  font-weight:800;
}

.payment-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  overflow:hidden;
  border:1px solid #26343f;
  border-radius:15px;
  background:#26343f;
}

.payment-details>div{
  padding:12px;
  background:#0d151d;
}

.payment-details span{
  display:block;
  color:#7e8b99;
  font-size:11px;
}

.payment-details b{
  display:block;
  margin-top:3px;
  color:#fff;
  font-size:13px;
  word-break:break-word;
}

.payment-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:14px;
}

.topup-secondary{
  background:#17222c!important;
  color:#fff!important;
  border:1px solid #2a3945!important;
}

/* ===== MOBILE ===== */

@media(max-width:700px){
  #serviceGrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .service-card{
    padding:13px!important;
    min-height:225px;
    border-radius:17px!important;
  }

  .app-icon{
    width:43px!important;
    height:43px!important;
    min-width:43px;
    font-size:20px!important;
  }

  .service-card h3{
    font-size:14px!important;
  }

  .country-name{
    font-size:11px!important;
  }

  .service-card .price{
    font-size:16px!important;
  }

  .stock{
    font-size:9px!important;
    padding:5px 6px!important;
  }

  .order-btn{
    font-size:11px!important;
    min-height:39px;
  }

  .topup-modal{
    padding:20px!important;
    border-radius:22px!important;
  }
}

@media(max-width:390px){
  #serviceGrid{
    grid-template-columns:1fr!important;
  }
}

/* ===== WAKOTP UI REDESIGN ===== */

:root{
  --wk-bg:#080b0f;
  --wk-card:#10151b;
  --wk-card2:#151b22;
  --wk-border:#252d36;
  --wk-text:#f5f7fa;
  --wk-muted:#8d98a5;
  --wk-red:#ff3347;
  --wk-red2:#d91f35;
  --wk-green:#35d07f;
}

body{
  background:
    radial-gradient(circle at 50% -10%,rgba(255,51,71,.12),transparent 38%),
    var(--wk-bg)!important;
  color:var(--wk-text);
}

#services{
  max-width:1200px;
  margin:auto;
}

#serviceFilters{
  display:grid!important;
  grid-template-columns:1fr 1fr auto auto;
  gap:10px!important;
  padding:14px;
  background:rgba(16,21,27,.88);
  border:1px solid var(--wk-border);
  border-radius:18px;
  backdrop-filter:blur(12px);
}

#serviceFilters select,
#serviceFilters button{
  min-height:46px;
  border-radius:12px!important;
}

#serviceFilters select{
  background:#0c1116!important;
  color:#fff!important;
  border:1px solid #2b333d!important;
  padding:0 14px!important;
}

#serviceGrid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
}

.service-card{
  background:linear-gradient(145deg,#121820,#0d1217)!important;
  border:1px solid var(--wk-border)!important;
  border-radius:20px!important;
  padding:18px!important;
  transition:.2s ease;
  overflow:hidden;
}

.service-card:hover{
  transform:translateY(-3px);
  border-color:#3a4652!important;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}

.service-card .card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.app-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#202832;
  border:1px solid #303a45;
  font-size:24px;
  font-weight:900;
}

.service-card h3{
  margin:16px 0 6px;
  color:#fff;
  font-size:17px;
}

.country-name{
  color:var(--wk-muted);
  font-size:13px;
}

.stock{
  color:var(--wk-green)!important;
  background:rgba(53,208,127,.08);
  border:1px solid rgba(53,208,127,.18);
  padding:5px 8px;
  border-radius:999px;
  font-size:11px;
}

.service-card .price{
  margin:18px 0 13px;
  font-size:21px;
  font-weight:900;
  color:#fff;
}

.order-btn{
  width:100%;
  min-height:44px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--wk-red),var(--wk-red2));
  color:#fff;
  font-weight:800;
  cursor:pointer;
  transition:.2s;
}

.order-btn:hover{
  filter:brightness(1.1);
  transform:translateY(-1px);
}

/* Dashboard */

.dashboard-head{
  background:linear-gradient(145deg,#121820,#0c1116);
  border:1px solid var(--wk-border);
  border-radius:22px;
  padding:22px;
  margin-bottom:14px;
}

.dashboard-head .btn{
  background:linear-gradient(135deg,var(--wk-red),var(--wk-red2));
  border:0;
  color:#fff;
  border-radius:12px;
  min-height:44px;
  padding:0 18px;
  font-weight:800;
}

.kpis{
  display:grid!important;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:18px;
}

.kpi{
  background:#10151b!important;
  border:1px solid var(--wk-border)!important;
  border-radius:18px!important;
  padding:18px!important;
}

.kpi b{
  display:block;
  margin-top:7px;
  font-size:20px;
}

.tablewrap{
  background:#10151b!important;
  border:1px solid var(--wk-border)!important;
  border-radius:18px!important;
  overflow:auto;
}

.table{
  width:100%;
}

.table th{
  background:#151b22;
  color:#aeb8c4;
}

.table td,
.table th{
  padding:13px 14px;
  border-bottom:1px solid #202832;
}

/* Topup */

.overlay{
  position:fixed!important;
  inset:0!important;
  z-index:99999!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px;
  background:rgba(0,0,0,.78)!important;
  backdrop-filter:blur(8px);
}

.topup-modal{
  width:min(460px,100%);
  max-height:92vh;
  overflow:auto;
  background:linear-gradient(145deg,#141a21,#0c1116)!important;
  border:1px solid #303945!important;
  border-radius:24px!important;
  padding:25px!important;
  box-shadow:0 30px 100px rgba(0,0,0,.65)!important;
}

.topup-close{
  float:right;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#20262d;
  color:#fff;
  font-size:24px;
  cursor:pointer;
}

.topup-head{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:22px;
}

.topup-icon{
  width:48px;
  height:48px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--wk-red),var(--wk-red2));
  color:#fff;
  font-size:27px;
  font-weight:900;
}

.topup-head h2{
  margin:2px 0 3px;
}

.topup-head p{
  margin:0;
  color:#8d98a5;
  font-size:13px;
}

.topup-presets{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
  margin-bottom:18px;
}

.topup-presets button{
  padding:12px 6px;
  border:1px solid #303945;
  border-radius:11px;
  background:#171d24;
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.topup-presets button:hover{
  border-color:var(--wk-red);
  background:#21151a;
}

.topup-label{
  display:block;
  color:#aeb8c4;
  font-size:13px;
  margin-bottom:7px;
}

.topup-input{
  width:100%!important;
  box-sizing:border-box;
  min-height:50px;
  padding:0 15px!important;
  border-radius:13px!important;
  border:1px solid #303945!important;
  background:#090d12!important;
  color:#fff!important;
  font-size:17px;
}

.topup-info{
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
  margin:14px 0;
  color:#8994a0;
  font-size:12px;
}

.topup-info b{
  color:#fff;
}

.topup-submit{
  width:100%;
  min-height:50px;
  border:0!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,var(--wk-red),var(--wk-red2))!important;
  color:#fff!important;
  font-weight:900;
  cursor:pointer;
}

.topup-secure{
  text-align:center;
  color:#727e8b;
  font-size:12px;
  margin:14px 0 0;
}

.payment-success{
  text-align:center;
  padding:10px 0 18px;
}

.payment-check{
  width:55px;
  height:55px;
  margin:0 auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(53,208,127,.12);
  color:var(--wk-green);
  font-size:28px;
  font-weight:900;
}

.qris-box{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:230px;
  background:#fff;
  border-radius:16px;
  padding:15px;
  margin-bottom:16px;
}

.qris-image{
  display:block;
  max-width:100%;
  max-height:280px;
  object-fit:contain;
}

.qris-empty{
  color:#555;
}

.payment-details{
  display:grid;
  gap:8px;
  margin-bottom:15px;
}

.payment-details>div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:11px 13px;
  border-radius:11px;
  background:#171d24;
}

.payment-details span{
  color:#8d98a5;
  font-size:12px;
}

.payment-details b{
  color:#fff;
  font-size:13px;
  text-align:right;
  word-break:break-word;
}

.payment-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.payment-actions .btn{
  min-height:45px;
  border-radius:12px;
}

.topup-secondary{
  background:#202831!important;
  color:#fff!important;
}

/* Mobile */

@media(max-width:760px){
  #serviceFilters{
    grid-template-columns:1fr 1fr;
  }

  #serviceFilters button{
    width:100%;
  }

  #serviceGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .service-card{
    padding:13px!important;
    border-radius:16px!important;
  }

  .service-card h3{
    font-size:14px;
  }

  .app-icon{
    width:40px;
    height:40px;
    font-size:20px;
  }

  .service-card .price{
    font-size:17px;
  }

  .kpis{
    grid-template-columns:repeat(2,1fr);
  }

  .topup-modal{
    border-radius:20px!important;
    padding:19px!important;
  }
}

@media(max-width:430px){
  #serviceFilters{
    grid-template-columns:1fr;
  }

  #serviceGrid{
    grid-template-columns:1fr 1fr;
  }

  .payment-actions{
    grid-template-columns:1fr;
  }

  .topup-presets{
    grid-template-columns:repeat(2,1fr);
  }
}
