:root{
  --bg:#f4f7fc;
  --card:#ffffff;
  --text:#111827;
  --muted:#64748b;
  --line:#dbe4ef;
  --primary:#3157b7;
  --primary2:#2563eb;
  --soft:#eef4ff;
  --green:#16a34a;
  --orange:#f97316;
  --shadow:0 18px 45px rgba(15,23,42,.08);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{text-decoration:none;color:inherit}

.container{
  width:min(1180px,calc(100% - 32px));
  margin:auto;
}

.topbar{
  height:82px;
  background:white;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  position:sticky;
  top:0;
  z-index:20;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
}

.brand img{
  width:52px;
  height:52px;
  object-fit:contain;
}

.brand span{
  display:block;
  font-size:11px;
  letter-spacing:4px;
  color:var(--primary2);
}

.nav-actions{
  display:flex;
  gap:12px;
  align-items:center;
}

.nav-actions a,
.cart-btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:12px 16px;
  font-weight:800;
  color:#475569;
}

.cart-btn{
  cursor:pointer;
}

.page{
  padding:38px 0 70px;
}

.back-link{
  display:inline-block;
  color:#475569;
  font-weight:750;
  margin-bottom:24px;
}

.layout{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:24px;
  align-items:start;
}

.card,
.summary-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
  margin-bottom:20px;
}

.card{
  padding:24px;
}

.package-card{
  padding:0;
}

.card-topline{
  height:5px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
}

.package-head{
  padding:22px 24px 20px;
}

.chip{
  display:inline-flex;
  background:#edf4ff;
  color:var(--primary);
  padding:7px 11px;
  border-radius:9px;
  font-weight:900;
  font-size:12px;
  letter-spacing:1px;
  margin-right:8px;
}

.chip.muted{
  color:#64748b;
  background:#f8fafc;
}

h1{
  margin:16px 0 8px;
  font-size:30px;
}

h2{
  margin:0 0 6px;
  font-size:20px;
}

.subtitle,
.package-head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.feature-row{
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.feature-row div{
  padding:18px 24px;
}

.feature-row span{
  display:block;
  color:#718096;
  font-weight:900;
  font-size:12px;
  letter-spacing:1px;
  margin-bottom:6px;
}

.billing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:18px;
}

.billing-option{
  border:2px solid var(--line);
  border-radius:16px;
  padding:16px;
  cursor:pointer;
  transition:.2s ease;
  display:flex;
  gap:12px;
}

.billing-option.active{
  border-color:var(--primary);
  background:#f3f7ff;
  box-shadow:0 12px 24px rgba(37,99,235,.10);
}

.billing-option input{
  width:20px;
  height:20px;
  accent-color:var(--primary);
}

.billing-option strong{
  display:block;
  margin-bottom:6px;
}

.billing-option h3{
  margin:0 0 3px;
  font-size:20px;
  color:#0f172a;
}

.billing-option span{
  color:#718096;
  font-size:13px;
}

.domain-box{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:12px;
  margin-top:18px;
}

.domain-input-wrap{
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  background:#f8fafc;
  border-radius:14px;
  overflow:hidden;
}

.domain-input-wrap input{
  flex:1;
  min-width:0;
  height:54px;
  border:0;
  outline:0;
  background:transparent;
  padding:0 18px;
  font-size:16px;
  font-weight:800;
}

.domain-input-wrap span{
  padding:0 16px;
  color:var(--primary);
  font-weight:900;
  border-left:1px solid var(--line);
}

#checkDomainBtn{
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  font-weight:900;
  cursor:pointer;
}

.domain-result{
  margin-top:12px;
  color:#64748b;
  font-weight:750;
}

.domain-result.ok{
  color:var(--green);
}

.domain-result.error{
  color:#dc2626;
}

.summary{
  position:sticky;
  top:104px;
}

.summary-card{
  padding:0;
}

.summary-card h3{
  margin:0;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  color:var(--primary);
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:2px;
}

.summary-product{
  display:flex;
  gap:14px;
  padding:22px;
  border-bottom:1px solid var(--line);
}

.icon{
  width:44px;
  height:44px;
  background:#eaf1ff;
  color:var(--primary);
  display:grid;
  place-items:center;
  border-radius:12px;
  font-weight:900;
}

.summary-product strong,
.summary-product span,
.summary-product small{
  display:block;
}

.summary-product span,
.summary-product small{
  color:#64748b;
  margin-top:4px;
}

.summary-lines{
  padding:20px 22px;
  display:grid;
  gap:14px;
  border-bottom:1px dashed var(--line);
}

.summary-lines div{
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.summary-lines span{
  color:#64748b;
}

.total{
  padding:22px;
}

.total span{
  color:#64748b;
  font-weight:850;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:1px;
}

.total strong{
  display:block;
  font-size:32px;
  margin-top:6px;
}

.total small{
  color:#64748b;
}

#addToCartBtn{
  margin:0 22px;
  width:calc(100% - 44px);
  height:54px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
}

