:root{
  --bg:#f6f8fc;
  --panel:#ffffff;
  --panel2:#ffffff;
  --text:#0b1220;
  --muted:#526079;
  --muted2:#7a879f;
  --line:rgba(17, 24, 39, .10);
  --shadow: 0 18px 60px rgba(17, 24, 39, .10);
  --shadow2: 0 10px 30px rgba(17, 24, 39, .08);
  --accent:#4f46e5; /* indigo */
  --accent2:#06b6d4; /* cyan */
  --success:#10b981;
  --danger:#ef4444;
  --warning:#f59e0b;
  --radius:16px;
  --radius2:12px;
  --radius3:10px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(79,70,229,.10), rgba(246,248,252,0) 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(6,182,212,.12), rgba(246,248,252,0) 55%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fc 60%, #f2f5fb 100%);
}

.app{
  min-height:100%;
  padding-bottom: calc(104px + env(safe-area-inset-bottom)); /* space for bottombar */
}

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .78);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand__logo{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent), var(--accent2));
  box-shadow: 0 12px 30px rgba(79,70,229,.18);
  font-weight:900;
  letter-spacing:.5px;
}
.brand__title{font-weight:800}
.brand__sub{font-size:12px;color:var(--muted)}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:14px 14px 18px;
}

.view{display:block}
.view.is-hidden{display:none}

.tabs{
  display:flex;
  gap:10px;
  background: rgba(255,255,255,.75);
  border:1px solid var(--line);
  padding:8px;
  border-radius:999px;
  box-shadow: var(--shadow2);
  overflow:auto;
}
.tab{
  appearance:none;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  padding:11px 14px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
  transition: all .16s ease;
  font-weight:650;
}
.tab:hover{color:var(--text); background: rgba(255,255,255,.04)}
.tab.is-active{
  color:var(--text);
  background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(6,182,212,.12));
  border-color: rgba(79,70,229,.25);
}

.panel{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.96));
  box-shadow: var(--shadow);
  padding:16px;
}
.panel__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.panel__title{font-size:18px;font-weight:850; letter-spacing:.2px}
.panel__desc{color:var(--muted);font-size:13px}

.controls{
  display:grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap:12px;
}
@media (min-width: 860px){
  .controls{grid-template-columns: 1.5fr 1fr 1fr; }
}

.field__label{
  font-size:12px;
  color:var(--muted);
  margin: 2px 0 8px;
}

.input{
  width:100%;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  color:var(--text);
  border-radius: 12px;
  padding:10px 12px;
  outline:none;
}
.input:focus{border-color: rgba(79,70,229,.35); box-shadow: 0 0 0 3px rgba(79,70,229,.12)}

.select{position:relative}
.select__button{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  color:var(--text);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
}
.select__button:hover{border-color: rgba(255,255,255,.14)}
.chev{color:var(--muted2)}
.select__popover{
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  right:0;
  background: rgba(255, 255, 255, .98);
  border:1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index:60;
}
.select.is-open .select__popover{display:block}
.select__search{padding:10px;border-bottom:1px solid var(--line)}
.select__list{max-height: 260px; overflow:auto}
.country{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  border:0;
  background:transparent;
  color:var(--text);
}
.country:hover{background: rgba(17, 24, 39, .04)}
.country__left{display:flex;align-items:center;gap:10px}
.country__flag{width:28px; text-align:center}
.country__name{font-weight:650}
.country__code{color:var(--muted2); font-size:12px}
.country.is-active{background: rgba(79,70,229,.10)}

.stepper{
  display:flex;
  align-items:stretch;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.stepper__btn{
  width:44px;
  border:0;
  background: transparent;
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}
.stepper__btn:hover{background: rgba(255,255,255,.05)}
.stepper__input{
  width:100%;
  border:0;
  background: transparent;
  color:var(--text);
  text-align:center;
  font-weight:750;
  outline:none;
}

.segmented{
  display:flex;
  gap:8px;
}
.segmented__btn{
  flex:1;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--muted);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:650;
  transition: all .16s ease;
}
.segmented__btn:hover{color:var(--text); border-color: rgba(255,255,255,.16)}
.segmented__btn.is-active{
  color:var(--text);
  border-color: rgba(79,70,229,.25);
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.10));
}

.plans{
  display:grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap:12px;
  margin-top:14px;
}
@media (min-width: 980px){
  .plans{grid-template-columns: repeat(3, 1fr)}
}
.plan{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.92);
  padding:14px;
  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.plan:hover{transform: translateY(-2px); border-color: rgba(17, 24, 39, .14); background: rgba(255,255,255,1)}
.plan.is-selected{
  border-color: rgba(79,70,229,.30);
  background: linear-gradient(180deg, rgba(79,70,229,.08), rgba(255,255,255,1));
}
.plan__top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.plan__name{font-weight:850}
.plan__tag{
  font-size:12px;
  color: #0b1220;
  background: var(--warning);
  padding:4px 8px;
  border-radius:999px;
  font-weight:850;
}
.plan__tag--pro{background: var(--success)}
.plan__tag--ent{background: rgba(17, 24, 39, .06); color: var(--text); border:1px solid rgba(17, 24, 39, .12)}
.plan__desc{color:var(--muted); font-size:13px}
.plan__meta{display:grid;grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px}
.meta{border:1px solid var(--line); border-radius:12px; padding:10px; background: rgba(0,0,0,.12)}
.meta{border:1px solid var(--line); border-radius:12px; padding:10px; background: rgba(17, 24, 39, .03)}
.meta__k{color:var(--muted2); font-size:12px}
.meta__v{margin-top:4px; font-weight:800}

