:root{
  --bg:#0c1f18;
  --card: rgba(12, 22, 16, .55);
  --card2: rgba(12, 22, 16, .35);
  --text:#F2F0E8;
  --muted: rgba(242,240,232,.65);

  --jade:#2fbf78;
  --gold:#f2c14e;
  --warn:#f2c14e;

  --r:22px;
  --shadow: 0 25px 60px rgba(0,0,0,.45);
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:#000;
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(
      to bottom,
      rgba(5,12,8,.04) 0%,
      rgba(5,12,8,.18) 38%,
      rgba(5,12,8,.42) 72%,
      rgba(5,12,8,.62) 100%
    ),
    url("/static/bg-panda.png") center top / cover no-repeat;
}

.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at center, transparent 58%, rgba(0,0,0,.20) 100%);
}

.wrap{
  max-width:520px;
  margin:0 auto;
  padding:14px 14px 250px;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 2px 14px;
}
.top__brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(47,191,120,.18);
}
.top__title{
  font-weight:900;
  font-size:18px;
}
.top__icon{
  width:40px;
  height:40px;
  border-radius:14px;
  border:none;
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.screen{display:none;}
.screen--active{display:block;}

.card{
  border-radius:var(--r);
  background:linear-gradient(180deg, rgba(20,40,30,.55), rgba(20,40,30,.35));
  box-shadow:var(--shadow);
  backdrop-filter: blur(6px);
  padding:18px;
  margin-bottom:14px;
}

.hero{
  position:relative;
  min-height:220px;
  background:linear-gradient(180deg, rgba(14,28,20,.28), rgba(14,28,20,.16));
}
.hero__name{font-size:30px;font-weight:900;}
.hero__sub{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:6px;
  flex-wrap:wrap;
}

.muted{color:var(--muted);}
.mono{font-family:var(--mono);}

.pill{
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(242,193,78,.15);
  color:var(--gold);
  font-weight:800;
}
.pill--ok{
  background:rgba(47,191,120,.16);
  color:#6fe0a2;
}
.pill--warn{
  background:rgba(242,193,78,.15);
  color:var(--gold);
}
.pill--bad{
  background:rgba(255,90,90,.15);
  color:#ff9797;
}

.cta{
  width:100%;
  border:none;
  border-radius:18px;
  padding:16px;
  background: linear-gradient(90deg,#21d19f,#1aa06b);
  color:#184637;
  font-weight:900;
  font-size:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
}
.cta__price{
  background:rgba(0,0,0,.12);
  color:#184637;
  padding:6px 12px;
  border-radius:999px;
  white-space:nowrap;
  font-weight:900;
}

.cta--sheet{
  margin-top:14px;
}

.btn{
  border-radius:18px;
  padding:14px;
  background:rgba(0,0,0,.35);
  color:#fff;
  font-weight:800;
  border:none;
  cursor:pointer;
}
.btn--ghost{
  background:rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  gap:10px;
}
.btn--glass{
  background:rgba(0,0,0,.35);
}
.btn--wide{width:100%; text-align:left;}

.tag{
  margin-left:auto;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(242,193,78,.2);
  color:var(--gold);
  font-size:12px;
}

.bottom-actions{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  max-width:520px;
  margin:0 auto;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:
    linear-gradient(
      to top,
      rgba(5,12,8,.92),
      rgba(5,12,8,.75) 60%,
      rgba(5,12,8,.20)
    );
  backdrop-filter: blur(12px);
  border-radius:22px 22px 0 0;
  z-index:50;
}

.home-actions-block{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.home-actions-block.hidden{
  display:none;
}

.bottom-nav-global{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
  padding:8px;
  border-radius:24px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}

.nav-item{
  min-height:82px;
  border:none;
  border-radius:22px;
  color:#eef6f2;
  background:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  transition:all .18s ease;
}
.nav-item--active{
  background:rgba(47,191,120,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.nav-item__icon{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.04);
}
.nav-item--active .nav-item__icon{
  background:rgba(255,255,255,.10);
}

.nav-svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  opacity:.95;
}

.profile__head{padding:6px 0 12px;}
.profile__name{font-size:26px;font-weight:900;}
.profile__id{display:flex;align-items:center;gap:8px;margin-top:6px;}
.copy{
  border:none;
  background:rgba(242,193,78,.10);
  border:1px solid rgba(242,193,78,.18);
  color:rgba(242,193,78,.95);
  border-radius:12px;
  padding:6px 10px;
  cursor:pointer;
}

.list{display:grid;gap:10px;margin-top:10px;}
.row{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  padding:14px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.25);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.chev{margin-left:auto;opacity:.65;font-size:18px;}

.subcard__title{font-weight:900;margin-bottom:10px;}
.subbox{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.05);
}
.subbox__input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
  font-family:var(--mono);
}
.subbox__copy{
  width:44px;height:40px;
  border-radius:14px;
  border:1px solid rgba(242,193,78,.18);
  background:rgba(242,193,78,.10);
  color:rgba(242,193,78,.95);
  cursor:pointer;
  font-weight:900;
}

.sheet{ position:fixed; inset:0; z-index:60; }
.sheet[hidden]{ display:none; }
.sheet__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.sheet__panel{
  position:absolute; left:0; right:0; bottom:0;
  max-width:520px; margin:0 auto;
  border-radius: 22px 22px 0 0;
  padding:14px 14px 18px;
  background: linear-gradient(180deg, rgba(10,22,16,.92), rgba(10,22,16,.78));
  border:1px solid rgba(242,193,78,.12);
  box-shadow: 0 -30px 70px rgba(0,0,0,.55);
}
.sheet__handle{
  width:54px; height:5px; border-radius:999px;
  background: rgba(255,255,255,.18);
  margin: 4px auto 10px;
}
.sheet__title{ font-size:18px; font-weight:900; }
.sheet__subtitle{ color: rgba(242,240,232,.68); margin-top:4px; font-size:13px; }
.sheet__block{ margin-top:14px; }
.sheet__label{ font-weight:900; margin-bottom:8px; }
.sheet__status{
  margin-top:10px;
  font-size:14px;
  line-height:1.35;
}
.sheet__status.error{ color:#ff9b91; }

.device-picker{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
.device-chip{
  border:none;
  border-radius:18px;
  padding:14px 10px;
  background:rgba(255,255,255,.06);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  text-align:center;
}
.device-chip--active{
  background:rgba(47,191,120,.16);
  border-color:rgba(47,191,120,.38);
}
.device-chip__top{
  font-size:20px;
  font-weight:900;
}
.device-chip__sub{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.tariff-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.tariff-card{
  min-height:132px;
  border-radius:22px;
  border:1.5px solid rgba(255,255,255,.12);
  background: rgba(20,40,30,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding:16px;
  text-align:left;
  cursor: pointer;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  color:var(--text);
}
.tariff-card__title{
  font-size:16px;
  font-weight:900;
}
.tariff-card__price{
  font-size:34px;
  font-weight:900;
  white-space:nowrap;
  color:#fff;
}
.tariff-card__sub{
  font-size:14px;
  color:rgba(242,240,232,.55);
  margin-top:-6px;
}
.tariff-card--active{
  border-color: rgba(79,167,122,.65);
  background: rgba(79,167,122,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 0 2px rgba(79,167,122,.20);
}

.tx-list{
  display:grid;
  gap:10px;
}
.tx-item{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.22);
  padding:14px;
}
.tx-item__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.tx-item__amount{
  font-size:18px;
  font-weight:900;
}
.tx-item__status{
  font-size:12px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
}
.tx-item__status--pending{
  color:#f2c14e;
}
.tx-item__status--succeeded,
.tx-item__status--provisioned{
  color:#6fe0a2;
}
.tx-item__status--failed{
  color:#ff9797;
}
.tx-item__meta{
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.tx-empty{
  padding:16px;
  border-radius:18px;
  background:rgba(0,0,0,.18);
  color:var(--muted);
  text-align:center;
}

.support-modal.hidden {
  display: none;
}
.support-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.support-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 520px);
  transform: translate(-50%, -50%);
  background: #0f1412;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.support-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.support-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.support-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.support-modal__textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}
.support-modal__textarea::placeholder {
  color: rgba(255,255,255,0.45);
}
.support-modal__footer {
  margin-top: 14px;
}
.support-modal__send {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  background: #64c58f;
  color: #08140d;
}
.support-modal__send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 420px){
  .bottom-nav-global{ grid-template-columns:repeat(4, 1fr); }
  .tariff-grid{ grid-template-columns:1fr 1fr; }
}
.device-picker{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.device-hero{
  border-radius:24px;
  padding:18px 16px;
  background:linear-gradient(90deg, rgba(35,82,62,.42), rgba(18,36,28,.46));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.device-hero__top{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:14px;
  align-items:center;
}

.device-hero__count{
  width:60px;
  height:60px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  font-size:28px;
  font-weight:900;
  color:#fff;
}

.device-hero__title{
  font-size:18px;
  font-weight:900;
  color:#fff;
}

.device-hero__sub{
  margin-top:2px;
  font-size:13px;
  color:rgba(242,240,232,.72);
  line-height:1.25;
}

.device-hero__discount{
  min-width:86px;
  height:54px;
  padding:0 18px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.26);
  border:1px solid rgba(255,255,255,.08);
  font-size:18px;
  font-weight:900;
  color:#fff;
}

.device-slider--native{
  position:relative;
  margin-top:16px;
  padding:0 6px;
}

.device-range{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:48px;
  background:transparent;
  outline:none;
  position:relative;
  z-index:2;
  margin:0;
}

/* track */
.device-range::-webkit-slider-runnable-track{
  height:12px;
  border-radius:999px;
  background:
    linear-gradient(
      90deg,
      #2be0ad 0%,
      #18be8c var(--range-progress),
      rgba(255,255,255,.14) var(--range-progress),
      rgba(255,255,255,.14) 100%
    );
}

.device-range::-moz-range-track{
  height:12px;
  border-radius:999px;
  background:
    linear-gradient(
      90deg,
      #2be0ad 0%,
      #18be8c var(--range-progress),
      rgba(255,255,255,.14) var(--range-progress),
      rgba(255,255,255,.14) 100%
    );
}

/* thumb */
.device-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#083427;
  border:none;
  margin-top:-5px;
  box-shadow:0 0 0 5px rgba(43,224,173,.20);
  cursor:pointer;
}

.device-range::-moz-range-thumb{
  width:22px;
  height:22px;
  border-radius:50%;
  background:#083427;
  border:none;
  box-shadow:0 0 0 5px rgba(43,224,173,.20);
  cursor:pointer;
}

/* decorative dots under slider */
.device-slider__dots{
  position:absolute;
  inset:0 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
  z-index:1;
}

.device-slider__dot{
  width:13px;
  height:13px;
  border-radius:50%;
  background:rgba(220,255,245,.38);
}