:root {
  --bg: #F4F4F5;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-soft: #EFEFF0;
  --line: rgba(0, 0, 0, .08);
  --text: #1A1A1A;
  --muted: #8E8E93;
  --primary: #1C1C1E;
  --primary-deep: #000000;
  --accent: #3C3C43;
  --danger: #E5484D;
  --warning: #B8860B;
  --shadow: 0 10px 30px rgba(0, 0, 0, .06);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    #F4F4F5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .12;
  pointer-events: none;
}
.ambient-one { top: 20%; left: -150px; background: var(--primary); }
.ambient-two { right: -160px; bottom: 18%; background: var(--accent); }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar, .profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, .08);
  color: #FFFFFF;
  background: linear-gradient(145deg, #48484A, #1C1C1E);
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  overflow: hidden;
}
.avatar.has-photo, .profile-avatar.has-photo { background: #E9E9EB; padding: 0; }
.avatar img, .profile-avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar { width: 44px; height: 44px; border-radius: 15px; }
.identity h1 { margin: 2px 0 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.policy-links {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.policy-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(60, 60, 67, .35);
  color: var(--accent);
  background: rgba(60, 60, 67, .1);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.policy-link:hover { filter: brightness(1.08); }
.eyebrow {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.032);
  cursor: pointer;
}
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page { display: none; animation: page-in .24s ease both; padding-bottom: 120px; overflow-x: clip; max-width: 100%; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.016));
  backdrop-filter: blur(14px);
}
.balance-label, .balance-note { display: block; color: var(--muted); font-size: 11px; }
.balance-card strong { display: block; margin: 4px 0 3px; font-size: 24px; letter-spacing: -.04em; }
.soft-button, .text-button, .filter-chip, .selection-summary {
  border: 0;
  cursor: pointer;
}
.soft-button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(28, 28, 30, .1);
  font-size: 12px;
  font-weight: 800;
}

.hero-card {
  position: relative;
  min-height: 252px;
  padding: 26px 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}
.hero-card::after {
  position: absolute;
  content: "";
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.023) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.023) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000, transparent);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; width: 70%; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(28, 28, 30, .15);
  border-radius: 999px;
  color: #bff7e5;
  background: rgba(28, 28, 30, .08);
  font-size: 10px;
  font-weight: 750;
}
.pill i { width: 6px; height: 6px; border-radius: 99px; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.user-total-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(60, 60, 67, .18);
  border-radius: 999px;
  color: #c8d7ef;
  background: rgba(60, 60, 67, .08);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.user-total-pill b { color: var(--primary); font-weight: 900; }
.hero-card h2 { margin: 18px 0 8px; font-size: clamp(28px, 8vw, 38px); line-height: .98; letter-spacing: -.055em; }
.hero-card p { max-width: 280px; margin: 0 0 22px; color: #aebbd0; font-size: 12px; line-height: 1.55; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.primary-button {
  color: #FFFFFF;
  background: linear-gradient(135deg, #1C1C1E, #3C3C43);
  box-shadow: 0 10px 30px rgba(28, 28, 30, 0.2);
  font-weight: 700;
}
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.secondary-button { border: 1px solid rgba(0, 0, 0, 0.09); color: #1A1A1A; background: rgba(0, 0, 0, 0.036); backdrop-filter: blur(10px); }
.wide { width: 100%; }

.hero-orbit { position: absolute; right: -34px; top: 37px; width: 174px; height: 174px; z-index: 1; }
.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(60, 60, 67, .2); border-radius: 50%; box-shadow: inset 0 0 45px rgba(60, 60, 67, .06); }
.orbit-ring::before, .orbit-ring::after { position: absolute; content: ""; border: 1px solid rgba(60, 60, 67, .1); border-radius: 50%; }
.orbit-ring::before { inset: 22px; }
.orbit-ring::after { inset: 47px; }
.phone-mark { position: absolute; inset: 49px; display: grid; place-items: center; border: 1px solid rgba(0, 0, 0, 0.108); border-radius: 24px; color: var(--primary); background: rgba(255, 255, 255, 0.92); font-size: 34px; font-weight: 300; transform: rotate(8deg); }
.orbit-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.dot-one { left: 9px; top: 57px; }
.dot-two { right: 22px; bottom: 12px; background: var(--primary); }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 28px 2px 13px; }
.section-heading h2, .page-title h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.03em; color: #1A1A1A; }
.text-button { padding: 6px 0; color: #3C3C43; background: transparent; font-size: 11px; font-weight: 700; }
.eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(0, 0, 0, 0.36); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px 8px 13px;
  border: 1px solid rgba(0, 0, 0, 0.081);
  border-radius: 18px;
  color: #1A1A1A;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.063), rgba(0, 0, 0, 0.013) 55%, rgba(0,0,0,0.08));
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.126),
    inset 0 -8px 14px -10px rgba(0,0,0,0.45),
    0 10px 20px -8px rgba(0,0,0,0.55),
    0 2px 4px rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform .25s cubic-bezier(0.4,0,0.2,1), box-shadow .25s cubic-bezier(0.4,0,0.2,1), border-color .25s ease;
}
.service-card:active {
  transform: scale(.96) translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.09),
    inset 0 4px 10px rgba(0,0,0,0.4),
    0 2px 6px rgba(0,0,0,0.3);
}
.service-card:hover {
  border-color: rgba(28, 28, 30, 0.25);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.144),
    inset 0 -8px 14px -10px rgba(0,0,0,0.45),
    0 16px 28px -10px rgba(0,0,0,0.6),
    0 0 18px rgba(28, 28, 30, 0.12);
}
.service-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff, #dfe6f0);
  box-shadow:
    inset 0 1px 1px #FFFFFF,
    inset 0 -3px 5px rgba(0,0,0,0.12),
    0 6px 12px -4px rgba(0,0,0,0.5),
    0 2px 3px rgba(0,0,0,0.25);
  overflow: hidden;
}
.service-logo img { width: 100%; height: 100%; object-fit: cover; }
.service-logo span { color: #1A1A1A; font-size: 16px; font-weight: 900; }
.service-card strong { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; text-align: center; }
.skeleton-card {
  height: 82px;
  border-radius: 17px;
  background: linear-gradient(90deg, var(--surface) 25%, rgba(0, 0, 0, 0.063) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.stack-list, .order-list { display: grid; gap: 12px; max-width: 100%; overflow: hidden; }
.empty-state {
  padding: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.108);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
.mini-order, .transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.023);
}
.mini-icon, .transaction-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--primary);
  background: rgba(28, 28, 30, .09);
  font-weight: 900;
  overflow: hidden;
  line-height: 1;
}

.transaction-icon.has-img {
  padding: 0;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.transaction-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.transaction-icon.xentralpay-icon {
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.315);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.transaction-icon.xentralpay-icon img {
  object-fit: contain;
  border-radius: 9px;
}
.mini-order > div:nth-child(2), .transaction-item > div:nth-child(2) { min-width: 0; flex: 1; }
.mini-order strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-item strong { display: block; font-size: 12px; line-height: 1.35; word-break: break-word; }
.mini-order span, .transaction-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.status-dot.completed { background: var(--primary); }
.status-dot.failed, .status-dot.canceled { background: var(--danger); }

.page-title { margin: 8px 0 20px; width: 100%; }
.page-title h2 { font-size: 28px; color: #1A1A1A; }
.page-title p { margin: 7px 0 0; color: rgba(0, 0, 0, 0.36); font-size: 12px; }
.row-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 15px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.032);
}
.search-box svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #60738e; }
.selection-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  margin-bottom: 12px;
  color: #3C3C43;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.selection-summary svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.catalog-content { min-height: 300px; }
.section-label { margin: 0 0 12px; color: var(--text); font-size: 15px; font-weight: 800; }
#catalog-popular-block { margin-bottom: 24px; }
#catalog-popular-block.hidden, #catalog-all-block.hidden { display: none; }
.country-list, .operator-list { display: grid; gap: 10px; }
.country-card, .operator-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, 0.072);
  border-radius: 17px;
  color: #1A1A1A;
  background: rgba(0, 0, 0, 0.027);
  backdrop-filter: blur(10px);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.country-card:active, .operator-card:active { transform: scale(0.98); }