#addToCartBtn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.cart-note{
  text-align:center;
  color:var(--orange);
  font-size:13px;
  font-weight:750;
  padding:0 22px 20px;
}

@media(max-width:900px){
  .layout{
    grid-template-columns:1fr;
  }

  .summary{
    position:static;
  }

  .feature-row,
  .billing-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:560px){
  .container{
    width:min(100% - 22px,1180px);
  }

  .topbar{
    height:auto;
    padding:12px 0;
  }

  .brand div{
    display:none;
  }

  .nav-actions a{
    display:none;
  }

  .feature-row,
  .billing-grid,
  .domain-box{
    grid-template-columns:1fr;
  }

  .domain-input-wrap span{
    font-size:14px;
  }
}

/* Promo Gratis 1 Bulan */
.free-month{
  display:inline-block;
  margin-top:8px;
  padding:6px 12px;
  background:#fff7ed;
  color:#f97316;
  border:1px solid #fdba74;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
}

.promo-orange{
  color:#f97316 !important;
  font-weight:900 !important;
}

/* Auth Modal */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
}

.modal-overlay.show{
  display:flex;
}

.auth-modal{
  position:relative;
  width:min(460px,100%);
  background:#fff;
  border-radius:24px;
  box-shadow:0 30px 90px rgba(0,0,0,.25);
  padding:26px;
}

.modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#f1f5f9;
  cursor:pointer;
  font-size:24px;
  line-height:1;
}

.modal-head h2{
  margin:0 0 8px;
}

.modal-head p{
  margin:0;
  color:#64748b;
  line-height:1.6;
}

.modal-order{
  margin:18px 0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
}

.modal-order strong,
.modal-order span,
.modal-order small{
  display:block;
}

.modal-order span,
.modal-order small{
  color:#64748b;
  margin-top:4px;
}

.google-btn{
  width:100%;
  height:50px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  font-weight:900;
  cursor:pointer;
}

.divider{
  display:flex;
  align-items:center;
  gap:12px;
  color:#94a3b8;
  margin:18px 0;
  font-size:13px;
}

.divider::before,
.divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#f1f5f9;
  padding:5px;
  border-radius:14px;
  margin-bottom:14px;
}

.auth-tab{
  border:0;
  background:transparent;
  border-radius:10px;
  height:40px;
  font-weight:900;
  cursor:pointer;
  color:#64748b;
}

.auth-tab.active{
  background:#fff;
  color:var(--primary);
  box-shadow:0 6px 16px rgba(15,23,42,.08);
}

.auth-form{
  display:grid;
  gap:12px;
}

.auth-form.hidden{
  display:none;
}

.auth-form input{
  height:50px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 14px;
  font-size:15px;
  outline:0;
}

.auth-form button{
  height:50px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.google-btn{
  width:100%;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:#fff;
  border:1px solid #dbe4ef;
  border-radius:14px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.google-btn:hover{
  background:#f8fafc;
}

.google-icon{
  width:20px;
  height:20px;
}

.link-btn{
  background:transparent !important;
  color:var(--primary) !important;
  border:0 !important;
  box-shadow:none !important;
  height:auto !important;
  padding:8px 0 !important;
  font-weight:900 !important;
  cursor:pointer;
}

/* Forgot Password Button */
#forgotForm button,
.forgot-btn{
    background:#f59e0b !important;
    border-color:#f59e0b !important;
    color:#fff !important;
}

#forgotForm button:hover,
.forgot-btn:hover{
    background:#d97706 !important;
    border-color:#d97706 !important;
}

/* Tombol kembali login */
.back-login-btn{
    background:#ffffff !important;
    color:#2563eb !important;
    border:1px solid #dbe3f0 !important;
}

.back-login-btn:hover{
    background:#f8fafc !important;
    color:#1d4ed8 !important;
}

/* Tombol kembali login */
.back-login-btn{
    background:#ffffff !important;
    color:#2563eb !important;
    border:1px solid #dbe3f0 !important;
}

.back-login-btn:hover{
    background:#f8fafc !important;
    color:#1d4ed8 !important;
}

/* Force Kembali ke Login jadi putih */
#forgotForm #backToLoginBtn,
#backToLoginBtn.back-login-btn,
button#backToLoginBtn{
  background:#ffffff !important;
  color:#2563eb !important;
  border:1px solid #dbe3f0 !important;
}

#forgotForm #backToLoginBtn:hover,
#backToLoginBtn.back-login-btn:hover,
button#backToLoginBtn:hover{
  background:#f8fafc !important;
  color:#1d4ed8 !important;
}