.tips{
  display:grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap:12px;
  margin-top:14px;
}
@media (min-width: 980px){ .tips{grid-template-columns: 1fr 1fr} }
.tip{
  border:1px dashed rgba(255,255,255,.14);
  border-radius: var(--radius2);
  padding:12px 14px;
  background: rgba(255,255,255,.92);
}
.tip__title{font-weight:850; margin-bottom:6px}
.tip__body{color:var(--muted); font-size:13px; line-height:1.45}

.bottombar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:50;
  background: rgba(255, 255, 255, .86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.bottombar__inner{
  max-width:1100px;
  margin:0 auto;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.summary__title{font-weight:850}
.summary__sub{color:var(--muted); font-size:12px; margin-top:4px}
.pricebox{display:flex; align-items:center; gap:14px}
.pricebox__price{font-size:22px; font-weight:950; letter-spacing:.2px}
.pricebox__currency{color:var(--muted); font-weight:850; margin-right:2px}

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color:var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:750;
  transition: all .16s ease;
}
.btn:hover{border-color: rgba(17, 24, 39, .16); background: rgba(17, 24, 39, .03)}
.btn--primary{
  color: #ffffff;
  border-color: rgba(79,70,229,.45);
  background: linear-gradient(135deg, rgba(79,70,229,.95), rgba(6,182,212,.78));
  box-shadow: 0 14px 34px rgba(79,70,229,.16);
}
.btn--primary:hover{filter: brightness(1.05)}
.btn--ghost{background: transparent}
.btn--danger{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08)}
.btn--danger:hover{background: rgba(239,68,68,.12)}
.btn--lg{padding:12px 16px; border-radius:14px}

.paygrid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:12px;
}
@media (max-width: 980px){ .paygrid{grid-template-columns:1fr} }
.card{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.92);
  padding:14px;
}
.card__title{font-weight:900; margin-bottom:10px}
.kv{display:grid; gap:10px}
.kv__row{display:flex; justify-content:space-between; gap:12px}
.kv__k{color:var(--muted2); font-size:12px}
.kv__v{font-weight:800}

.paymethods{display:grid; grid-template-columns:repeat(3, 1fr); gap:10px}
@media (max-width: 620px){ .paymethods{grid-template-columns:1fr} }
.paymethod{
  text-align:left;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding:12px;
  cursor:pointer;
  color:var(--text);
}
.paymethod__name{font-weight:900}
.paymethod__sub{color:var(--muted); font-size:12px; margin-top:4px}
.paymethod.is-active{border-color: rgba(79,70,229,.30); background: rgba(79,70,229,.08)}

.paybox{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background: rgba(17, 24, 39, .02);
}
@media (max-width: 620px){ .paybox{flex-direction:column; align-items:stretch} }
.paybox__hint{color:var(--muted2); font-size:12px}
.paybox__amount{font-size:26px; font-weight:950; margin-top:6px}
.paybox__currency{color:var(--muted); font-weight:900; margin-right:2px}
.paybox__note{color:var(--muted); font-size:12px; margin-top:6px; line-height:1.35}
.paybox__right{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.successTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(16,185,129,.35);
  background: rgba(16,185,129,.10);
  font-weight:900;
  color: var(--success);
}
.muted{color:var(--muted); font-size:12px}

.credentials{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 860px){ .credentials{grid-template-columns:1fr} }
.cred{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:12px;
  background: rgba(255,255,255,.92);
}
.cred__k{color:var(--muted2); font-size:12px}
.cred__v{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px}
.cred__v code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight:850;
  font-size: 13px;
  color: var(--text);
}
.copy{
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:800;
}
.copy:hover{background: rgba(17, 24, 39, .03); border-color: rgba(17, 24, 39, .16)}

.successActions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.details{
  margin-top: 12px;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:10px 12px;
  background: rgba(255,255,255,.92);
}
.details summary{cursor:pointer; font-weight:850}
.template{
  margin:10px 0 0;
  padding:12px;
  border-radius: 12px;
  background: rgba(17, 24, 39, .04);
  border:1px solid var(--line);
  overflow:auto;
  color: var(--text);
}

.orders{display:grid; gap:10px}
.orderItem{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.92);
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
@media (max-width: 720px){ .orderItem{flex-direction:column} }
.orderItem__title{font-weight:900}
.orderItem__sub{color:var(--muted); font-size:12px; margin-top:4px; line-height:1.35}
.orderItem__right{display:flex; gap:8px; flex-wrap:wrap}

.toast{
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .85);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight:800;
  box-shadow: var(--shadow2);
  display:none;
  z-index:80;
}
.toast.is-show{display:block}

/* Mobile polish */
@media (max-width: 480px){
  .topbar__inner{padding:12px 14px}
  .brand__logo{width:38px;height:38px;border-radius:13px}
  .panel{padding:14px}
  .tabs{gap:8px; padding:7px}
  .tab{padding:10px 12px}
  .pricebox__price{font-size:20px}
  .summary__title{font-size:13px}
  .summary__sub{display:none}
}