.country-card.unavailable, .operator-card.unavailable {
  cursor: not-allowed;
  opacity: .4;
}
.country-flag {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.072);
}
.country-main, .operator-main { min-width: 0; flex: 1; }
.country-main strong, .operator-main strong { display: block; font-size: 13px; text-transform: capitalize; }
.country-main span, .operator-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.country-price { text-align: right; }
.country-price strong { display: block; color: var(--primary); font-size: 13px; }
.country-price span { color: var(--muted); font-size: 9px; }
.operator-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--accent); background: rgba(60, 60, 67, .09); font-size: 11px; font-weight: 900; text-transform: uppercase; flex: 0 0 auto; }
.operator-card img { width: 42px; height: 42px; border-radius: 14px; object-fit: contain; background: rgba(0, 0, 0, 0.054); flex: 0 0 auto; padding: 4px; }
.chevron { width: 18px; fill: none; stroke: #657995; stroke-width: 2; }

.service-detail-card { padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.detail-order-title { margin: 2px 0 16px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.detail-summary { display: grid; gap: 0; }
.detail-summary { padding: 2px 13px; border: 1px solid rgba(0, 0, 0, 0.072); border-radius: 15px; background: #FFFFFF; }
.detail-summary > div:not(.detail-price-options), .detail-price-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 49px; padding: 11px 3px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.detail-summary > :last-child { border-bottom: 0; }
.detail-summary > div:not(.detail-price-options) > strong, .detail-price-toggle > strong { font-size: 11px; }
.detail-summary > div:not(.detail-price-options) > span, .detail-price-toggle > span { color: var(--muted); font-size: 11px; text-align: right; text-transform: capitalize; }
.detail-summary .available-text { color: var(--primary); font-weight: 850; }
.detail-price-toggle { width: 100%; border: 0; outline: 0; border-radius: 9px; color: var(--text); background: transparent; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.detail-price-toggle:focus, .detail-price-toggle:focus-visible { outline: 0; box-shadow: none; }
.detail-price-toggle:active { background: rgba(28, 28, 30, .035); }
.detail-price-toggle span { display: inline-flex; align-items: center; gap: 11px; color: var(--primary); font-size: 14px; font-weight: 900; }
.detail-price-toggle i { display: block; width: 10px; height: 10px; flex: 0 0 auto; border-right: 2px solid #94a8c3; border-bottom: 2px solid #94a8c3; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.detail-price-toggle i.open { transform: translateY(3px) rotate(225deg); }
.detail-price-options { min-width: 0; padding: 10px 0 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.loading-inline { margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(60, 60, 67, .16); border-radius: 12px; color: var(--muted); background: rgba(60, 60, 67, .045); font-size: 10px; text-align: center; }
.provider-price-list { max-height: 295px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.04); }
.provider-price-row { display: grid; grid-template-columns: minmax(62px,1fr) minmax(45px,.65fr) auto auto; align-items: center; gap: 9px; padding: 12px; border-bottom: 1px solid var(--line); }
.provider-price-row:last-child { border-bottom: 0; }
.provider-price-row.selected { background: rgba(28, 28, 30, .06); box-shadow: inset 3px 0 var(--primary); }
.provider-item-id span, .provider-stock span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.provider-item-id strong, .provider-stock strong { display: block; margin-top: 3px; font-size: 11px; }
.provider-price { color: var(--primary); font-size: 12px; white-space: nowrap; }
.provider-price-row button { min-width: 58px; padding: 8px 10px; border: 0; border-radius: 9px; color: #FFFFFF; background: var(--primary); font-size: 9px; font-weight: 900; cursor: pointer; }
.provider-price-row.selected button { color: var(--primary); background: rgba(28, 28, 30, .12); }
.service-description { margin-top: 15px; padding: 15px 3px 3px; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.service-description summary { display: flex; align-items: center; gap: 11px; list-style: none; color: var(--text); cursor: pointer; font-size: 11px; font-weight: 850; }
.service-description summary::-webkit-details-marker { display: none; }
.service-description summary::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; border-right: 2px solid #94a8c3; border-bottom: 2px solid #94a8c3; transform: rotate(-45deg); transition: transform .18s ease; }
.service-description[open] summary::before { transform: rotate(45deg); }
.service-description p { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.detail-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 19px; }
.detail-actions button { min-height: 47px; }
.detail-actions button:disabled { cursor: not-allowed; opacity: .45; }

.filter-row { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; flex-wrap: nowrap; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { padding: 9px 14px; border: 1px solid rgba(0, 0, 0, 0.09); border-radius: 999px; color: rgba(0, 0, 0, 0.45); background: rgba(0, 0, 0, 0.036); backdrop-filter: blur(10px); font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0; transition: all 0.2s ease; }
.filter-chip.active { border-color: rgba(28, 28, 30, 0.3); color: #1C1C1E; background: rgba(28, 28, 30, 0.08); box-shadow: 0 0 12px rgba(28, 28, 30, 0.15); }
.order-card { padding: 16px; border: 1px solid rgba(0, 0, 0, 0.072); border-radius: 20px; background: rgba(0, 0, 0, 0.027); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.054), 0 8px 24px rgba(0,0,0,0.3); max-width: 100%; box-sizing: border-box; overflow: hidden; word-break: break-word; }
.order-card + .order-card { margin-top: 12px; }
.order-card.active-order { border-color: rgba(28, 28, 30, 0.25); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.072), 0 0 20px rgba(28, 28, 30, 0.08), 0 12px 32px rgba(0,0,0,0.25); }
.order-timer { display: flex; align-items: center; justify-content: space-between; margin: 11px 0; padding: 11px 13px; border-radius: 13px; color: var(--muted); background: rgba(255,191,105,.07); font-size: 10px; }
.order-timer strong { color: var(--warning); font-size: 14px; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-service { display: flex; gap: 10px; align-items: center; min-width: 0; }
.order-service-icon, .public-order-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 13px; color: var(--primary); background: rgba(28, 28, 30, .09); font-weight: 900; overflow: hidden; }
.order-service-icon.stars-order-icon {
  color: #fff;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .5);
}
.order-service-icon.has-img, .public-order-icon.has-img, .mini-icon.has-img { padding: 0; background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.18); }
.order-service-icon img, .public-order-icon img, .mini-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-service strong { display: block; font-size: 13px; }
.order-service span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-badge { padding: 6px 10px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.status-badge { color: #B8860B; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.15); }
.status-badge.completed, .status-badge.received { color: #3C3C43; background: rgba(28, 28, 30, 0.08); border: 1px solid rgba(28, 28, 30, 0.15); }
.status-badge.canceled, .status-badge.cancel, .status-badge.failed, .status-badge.expired { color: #E5484D; background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.15); }
.number-box, .otp-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; margin-top: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.027); border: 1px solid rgba(0, 0, 0, 0.054); }
.number-box span, .otp-box span { display: block; color: rgba(0, 0, 0, 0.36); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.number-box strong { display: block; margin-top: 4px; font-size: 14px; letter-spacing: .03em; color: #1A1A1A; }
.otp-box { border: 1px solid rgba(28, 28, 30, 0.15); background: rgba(28, 28, 30, 0.04); }
.otp-box strong { display: block; margin-top: 4px; color: #1C1C1E; font-size: 23px; letter-spacing: .16em; filter: drop-shadow(0 0 6px rgba(28, 28, 30, 0.4)); }
.copy-button { padding: 8px 12px; border: 1px solid rgba(28, 28, 30, 0.15); border-radius: 10px; color: #3C3C43; background: rgba(28, 28, 30, 0.06); cursor: pointer; font-size: 10px; font-weight: 700; transition: all 0.2s; }
.copy-button:active { background: rgba(28, 28, 30, 0.15); }
.order-actions { display: flex; gap: 8px; margin-top: 12px; }
.order-actions button { flex: 1; min-height: 40px; border: 1px solid rgba(0, 0, 0, 0.072); border-radius: 12px; color: rgba(0, 0, 0, 0.45); background: rgba(0, 0, 0, 0.027); cursor: pointer; font-size: 10px; font-weight: 700; transition: all 0.2s; }
.order-actions button:active { transform: scale(0.97); }
.order-actions button.danger { color: #E5484D; border-color: rgba(255,107,107,0.2); background: rgba(255,107,107,0.06); }
.order-actions button.pending-cancel { color: #B8860B; }
.order-actions button:disabled { cursor: not-allowed; opacity: .45; }
.refund-note { display: block; margin-top: 10px; color: var(--primary); font-size: 9px; }

.profile-head { display: grid; justify-items: center; padding: 12px 0 20px; text-align: center; }
.profile-avatar { width: 76px; height: 76px; border-radius: 25px; font-size: 27px; }
.profile-head h2 { margin: 14px 0 4px; font-size: 22px; }
.profile-head p { margin: 0; color: var(--muted); font-size: 11px; }
.public-order-list { display: grid; gap: 10px; }
.public-order-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.023);
}
.public-order-left { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; }
.public-order-main { min-width: 0; flex: 1; }
.public-order-main strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; word-break: break-word; white-space: normal; }
.public-order-main b { display: block; margin-top: 3px; color: #48484A; font-size: 12px; letter-spacing: .03em; word-break: break-all; }
.public-order-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.public-order-right { text-align: right; flex-shrink: 0; min-width: 80px; }
.public-order-right strong { display: block; margin-top: 6px; color: rgba(0, 0, 0, 0.5); font-size: 12px; white-space: nowrap; }
.public-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  font-size: 11px;
  font-weight: 800;
}
.public-status.ok { color: var(--primary); background: rgba(28, 28, 30, .1); border-color: rgba(28, 28, 30, .28); }
.public-status.danger { color: var(--danger); background: rgba(255,109,126,.1); border-color: rgba(255,109,126,.28); }
.public-status.muted { color: var(--muted); background: rgba(0, 0, 0, 0.045); border-color: rgba(0, 0, 0, 0.108); }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.stats-grid span { display: block; color: var(--muted); font-size: 10px; }
.stats-grid strong { display: block; margin-top: 7px; font-size: 21px; }
.transaction-amount { text-align: right; font-size: 11px; }
.transaction-amount.credit { color: var(--primary); }
.transaction-amount.debit { color: var(--danger); }
.info-card { display: flex; gap: 13px; padding: 16px; margin-top: 24px; border: 1px solid rgba(60, 60, 67, .13); border-radius: 18px; background: rgba(60, 60, 67, .055); }
.info-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 10px; color: var(--accent); background: rgba(60, 60, 67, .12); font-weight: 900; }
.info-card strong { display: block; font-size: 11px; }
.info-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(calc(100% - 24px), 420px);
  height: auto;
  padding: 6px 8px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.063);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-50%);
}
.nav-block {
  background: rgba(0, 0, 0, 0.072);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.108);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.nav-block-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-block-middle {
  flex: 1;
  height: 64px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}
.nav-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  color: rgba(0, 0, 0, 0.36);
  background: rgba(0, 0, 0, 0.045);
  border: 1px solid rgba(0, 0, 0, 0.09);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
}
.nav-block-circle .nav-item {
  width: 100%; height: 100%;
  border-radius: 50%;
  justify-content: center;
  background: transparent;
  border: 0;
}
.nav-block-middle .nav-item {
  width: 46px; height: 46px;
  border-radius: 23px;
  padding: 0 12px;
}
.nav-item svg {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s ease, color 0.3s ease;
  z-index: 2;
}
.nav-item span {
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
  margin-left: 10px;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.4s ease;
  z-index: 2;
}
/* Active state — expand like social-btn */
.nav-item.active {
  color: #1C1C1E;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.072);
  box-shadow: none;
}
.nav-block-circle .nav-item.active {
  border-radius: 50%;
  color: #1C1C1E;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.072);
  box-shadow: none;
}
.nav-block-middle .nav-item.active {
  width: 116px; height: 46px; border-radius: 23px;
}
.nav-block-middle .nav-item.active span {
  opacity: 1;
  transform: translateX(0);
  color: #1C1C1E;
}
.nav-block-middle .nav-item.active {
  color: #1C1C1E;
}
.nav-item.active svg {
  transform: rotate(360deg);
}
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E9E9EB;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.nav-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.nav-avatar svg { width: 18px; height: 18px; stroke: rgba(0, 0, 0, 0.36); }
.nav-badge { position: absolute; top: -2px; left: calc(50% + 6px); display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #FFFFFF; border-radius: 999px; color: #fff; background: #1C1C1E; font-size: 8px; font-style: normal; font-weight: 900; }

.sheet-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(5px); }
.bottom-sheet {
  position: fixed;
  z-index: 31;
  left: 50%;
  bottom: 0;
  width: min(100%, 620px);
  padding: 10px 18px max(22px, env(safe-area-inset-bottom));
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #FFFFFF;
  backdrop-filter: blur(40px);
  box-shadow: 0 -24px 80px rgba(0,0,0,.12);
  transform: translateX(-50%);
  animation: sheet-in .25s ease both;
}
@keyframes sheet-in { from { transform: translate(-50%, 30px); opacity: 0; } }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 17px; border-radius: 99px; background: #34445b; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.sheet-header h2 { margin: 4px 0 0; font-size: 21px; }
.sheet-header .icon-button { width: 34px; height: 34px; font-size: 22px; }
.confirm-details { display: grid; gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.confirm-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 13px; background: var(--surface-solid); }
.confirm-row span { color: var(--muted); font-size: 10px; }
.confirm-row strong { font-size: 11px; text-align: right; text-transform: capitalize; }
.confirm-row.total strong { color: var(--primary); font-size: 15px; }
.sheet-note { margin: 11px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.topup-form { display: grid; gap: 16px; }
.topup-form label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.topup-form input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--surface-solid); outline: none; font: inherit; }
#topup-sheet .topup-form input, #topup-sheet .voucher-input-row input {
  border: 1px solid rgba(0, 0, 0, .06);
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 6%, #ffffff 100%);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(15, 23, 42, .03);
}
#topup-sheet .topup-form input:focus, #topup-sheet .voucher-input-row input:focus {
  border-color: rgba(5, 150, 105, .35);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, .06), 0 0 0 3px rgba(5, 150, 105, .1);
}
#topup-sheet .vch-btn {
  --button-color: #1c1c1e;
  border-color: rgba(255, 255, 255, .1);
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, .3),
    inset 0 2px 2px rgba(0, 0, 0, .2),
    0 4px 0 #000000,
    0 8px 14px rgba(0, 0, 0, .3);
}
#topup-sheet .vch-btn::before { background-image: linear-gradient(0deg, #0006, #000c); }
#topup-sheet .vch-btn:active, #topup-sheet .vch-btn.is-checking {
  transform: translateY(3px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 1px 0 #000000, 0 3px 8px rgba(0, 0, 0, .3);
}
.topup-form input:focus { border-color: rgba(28, 28, 30, .45); }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.quick-amounts button { padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(0, 0, 0, 0.023); font-size: 9px; }
.topup-payment { display: grid; gap: 11px; text-align: center; }
.topup-view { display: grid; gap: 11px; }
.topup-payment img { width: 260px; height: 260px; margin: 0 auto; padding: 8px; border-radius: 17px; background: #fff; object-fit: contain; }
.topup-payment > strong, .topup-view > strong { color: var(--primary); font-size: 22px; }
.topup-payment > span, .topup-view > span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }

.topup-result-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 4px auto 2px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--text);
  background: rgba(0, 0, 0, 0.054);
  font-size: 32px;
  font-weight: 900;
}
.topup-result-icon.success {
  border-color: rgba(28, 28, 30, .35);
  color: #FFFFFF;
  background: linear-gradient(135deg, #4A4A4E, #1C1C1E);
}

.payment-method-list { display: grid; gap: 10px; }
.payment-method-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.027);
  cursor: pointer; text-align: left; width: 100%;
}
.payment-method-card:active { transform: scale(.98); }
.payment-method-card.disabled { opacity: .5; cursor: not-allowed; }
.payment-method-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  background: #FFFFFF; overflow: hidden;
}
.payment-method-icon img { width: 100%; height: 100%; object-fit: contain; }
.payment-method-info { flex: 1; min-width: 0; }
.payment-method-info strong { display: block; font-size: 13px; color: var(--text); }
.payment-method-info span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.payment-method-badge {
  flex-shrink: 0; padding: 4px 9px; border-radius: 999px;
  font-size: 9px; font-weight: 700; color: var(--muted);
  background: rgba(0, 0, 0, 0.054); border: 1px solid var(--line);
}

