/* ============================================================
   SAHABAT DIGITAL TELEKOMUNIKASI — UI v5 (mengikuti mockup)
   Biru #1D5FC4 + aksen oranye #F97316, kartu putih, ikon SVG.
   Dimuat setelah style.css & mars-refresh.css.
   ============================================================ */
:root{
  --sd-blue:#1D5FC4; --sd-blue-d:#164CA0; --sd-blue-l:#EAF2FF; --sd-orange:#F97316;
  --sd-ink:#0F172A; --sd-mut:#64748B; --sd-line:#E6ECF5; --sd-bg:#F4F7FC;
}
#app{ --primary:#1D5FC4; --secondary:#F97316; --bg-app:#F4F7FC; --shadow-sm:0 4px 14px rgba(29,95,196,.07); --shadow-md:0 8px 24px rgba(29,95,196,.10); --shadow-lg:0 14px 36px rgba(29,95,196,.16); }
.screen{ background-image:none; }
.sd-ic{ display:block; flex-shrink:0; }
.btn-main{ box-shadow:0 6px 18px rgba(29,95,196,.25); border-radius:14px; }
.btn-main.btn-orange{ box-shadow:0 6px 18px rgba(249,115,22,.30); }

/* ---------- SPLASH ---------- */
#screen-splash{ background:#fff !important; }
.sd-splash-logo{ width:min(300px,78vw); height:auto; object-fit:contain; animation:floatY 3s ease-in-out infinite; }
.sd-splash-dots{ position:absolute; bottom:48px; display:flex; gap:7px; }
.sd-splash-dots i{ width:9px; height:9px; border-radius:50%; background:var(--sd-blue); opacity:.35; animation:pulse 1.5s infinite; }
.sd-splash-dots i:nth-child(2){ animation-delay:.2s; background:var(--sd-orange); opacity:.9; } .sd-splash-dots i:nth-child(3){ animation-delay:.4s; }