/* === Sheet deposit: bikin 3D extruded (claymorphism, sama kayak .product-menu-card)
   + heading berikon biar bagian atas gak kosong polos dan kontennya gak numpuk ke bawah. === */
.topup-methods-heading {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 13px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(28, 28, 30, .05) 0%, rgba(28, 28, 30, .015) 100%);
  border: 1px solid rgba(0, 0, 0, .05);
}
.topup-methods-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 15px; overflow: hidden;
  background: linear-gradient(145deg, #34d399 0%, #059669 60%, #047857 100%);
  box-shadow: 0 6px 14px rgba(5, 150, 105, .35), inset 0 2px 3px rgba(255, 255, 255, .5), inset 0 -2px 4px rgba(0, 0, 0, .2);
}
.topup-methods-icon::before {
  content: ""; position: absolute; inset: 0 0 62% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .03) 100%);
  border-radius: 15px 15px 50% 50% / 15px 15px 14px 14px;
  pointer-events: none;
}
.topup-methods-icon svg {
  display: block;
  width: 28px; height: 28px;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1;
  color: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.topup-methods-heading strong { display: block; font-size: 13.5px; color: #0f172a; }
.topup-methods-heading span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }

#topup-sheet .payment-method-card {
  padding: 14px; border-radius: 18px; border: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1.5px solid #fff;
  border-left: 1px solid rgba(255, 255, 255, .8);
  border-right: 1px solid rgba(203, 213, 225, .4);
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 5px 0 #cbd5e1, 0 10px 16px rgba(15, 23, 42, .08), inset 0 2px 1px #fff;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), box-shadow .16s cubic-bezier(.34, 1.56, .64, 1);
}
#topup-sheet .payment-method-card:active {
  transform: translateY(3px) scale(.99);
  box-shadow: 0 2px 0 #94a3b8, 0 4px 10px rgba(15, 23, 42, .08), inset 0 2px 2px rgba(0, 0, 0, .04);
}
#topup-sheet .payment-method-card.disabled {
  box-shadow: 0 3px 0 #e2e8f0, 0 6px 10px rgba(15, 23, 42, .04), inset 0 2px 1px #fff;
}
#topup-sheet .payment-method-icon {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 0, 0, .04);
  box-shadow: 0 2px 0 #e2e8f0, inset 0 1px 2px rgba(255, 255, 255, .9);
}
#topup-sheet .payment-method-card .chevron {
  width: 28px; height: 28px; padding: 6px; box-sizing: border-box; flex-shrink: 0;
  border-radius: 999px; stroke: #64748b;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border-top: 1px solid #fff;
  box-shadow: 0 3px 0 #cbd5e1, 0 4px 8px rgba(0, 0, 0, .06), inset 0 1px 1px #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
#topup-sheet .payment-method-card:active .chevron { transform: translateY(2px); box-shadow: 0 1px 0 #94a3b8; }

/* Semua tombol di tahap deposit (pilih metode / generate QRIS / buka checkout / batalkan)
   ikut gaya 3D extruded yang sama, biar konsisten sama kartu metode di atas. */
#topup-sheet .primary-button {
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  border-top: 1.5px solid rgba(255, 255, 255, .22);
  box-shadow: 0 5px 0 #000000, 0 10px 18px rgba(0, 0, 0, .32), inset 0 1px 1px rgba(255, 255, 255, .14);
  transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s cubic-bezier(.34, 1.56, .64, 1);
}
#topup-sheet .primary-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #000000, 0 3px 8px rgba(0, 0, 0, .32), inset 0 1px 3px rgba(0, 0, 0, .3);
}
#topup-sheet .secondary-button {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 0; border-top: 1.5px solid #fff; border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 4px 0 #cbd5e1, 0 8px 14px rgba(15, 23, 42, .08), inset 0 1px 1px #fff;
  backdrop-filter: none;
  transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s cubic-bezier(.34, 1.56, .64, 1);
}
#topup-sheet .secondary-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #94a3b8, 0 3px 8px rgba(15, 23, 42, .06), inset 0 1px 2px rgba(0, 0, 0, .04);
}
#topup-sheet .quick-amounts button {
  border: 0; border-top: 1px solid #fff; border-bottom: 1.5px solid #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155; font-weight: 700;
  box-shadow: 0 3px 0 #cbd5e1, 0 5px 8px rgba(15, 23, 42, .06), inset 0 1px 1px #fff;
  transition: transform .14s cubic-bezier(.34, 1.56, .64, 1), box-shadow .14s cubic-bezier(.34, 1.56, .64, 1);
}
#topup-sheet .quick-amounts button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #94a3b8, inset 0 1px 1px rgba(0, 0, 0, .04);
}