/* ---------- LANDING HOTSPOT (captive) ---------- */
#screen-hotspot-landing{ background:#fff !important; }
.sd-land{ flex:1; display:flex; flex-direction:column; align-items:center; padding:calc(26px + env(safe-area-inset-top,0px)) 22px 28px; background:linear-gradient(180deg,#EAF2FF 0,#fff 38%); }
.sd-land-logo{ width:min(250px,70vw); height:auto; object-fit:contain; margin-bottom:10px; }
.sd-land h1{ font-size:22px; line-height:1.25; font-weight:800; color:var(--sd-ink); text-align:center; margin:6px 0 22px; letter-spacing:-.01em; }
.sd-land-buy{ width:100%; max-width:380px; border:0; border-radius:999px; padding:17px 22px; color:#fff; font-size:17px; font-weight:800; display:flex; align-items:center; justify-content:center; gap:12px; cursor:pointer;
  background:linear-gradient(90deg,#1D5FC4 0%,#2F7BE8 45%,#F97316 100%); box-shadow:0 10px 24px rgba(29,95,196,.28); }
.sd-land-buy:active{ transform:scale(.98); }
.sd-land-sep{ width:100%; max-width:380px; height:1px; background:var(--sd-line); margin:20px 0 16px; }
.sd-opt{ width:100%; max-width:380px; display:flex; align-items:center; gap:14px; text-align:left; background:#fff; border:2px solid var(--sd-blue); border-radius:999px; padding:10px 18px 10px 12px; margin-bottom:12px; cursor:pointer; font-family:inherit; }
.sd-opt:active{ background:var(--sd-blue-l); }
.sd-opt .ic{ width:46px; height:46px; border-radius:50%; background:var(--sd-blue-l); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sd-opt b{ display:block; font-size:16px; font-weight:800; color:var(--sd-ink); line-height:1.2; }
.sd-opt small{ display:block; font-size:12.5px; font-weight:600; color:var(--sd-mut); margin-top:2px; }
.sd-land-foot{ margin-top:auto; padding-top:14px; font-size:11.5px; font-weight:600; color:var(--sd-mut); text-align:center; line-height:1.6; }

/* ---------- HOME ---------- */
#home{ background:var(--sd-bg); }
.sd-topbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; background:#fff; padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px; position:relative; z-index:6; }
.sd-logo{ height:44px; width:auto; max-width:46%; object-fit:contain; }
.sd-top-right{ display:flex; align-items:center; gap:12px; }
.sd-userchip{ display:flex; align-items:center; gap:8px; cursor:pointer; }
.sd-avatar{ width:34px; height:34px; border-radius:50%; background:var(--sd-blue-l); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.sd-usertxt{ display:flex; flex-direction:column; line-height:1.2; max-width:104px; }
.sd-usertxt b{ font-size:13px; font-weight:800; color:var(--sd-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sd-usertxt span{ font-size:12px; font-weight:700; color:var(--sd-blue); white-space:nowrap; }
.sd-iconbtn{ position:relative; font-size:22px; color:var(--sd-ink); cursor:pointer; display:flex; }
.sd-top-right .bell-badge{ border-color:#fff; }
.sd-hero{ background:linear-gradient(135deg,#1D5FC4 0%,#2F7BE8 100%); padding:20px 20px 74px; border-radius:0 0 0 0; color:#fff; position:relative; overflow:hidden; flex-shrink:0; }
.sd-hero::after{ content:''; position:absolute; right:-40px; top:-40px; width:170px; height:170px; border-radius:50%; border:26px solid rgba(255,255,255,.08); }
.sd-hero h1{ font-size:22px; font-weight:800; letter-spacing:-.01em; position:relative; z-index:2; }
.sd-hero h1 span{ font-weight:800; }
.sd-hero p{ font-size:13.5px; font-weight:600; opacity:.92; margin-top:4px; position:relative; z-index:2; }
.sd-grid-wrap{ margin:-56px 14px 0; position:relative; z-index:5; flex-shrink:0; }
.sd-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px 8px; }
.sd-tile{ background:#fff; border-radius:16px; padding:10px 4px 8px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; cursor:pointer; box-shadow:0 6px 18px rgba(15,42,92,.10); position:relative; min-height:92px; transition:.15s; }
.sd-tile:active{ transform:scale(.95); }
.sd-tile span{ font-size:11px; font-weight:700; color:var(--sd-ink); line-height:1.2; }
.sd-tile.hl{ border:2px solid var(--sd-blue); background:var(--sd-blue-l); }
.sd-new{ position:absolute; top:-7px; right:-5px; background:var(--sd-orange); color:#fff; font-size:9px; font-weight:800; padding:2px 7px; border-radius:999px; letter-spacing:.3px; }
.sd-sec{ display:flex; align-items:center; justify-content:space-between; padding:22px 18px 10px; flex-shrink:0; }
.sd-sec h3{ font-size:16px; font-weight:800; color:var(--sd-ink); margin:0; }
.sd-sec a{ font-size:13px; font-weight:700; color:var(--sd-blue); cursor:pointer; }
.sd-fiber{ margin:0 16px; border-radius:20px; overflow:hidden; display:flex; align-items:stretch; background:linear-gradient(120deg,#1D5FC4 0%,#2F7BE8 60%,#5AA2F5 100%); color:#fff; position:relative; min-height:150px; box-shadow:var(--shadow-md); flex-shrink:0; }
.sd-fiber-txt{ padding:18px 4px 18px 18px; flex:1.25; position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; }
.sd-fiber-txt h4{ font-size:17px; font-weight:800; line-height:1.2; margin:0 0 6px; }
.sd-fiber-txt p{ font-size:12.5px; font-weight:600; line-height:1.5; opacity:.95; margin:0 0 12px; }
.sd-cta{ align-self:flex-start; background:var(--sd-orange); color:#fff; border:0; border-radius:999px; padding:10px 18px; font-size:13px; font-weight:800; font-family:inherit; cursor:pointer; box-shadow:0 6px 14px rgba(249,115,22,.4); }
.sd-fiber-art{ flex:.9; display:flex; align-items:flex-end; justify-content:center; position:relative; z-index:1; padding-right:8px; }
.sd-more{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px 6px; margin:0 14px; background:#fff; border-radius:18px; padding:16px 6px; box-shadow:var(--shadow-sm); flex-shrink:0; }
.sd-mini{ display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; cursor:pointer; font-size:11px; font-weight:700; color:var(--sd-ink); line-height:1.2; }
.sd-mini .ic{ width:48px; height:48px; border-radius:15px; background:var(--sd-blue-l); display:flex; align-items:center; justify-content:center; }
.sd-promos{ display:flex; gap:12px; overflow-x:auto; padding:0 16px 6px; scrollbar-width:none; scroll-snap-type:x mandatory; flex-shrink:0; }
.sd-promos::-webkit-scrollbar{ display:none; }
.sd-promo{ flex:0 0 150px; border-radius:16px; padding:14px; color:#fff; scroll-snap-align:start; cursor:pointer; min-height:104px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.sd-promo b{ font-size:14px; font-weight:800; line-height:1.25; position:relative; z-index:2; }
.sd-promo small{ font-size:11px; font-weight:600; opacity:.92; position:relative; z-index:2; }
.sd-promo.p1{ background:linear-gradient(135deg,#1D5FC4,#2F7BE8); } .sd-promo.p2{ background:linear-gradient(135deg,#DBEAFE,#BFDBFE); color:var(--sd-ink); } .sd-promo.p3{ background:linear-gradient(135deg,#F97316,#FB923C); }
.sd-promo .art{ position:absolute; right:-6px; bottom:-8px; opacity:.9; }

/* ---------- BOTTOM NAV ---------- */
#bottom-nav{ height:74px; border-radius:22px 22px 0 0; background:#fff; box-shadow:0 -6px 24px rgba(15,42,92,.08); border-top:0; }
.b-item{ color:#94A3B8; } .b-item.active{ color:var(--sd-blue); } .b-item span{ font-weight:700; font-size:10.5px; }
.b-item i{ font-size:24px; }
.b-fab{ background:linear-gradient(135deg,#1D5FC4,#2F7BE8) !important; box-shadow:0 8px 20px rgba(29,95,196,.40) !important; width:58px; height:58px; }
.b-center span{ color:var(--sd-blue); font-weight:700; }

/* ---------- GRID LAYANAN (Semua Layanan, dll) ---------- */
.p-icon-wrap{ background:#fff !important; box-shadow:0 5px 14px rgba(15,42,92,.10); border-radius:16px !important; width:58px !important; height:58px !important; }
.v-card{ border:0; box-shadow:0 5px 16px rgba(15,42,92,.09); }
.ppob-wrapper{ border:0; }
.sec-title{ color:var(--sd-ink); }

/* ---------- HEADER HALAMAN ---------- */
.header-page h2{ color:var(--sd-ink); }

/* ---------- LOGIN WIFI (voucher & Sahabatsmartwifi) ---------- */
.sd-login{ flex:1; display:flex; flex-direction:column; align-items:center; padding:calc(20px + env(safe-area-inset-top,0px)) 20px 26px; background:linear-gradient(180deg,#EAF2FF 0,#F8FAFD 45%); }
.sd-login .back{ align-self:flex-start; font-size:24px; color:var(--sd-blue); cursor:pointer; margin-bottom:6px; }
.sd-login img.logo{ width:min(220px,60vw); height:auto; margin-bottom:8px; }
.sd-login h2.top{ font-size:22px; font-weight:800; color:var(--sd-ink); margin:4px 0 16px; text-align:center; }
.sd-lbox{ width:100%; max-width:400px; background:#fff; border-radius:26px; padding:22px 20px; box-shadow:var(--shadow-md); }
.sd-lbox h3{ font-size:22px; font-weight:800; color:var(--sd-ink); text-align:center; margin:0 0 16px; }
.sd-lbox label{ display:block; font-size:13px; font-weight:800; color:var(--sd-ink); margin:0 0 6px; }
.sd-field{ display:flex; align-items:center; background:#F1F5F9; border-radius:14px; padding:0 14px; margin-bottom:14px; }
.sd-field input{ flex:1; border:0; background:transparent; padding:15px 4px; font-size:15px; font-weight:600; outline:none; color:var(--sd-ink); min-width:0; font-family:inherit; }
.sd-field i{ font-size:20px; color:#94A3B8; }
.sd-btn-primary{ width:100%; border:0; border-radius:999px; background:linear-gradient(90deg,#1D5FC4,#2F7BE8); color:#fff; font-size:16px; font-weight:800; padding:15px; display:flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; box-shadow:0 8px 20px rgba(29,95,196,.28); font-family:inherit; }
.sd-btn-ghost{ width:100%; border:2px solid var(--sd-blue); border-radius:999px; background:#fff; color:var(--sd-blue); font-size:15px; font-weight:800; padding:13px; display:flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; margin-top:12px; font-family:inherit; }
.sd-links{ margin-top:16px; text-align:center; font-size:13px; font-weight:600; color:var(--sd-ink); line-height:2; }
.sd-links a{ color:var(--sd-blue); font-weight:700; cursor:pointer; }
.sd-note{ font-size:12px; color:var(--sd-mut); font-weight:600; text-align:center; margin:-4px 0 14px; line-height:1.5; }

/* Lawan aturan mars-refresh.css yang memaksa [class*="grid"] jadi 1 kolom di layar <=360px */
@media (max-width:360px){
  .sd-grid{ grid-template-columns:repeat(4,1fr) !important; gap:8px 6px; }
  .sd-more{ grid-template-columns:repeat(4,1fr) !important; }
  .sd-tile{ min-height:86px; } .sd-tile span{ font-size:10px; }
}
.sd-lbox{ border:0 !important; border-radius:26px !important; box-shadow:var(--shadow-md) !important; }

/* Logo JPG berlatar putih: multiply menghilangkan kotak putih di atas latar muda, warna logo tetap asli */
.sd-land-logo,.sd-login img.logo,.sd-splash-logo,.sd-logo{ mix-blend-mode:multiply; }
.sd-land{ background:linear-gradient(180deg,#F3F8FF 0,#fff 42%); }
.sd-logo{ height:52px; max-width:50%; }