.topup-manual { display: grid; gap: 13px; }
.manual-amount-box, .manual-account-box {
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.027);
}
.manual-amount-box { display: flex; align-items: center; justify-content: space-between; }
.manual-amount-box span { color: var(--muted); font-size: 11px; }
.manual-amount-box strong { color: var(--primary); font-size: 16px; }
.manual-account-box > span:first-child { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.manual-account-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.manual-account-row strong { font-size: 15px; letter-spacing: .03em; }
.manual-account-box > span:last-child { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }

.manual-qris-box {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.027);
  text-align: center;
}
.manual-qris-box > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.manual-qris-box img { width: 100%; max-width: 260px; border-radius: 10px; background: #fff; padding: 8px; }

.admin-qris-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.admin-qris-upload img { max-width: 160px; border-radius: 8px; background: #fff; padding: 6px; }
.admin-qris-upload input[type="file"] { display: none; }
.admin-stars-rate-note { font-size: 11px; color: var(--muted); margin: -4px 0 0; }
.manual-upload-label { display: block; }
.manual-upload-label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.manual-upload-label input[type="file"] { display: none; }
.manual-upload-preview {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; border-radius: 14px; border: 1px dashed var(--line);
  color: var(--muted); font-size: 11px; overflow: hidden; cursor: pointer;
}
.manual-upload-preview img { width: 100%; max-height: 220px; object-fit: contain; }
.manual-actions { display: flex; gap: 10px; }
.manual-actions button { flex: 1; }
.manual-review { display: grid; gap: 12px; margin-top: 4px; }
.manual-review p { margin: 0; padding: 11px 13px; border-radius: 12px; color: var(--warning); background: rgba(255,191,105,.08); border: 1px solid rgba(255,191,105,.2); font-size: 11px; line-height: 1.5; }

.voucher-input-row { display: flex; gap: 8px; align-items: stretch; }
.voucher-input-row input {
  flex: 1; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); background: var(--surface-solid); outline: none; font: inherit;
  text-transform: uppercase; letter-spacing: .05em;
}
.voucher-input-row input:focus { border-color: rgba(28, 28, 30, .45); }
.voucher-result { display: block; margin-top: 8px; padding: 9px 12px; border-radius: 10px; font-size: 11px; line-height: 1.4; }
.voucher-result.success { color: #1C1C1E; background: rgba(28, 28, 30, .08); border: 1px solid rgba(28, 28, 30, .2); }
.voucher-result.error { color: var(--danger); background: rgba(255,109,126,.08); border: 1px solid rgba(255,109,126,.2); }

/* ===== Tombol Cek Voucher (sparkle button) ===== */
.vch-wrapper { position: relative; display: inline-block; flex-shrink: 0; }
.vch-btn {
  --border-radius: 14px;
  --padding: 3px;
  --transition: .35s;
  --button-color: #EFEFF0;
  --highlight-hue: 165deg;

  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  background-color: var(--button-color);
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.135),
    inset 0 2px 2px rgba(0, 0, 0, 0.09),
    inset 0 4px 4px rgba(0, 0, 0, 0.054),
    0 -1px 1px rgba(0,0,0,.05),
    0 -2px 2px rgba(0,0,0,.08);
  border: solid 1px rgba(0, 0, 0, 0.117);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: box-shadow var(--transition), border var(--transition), background-color var(--transition);
}
.vch-btn::before {
  content: ""; position: absolute;
  top: calc(0px - var(--padding)); left: calc(0px - var(--padding));
  width: calc(100% + var(--padding) * 2); height: calc(100% + var(--padding) * 2);
  border-radius: calc(var(--border-radius) + var(--padding));
  pointer-events: none;
  background-image: linear-gradient(0deg, #0004, #000a);
  z-index: -1;
  transition: box-shadow var(--transition), filter var(--transition);
  box-shadow: 1px 1px 1px #fff2, 2px 2px 2px #fff1, -1px -1px 1px #0002, -2px -2px 2px #0001;
}
.vch-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(0deg, #fff, hsl(var(--highlight-hue) 100% 70%), hsla(var(--highlight-hue),100%,70%,50%) 8%, transparent);
  opacity: 0;
  transition: opacity var(--transition), filter var(--transition);
}
.vch-letter {
  position: relative; display: inline-block !important; color: #fff8;
  margin: 0 !important; font-size: inherit !important; text-transform: none !important;
  transition: color var(--transition), text-shadow var(--transition), opacity var(--transition);
}
.vch-txt-1, .vch-txt-2 { display: block !important; }
.vch-svg {
  flex-shrink: 0; width: 15px; height: 15px; margin-right: 5px;
  fill: none; stroke: #d8dee8; stroke-width: 1.5;
  animation: vchFlicker 2s linear infinite; animation-delay: .5s;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.45));
  transition: stroke var(--transition), filter var(--transition);
}
@keyframes vchFlicker { 50% { opacity: .35; } }
.vch-txt-wrapper { position: relative; display: flex; align-items: center; height: 1.1em; min-width: 5.2em; }
.vch-txt-1, .vch-txt-2 { position: absolute; left: 0; white-space: nowrap; }
.vch-txt-2 { opacity: 0; }
.vch-btn.is-checking .vch-txt-1 { animation: vchOpacityAnim .3s ease-in-out forwards; }
.vch-btn.is-checking .vch-txt-2 { animation: vchOpacityAnim .3s ease-in-out reverse forwards; }
@keyframes vchOpacityAnim { 0% { opacity: 1; } 100% { opacity: 0; } }
.vch-btn.is-checking .vch-letter {
  animation: vchFocusedLetter 1s ease-in-out infinite;
  text-shadow: 0 0 1px hsla(var(--highlight-hue),100%,90%,90%);
}
@keyframes vchFocusedLetter {
  0%, 100% { filter: blur(0); }
  50% { color: #fff; text-shadow: 0 0 3px #fff8; }
}
.vch-btn:active::before, .vch-btn.is-checking::before {
  box-shadow: 0 -6px 10px -4px #fffa inset, 0 -12px 12px -6px hsla(var(--highlight-hue),100%,70%,80%) inset,
    1px 1px 1px #fff4, 2px 2px 2px #fff2, -1px -1px 1px #0002, -2px -2px 2px #0001;
}
.vch-btn:active::after, .vch-btn.is-checking::after { opacity: 1; mask-image: linear-gradient(0deg,#fff,transparent); filter: brightness(200%); }
.vch-btn:active, .vch-btn.is-checking { border-color: hsla(var(--highlight-hue),100%,80%,70%); background-color: hsla(var(--highlight-hue),50%,20%,.5); outline: none; }
.vch-btn:hover { border-color: hsla(var(--highlight-hue),100%,80%,40%); }
.vch-btn:hover::after { opacity: 1; mask-image: linear-gradient(0deg,#fff,transparent); }
.vch-btn:hover::before {
  box-shadow: 0 -6px 8px -4px #fffa inset, 0 -12px 12px -6px hsla(var(--highlight-hue),100%,70%,30%) inset,
    1px 1px 1px #fff2, 2px 2px 2px #fff1, -1px -1px 1px #0002, -2px -2px 2px #0001;
}
.vch-btn:hover .vch-svg { stroke: #fff; filter: drop-shadow(0 0 3px hsl(var(--highlight-hue) 100% 70%)); animation: none; }
.vch-letter:nth-child(1) { animation-delay: 0s; }
.vch-letter:nth-child(2) { animation-delay: .08s; }
.vch-letter:nth-child(3) { animation-delay: .16s; }
.vch-letter:nth-child(4) { animation-delay: .24s; }
.vch-letter:nth-child(5) { animation-delay: .32s; }
.vch-letter:nth-child(6) { animation-delay: .4s; }
.vch-letter:nth-child(7) { animation-delay: .48s; }
.vch-letter:nth-child(8) { animation-delay: .56s; }
.topup-result-icon.failed {
  border-color: rgba(255,109,126,.35);
  color: #ffd5db;
  background: rgba(255,109,126,.18);
}
#topup-result-title { font-size: 20px; color: var(--text); }
#topup-result-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
#topup-result-amount {
  display: inline-block;
  margin: 2px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 30, .25);
  color: var(--primary);
  background: rgba(28, 28, 30, .09);
  font-size: 15px;
  font-weight: 800;
}
.topup-result-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 11px 15px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 999px;
  color: #FFFFFF;
  background: rgba(28,28,30,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translateX(-50%);
  font-size: 11px;
  text-align: center;
  animation: toast-in .2s ease both;
}
.toast.error { border-color: rgba(255,109,126,.25); color: #ffc5cc; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.loading-overlay { position: fixed; z-index: 80; inset: 0; background: #F4F4F5; transition: opacity .4s ease; }
.loading-overlay.done { opacity: 0; pointer-events: none; }
.loading-poster { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lo-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); animation: lo-pulse 6s ease-in-out infinite; }
.lo-orb-1 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(28, 28, 30, 0.22) 0%, transparent 70%); top: -60px; left: -60px; }
.lo-orb-2 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(28, 28, 30, 0.18) 0%, transparent 70%); top: 30%; right: -50px; animation-delay: 1.5s; }
.lo-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(28,28,30,0.12) 0%, transparent 70%); bottom: 10%; left: -80px; animation-delay: 3s; }
@keyframes lo-pulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.lo-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(28, 28, 30, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 28, 30, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.lo-glow-top {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 2px;
  background: linear-gradient(90deg, transparent, #1C1C1E, #1C1C1E, #1C1C1E, transparent);
  box-shadow: 0 0 20px #1C1C1E, 0 0 40px rgba(28, 28, 30, 0.4);
  animation: lo-bar 3s ease-in-out infinite;
}
@keyframes lo-bar { 0%,100% { opacity: 0.7; width: 250px; } 50% { opacity: 1; width: 350px; } }
.lo-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: lo-fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes lo-fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.lo-eyebrow {
  display: flex; align-items: center; gap: 7px;
  background: rgba(28, 28, 30, 0.08); border: 1px solid rgba(28, 28, 30, 0.22);
  border-radius: 999px; padding: 4px 12px 4px 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #1C1C1E;
}
.lo-dot { width: 6px; height: 6px; border-radius: 50%; background: #1C1C1E; box-shadow: 0 0 6px #1C1C1E; animation: lo-blink 1.8s ease-in-out infinite; }
@keyframes lo-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.lo-brand-row { display: flex; align-items: center; gap: 12px; }
.lo-mascot {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #2A2A2E, #1C1C1E);
  border-radius: 50%; border: 2px solid rgba(28, 28, 30, 0.35);
  box-shadow: 0 0 18px rgba(28, 28, 30, 0.3); display: flex; align-items: center; justify-content: center;
  animation: lo-float 4s ease-in-out infinite;
}
@keyframes lo-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.lo-brand-name {
  font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1A1A1A 30%, #6E6E73 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(28, 28, 30, 0.5));
}
.lo-otp-display {
  background: linear-gradient(135deg, rgba(28, 28, 30, 0.1), rgba(28, 28, 30, 0.06));
  border: 1px solid rgba(28, 28, 30, 0.25);
  border-radius: 16px; padding: 14px 24px; text-align: center;
}
.lo-otp-code {
  font-size: 28px; font-weight: 700; letter-spacing: 0.15em; color: #1C1C1E;
  filter: drop-shadow(0 0 8px rgba(28, 28, 30, 0.6));
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lo-otp-label { font-size: 10px; color: rgba(0, 0, 0, 0.36); margin-top: 4px; }
.lo-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lo-services span {
  padding: 4px 10px; border-radius: 999px; font-size: 9px; font-weight: 600;
  background: rgba(0, 0, 0, 0.036); border: 1px solid rgba(0, 0, 0, 0.09);
  color: rgba(0, 0, 0, 0.45);
}
.lo-tagline {
  font-size: 13px; font-weight: 700; text-align: center; line-height: 1.4;
  background: linear-gradient(90deg, #6E6E73 20%, #1A1A1A 60%, #1A1A1A 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(28, 28, 30, 0.2));
}
.lo-floats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lo-float-num {
  position: absolute; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(28, 28, 30, 0.4); text-shadow: 0 0 8px rgba(28, 28, 30, 0.4);
  animation: lo-num-up linear infinite;
}
@keyframes lo-num-up { 0% { opacity:0; transform:translateY(0) scale(0.8); } 15% { opacity:0.5; } 85% { opacity:0.2; } 100% { opacity:0; transform:translateY(-100px) scale(1.05); } }

.channel-gate {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
}
.channel-gate-card {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow);
  text-align: center;
}
.channel-gate-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #E5484D;
}
.channel-gate-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.channel-gate-card p strong {
  color: var(--text);
}
.channel-gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.referral-limit-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(229, 72, 77, .12);
  color: #E5484D;
}
.referral-limit-icon svg { width: 24px; height: 24px; }

.captcha-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.023);
  cursor: pointer;
}
.captcha-checkbox-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.captcha-checkbox-row span { font-size: 13px; color: var(--text); font-weight: 600; }
.captcha-code-box {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.023);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--primary);
}
#captcha-code-input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-solid);
  outline: none;
  font: inherit;
  text-align: center;
  letter-spacing: 0.2em;
}
#captcha-code-input:focus { border-color: rgba(28, 28, 30, .45); }

.referral-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px 20px;
  background:
    radial-gradient(circle at 88% -8%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(160deg, #23232a 0%, #131316 55%, #050506 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #f4f4f5;
}
.referral-hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .85;
  background-image:
    radial-gradient(1.4px 1.4px at 14% 20%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.4px 1.4px at 76% 12%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1.4px 1.4px at 34% 82%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.4px 1.4px at 92% 60%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1.4px 1.4px at 55% 42%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.4px 1.4px at 20% 55%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.4px 1.4px at 66% 90%, rgba(255, 255, 255, .3), transparent);
}
.referral-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.referral-hero-copy .eyebrow { color: rgba(255, 255, 255, .5); }
.referral-hero-title { margin: 6px 0 0; font-size: 20px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #ffffff; text-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.referral-hero-desc { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: rgba(244, 244, 245, .6); max-width: 220px; }
.referral-hero-art { flex: 0 0 auto; width: 72px; height: 72px; filter: drop-shadow(0 8px 18px rgba(255, 255, 255, .18)); }
.referral-hero-art svg { width: 100%; height: 100%; }

.referral-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  margin: 20px 0 16px;
  padding: 14px 2px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.referral-hero-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 0 4px; position: relative; }
.referral-hero-stat + .referral-hero-stat::before { content: ""; position: absolute; left: -2px; top: 2px; bottom: 2px; width: 1px; background: rgba(255, 255, 255, .12); }
.referral-hero-stat-icon { width: 26px; height: 26px; display: grid; place-items: center; color: #ffffff; }
.referral-hero-stat-icon svg { width: 17px; height: 17px; }
.referral-hero-stat span { font-size: 9px; line-height: 1.3; color: rgba(244, 244, 245, .5); }
.referral-hero-stat strong { font-size: 12.5px; font-weight: 800; color: #ffffff; }

.referral-hero-note { position: relative; z-index: 1; margin: 0 0 16px; font-size: 11px; line-height: 1.55; color: rgba(244, 244, 245, .5); }

.referral-hero-admin-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  font-size: 11px;
  color: rgba(244, 244, 245, .65);
  flex-wrap: wrap;
}
.referral-hero-admin-tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b1120;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.referral-hero-admin-badge strong { margin-left: auto; color: #ffffff; font-size: 12px; }

.referral-hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; }
.referral-pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #0b1120;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.referral-pill-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.referral-pill-btn:active { transform: scale(.97); }

.referral-hero-locked { position: relative; z-index: 1; text-align: center; padding-top: 4px; }
.referral-hero-lock-icon { width: 40px; height: 40px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #ffffff; }
.referral-hero-locked strong { display: block; margin-bottom: 8px; font-size: 14px; color: #ffffff; }
.referral-hero-locked p { margin: 0 0 8px; font-size: 11.5px; line-height: 1.55; color: rgba(244, 244, 245, .55); }
.referral-hero-locked p strong { display: inline; color: #ffffff; }
.referral-hero-locked .referral-hero-actions { margin-top: 14px; }

.hidden { display: none !important; }

/* ===== DRONE ORDER BUTTON ===== */
.drone-btn {
  position: relative;
  width: 100%;
  height: 60px;
  padding-left: 66px;
  padding-right: 15px;
  border-radius: 12px;
  background: #61d4f1;
  transition: background-color 1s;
  cursor: pointer;
  border: 0;
  overflow: visible;
}
.drone-btn:before, .drone-btn:after {
  content: "";
  position: absolute;
  left: 5%;
  bottom: 100%;
  width: 14%;
  height: 5px;
  background: #3dc1da;
  transform: scaleX(0);
  transform-origin: 0 100%;
}
.drone-btn:after { left: 19%; width: 66%; }
.drone-btn.s--processing { background: #53e2c2; transition-delay: 4.6s; }
.drone-btn.s--processing:before, .drone-btn.s--processing:after {
  transform: scaleX(1);
  background: #36d09d;
}
.drone-btn.s--processing:before { transition: transform 0.6s 1.4s, background-color 1s 4.6s; }
.drone-btn.s--processing:after  { transition: transform 2.417s 2.4s, background-color 1s 4.6s; }
.drone-btn.s--reverting { background: #61d4f1; transition: background-color 0.5s 0.96s; }
.drone-btn.s--reverting:before, .drone-btn.s--reverting:after { opacity: 0; }
.drone-btn.s--success { background: linear-gradient(135deg,#22c55e,#16a34a) !important; transition: background 0.4s !important; box-shadow: 0 10px 30px rgba(34,197,94,0.3) !important; }
.drone-btn.s--success .drone-btn__text--step-4 { color: #fff; }
.drone-btn svg { overflow: visible; fill: none; stroke-linejoin: round; }
.drone-btn-transitionend-listener { transition: opacity 6.6s; }
.drone-btn.s--processing .drone-btn-transitionend-listener { opacity: 0; }
.drone-btn__revert-line {
  position: absolute; left: 5%; bottom: 100%;
  width: 80%; height: 5px;
  background: #53e2c2;
  transform-origin: 0 50%; opacity: 0;
}
.drone-btn.s--reverting .drone-btn__revert-line { opacity: 1; transform: scaleX(0); transition: transform 0.864s; }
.drone-btn__drone-cont { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.drone-btn__drone-cont--takeoff { z-index: 10; opacity: 0; }
.drone-btn.s--processing .drone-btn__drone-cont--takeoff { opacity: 1; transform: translateY(-65px); transition: transform 0.8s, opacity 0.2s; transition-delay: 1.2s; z-index: 10; }
.drone-btn.s--processing .drone-btn__drone-cont--shift-x { transition: transform 2.6s 2.4s; transform: translateX(213px); }
.drone-btn.s--processing .drone-btn__drone-cont--landing { transform: translateY(22px); transition: transform 0.3s 5s; }
.drone-btn__drone {
  position: absolute; left: 14px; top: -12px;
  width: 60px; height: 50px;
  stroke: #003739; stroke-width: 2px; fill: none;
}
@keyframes droneTiltAnim {
  8%,24% { transform: rotate(0); }
  35%,70% { transform: rotate(8deg); }
  85% { transform: rotate(-4deg); }
  95%,100% { transform: rotate(0); }
}
.drone-btn.s--processing .drone-btn__drone { transform-origin: 50% 100%; animation: droneTiltAnim 3.8s 1.2s; }
.drone-btn.s--processing .drone-btn__drone-leaving { transform: translate(150px,-150px) rotate(20deg) scale(0.3); opacity: 0; transition: transform 1.1s 5.5s, opacity 0.55s 6.05s; }
.drone-btn__drone-arm { --rotation:0deg; transform-origin:68px 56px; transform:rotate(var(--rotation)); }
.drone-btn__drone-arm--2 { transform:scaleX(-1) rotate(var(--rotation)); }
.drone-btn.s--processing .drone-btn__drone-arm { --rotation:25deg; transition:transform 0.3s 5.2s; }
.drone-btn__drone-green { fill: #61d4f1; }
.drone-btn.s--processing .drone-btn__drone-green { fill: #53e2c2; transition: fill 1s 4.6s; }
.drone-btn__drone-yellow { fill: #ecb400; }
.drone-btn__drone-package { stroke-width: 4px; }
@keyframes droneRevertAnim {
  40%,45% { transform:translate(-426px,0); }
  75% { transform:translate(-426px,-100px); }
  100% { transform:translate(-426px,100px); }
}
.drone-btn.s--reverting .drone-btn__drone-package { opacity:0; transition:opacity 0s 2s; animation:droneRevertAnim 2s; }
.drone-btn__circle {
  position: absolute; left: 26px; top: 50%;
  width: 38px; height: 38px;
  margin-top: -19px; border-radius: 50%;
  background: #3dc1da;
}
.drone-btn.s--processing .drone-btn__circle { background-color: #53e2c2; transition: background-color 1s; transition-delay: 4.6s; }
.drone-btn.s--reverting .drone-btn__circle { background-color: #3dc1da; transition: background-color 0.5s 0.96s; }
.drone-btn__circle-inner { overflow:hidden; position:absolute; left:0; top:0; display:flex; justify-content:center; align-items:center; width:100%; height:100%; border-radius:inherit; }
.drone-btn__circle-package { width:12px; height:16px; stroke:#fff; stroke-width:3px; stroke-linecap:round; }
.drone-btn.s--processing .drone-btn__circle-package { transform:translateY(-65px); transition:transform 0.8s 1.2s; }
.drone-btn.s--reverting .drone-btn__circle-package { transform:translateY(0); transition:transform 0.16s 1.6s; }
.drone-btn__circle-grabbers { --grabY:0px; --grabRotate:0; position:absolute; left:0; top:0; width:100%; height:100%; }
.drone-btn__circle-grabbers:before, .drone-btn__circle-grabbers:after { content:""; position:absolute; right:4px; top:-11px; width:12px; height:7px; border:2px solid #000; border-left:none; border-bottom:none; transform:translateY(var(--grabY)) rotate(var(--grabRotate)); transition:transform 0.8s; }
.drone-btn__circle-grabbers:before { right:auto; left:4px; transform:translateY(var(--grabY)) scaleX(-1) rotate(var(--grabRotate)); }
@keyframes droneGrabAnim {
  40%,59.999% { --grabY:15px; --grabRotate:55deg; }
  60%,100% { --grabY:-55px; --grabRotate:55deg; }
}
.drone-btn.s--processing .drone-btn__circle-grabbers { animation:droneGrabAnim 2s forwards; }
.drone-btn__circle-progress { position:absolute; left:0; top:0; width:100%; height:100%; stroke:#fff; stroke-width:2px; }
.drone-btn__circle-progress-line { stroke-dasharray:125.68,125.68; stroke-dashoffset:125.68; }
.drone-btn.s--processing .drone-btn__circle-progress-line { stroke-dashoffset:0; transition:all 0.5s 4.9s; }
.drone-btn.s--reverting .drone-btn__circle-progress-line { stroke-dashoffset:125.68; transition:all 0.5s 0.96s; }
.drone-btn__circle-progress-checkmark { stroke-dasharray:21.21,21.21; stroke-dashoffset:21.21; }
.drone-btn.s--processing .drone-btn__circle-progress-checkmark { stroke-dashoffset:0; transition:all 0.5s 4.9s; }
.drone-btn.s--reverting .drone-btn__circle-progress-checkmark { stroke-dashoffset:21.21; transition:all 0.5s 0.96s; }
.drone-btn__text-fields { position:relative; width:100%; height:100%; color:#fff; font-size:15px; font-weight:700; letter-spacing:0.5px; pointer-events:none; }
.drone-btn__text { position:absolute; left:0; top:0; display:flex; justify-content:center; align-items:center; width:100%; height:100%; opacity:0; transform:translateY(20px); will-change:opacity,transform; pointer-events:none; white-space:nowrap; }
@keyframes droneTextAnim { 20%,80% { opacity:1; transform:translateY(0); } 100% { opacity:0; transform:translateY(-20px); } }
.drone-btn__text--step-0 { opacity:1; transform:translateY(0); }
.drone-btn.s--processing .drone-btn__text { transition:all 0.4s; }
.drone-btn.s--processing .drone-btn__text--step-0 { opacity:0; transform:translateY(-20px); }
.drone-btn.s--processing .drone-btn__text--step-1 { animation:droneTextAnim 2s 0s; }
.drone-btn.s--processing .drone-btn__text--step-2 { animation:droneTextAnim 2s 1.6s; }
.drone-btn.s--processing .drone-btn__text--step-3 { animation:droneTextAnim 2s 3.2s; }
.drone-btn.s--processing .drone-btn__text--step-4 { transition-delay:4.8s; transform:translateY(0); opacity:1; }
.drone-btn.s--reverting .drone-btn__text--step-0 { opacity:1; transform:translateY(0); transition:all 0.4s 1s; }
.drone-btn.s--reverting .drone-btn__text--step-4 { opacity:0; transform:translateY(20px); transition:all 0.4s 0.8s; }
.drone-btn__text-dots { letter-spacing:-0.5px; font-size:18px; }
@keyframes droneDotAnim { 10%,90% { opacity:0; } 40%,60% { opacity:1; } }
.drone-btn__text-dots span { opacity:0; animation:droneDotAnim 1.2s 0.4s infinite; }
.drone-btn__text-dots:before { content:"."; opacity:0; animation:droneDotAnim 1.2s infinite; }
.drone-btn__text-dots:after  { content:"."; opacity:0; animation:droneDotAnim 1.2s 0.8s infinite; }

@media (max-width: 390px) {
  .app-shell { padding-inline: 14px; }
  .hero-card { min-height: 265px; }
  .hero-copy { width: 78%; }
  .hero-orbit { right: -70px; }
  .service-grid.compact { grid-template-columns: repeat(4, minmax(68px, 1fr)); overflow-x: auto; }
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.018);
}
.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
}
.admin-stat-card strong {
  font-size: 14px;
  color: var(--text);
}
.admin-stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}
.admin-tool {
  padding: 13px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.018);
}
.compact-heading {
  margin: 0 0 12px;
}
.admin-user-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.admin-user-search input,
.admin-balance-form input,
.admin-balance-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(0,0,0,.05);
  font-size: 12px;
}
.admin-balance-form input {
  min-height: 44px;
  padding: 0 12px;
}
.admin-balance-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
  font-family: inherit;
}

.admin-payment-settings { display: grid; gap: 10px; margin-bottom: 12px; }
.admin-payment-row {
  padding: 12px 13px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.018);
}
.admin-payment-row-header { display: flex; align-items: center; justify-content: space-between; }
.admin-payment-row-header strong { font-size: 12px; color: var(--text); }
.admin-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.admin-toggle input { width: 34px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.admin-toggle span { font-size: 10px; font-weight: 800; color: var(--muted); min-width: 24px; }
.admin-payment-row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.admin-payment-row-fields input {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  color: var(--text); background: rgba(0,0,0,.05); font-size: 11px;
}

.admin-voucher-methods { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 2px; }
.admin-voucher-methods label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.admin-voucher-methods input { accent-color: var(--primary); }
.admin-voucher-list { display: grid; gap: 10px; margin-top: 12px; }
.admin-voucher-row {
  padding: 12px 13px; border-radius: 13px; display: grid; gap: 4px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.018);
}
.admin-voucher-row.inactive { opacity: .5; }
.admin-voucher-row-header { display: flex; align-items: center; justify-content: space-between; }
.admin-voucher-row-header strong { font-size: 13px; color: var(--text); letter-spacing: .03em; }
.admin-voucher-row span { font-size: 10px; color: var(--muted); }
.danger-link {
  justify-self: start; margin-top: 4px; padding: 0; border: none; background: none;
  color: var(--danger); font-size: 10px; font-weight: 700; cursor: pointer;
}
.admin-user-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.admin-user-option,
.admin-selected-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.023);
}
.admin-user-option {
  cursor: pointer;
}
.admin-user-option strong,
.admin-selected-user strong {
  display: block;
  font-size: 12px;
}
.admin-user-option span,
.admin-selected-user span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.admin-balance-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.admin-balance-form.hidden { display: none; }
.admin-file-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(0,0,0,.05);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.admin-file-picker input { display: none; }
.admin-image-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.023);
}
.admin-image-preview.hidden { display: none; }
.admin-cropper {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.144);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.072);
  cursor: grab;
  touch-action: none;
}
.admin-cropper:active { cursor: grabbing; }
.admin-cropper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(28,28,30,.45);
  border-radius: inherit;
  pointer-events: none;
}
.admin-cropper img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.admin-cropper-controls {
  display: grid;
  gap: 8px;
  width: 100%;
}
.admin-cropper-controls span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.admin-cropper-controls input { min-height: 28px; padding: 0; }
.admin-balance-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.admin-balance-mode button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.023);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}
.admin-balance-mode button.active {
  color: #FFFFFF;
  border-color: transparent;
  background: var(--primary);
}
.admin-balance-mode button[data-admin-balance-mode="subtract"].active {
  color: #fff;
  background: var(--danger);
}
.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}
.admin-apprem-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.023);
}
.admin-apprem-card.inactive { opacity: .62; }
.admin-apprem-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-apprem-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.045);
}
.admin-apprem-head strong { display: block; font-size: 13px; }
.admin-apprem-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-apprem-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.admin-apprem-stock-form {
  display: grid;
  gap: 8px;
}
.admin-apprem-stock-form.hidden { display: none; }

@media (max-width: 390px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-user-search { grid-template-columns: 1fr; }
  .admin-form-actions,
  .admin-apprem-actions { grid-template-columns: 1fr; }
}

/* === Sutik Sosmed === */

.smm-view.hidden { display: none; }

.smm-category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.smm-category-bar::-webkit-scrollbar { display: none; }

.smm-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.smm-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.smm-platform-card:hover { border-color: var(--primary); background: var(--surface-soft); }
.smm-platform-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}
.smm-platform-logo-fallback {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.smm-platform-card strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.smm-platform-card span {
  font-size: 10px;
  color: var(--muted);
}

.smm-service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.smm-service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.smm-service-card:hover { border-color: var(--primary); background: var(--surface-soft); }
.smm-service-card .smm-service-main { flex: 1; min-width: 0; }
.smm-service-card .smm-service-main strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smm-service-cat {
  display: block;
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
}
.smm-service-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.smm-service-price {
  text-align: right;
  white-space: nowrap;
}
.smm-service-price strong {
  display: block;
  font-size: 13px;
  color: var(--primary);
}
.smm-service-price span {
  font-size: 11px;
  color: var(--muted);
}

.smm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.smm-form label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.smm-form input,
.smm-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  resize: vertical;
}
.smm-form input:focus,
.smm-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.smm-minmax {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* === Topup Telegram Stars - card === */
.stars-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.stars-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.stars-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  box-shadow: 0 2px 0 #b45309, 0 3px 6px rgba(245, 158, 11, .35), inset 0 1px 2px rgba(255, 255, 255, .5);
}
.stars-card-header h3 {
  margin: 0;
  font-size: 17px;
}
.stars-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.stars-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.stars-field-avatar,
.stars-field-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  overflow: hidden;
  font-size: 15px;
}
.stars-field-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.stars-field-icon {
  color: #fff;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  box-shadow: 0 2px 0 #b45309, 0 3px 6px rgba(245, 158, 11, .3), inset 0 1px 2px rgba(255, 255, 255, .5);
}
.stars-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
}
.stars-field input:focus {
  outline: none;
}
.stars-field-link {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  cursor: pointer;
  white-space: nowrap;
}

.stars-recipient-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 13px;
  margin-top: -6px;
}
.stars-recipient-preview.not-found {
  color: var(--danger, #e5484d);
}
.stars-recipient-preview-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}
.stars-recipient-preview-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.stars-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stars-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f7 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 4px 8px rgba(0, 0, 0, .04);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.stars-preset-chip svg {
  color: #f59e0b;
  flex-shrink: 0;
}
.stars-preset-chip.active svg {
  color: #fff;
}
.stars-preset-chip.active {
  border-color: #d97706;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 3px 0 #b45309, 0 4px 10px rgba(245, 158, 11, .35);
}

.stars-buy-button {
  margin-top: 4px;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 0 #b45309, 0 8px 16px rgba(245, 158, 11, .35);
  cursor: pointer;
}
.stars-buy-button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #b45309, 0 5px 10px rgba(245, 158, 11, .3);
}
.stars-buy-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* === Confirm popup === */
.stars-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, .55);
}
.stars-confirm-modal {
  position: fixed;
  z-index: 96;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 360px);
  background: var(--surface);
  border-radius: 22px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.stars-confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.stars-confirm-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  box-shadow: 0 6px 0 #b45309, 0 10px 20px rgba(245, 158, 11, .4), inset 0 3px 5px rgba(255, 255, 255, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.stars-confirm-badge-star {
  font-size: 26px;
  line-height: 1;
}
.stars-confirm-badge-qty {
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}
.stars-confirm-modal h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.stars-confirm-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.stars-confirm-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  margin-bottom: 18px;
  text-align: left;
}
.stars-confirm-rows div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.stars-confirm-rows span {
  color: var(--muted);
}
.stars-confirm-actions {
  display: flex;
  gap: 10px;
}
.stars-confirm-cancel-btn,
.stars-confirm-submit-btn {
  flex: 1;
  padding: 13px;
  border-radius: 14px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.stars-confirm-cancel-btn {
  background: var(--surface-soft);
  color: var(--text);
}
.stars-confirm-submit-btn {
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 0 #b45309, 0 6px 12px rgba(245, 158, 11, .35);
}
.stars-confirm-submit-btn:disabled {
  opacity: .75;
  cursor: not-allowed;
}
.stars-confirm-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  animation: stars-spin .7s linear infinite;
}
@keyframes stars-spin {
  to { transform: rotate(360deg); }
}

/* === Success sheet - overlay sendiri, TANPA backdrop-filter/blur sama
   sekali (beda dari .bottom-sheet bawaan yang pakai blur, biar gak numpuk
   jadi keliatan nyangkut buram di WebKit/iOS). === */
.stars-success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, .55);
}
.stars-success-sheet {
  position: fixed;
  z-index: 96;
  left: 50%;
  bottom: 0;
  width: min(100%, 620px);
  padding: 10px 18px max(22px, env(safe-area-inset-bottom));
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
  animation: sheet-in .25s ease both;
}
.stars-success-icon {
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #34d399 0%, #10b981 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 #047857, 0 10px 20px rgba(16, 185, 129, .35);
}
.stars-success-title {
  text-align: center;
  margin: 0 0 16px;
}

.smm-price-summary {
  padding: 12px 16px;
  background: var(--surface-soft);
  border-radius: 12px;
  font-size: 13px;
}
.smm-price-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.smm-price-summary div strong:last-child {
  color: var(--primary);
  font-size: 16px;
}
.smm-price-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.detail-summary.compact {
  padding: 10px 14px;
  font-size: 12px;
}
.detail-summary.compact div {
  padding: 4px 0;
}

.detail-summary div span {
  word-break: break-word;
  text-align: right;
  max-width: 60%;
}

.product-menu { display: flex; flex-direction: column; gap: 14px; }

/* Kartu 3D extruded (claymorphism) - bevel putih di atas, "landasan" abu-abu di bawah
   yang bikin efek nombol/nempel keluar, plus micro-animation pas ditekan (translateY). */
.product-menu-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1.5px solid #fff;
  border-left: 1px solid rgba(255, 255, 255, .8);
  border-right: 1px solid rgba(203, 213, 225, .4);
  border-bottom: 2px solid #cbd5e1;
  border-radius: 22px; padding: 14px;
  text-align: left; cursor: pointer;
  box-shadow: 0 6px 0 #cbd5e1, 0 12px 18px rgba(15, 23, 42, .08), inset 0 2px 1px #fff;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), box-shadow .16s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
}
.product-menu-card:active {
  transform: translateY(4px) scale(.99);
  box-shadow: 0 2px 0 #94a3b8, 0 4px 10px rgba(15, 23, 42, .08), inset 0 2px 2px rgba(0, 0, 0, .04);
}
.product-menu-icon {
  position: relative;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 17px; flex-shrink: 0; overflow: hidden;
  border-top: 1.5px solid rgba(255, 255, 255, .55);
  border-left: 1px solid rgba(255, 255, 255, .3);
  transition: transform .16s ease;
}
.product-menu-card:active .product-menu-icon { transform: scale(.95); }
.product-menu-icon::before {
  content: ""; position: absolute; inset: 0 0 52% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .48) 0%, rgba(255, 255, 255, .04) 100%);
  border-radius: 17px 17px 50% 50% / 17px 17px 22px 22px;
  pointer-events: none;
}
.product-menu-icon svg { width: 26px; height: 26px; color: #fff; position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.product-menu-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; position: relative; z-index: 1; }

/* Warna tiap kategori - urutannya harus sama persis dengan urutan kartu di HTML. */
.product-menu-icon.tile-blue { background: linear-gradient(145deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%); box-shadow: 0 5px 0 #1e40af, 0 8px 14px rgba(37, 99, 235, .4), inset 0 3px 5px rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(0, 0, 0, .25); }
.product-menu-icon.tile-rose { background: linear-gradient(145deg, #fb7185 0%, #f43f5e 50%, #e11d48 100%); box-shadow: 0 5px 0 #be123c, 0 8px 14px rgba(244, 63, 94, .4), inset 0 3px 5px rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(0, 0, 0, .25); }
.product-menu-icon.tile-purple { background: linear-gradient(145deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%); box-shadow: 0 5px 0 #6d28d9, 0 8px 14px rgba(139, 92, 246, .4), inset 0 3px 5px rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(0, 0, 0, .25); }
.product-menu-icon.tile-teal { background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 55%, #0f766e 100%); box-shadow: 0 5px 0 #115e59, 0 8px 14px rgba(13, 148, 136, .4), inset 0 3px 5px rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(0, 0, 0, .25); }
.product-menu-icon.tile-indigo { background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%); box-shadow: 0 5px 0 #1e3a8a, 0 8px 14px rgba(29, 78, 216, .42), inset 0 3px 5px rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(0, 0, 0, .25); }
.product-menu-icon.tile-gold { background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%); box-shadow: 0 5px 0 #b45309, 0 8px 14px rgba(245, 158, 11, .42), inset 0 3px 5px rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(0, 0, 0, .25); }

.product-menu-card div { flex: 1; min-width: 0; }
.product-menu-card strong { display: block; font-size: 15.5px; font-weight: 700; color: #0f172a; letter-spacing: -.01em; margin-bottom: 2px; }
.product-menu-card span { font-size: 12px; color: #64748b; line-height: 1.4; }
.product-menu-card .chevron {
  width: 30px; height: 30px; padding: 7px; box-sizing: border-box; flex-shrink: 0;
  border-radius: 999px; stroke: #64748b;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border-top: 1px solid #fff;
  box-shadow: 0 3px 0 #cbd5e1, 0 4px 8px rgba(0, 0, 0, .06), inset 0 1px 1px #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-menu-card:active .chevron { transform: translateY(2px); box-shadow: 0 1px 0 #94a3b8; }

.support-pill {
  margin-top: 16px; padding: 13px 14px; border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1.5px solid #fff; border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 5px 0 #cbd5e1, 0 9px 16px rgba(15, 23, 42, .06), inset 0 1px 2px #fff;
}
.support-pill-left { display: flex; align-items: center; gap: 10px; }
.support-pill-avatar {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  border-top: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 3px 0 #1d4ed8, 0 5px 10px rgba(37, 99, 235, .35);
}
.support-pill-text { font-size: 12.5px; font-weight: 600; color: #1e293b; }
.support-pill-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #2563eb; text-decoration: none;
  background: #fff; border: 1px solid #f1f5f9;
  box-shadow: 0 3px 0 #cbd5e1, 0 4px 8px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.support-pill-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #cbd5e1; }

.glass-card {
  background: rgba(0, 0, 0, 0.027);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.135), inset 0 -1px 0 rgba(0,0,0,0.2), 0 10px 30px -10px rgba(0,0,0,0.5);
}
.glass-card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.glass-card-hover:active { transform: scale(0.97); }
.mesh-bg {
  background: radial-gradient(circle at 0% 0%, rgba(28, 28, 30, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.04) 0%, transparent 50%);
}
.home-header { display: flex; align-items: center; gap: 12px; padding: 0 4px; margin-bottom: 16px; }
.home-header-avatar { position: relative; }
.home-header-avatar::before {
  content: ''; position: absolute; inset: -6px;
  background: linear-gradient(135deg, #1C1C1E, #6E6E73);
  border-radius: 50%; opacity: 0.35; filter: blur(10px);
}
.home-header-avatar img { position: relative; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0, 0, 0, 0.135); }
.home-header-info .label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.home-header-info .name { font-size: 18px; font-weight: 700; color: #1A1A1A; margin-top: 2px; }
.home-quick-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.home-quick-actions a, .home-quick-actions button {
  padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.027); backdrop-filter: blur(16px);
  color: #1A1A1A; font-size: 12px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.home-balance { padding: 24px; position: relative; overflow: hidden; margin-bottom: 20px; }
.home-balance::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(28, 28, 30, 0.06); filter: blur(40px);
}
.home-balance .balance-label { font-size: 11px; font-weight: 500; color: rgba(0, 0, 0, 0.45); letter-spacing: 0.5px; }
.home-balance .balance-amount { font-size: 28px; font-weight: 800; color: #1A1A1A; margin: 4px 0; letter-spacing: -0.5px; }
.home-balance .balance-note { font-size: 13px; color: rgba(0, 0, 0, 0.36); display: flex; align-items: center; gap: 6px; }
.home-balance .balance-note svg { width: 16px; height: 16px; stroke: #3C3C43; }
.home-balance-btn {
  margin-top: 16px; padding: 12px 28px; border-radius: 999px; border: 0;
  background: #1C1C1E; color: #FFFFFF; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(28, 28, 30, 0.2);
}
.home-hero { padding: 28px; position: relative; overflow: hidden; margin-bottom: 24px; min-height: 280px; }
.home-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.03;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 30px 30px;
}
.home-hero .hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; position: relative; z-index: 1; }
.home-hero .hero-pill {
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(0, 0, 0, 0.045); border: 1px solid rgba(0, 0, 0, 0.09);
  color: #3C3C43; display: flex; align-items: center; gap: 6px;
}
.home-hero .hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #1C1C1E; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.home-hero .hero-pill.muted { color: rgba(0, 0, 0, 0.45); }
.home-hero .hero-pill.muted b { color: #3C3C43; }
.home-hero h2 { font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; color: #1A1A1A; margin-bottom: 12px; position: relative; z-index: 1; }
.home-hero h2 .gradient-text {
  background: linear-gradient(135deg, #1C1C1E, #3C3C43);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.home-hero p { font-size: 14px; color: rgba(0, 0, 0, 0.45); line-height: 1.6; margin-bottom: 20px; position: relative; z-index: 1; }
.home-hero-btn {
  padding: 14px 32px; border-radius: 999px; border: 0;
  background: #1C1C1E; color: #FFFFFF; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(28, 28, 30, 0.25);
  position: relative; z-index: 1;
}
.home-hero-btn svg { width: 18px; height: 18px; stroke: #FFFFFF; stroke-width: 2; }
.home-hero-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.leaderboard-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 999px;
  background: linear-gradient(160deg, rgba(28,28,30,0.08), rgba(28,28,30,0.02));
  border: 1px solid rgba(28,28,30,0.25);
  color: #1C1C1E; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(28,28,30,0.12), inset 0 1px 0 rgba(0, 0, 0, 0.108);
  transition: transform .2s ease, box-shadow .2s ease;
}
.leaderboard-btn svg { width: 20px; height: 20px; }
.leaderboard-btn:active { transform: scale(.93); }
.leaderboard-btn:hover { box-shadow: 0 10px 26px -6px rgba(28,28,30,0.18), inset 0 1px 0 rgba(0, 0, 0, 0.144); }
.home-orbit { position: absolute; top: 20px; right: -20px; width: 200px; height: 200px; z-index: 0; }
.home-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.045); animation: spin-slow 20s linear infinite; }
.home-orbit .ring-inner { position: absolute; inset: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.072); animation: spin-slow 15s linear infinite reverse; }
.home-orbit .orb { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #1C1C1E; box-shadow: 0 0 12px rgba(28, 28, 30, 0.4); top: 25%; left: 0; }
.home-orbit .hash-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 100px; height: 100px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.027); border: 2px solid rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(20px); box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.home-orbit .hash-box span { font-size: 48px; font-weight: 800; color: #3C3C43; opacity: 0.8; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.home-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.home-section-header .eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: rgba(0, 0, 0, 0.36); margin-bottom: 4px; display: block; }
.home-section-header h2 { font-size: 22px; font-weight: 700; color: #1A1A1A; }
.home-section-header .see-all { font-size: 13px; font-weight: 600; color: #3C3C43; background: transparent; border: 0; cursor: pointer; }
.home-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.home-service-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; cursor: pointer;
}
.home-service-item .icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  padding: 10px; background: rgba(0, 0, 0, 0.027); border: 1px solid rgba(0, 0, 0, 0.072);
  backdrop-filter: blur(16px); transition: transform 0.2s;
}
.home-service-item:active .icon-wrap { transform: scale(1.1); }
.home-service-item .icon-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.home-service-item strong { font-size: 13px; font-weight: 600; color: #1A1A1A; text-align: center; }

.leaderboard-list { display: grid; gap: 10px; min-width: 0; max-width: 100%; }
.leaderboard-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.072);
  background: rgba(0, 0, 0, 0.027);
  backdrop-filter: blur(16px);
  min-width: 0; max-width: 100%; overflow: hidden; box-sizing: border-box;
}
.leaderboard-row.top-rank {
  border-color: rgba(255,209,102,0.3);
  background: linear-gradient(120deg, rgba(255,209,102,0.1), rgba(0, 0, 0, 0.018));
  box-shadow: 0 8px 20px -8px rgba(255,209,102,0.15);
}
.leaderboard-rank { width: 28px; flex-shrink: 0; text-align: center; font-size: 16px; font-weight: 800; color: var(--muted); }
.leaderboard-row.top-rank .leaderboard-rank { font-size: 20px; }
.leaderboard-avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: #FFFFFF; color: #1A1A1A; font-weight: 900; font-size: 14px;
}
.leaderboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leaderboard-avatar-frame { position: relative; width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; }
.leaderboard-avatar-frame-border { position: absolute; inset: 0; pointer-events: none; }
.leaderboard-avatar-frame-border svg { width: 100%; height: 100%; display: block; }
.leaderboard-avatar.top1 { position: relative; width: 34px; height: 34px; border-radius: 50%; z-index: 1; }
.leaderboard-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.leaderboard-info strong { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-info span { font-size: 10px; color: var(--muted); }
.leaderboard-amount { flex-shrink: 0; font-size: 13px; font-weight: 800; color: #1C1C1E; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
