/* ==================================================
   Theme tokens / root variables
   ================================================== */:root {
  --bg: #101922;
  --bg-soft: #131f2b;
  --surface: #172431;
  --surface-2: #1d2b39;
  --surface-3: #223241;
  --line: #263746;
  --line-soft: rgba(255, 255, 255, .055);
  --text: #edf4fb;
  --muted: #93a6b8;
  --muted-2: #6f8294;
  --yellow: #ffc52f;
  --yellow-2: #f2b722;
  --green: #25d366;
  --blue: #2aa9ee;
  --red: #ff6464;
  --orange: #ff7043;
  --shadow: 0 18px 46px rgba(0, 0, 0, .38);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 17px;
  --bottom-nav-height: 70px;
  --bottom-nav-offset: 12px;
  --bottom-nav-gap: 6px;
  --bottom-nav-pad: 6px;
  --bottom-nav-glass-bg: rgba(7, 15, 30, 0.52);
  --bottom-nav-glass-bg-fallback: rgba(7, 15, 30, 0.86);
  --bottom-safe-space: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px) + 42px);
  --app-page-gap: 16px;
  --app-card-gap: 12px;
  --app-section-title-size: 19px;
}

/* ==================================================
   Base / reset / typography / RTL
   ================================================== */* { box-sizing: border-box; }
html,
body {
  min-height: 100%;
  min-height: 100dvh;
}
html { background: #05080c; }
body.app-body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -8%, rgba(109, 58, 122, .22), transparent 34%),
    linear-gradient(180deg, #0c141d 0%, var(--bg) 38%, #111b25 100%);
  direction: rtl;
  overflow-x: hidden;
  font-family: "Tajawal", "Noto Kufi Arabic", "Noto Sans Arabic", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.app-body.lang-ltr {
  direction: ltr;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button {
  border: 0;
  background: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.bg-orb { display: none; }

/* ==================================================
   App shell / header / search
   ================================================== */.app-root {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px var(--bottom-safe-space);
  background: linear-gradient(180deg, rgba(16, 25, 34, .98) 0%, rgba(17, 27, 37, .99) 100%);
  overflow-x: hidden;
}

.app-root::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .025) 50%, transparent 100%),
    radial-gradient(circle at 50% 0, rgba(255, 197, 47, .045), transparent 36%);
}

.app-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  margin-bottom: 22px;
  direction: ltr;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  direction: ltr;
}

.brand-mark {
  width: 58px;
  min-width: 58px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  align-content: center;
  color: #fff;
  letter-spacing: 1.4px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark span {
  display: grid;
  place-items: center;
  min-height: 14px;
  background: #f4f7fb;
  color: #111820;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.brand-title {
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 3px;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.balance-chip {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  justify-self: end;
  min-height: 42px;
  padding: 0 8px 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
    rgba(9, 15, 22, .88);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 12px 30px rgba(0, 0, 0, .34);
  backdrop-filter: none;
  cursor: pointer;
  transform: translateZ(0);
  transition: border-color .18s ease, background-color .18s ease, transform .16s ease, box-shadow .18s ease, color .18s ease, opacity .18s ease;
}

.balance-chip:hover {
  border-color: rgba(37, 211, 102, .24);
  background:
    radial-gradient(circle at 92% 50%, rgba(37, 211, 102, .16), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018)),
    rgba(9, 15, 22, .90);
}

.balance-chip-value {
  font-size: 15px;
  font-weight: 900;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.balance-plus {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .48), transparent 28%),
    linear-gradient(145deg, #2af073 0%, #16c85d 58%, #0fad50 100%);
  color: transparent;
  font-size: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 8px 18px rgba(37, 211, 102, .28);
  line-height: 1;
}

.balance-plus::before,
.balance-plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: #062414;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22);
}

.balance-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.app-main,
.page-shell,
.content-view {
  position: relative;
  z-index: 2;
}

.page-shell {
  display: grid;
  gap: 16px;
}

.search-wrap {
  display: block;
}

.search-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 22px;
  background: var(--surface-2);
  color: var(--text);
}

.search-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #7f91a4;
  line-height: 1;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.search-bar input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.search-bar input::placeholder { color: #718294; }
.content-card { padding: 0; background: transparent; border: 0; }
.content-view {
  min-height: 440px;
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .18s ease, transform .20s ease;
  will-change: opacity, transform;
}

.content-view.is-transitioning {
  opacity: .54;
  transform: translateY(7px) scale(.994);
}

.content-view.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-root[data-navigation-direction="back"] .content-view.is-transitioning {
  transform: translateY(-5px) scale(.996);
}

.app-root[data-navigation-state="loading"] .nav-item,
.app-root[data-navigation-state="loading"] [data-route-button],
.app-root[data-navigation-state="loading"] [data-open-category],
.app-root[data-navigation-state="loading"] [data-open-service],
.app-root[data-navigation-state="loading"] [data-open-order] {
  cursor: progress;
}

.content-view.is-soft-loading::after {
  content: "";
  position: fixed;
  top: max(76px, env(safe-area-inset-top, 0px) + 64px);
  left: 50%;
  z-index: 30;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  box-shadow: 0 0 18px rgba(255, 197, 47, .35);
  animation: routePulse .72s ease-in-out infinite;
  pointer-events: none;
}

/* ==================================================
   Auth gate / shared buttons / shared cards
   ================================================== */.auth-gate {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.auth-badge,
.badge,
.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 197, 47, .14);
  color: #ffd86b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-card h1 {
  margin: 14px 0 8px;
  font-size: 23px;
  line-height: 1.45;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.primary-btn,
.accent-btn,
.ghost-btn,
.secondary-btn,
.back-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn,
.accent-btn {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-2) 100%);
  color: #1f1703;
  box-shadow: 0 12px 26px rgba(255, 197, 47, .16);
}

.ghost-btn,
.secondary-btn,
.back-link {
  background: rgba(255, 255, 255, .025);
  border-color: var(--line);
  color: var(--text);
}

.detail-stack,
.service-list,
.order-list,
.menu-list,
.tx-list,
.row-list {
  display: grid;
  gap: 0;
}

.section-card,
.section-rows,
.detail-card,
.stat-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(18, 29, 39, .74);
}

.section-card,
.section-rows {
  padding: 8px 0;
  overflow: hidden;
}

/* ==================================================
   Home dashboard / platform cards
   ================================================== */.home-dashboard {
  display: grid;
  gap: 18px;
}

.home-balance-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0, rgba(255, 255, 255, .10), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(42, 169, 238, .18), transparent 42%),
    linear-gradient(135deg, #182441 0%, #162849 56%, #17395c 100%);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .30);
}

.home-balance-card::before,
.home-balance-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.home-balance-card::before {
  width: 160px;
  height: 160px;
  inset: -50px auto auto -36px;
  background: rgba(255, 255, 255, .065);
}

.home-balance-card::after {
  width: 112px;
  height: 112px;
  inset: auto -24px -34px auto;
  background: rgba(255, 197, 47, .08);
}

.home-id-chip,
.home-balance-copy,
.home-actions {
  position: relative;
  z-index: 1;
}

.home-id-chip {
  justify-self: start;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  color: #aebed1;
  direction: ltr;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.home-balance-copy {
  justify-self: end;
  text-align: left;
  direction: rtl;
}

.home-balance-copy span,
.home-balance-copy small {
  display: block;
  color: #9fb0c5;
  font-size: 12px;
  font-weight: 900;
}

.home-balance-copy strong {
  display: block;
  color: #fff;
  font-size: clamp(32px, 7.8vw, 44px);
  line-height: .95;
  font-weight: 1000;
  letter-spacing: -.03em;
}

.home-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.home-action-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 197, 47, .38);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 197, 47, .20), transparent 60%),
    rgba(255, 197, 47, .12);
  color: #fff5c7;
  font-size: 13px;
  font-weight: 1000;
}

.home-action-btn.is-soft {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .075);
  color: #eff6ff;
}

.home-platforms {
  display: grid;
  gap: 12px;
}

.home-section-title {
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 1000;
  text-align: right;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  min-height: 102px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0, rgba(255, 255, 255, .075), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .058), rgba(255, 255, 255, .018)),
    rgba(15, 22, 31, .84);
  color: var(--text);
  text-align: right;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 16px 34px rgba(0, 0, 0, .16);
  transition: transform .16s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease, opacity .18s ease;
}

.platform-card:active {
  transform: translateY(1px) scale(.99);
}

.platform-card:hover {
  border-color: rgba(255, 197, 47, .22);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 197, 47, .075), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, .070), rgba(255, 255, 255, .024)),
    rgba(18, 27, 37, .92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .075),
    0 18px 38px rgba(0, 0, 0, .20);
}

.platform-title {
  min-width: 0;
  color: #f3f7fb;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 1000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-icon {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .14), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022)),
    #202c39;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 12px 24px rgba(0, 0, 0, .24);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.platform-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 18px;
  background: rgba(5, 8, 12, .48);
  pointer-events: none;
}

.platform-card:hover .platform-icon {
  transform: translateY(-1px) scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 16px 28px rgba(0, 0, 0, .28);
}

.platform-icon .icon-svg {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .30));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 2px;
  margin-bottom: 14px;
}

.section-head h3,
.panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

/* ==================================================
   Category / menu / service row lists
   ================================================== */.muted,
.service-meta,
.order-meta,
.menu-meta,
.detail-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.category-row,
.menu-row-card,
.order-row-card,
.service-row-card {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

.category-row:last-child,
.menu-row-card:last-child,
.order-row-card:last-child,
.service-row-card:last-child {
  border-bottom-color: transparent;
}

.category-row,
.menu-row-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  min-height: 80px;
  padding: 12px 14px;
  text-align: start;
  cursor: pointer;
  direction: ltr;
  transition: background-color .18s ease, transform .16s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.category-row:hover,
.menu-row-card:hover,
.order-row-card:hover,
.service-row-card:hover {
  background: rgba(255, 255, 255, .024);
}

.category-icon,
.service-icon,
.order-icon,
.menu-icon,
.category-mini-icon,
.service-detail-icon,
.order-detail-main-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #172636;
  border: 1px solid #243747;
  color: var(--yellow);
  overflow: hidden;
}

.category-icon,
.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    #172636;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 10px 22px rgba(0, 0, 0, .18);
}

.menu-icon {
  width: 38px;
  height: 38px;
  color: #dce8f5;
  font-size: 19px;
  font-weight: 900;
}

.icon-svg {
  width: 30px;
  height: 30px;
  display: inline-flex;
}

.icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.icon-svg.icon-instagram,
.icon-svg.icon-tiktok,
.icon-svg.icon-telegram,
.icon-svg.icon-x,
.icon-svg.icon-facebook,
.icon-svg.icon-youtube,
.icon-svg.icon-snapchat,
.icon-svg.icon-whatsapp {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .28));
}

.platform-icon .icon-svg.icon-instagram,
.platform-icon .icon-svg.icon-tiktok,
.platform-icon .icon-svg.icon-telegram,
.platform-icon .icon-svg.icon-x,
.platform-icon .icon-svg.icon-facebook,
.platform-icon .icon-svg.icon-youtube,
.platform-icon .icon-svg.icon-snapchat,
.platform-icon .icon-svg.icon-whatsapp {
  width: 52px;
  height: 52px;
}

.icon-svg.icon-instagram { filter: drop-shadow(0 8px 14px rgba(214, 41, 118, .30)); }
.icon-svg.icon-tiktok { filter: drop-shadow(0 8px 14px rgba(0, 242, 234, .20)); }
.icon-svg.icon-telegram { filter: drop-shadow(0 8px 14px rgba(42, 171, 238, .30)); }
.icon-svg.icon-x { filter: drop-shadow(0 8px 14px rgba(255, 255, 255, .12)); }
}

.menu-copy,
.category-copy,
.service-copy,
.order-copy {
  min-width: 0;
  text-align: right;
  direction: rtl;
}

.category-title,
.service-title,
.order-title,
.menu-title,
.detail-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
}

.category-row .category-title,
.service-row-card .service-title,
.order-row-card .order-title,
.menu-row-card .menu-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-sub {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.service-icon-wrap,
.order-icon-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
}

.menu-chevron {
  justify-self: end;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #7f91a4;
  line-height: 1;
  opacity: .9;
  transition: color .18s ease, transform .18s ease, opacity .18s ease;
}

.menu-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.category-row:hover .menu-chevron,
.menu-row-card:hover .menu-chevron,
.order-row-card:hover .menu-chevron,
.service-row-card:hover .menu-chevron {
  color: var(--yellow);
  opacity: 1;
  transform: translateX(-2px);
}

/* ==================================================
   Topbars / icons / service list details
   ================================================== */.category-topbar,
.page-topbar,
.service-detail-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.category-topbar-title,
.page-title,
.service-create-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.icon-back-link,
.round-back {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #d8e5f1;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, .16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .16s ease, background-color .18s ease, box-shadow .18s ease;
}

.icon-back-link:hover,
.round-back:hover {
  color: var(--yellow);
  border-color: rgba(255, 197, 47, .24);
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, .18), transparent 36%),
    linear-gradient(180deg, rgba(255, 197, 47, .14), rgba(255, 197, 47, .04));
}

.ui-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.ui-icon-back {
  width: 23px;
  height: 23px;
}

.category-hero-mini,
.service-detail-hero,
.order-detail-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 18px;
}

.category-mini-icon {
  width: 58px;
  height: 58px;
}

.category-hero-mini h3,
.service-detail-hero h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
}

.service-row-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  cursor: pointer;
  direction: ltr;
  transition: background-color .18s ease, transform .16s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.service-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  direction: rtl;
}

.service-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.service-panel-meta-row,
.service-panel-actions,
.order-extra-meta,
.price-line,
.detail-line,
.api-code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-panel-meta-row,
.service-panel-actions,
.order-extra-meta {
  justify-content: flex-start;
  direction: rtl;
}

.service-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.service-point-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 9px;
  background: rgba(47, 123, 255, .14);
  color: #d7e7ff;
  border: 1px solid rgba(47, 123, 255, .22);
  font-size: 13px;
  font-weight: 900;
  direction: rtl;
  white-space: nowrap;
}

.service-old-price,
.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 800;
}

.service-discount-badge,
.discount-pill {
  min-height: 25px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .24);
  color: #9ef0b6;
  font-size: 12px;
  font-weight: 900;
}

/* ==================================================
   Promotions and top-up previews
   ================================================== */.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 123, 255, .20);
  background: linear-gradient(180deg, rgba(23, 32, 51, .96), rgba(17, 24, 39, .98));
}

.promo-banner-topup {
  align-items: flex-start;
}

.promo-banner-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.promo-banner-copy {
  min-width: 0;
}

.promo-banner-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.promo-banner-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.promo-banner-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  flex: 0 0 auto;
}

.promo-banner-action {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.wallet-topup-preview-card {
  margin-bottom: 16px;
  display: grid;
  gap: 12px;
}

.wallet-topup-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wallet-topup-preview-head strong {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.wallet-topup-preview-head span,
.wallet-topup-preview-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.topup-bonus-rows {
  display: grid;
  gap: 8px;
}

.topup-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(148, 163, 184, .12);
}

.topup-bonus-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topup-bonus-row strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: end;
}

.topup-bonus-row.is-positive strong {
  color: #9ef0b6;
}

.topup-bonus-row.is-total {
  border-color: rgba(47, 123, 255, .22);
  background: rgba(47, 123, 255, .08);
}

.topup-bonus-preview-card {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(47, 123, 255, .18);
  background: linear-gradient(180deg, rgba(17, 24, 39, .96), rgba(23, 32, 51, .92));
}

.topup-bonus-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topup-bonus-preview-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.topup-bonus-preview-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.topup-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.topup-promo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.topup-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 24, .72);
}

.topup-promo-dialog {
  position: relative;
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(47, 123, 255, .24);
  background:
    radial-gradient(circle at top right, rgba(47, 123, 255, .16), transparent 38%),
    linear-gradient(180deg, rgba(23, 32, 51, .98), rgba(11, 18, 32, .98));
  box-shadow: 0 18px 48px rgba(7, 13, 24, .42);
  transform: translateY(8px) scale(.985);
  transition: transform .22s ease;
}

.topup-promo-modal.is-open .topup-promo-dialog {
  transform: translateY(0) scale(1);
}

.topup-promo-close {
  position: absolute;
  inset-inline-end: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.topup-promo-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 123, 255, .12);
  border: 1px solid rgba(47, 123, 255, .2);
  color: #bcd5ff;
  font-size: 12px;
  font-weight: 900;
}

.topup-promo-dialog h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.topup-promo-copy,
.topup-promo-timer {
  margin: 0;
  color: var(--secondary-text, #CBD5E1);
  font-size: 14px;
  line-height: 1.7;
}

.topup-promo-example {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(255, 255, 255, .04);
}

.topup-promo-example span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topup-promo-example strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.topup-promo-actions {
  display: flex;
}

.topup-promo-cta {
  width: 100%;
  min-height: 48px;
}

/* ==================================================
   Service detail / forms / price display
   ================================================== */.service-range-pill {
  min-height: 25px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #b8c7d6;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.date-value {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.webapp-counter,
.order-progress-value {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  white-space: nowrap;
}

.webapp-counter__num {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.webapp-counter__sep {
  direction: rtl;
  unicode-bidi: isolate;
}

.service-open-chip {
  display: none;
}

.pill.green,
.status-pill.completed {
  background: rgba(37, 211, 102, .15);
  color: #6df3a5;
}

.pill.yellow,
.status-pill.processing {
  background: rgba(255, 197, 47, .14);
  color: #ffd96d;
}

.pill.red,
.status-pill.failed,
.status-pill.cancelled {
  background: rgba(255, 100, 100, .13);
  color: #ff9f9f;
}

.pill.blue {
  background: rgba(42, 169, 238, .15);
  color: #8fd5ff;
}

.pill.steel,
.status-pill.pending {
  background: rgba(255, 255, 255, .08);
  color: #d7e2ee;
}

.service-detail-premium,
.order-detail-premium-shell {
  padding: 0;
  border: 0;
  background: transparent;
}

.service-detail-icon {
  width: 72px;
  height: 72px;
  background: #10202d;
}

.service-detail-icon .icon-svg,
.order-detail-main-icon .icon-svg {
  width: 40px;
  height: 40px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.premium-preset-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  justify-content: space-between;
  padding-inline: 18px;
  border-radius: 19px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.premium-preset-btn.is-active {
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 197, 47, .42), transparent 55%),
    linear-gradient(180deg, #68551e 0%, #2d2d24 100%);
  border-color: rgba(255, 197, 47, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 47, .08);
}

.premium-preset-btn.is-muted {
  justify-content: center;
  color: #d6e2ef;
  font-size: 17px;
}

.premium-preset-btn:active {
  transform: scale(.985);
}

.detail-field-label {
  margin: 10px 0 8px;
  color: #c7d4e1;
  font-size: 16px;
  font-weight: 800;
}

.form-grid { display: grid; gap: 10px; }

.input-field,
.select-field,
.text-area,
.premium-input-field {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 20px;
  outline: 0;
  padding: 0 18px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.input-field::placeholder,
.text-area::placeholder {
  color: #697c8e;
}

.field-hint {
  margin-top: -4px;
  color: #9fb0c2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.field-hint.is-error {
  color: #ff8d8d;
}

.language-grid {
  display: grid;
  gap: 10px;
}

.language-option {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  text-align: start;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .16s ease, color .18s ease, opacity .18s ease;
}

.language-option:hover,
.language-option.is-active {
  border-color: rgba(255, 197, 47, .24);
  background:
    radial-gradient(circle at 12% 0, rgba(255, 197, 47, .12), transparent 44%),
    rgba(255, 255, 255, .04);
}

.language-code {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 197, 47, .12);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .8px;
}

.language-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.language-copy strong {
  font-size: 15px;
  font-weight: 900;
}

.language-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.premium-create-btn {
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  border-radius: 22px;
  font-size: 18px;
}

.price-line,
.detail-line {
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
  min-width: 0;
}

.price-value,
.service-price {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  direction: ltr;
}

.service-discount {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 0;
  text-align: end;
}

.service-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025)),
    #223241;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 900;
  direction: rtl;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.service-jump-chip {
  width: 100%;
  cursor: pointer;
}

.service-jump-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.service-jump-chip strong {
  color: var(--text);
  font-size: 14px;
  direction: ltr;
}

.service-jump-chip .menu-chevron {
  width: 18px;
  height: 18px;
  color: var(--yellow);
  opacity: .95;
  transform: rotate(180deg);
}

.service-jump-chip:active {
  transform: scale(.985);
}

.order-detail-topbar {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
}

.order-service-action {
  width: 100%;
  min-height: 64px;
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 16px 0 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 197, 47, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 197, 47, .18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(17, 28, 39, .88);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}

.order-service-action span {
  font-size: 17px;
  font-weight: 1000;
}

.order-service-action small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.order-service-action:active {
  transform: scale(.985);
}

.speed-gauge-card {
  --speed-color: #f4b844;
  --speed-color-2: #f59e0b;
  --speed-glow: rgba(245, 158, 11, .18);
  position: relative;
  margin: 22px 0 18px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  outline: 0;
}

.speed-gauge-card.speed-gauge-fast {
  --speed-color: #45e68d;
  --speed-color-2: #12b76a;
  --speed-glow: rgba(37, 211, 102, .20);
}

.speed-gauge-card.speed-gauge-medium {
  --speed-color: #ffd166;
  --speed-color-2: #f59e0b;
  --speed-glow: rgba(245, 158, 11, .18);
}

.speed-gauge-card.speed-gauge-slow {
  --speed-color: #ff7a7a;
  --speed-color-2: #ef4444;
  --speed-glow: rgba(239, 68, 68, .20);
}

.speed-gauge-card::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: max-content;
  max-width: min(310px, calc(100vw - 54px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(8, 14, 20, .96);
  color: #edf6ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .30),
    0 0 0 1px var(--speed-glow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) scale(.98);
  transition: opacity .16s ease, transform .16s ease;
}

.speed-gauge-card:hover::after,
.speed-gauge-card:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.speed-gauge-card:focus-visible {
  border-color: rgba(255, 255, 255, .13);
}

.speed-gauge-arc {
  position: relative;
  width: min(228px, 100%);
  height: 118px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px var(--speed-glow));
}

.speed-gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.speed-gauge-track,
.speed-gauge-fill {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.speed-gauge-track {
  stroke: #223342;
  stroke-width: 26;
  opacity: .88;
}

.speed-gauge-fill {
  stroke: var(--speed-color-2);
  stroke-width: 26;
  filter: drop-shadow(0 0 9px var(--speed-glow));
  transition: stroke-dasharray .22s ease, stroke .18s ease;
}

.speed-gauge-arc::before {
  content: none;
}

.speed-gauge-center {
  position: absolute;
  inset-inline: 0;
  bottom: 22px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.speed-gauge-center small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.speed-gauge-center strong {
  font-size: 18px;
  font-weight: 900;
  color: #f8fbff;
  text-shadow: 0 0 18px var(--speed-glow);
}

/* ==================================================
   Wallet and top-up
   ================================================== */.wallet-page {
  display: grid;
  gap: 18px;
}

.wallet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.wallet-topbar h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 1000;
  letter-spacing: -.02em;
}

.wallet-history-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 197, 47, .10);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 1000;
}

.wallet-pricing-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 0, rgba(255, 112, 67, .13), transparent 36%),
    radial-gradient(circle at 12% 100%, rgba(255, 197, 47, .08), transparent 34%),
    rgba(18, 22, 28, .88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .26);
}

.wallet-pricing-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.wallet-pricing-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 197, 47, .13);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 1000;
}

.wallet-pricing-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 1000;
}

.wallet-pricing-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 800;
}

.wallet-rate-table {
  overflow: hidden;
  border: 1px solid rgba(37, 211, 102, .22);
  border-radius: 20px;
  background: rgba(9, 14, 18, .42);
}

.wallet-rate-row {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.wallet-rate-row:last-child {
  border-bottom: 0;
}

.wallet-rate-row span,
.wallet-rate-row strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: inherit;
  padding: 8px;
  text-align: center;
  font-weight: 1000;
  white-space: nowrap;
}

.wallet-rate-head span {
  background: linear-gradient(180deg, #ffb21b, #f4a009);
  color: #201302;
  font-size: 14px;
}

.wallet-rate-row strong {
  color: var(--yellow);
  font-size: 18px;
}

.wallet-rate-row bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

.wallet-rate-usd {
  color: #f8d46a !important;
}

.wallet-rate-points {
  color: #25d366 !important;
}

.wallet-rate-note {
  display: grid;
  gap: 4px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  font-weight: 700;
}

.wallet-methods-section {
  display: grid;
  gap: 12px;
}

.wallet-transfer-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 123, 255, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)),
    rgba(12, 19, 30, .80);
}

.wallet-transfer-entry-copy {
  display: grid;
  gap: 6px;
}

.wallet-transfer-entry-kicker {
  color: #8fd5ff;
  font-size: 11px;
  font-weight: 1000;
}

.wallet-transfer-entry-copy strong {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 1000;
}

.wallet-transfer-entry-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  font-weight: 800;
}

.wallet-transfer-entry-btn {
  min-width: 136px;
}

.wallet-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.wallet-section-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 1000;
}

.wallet-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payment-method-list {
  display: grid;
  gap: 12px;
}

.payment-method-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 62px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 42%),
    radial-gradient(circle at 88% 0, rgba(255, 197, 47, .07), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(16, 20, 26, .86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 18px 42px rgba(0, 0, 0, .16);
  direction: ltr;
  overflow: hidden;
  position: relative;
  transition: border-color .18s ease, background-color .18s ease, transform .16s ease, color .18s ease, opacity .18s ease;
}

.payment-method-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 34%, rgba(255, 197, 47, .045));
  opacity: .72;
}

.payment-method-card > * {
  position: relative;
  z-index: 1;
}

.payment-method-card:hover {
  border-color: rgba(255, 197, 47, .2);
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 88% 0, rgba(255, 197, 47, .11), transparent 42%),
    rgba(255, 255, 255, .045);
}

.payment-method-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .16), transparent 34%),
    linear-gradient(145deg, rgba(255, 197, 47, .18), rgba(255, 197, 47, .08));
  color: var(--yellow);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 14px 28px rgba(0, 0, 0, .20);
}

.payment-method-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.payment-method-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  direction: rtl;
  text-align: right;
}

.payment-method-copy strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 1000;
}

.payment-method-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.payment-method-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .13);
  color: #71f4aa;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  justify-self: end;
  border: 1px solid rgba(113, 244, 170, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.points-transfer-page {
  gap: 12px;
  padding-bottom: calc(var(--bottom-safe-space) + 16px);
}

.points-transfer-topbar {
  margin-bottom: 2px;
}

.points-transfer-page-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.points-transfer-lead {
  margin: 0 2px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 750;
}

.points-transfer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)),
    rgba(12, 19, 30, .78);
}

.points-transfer-summary-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px 4px;
  text-align: center;
}

.points-transfer-summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.points-transfer-summary-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.points-transfer-summary-value .numeric-value,
.points-transfer-summary-value bdi {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.points-transfer-form-card,
.points-transfer-success-card,
.points-transfer-unavailable-card,
.points-transfer-preview-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}

.points-transfer-form-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.points-transfer-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 213, 255, .16);
  background: rgba(47, 123, 255, .10);
  color: #8fd5ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.points-transfer-form-grid {
  gap: 12px;
}

.points-transfer-field {
  display: grid;
  gap: 6px;
}

.points-transfer-page .points-transfer-field .detail-meta {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.points-transfer-page .points-transfer-input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 15px;
  text-align: start;
}

.points-transfer-form-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 197, 47, .14);
  background: rgba(255, 197, 47, .06);
  color: #e8c96a;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 800;
}

.points-transfer-form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 750;
}

.points-transfer-error {
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 100, 100, .16);
  background:
    linear-gradient(180deg, rgba(255, 100, 100, .10), rgba(255, 100, 100, .04)),
    rgba(32, 12, 18, .45);
  color: #ffd1d1;
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 800;
}

.points-transfer-error.is-visible {
  display: block;
}

.points-transfer-actions,
.points-transfer-preview-actions,
.points-transfer-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.points-transfer-preview-btn,
.points-transfer-actions .accent-btn,
.points-transfer-preview-actions .accent-btn {
  min-height: 48px;
}

.points-transfer-preview-head,
.points-transfer-preview-card .section-head {
  align-items: start;
  gap: 6px;
}

.points-transfer-section-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 1000;
}

.points-transfer-success-kicker {
  color: #86efac;
  font-size: 11px;
  font-weight: 1000;
}

.points-transfer-page .points-transfer-stat-row {
  padding: 7px 9px;
  border-radius: 12px;
}

.points-transfer-page .points-transfer-stat-row > span {
  font-size: 11.5px;
}

.points-transfer-page .points-transfer-stat-row > strong {
  font-size: 12.5px;
}

.points-transfer-stat-row {
  justify-content: space-between;
  gap: 10px;
}

.points-transfer-stat-row > strong > span[dir="auto"] {
  overflow-wrap: anywhere;
}

.points-transfer-success-card {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 211, 102, .10), transparent 32%),
    linear-gradient(180deg, rgba(16, 26, 21, .92), rgba(15, 24, 31, .88));
}

.points-transfer-preview-card {
  padding: 14px;
  border-radius: 18px;
}

.points-transfer-unavailable-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 750;
}

@media (max-width: 360px) {
  .points-transfer-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .points-transfer-summary-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    text-align: start;
    padding: 4px 2px;
  }
}

.points-transfer-recipient-status {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 750;
}

.points-transfer-recipient-status strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 900;
}

.points-transfer-recipient-status-id {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
}

.points-transfer-recipient-status.is-neutral {
  border-color: rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
}

.points-transfer-recipient-status.is-loading {
  border-color: rgba(143, 213, 255, .16);
  background: rgba(47, 123, 255, .08);
  color: #b8dcff;
}

.points-transfer-recipient-status.is-success {
  border-color: rgba(113, 244, 170, .18);
  background: rgba(37, 211, 102, .08);
  color: #b8f5d0;
}

.points-transfer-recipient-status.is-warning {
  border-color: rgba(255, 197, 47, .18);
  background: rgba(255, 197, 47, .07);
  color: #e8c96a;
}

.points-transfer-recipient-status.is-error,
.points-transfer-recipient-status.is-invalid {
  border-color: rgba(255, 100, 100, .16);
  background: rgba(255, 100, 100, .07);
  color: #ffd1d1;
}

.points-transfer-preview-btn:disabled,
.points-transfer-actions .accent-btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.wallet-transactions-card {
  padding: 20px 18px 22px;
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
}

.wallet-transactions-card .tx-list {
  display: grid;
  gap: 12px;
}

.wallet-transaction-line {
  position: relative;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(141, 198, 255, .13);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(141, 198, 255, .11), transparent 43%),
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .022));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 16px 34px rgba(4, 12, 22, .2),
    0 0 0 1px rgba(141, 198, 255, .03);
}

.wallet-transaction-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .018);
}

.wallet-transaction-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  flex: 1 1 auto;
}

.wallet-transaction-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.wallet-transaction-head strong {
  color: #f7fbff;
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.wallet-transaction-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(141, 198, 255, .18);
  background: linear-gradient(180deg, rgba(47, 123, 255, .15), rgba(47, 123, 255, .065));
  color: #deebff;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
  letter-spacing: .015em;
}

.wallet-transaction-badge.is-manual {
  border-color: rgba(255, 197, 47, .24);
  background: linear-gradient(180deg, rgba(255, 197, 47, .18), rgba(255, 167, 38, .08));
  color: #ffe3a1;
}

.wallet-transaction-badge.is-bonus {
  border-color: rgba(111, 240, 168, .24);
  background: linear-gradient(180deg, rgba(37, 211, 102, .18), rgba(37, 211, 102, .08));
  color: #b9ffd5;
}

.wallet-transaction-badge.is-deposit {
  border-color: rgba(141, 198, 255, .2);
}

.wallet-transaction-meta,
.wallet-transaction-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-transaction-meta {
  color: #9bcfff;
  gap: 8px;
  line-height: 1.1;
}

.wallet-transaction-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 11px 4px 7px;
  border-radius: 999px;
  background: rgba(31, 50, 77, .46);
  border: 1px solid rgba(141, 198, 255, .11);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 4px 10px rgba(4, 12, 22, .08);
}

.wallet-transaction-meta-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.wallet-transactions-card .wallet-transaction-meta-icon .icon-svg,
.wallet-transactions-card .wallet-transaction-meta-icon > span {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.wallet-transaction-meta-icon svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  display: block;
  flex-shrink: 0;
}

.wallet-transactions-card .wallet-transaction-meta svg,
.wallet-transactions-card .wallet-transaction-meta .icon-svg svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
}

.wallet-transaction-note {
  display: block;
  max-width: 42ch;
  color: #acbacb;
  font-size: 12.75px;
  line-height: 1.78;
}

.wallet-transaction-amount {
  flex: 0 0 auto;
  align-self: center;
  padding-top: 0;
  padding-inline-start: 8px;
}

.wallet-transaction-amount .tx-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 15px 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(111, 240, 168, .18);
  background:
    linear-gradient(180deg, rgba(37, 211, 102, .17), rgba(37, 211, 102, .085)),
    rgba(10, 24, 18, .44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 12px 24px rgba(17, 61, 34, .17),
    0 0 0 1px rgba(111, 240, 168, .035);
  line-height: 1;
}

.wallet-transaction-amount .tx-amount bdi {
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.01em;
}

.wallet-transaction-amount .tx-amount span {
  font-size: 10.5px;
  font-weight: 900;
  color: rgba(225, 255, 238, .82);
}

.wallet-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 18px;
}

.wallet-empty-state-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #8dc6ff;
  background:
    radial-gradient(circle at 30% 25%, rgba(141, 198, 255, .22), transparent 55%),
    linear-gradient(180deg, rgba(47, 123, 255, .16), rgba(47, 123, 255, .05));
  border: 1px solid rgba(141, 198, 255, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 10px 24px rgba(20, 59, 122, .16);
}

.wallet-empty-state-icon svg {
  width: 26px;
  height: 26px;
}

.wallet-empty-state-title {
  color: #e6eef7;
  font-size: 15px;
  font-weight: 900;
}

.wallet-empty-state-note {
  max-width: 280px;
  color: #9fb0c0;
  font-size: 13px;
  line-height: 1.7;
}

.tx-amount {
  white-space: nowrap;
  font-weight: 1000;
}

.tx-amount bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

.tx-amount.is-positive {
  color: #6ff0a8;
  text-shadow: 0 0 18px rgba(37, 211, 102, .18);
}

.tx-amount.is-negative {
  color: var(--red);
}

@media (max-width: 640px) {
  .wallet-transaction-line {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .wallet-transaction-amount {
    padding-top: 0;
    padding-inline-start: 0;
    align-self: flex-start;
  }

  .wallet-transaction-amount .tx-amount {
    min-height: 42px;
    padding: 9px 14px;
  }
}

.payment-method-asiacell .payment-method-icon {
  color: #6ff0a8;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .17), transparent 35%),
    linear-gradient(145deg, rgba(37, 211, 102, .18), rgba(255, 167, 38, .13)),
    rgba(255, 197, 47, .08);
}

.payment-method-asiacell {
  border-color: rgba(255, 197, 47, .22);
  background:
    radial-gradient(circle at 92% 0, rgba(255, 197, 47, .16), transparent 42%),
    linear-gradient(145deg, rgba(34, 197, 94, .07), rgba(255, 255, 255, .02)),
    rgba(16, 20, 26, .90);
}

/* ==================================================
   Asiacell payment sheet
   ================================================== */.payment-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.payment-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
}

.payment-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, .68);
  backdrop-filter: blur(8px);
}

.payment-sheet-panel {
  position: relative;
  width: min(100%, 560px);
  height: min(92dvh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px 30px 0 0;
  background: #f7f9fc;
  box-shadow: 0 -26px 70px rgba(0, 0, 0, .42);
  transform: translateY(24px);
  transition: transform .24s ease;
}

.payment-sheet.is-open .payment-sheet-panel {
  transform: translateY(0);
}

.payment-sheet-head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #0f1a24;
  color: #f4f7fb;
  direction: rtl;
}

.payment-sheet-head strong,
.payment-sheet-head span {
  display: block;
}

.payment-sheet-head strong {
  font-size: 18px;
  font-weight: 1000;
}

.payment-sheet-head span {
  margin-top: 3px;
  color: #98a7b6;
  font-size: 12px;
  font-weight: 800;
}

.payment-sheet-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.payment-sheet-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f9fc;
}

/* ==================================================
   Stars payment UI
   ================================================== */.stars-sheet {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: end center;
  padding: calc(env(safe-area-inset-top, 0px) + 72px) 10px 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.stars-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
}

.stars-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, .72);
  backdrop-filter: blur(8px);
}

.stars-sheet-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 72px);
  display: grid;
  gap: 11px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
  border: 1px solid rgba(255, 197, 47, .18);
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 88% 0, rgba(255, 197, 47, .22), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(88, 166, 255, .13), transparent 32%),
    linear-gradient(145deg, rgba(17, 28, 39, .98), rgba(10, 18, 28, .96));
  box-shadow: 0 -26px 70px rgba(0, 0, 0, .45);
  transform: translateY(24px);
  transition: transform .24s ease;
  direction: rtl;
}

.stars-sheet-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.stars-sheet.is-open .stars-sheet-panel {
  transform: translateY(0);
}

.stars-sheet-glow {
  position: absolute;
  inset: -80px -60px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 197, 47, .20);
  filter: none;
  pointer-events: none;
}

.stars-sheet-head {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 10px;
}

.stars-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 197, 47, .11);
  color: #ffd86b;
  font-size: 11px;
  font-weight: 1000;
}

.stars-sheet-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 1000;
}

.stars-sheet-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.stars-hero-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .18), transparent 36%),
    linear-gradient(145deg, rgba(255, 197, 47, .24), rgba(255, 197, 47, .08));
  color: #ffd86b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .25);
}

.stars-hero-icon svg {
  width: 27px;
  height: 27px;
}

.stars-pack-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.stars-pack-grid::-webkit-scrollbar {
  display: none;
}

.stars-pack {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .022)),
    rgba(13, 23, 34, .82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.stars-pack.is-featured {
  border-color: rgba(255, 197, 47, .34);
  background:
    radial-gradient(circle at 80% 0, rgba(255, 197, 47, .17), transparent 42%),
    rgba(255, 197, 47, .08);
}

.stars-pack.is-active {
  border-color: var(--app-primary-border);
  background: var(--app-primary-soft);
}

.stars-pack:disabled {
  opacity: .62;
}

.stars-pack span {
  color: #dce8f5;
  font-size: 12px;
  font-weight: 1000;
}

.stars-pack strong {
  color: #ffd86b;
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
}

.stars-custom-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .060), rgba(255, 255, 255, .020)),
    rgba(13, 23, 34, .86);
}

.stars-input-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
}

.stars-points-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: rgba(5, 10, 16, .54);
  color: var(--text);
  padding: 0 14px;
  font-size: 18px;
  font-weight: 1000;
  direction: ltr;
  text-align: left;
  outline: none;
}

.stars-points-input:focus {
  border-color: rgba(47, 123, 255, .52);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, .12);
}

.stars-formatted-value,
.stars-input-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 850;
}

.stars-formatted-value {
  color: var(--text);
}

.stars-input-hint.is-error {
  color: #ffc1c1;
}

.stars-preview-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stars-preview-card span {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  font-weight: 900;
  line-height: 1.5;
}

.stars-preview-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.stars-preview-card strong {
  display: inline-flex;
  align-items: baseline;
  gap: .25em;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  direction: rtl;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

.stars-submit-btn {
  width: 100%;
  min-height: 50px;
  white-space: nowrap;
}

.stars-pay-footer {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2px);
}

.stars-submit-btn:disabled {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
}

.stars-sheet-note,
.stars-pay-status {
  margin: 0;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .030);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.stars-pay-status.is-success {
  border: 1px solid rgba(34, 197, 94, .26);
  background: rgba(34, 197, 94, .12);
  color: #8ef0b1;
}

.stars-bonus-preview {
  display: block;
  margin-top: 8px;
}

.stars-pay-status.is-error {
  border: 1px solid rgba(248, 113, 113, .30);
  background: rgba(248, 113, 113, .13);
  color: #ffc1c1;
}

body.stars-success-open {
  overflow: hidden;
}

body.topup-promo-open {
  overflow: hidden;
}

.stars-success-modal {
  position: fixed;
  inset: 0;
  z-index: 94;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.stars-success-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.stars-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 24, .78);
  backdrop-filter: blur(8px);
}

.stars-success-dialog {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 36px);
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px 18px;
  border: 1px solid var(--app-border-soft);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .12), transparent 34%),
    linear-gradient(180deg, rgba(203, 213, 225, .045), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
  direction: rtl;
  transform: translateY(10px) scale(.985);
  transition: transform .24s ease;
}

.stars-success-modal.is-open .stars-success-dialog {
  transform: translateY(0) scale(1);
}

.stars-success-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.stars-success-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  background: rgba(203, 213, 225, .075);
  color: var(--app-text-secondary);
  font-size: 22px;
  line-height: 1;
}

.stars-success-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  color: #86EFAC;
}

.stars-success-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  animation: starsSuccessPulse 3.8s ease-in-out infinite;
}

.stars-success-icon svg {
  position: relative;
  width: 64px;
  height: 64px;
}

.stars-success-ring {
  fill: rgba(34, 197, 94, .08);
  stroke: rgba(134, 239, 172, .40);
  stroke-width: 2;
}

.stars-success-check {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: starsCheckDraw 3.8s ease-in-out infinite;
}

.stars-success-title {
  margin: 0;
  color: var(--app-text);
  text-align: center;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 1000;
}

.stars-success-summary {
  margin: -4px 0 0;
  color: var(--app-text-secondary);
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 800;
}

.stars-success-details {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--app-border-soft);
  border-radius: 20px;
  background: rgba(7, 13, 24, .42);
}

.stars-success-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 15px;
  background: rgba(203, 213, 225, .040);
}

.stars-success-row > span {
  min-width: 0;
  color: var(--app-text-muted);
  font-size: 12px;
  font-weight: 850;
}

.stars-success-row > strong {
  min-width: 0;
  max-width: 190px;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 950;
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stars-success-row bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

.stars-success-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 2px;
}

.stars-success-wallet,
.stars-success-dismiss {
  min-height: 50px;
  white-space: nowrap;
}

.stars-success-dismiss {
  min-width: 96px;
}

@keyframes starsCheckDraw {
  0%, 12% {
    stroke-dashoffset: 34;
    opacity: .45;
    transform: scale(.98);
    transform-origin: center;
  }
  22%, 72% {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
  }
  100% {
    stroke-dashoffset: 0;
    opacity: .92;
  }
}

@keyframes starsSuccessPulse {
  0%, 72%, 100% {
    opacity: .52;
    transform: scale(.92);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  42% {
    opacity: .30;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars-success-modal,
  .stars-success-dialog,
  .stars-success-icon::before,
  .stars-success-check {
    animation: none;
    transition-duration: .01ms;
  }

  .stars-success-check {
    stroke-dashoffset: 0;
  }
}

/* ==================================================
   Gifts / vouchers / referrals / orders / settings
   ================================================== */body.payment-sheet-open {
  overflow: hidden;
}

.voucher-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 197, 47, .22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 197, 47, .18), transparent 36%),
    radial-gradient(circle at 100% 10%, rgba(34, 197, 94, .14), transparent 34%),
    linear-gradient(145deg, rgba(18, 29, 39, .96), rgba(13, 24, 34, .90));
  box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
}

.voucher-glow {
  position: absolute;
  inset: auto -70px -80px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 197, 47, .18);
  filter: none;
  pointer-events: none;
}

.voucher-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 197, 47, .14);
  color: var(--yellow);
}

.voucher-icon svg {
  width: 34px;
  height: 34px;
}

.voucher-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 1000;
}

.voucher-card p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 800;
}

.voucher-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background: rgba(255, 255, 255, .045);
}

.voucher-balance span,
.voucher-input-wrap span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.voucher-balance strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 1000;
}

.voucher-input-wrap {
  display: grid;
  gap: 8px;
}

.voucher-input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  outline: none;
  background: rgba(9, 18, 27, .72);
  color: var(--text);
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-align: center;
}

.voucher-input:focus {
  border-color: rgba(255, 197, 47, .55);
  box-shadow: 0 0 0 4px rgba(255, 197, 47, .10);
}

.voucher-submit {
  width: 100%;
  min-height: 56px;
}

.voucher-result {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 18px;
  font-weight: 900;
}

.voucher-result strong {
  font-size: 15px;
}

.voucher-result span {
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.voucher-result.is-success {
  border: 1px solid rgba(34, 197, 94, .28);
  background: rgba(34, 197, 94, .12);
  color: #8ef0b1;
}

.voucher-result.is-error {
  border: 1px solid rgba(248, 113, 113, .30);
  background: rgba(248, 113, 113, .13);
  color: #ffc1c1;
}

.payment-method-stars .payment-method-icon {
  color: #ffd86b;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .18), transparent 36%),
    linear-gradient(145deg, rgba(255, 197, 47, .22), rgba(255, 197, 47, .08)),
    rgba(255, 197, 47, .08);
}

.payment-method-cryptopay .payment-method-icon {
  color: #9dbfff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .16), transparent 36%),
    linear-gradient(145deg, rgba(91, 141, 255, .20), rgba(91, 141, 255, .07)),
    rgba(255, 255, 255, .04);
}

.order-row-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(66px, max-content);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 14px;
  cursor: pointer;
  direction: ltr;
  transition: background-color .18s ease, transform .16s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.order-track-card {
  display: grid;
  gap: 14px;
  padding: 18px 17px;
  border: 1px solid rgba(141, 198, 255, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(141, 198, 255, .10), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255, 197, 47, .07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .024));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 18px 34px rgba(4, 12, 22, .16),
    0 0 0 1px rgba(141, 198, 255, .03);
}

.order-track-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-track-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.order-track-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 1000;
  letter-spacing: -.01em;
}

.order-track-copy p,
.order-track-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  font-weight: 800;
}

.order-track-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(111, 240, 168, .16);
  background: linear-gradient(180deg, rgba(37, 211, 102, .16), rgba(37, 211, 102, .08));
  color: #bbffd7;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.order-track-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.order-track-input {
  min-height: 52px;
  padding-inline: 15px;
  border-radius: 18px;
  font-weight: 900;
}

.order-track-submit {
  min-height: 52px;
  padding-inline: 18px;
  border-radius: 18px;
  white-space: nowrap;
}

.order-track-result {
  display: grid;
  gap: 0;
}

.order-track-result-box {
  display: grid;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 20px;
  border: 1px solid rgba(141, 198, 255, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)),
    rgba(10, 18, 28, .48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 12px 22px rgba(4, 12, 22, .12);
}

.order-track-result-box.is-error {
  border-color: rgba(248, 113, 113, .24);
  background:
    linear-gradient(180deg, rgba(248, 113, 113, .10), rgba(248, 113, 113, .04)),
    rgba(28, 12, 16, .36);
}

.order-track-result-box.is-error strong {
  color: #ffd3d3;
  font-size: 14px;
  font-weight: 950;
}

.order-track-result-box.is-error span {
  color: #ffc1c1;
  font-size: 12.5px;
  line-height: 1.75;
  font-weight: 800;
}

.order-track-result-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-track-result-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.order-track-result-copy strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 1000;
  color: #f8fbff;
}

.order-track-result-copy span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.order-track-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-track-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(141, 198, 255, .12);
  background: rgba(23, 36, 52, .56);
  color: #d8e6f7;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.order-track-meta-pill .order-progress-value {
  font-size: 11.5px;
}

.order-track-open {
  min-height: 46px;
  border-radius: 16px;
}

.order-icon {
  width: 54px;
  height: 54px;
}

.order-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-status-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
  justify-self: end;
}

.order-status-stack .status-pill {
  max-width: 100%;
}

.order-status-stack .menu-chevron {
  display: none;
}

.orders-filter-row,
.api-tabs,
.settings-tabs {
  display: flex;
  gap: 10px;
  margin: 14px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.orders-filter-row::-webkit-scrollbar,
.api-tabs::-webkit-scrollbar,
.settings-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 560px) {
  .order-track-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-track-submit {
    width: 100%;
  }

  .order-track-result-main {
    flex-direction: column;
    align-items: stretch;
  }

  .order-track-result-main .status-pill {
    justify-self: start;
  }
}

.orders-filter-chip,
.api-tab,
.settings-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 0 16px;
  background: transparent;
  color: #d5e0ec;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.orders-filter-chip.active,
.api-tab.active,
.settings-tab.active {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, .04);
  color: var(--yellow);
}

.orders-filter-chip .count-dot {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-inline-start: 5px;
  border-radius: 50%;
  background: rgba(42, 169, 238, .2);
  color: #48bdf8;
  font-size: 12px;
}

.order-detail-main-icon {
  width: 96px;
  height: 96px;
  margin-top: 12px;
}

.order-progress-hero {
  font-size: 28px;
  font-weight: 900;
  direction: ltr;
}

.detail-card {
  padding: 16px;
  min-width: 0;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.progress-bar {
  width: 100%;
  height: 9px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .075);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #ffe48a);
}

.settings-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .02), rgba(255, 197, 47, .03));
  overflow: hidden;
}

.settings-rainbow {
  justify-self: end;
  width: 92px;
  height: 66px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 74% 28%, #111a25 0 25%, transparent 26%),
    linear-gradient(100deg, #54d6b2 0 25%, #5457ff 25% 48%, #f34ed8 48% 72%, #ffca30 72% 100%);
}

.settings-rainbow span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 7px 7px 0 0;
  border-radius: 50%;
  background: #172331;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  direction: ltr;
}

.settings-section-title {
  margin: 24px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.account-field,
.api-sample,
.api-key-card {
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.api-sample {
  direction: ltr;
  text-align: left;
  line-height: 1.7;
}

.api-code-line {
  min-width: 0;
  justify-content: space-between;
}

.api-code-line > span,
.account-field > span,
.api-key-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.api-response {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-2);
  color: #dfeaf5;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}

.launch-card,
.launch-section {
  padding: 18px;
}

.launch-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 24% 0, rgba(255, 197, 47, .12), transparent 42%),
    rgba(18, 29, 39, .82);
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.launch-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 197, 47, .13);
  color: var(--yellow);
}

.launch-icon .icon-svg {
  width: 34px;
  height: 34px;
}

.launch-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.launch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}

.launch-action {
  width: 100%;
  margin-top: 4px;
}

.notifications-page {
  gap: 14px;
  padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + 26px);
}

.notifications-card {
  justify-items: stretch;
  gap: 14px;
  padding: 20px 18px 18px;
  border-radius: 26px;
  text-align: start;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 123, 255, .13), transparent 36%),
    radial-gradient(circle at 0 0, rgba(255, 197, 47, .08), transparent 28%),
    linear-gradient(180deg, rgba(17, 24, 39, .94), rgba(17, 24, 39, .88));
}

.notifications-icon {
  width: 50px;
  height: 50px;
  justify-self: start;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .12), transparent 28%),
    linear-gradient(180deg, rgba(47, 123, 255, .18), rgba(47, 123, 255, .10));
  color: #8fd5ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 10px 22px rgba(8, 16, 30, .22);
}

.notifications-icon .icon-svg {
  width: 26px;
  height: 26px;
}

.notifications-copy {
  display: grid;
  gap: 8px;
}

.notifications-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 950;
}

.notifications-description {
  margin: 0;
  max-width: 42ch;
  color: #aab7c6;
  font-size: 13.5px;
  line-height: 1.8;
  font-weight: 700;
}

.notifications-info-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)),
    rgba(10, 18, 28, .48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 10px 24px rgba(2, 10, 20, .12);
}

.notifications-info-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .055), rgba(203, 213, 225, .020)),
    rgba(15, 23, 35, .64);
  border: 1px solid rgba(255, 255, 255, .05);
}

.notifications-info-label {
  color: #8ea0b3;
  font-size: 11.5px;
  font-weight: 900;
}

.notifications-account-value {
  min-width: 0;
  margin-inline-start: auto;
  color: #f3f7fb;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 900;
  text-align: end;
  overflow-wrap: anywhere;
}

.notifications-status-chip {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 900;
}

.notifications-status-chip.is-enabled {
  background:
    linear-gradient(180deg, rgba(37, 211, 102, .18), rgba(37, 211, 102, .08));
  border: 1px solid rgba(37, 211, 102, .18);
  color: #caffdf;
}

.notifications-status-chip.is-disabled {
  background:
    linear-gradient(180deg, rgba(148, 163, 184, .16), rgba(148, 163, 184, .08));
  border: 1px solid rgba(148, 163, 184, .16);
  color: #dbe7f3;
}

.notifications-actions {
  margin-top: 2px;
}

.notifications-toggle-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

.notifications-toggle-hint {
  padding-inline: 2px;
  color: #98abbd;
  font-size: 12.5px;
  line-height: 1.8;
  font-weight: 750;
  text-align: start;
}

@media (max-width: 420px) {
  .notifications-card {
    padding: 18px 16px 16px;
  }

  .notifications-title {
    font-size: 18px;
  }

  .notifications-info-row {
    align-items: flex-start;
  }

  .notifications-account-value {
    max-width: 58%;
    font-size: 13.5px;
  }
}

@media (max-width: 360px) {
  .notifications-info-row {
    flex-direction: column;
    align-items: stretch;
  }

  .notifications-account-value,
  .notifications-status-chip {
    margin-inline-start: 0;
    justify-content: flex-start;
    text-align: start;
  }
}

.leaderboard-hero,
.leaderboard-list {
  display: grid;
  gap: 12px;
}

.leaderboard-hero {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 197, 47, .24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0, rgba(255, 197, 47, .20), transparent 38%),
    linear-gradient(135deg, rgba(20, 32, 43, .92), rgba(16, 27, 37, .84));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.leaderboard-hero h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.leaderboard-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 800;
}

.leaderboard-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(18, 29, 39, .78);
}

.leader-rank {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  color: var(--text);
  font-weight: 1000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.leaderboard-card.rank-1 .leader-rank {
  background: linear-gradient(180deg, #ffe47a, #ffc327);
  color: #2a1b02;
}

.leaderboard-card.rank-2 .leader-rank {
  background: linear-gradient(180deg, #edf5ff, #9fb4ca);
  color: #182635;
}

.leaderboard-card.rank-3 .leader-rank {
  background: linear-gradient(180deg, #ffc990, #c47638);
  color: #241404;
}

.leader-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.leader-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 1000;
}

.leader-main small {
  direction: ltr;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.leader-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.leader-stats span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.leader-stats strong {
  color: var(--yellow);
  font-size: 15px;
}

.leaderboard-note {
  padding: 14px;
}

.guide-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.guide-step:last-child {
  border-bottom: 0;
}

.guide-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 197, 47, .14);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
}

.guide-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 900;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

/* ==================================================
   Toasts / alerts
   ================================================== */.app-toast {
  position: fixed;
  z-index: 100;
  inset-inline: 18px;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 22px);
  width: min(calc(100% - 36px), 460px);
  margin-inline: auto;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(16, 25, 34, .96);
  color: var(--text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
  text-align: center;
  font-weight: 900;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast.is-success {
  border-color: rgba(37, 211, 102, .25);
  background: rgba(14, 61, 39, .96);
}

.app-toast.is-error {
  border-color: rgba(255, 100, 100, .3);
  background: rgba(70, 25, 30, .96);
}

.copy-btn {
  width: 34px;
  min-width: 34px;
  flex: 0 0 auto;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  color: #cdd9e6;
  border: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .16s ease, opacity .18s ease;
}

.copy-btn:hover {
  color: var(--yellow);
  border-color: rgba(255, 197, 47, .22);
  background: rgba(255, 197, 47, .08);
}

.copy-btn .ui-icon-copy {
  width: 19px;
  height: 19px;
}

.float-tg {
  position: fixed;
  z-index: 28;
  left: max(16px, calc((100vw - 520px) / 2 + 16px));
  bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px) + 14px);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #2ab8f8, #1590dc);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 26px rgba(19, 140, 220, .34);
}

/* ==================================================
   Bottom navigation
   ================================================== */.bottom-nav {
  position: fixed;
  z-index: 30;
  inset-inline: 0;
  bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
  width: min(calc(100% - 48px), 430px);
  margin-inline: auto;
  min-height: var(--bottom-nav-height);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  border: 1px solid #2c3d4d;
  border-radius: 26px;
  background: rgba(13, 21, 29, .92);
  backdrop-filter: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46);
  direction: ltr;
  transition: transform .22s ease, opacity .18s ease, visibility .18s ease;
}

body.keyboard-editing .bottom-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + 34px + env(safe-area-inset-bottom, 0px)));
}

.nav-item {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 20px;
  color: #aab9c8;
  font-weight: 800;
  direction: rtl;
  transition: color .18s ease, background-color .18s ease, transform .16s ease, border-color .18s ease, opacity .18s ease;
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 5px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .06);
  line-height: 1;
  color: currentColor;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .24));
}

.nav-item small {
  font-size: 11px;
  line-height: 1;
}

.nav-item.active {
  color: var(--yellow);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 197, 47, .14), transparent 62%),
    var(--surface-2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 8px 18px rgba(0, 0, 0, .18);
}

.nav-item[data-route="/app/services"] .nav-icon {
  color: #40e083;
}

.nav-item[data-route="/app/orders"] .nav-icon {
  color: #ffc52f;
}

.nav-item[data-route="/app/settings"] .nav-icon {
  color: #9dbfff;
}

.nav-item.active .nav-icon {
  color: var(--yellow);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .22), transparent 38%),
    linear-gradient(180deg, rgba(255, 197, 47, .2), rgba(255, 197, 47, .065));
  border-color: rgba(255, 197, 47, .24);
  box-shadow:
    0 8px 18px rgba(255, 197, 47, .12),
    inset 0 1px 0 rgba(255, 255, 255, .11);
}

.app-footer { display: none; }
.hidden { display: none !important; }

/* ==================================================
   Empty / error / loading states
   ================================================== */.empty-state {
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  line-height: 1.7;
}

.nav-error-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  padding: 34px 16px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 100, 100, .11), transparent 38%),
    rgba(18, 29, 39, .62);
  text-align: center;
}

.nav-error-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 100, 100, .13);
  color: #ffb2b2;
  font-size: 28px;
  font-weight: 1000;
}

.nav-error-state h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 1000;
}

.nav-error-state p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 800;
}

.nav-error-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.skeleton-list {
  display: grid;
  gap: 12px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .11), transparent);
  animation: shimmer 1.3s infinite;
}

.skeleton-line { width: 50%; height: 24px; border-radius: 999px; }
.skeleton-card { height: 82px; }

.category-row:active,
.menu-row-card:active,
.order-row-card:active,
.service-row-card:active,
.accent-btn:active,
.ghost-btn:active,
.nav-item:active,
.float-tg:active {
  transform: scale(.985);
}

.is-filtered-out { display: none !important; }

.mode-detail .search-wrap,
.mode-menu .search-wrap,
.mode-api .search-wrap,
.mode-wallet .search-wrap {
  display: none;
}

.mode-detail .app-header,
.mode-api .app-header,
.mode-account .app-header {
  margin-bottom: 22px;
}

.mode-detail .brand,
.mode-api .brand,
.mode-account .brand {
  visibility: hidden;
}

.mode-detail {
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
}

.mode-detail .app-header {
  min-height: 40px;
  margin-bottom: 22px;
}

.mode-detail .service-detail-topbar {
  margin-bottom: 10px;
}

.mode-detail .service-detail-hero {
  gap: 5px;
  margin-bottom: 10px;
}

.mode-detail .service-detail-icon,
.mode-detail .order-detail-main-icon {
  width: 64px;
  height: 64px;
}

.mode-detail .service-detail-icon .icon-svg,
.mode-detail .order-detail-main-icon .icon-svg {
  width: 34px;
  height: 34px;
}

.mode-detail .category-hero-mini h3,
.mode-detail .service-detail-hero h3 {
  font-size: 20px;
}

.mode-detail .detail-field-label {
  margin: 7px 0 6px;
}

.mode-detail .preset-grid {
  gap: 8px;
  margin: 8px 0 12px;
}

.mode-detail .premium-preset-btn {
  min-height: 54px;
  border-radius: 16px;
  font-size: 18px;
}

.mode-detail .input-field,
.mode-detail .premium-input-field {
  min-height: 48px;
}

.mode-detail .price-line,
.mode-detail .detail-line {
  padding: 10px 0;
}

.mode-detail .premium-create-btn {
  min-height: 54px;
}

/* ==================================================
   Order success
   ================================================== */.order-success-view {
  gap: 14px;
}

.order-success-shell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 26px 16px 18px;
  border: 1px solid rgba(37, 211, 102, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(37, 211, 102, .13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(13, 22, 31, .82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 22px 52px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.order-success-shell::before {
  content: "";
  position: absolute;
  inset: -70px auto auto 50%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .12);
  filter: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.order-success-icon,
.order-success-empty-icon {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, .55), transparent 27%),
    linear-gradient(145deg, #2af073 0%, #20d766 54%, #0fae4e 100%);
  color: #062414;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 18px 40px rgba(37, 211, 102, .24);
  animation: orderSuccessPop .62s cubic-bezier(.2, 1.22, .32, 1) both;
}

.order-success-empty-icon {
  font-size: 44px;
  font-weight: 900;
}

.order-success-icon svg {
  width: 72px;
  height: 72px;
  overflow: visible;
}

.order-success-icon-ring,
.order-success-icon-check {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-success-icon-ring {
  stroke-width: 3;
  opacity: .24;
}

.order-success-icon-check {
  stroke-width: 6;
  stroke-dasharray: 43;
  stroke-dashoffset: 43;
  animation: orderSuccessDraw .58s ease .24s forwards;
}

.order-success-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.order-success-copy h3,
.order-success-shell h3 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}

.order-success-copy p,
.order-success-shell p {
  margin: 0;
  color: #c5d3df;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.order-success-copy span {
  margin-top: 2px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border: 1px solid rgba(37, 211, 102, .16);
  border-radius: 999px;
  background: rgba(37, 211, 102, .10);
  color: #87f7b5;
  font-size: 13px;
  font-weight: 900;
}

.order-success-card {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(16, 28, 38, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.order-success-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.order-success-row:last-child {
  border-bottom: 0;
}

.order-success-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-success-row strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  direction: rtl;
}

.order-success-row.is-link strong {
  direction: ltr;
  unicode-bidi: isolate;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8fd5ff;
}

.order-success-row .status-pill {
  justify-self: end;
  min-height: 26px;
  padding-inline: 10px;
  font-size: 12px;
}

.order-success-actions {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 10px;
}

.order-success-primary,
.order-success-secondary {
  width: 100%;
  min-height: 54px;
  border-radius: 20px;
  font-size: 17px;
}

/* ==================================================
   Animations and responsive rules
   ================================================== */@keyframes orderSuccessPop {
  0% { opacity: 0; transform: translateY(12px) scale(.68); }
  64% { opacity: 1; transform: translateY(0) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes orderSuccessDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes routePulse {
  0% { opacity: .25; transform: translateX(-80px) scaleX(.55); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  100% { opacity: .25; transform: translateX(4px) scaleX(.55); }
}

@keyframes shimmer {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 420px) {
  .app-root { padding-inline: 16px; }
  .bottom-nav { width: calc(100% - 38px); }
  .home-balance-card {
    min-height: 138px;
    padding: 14px;
    border-radius: 24px;
  }
  .home-actions {
    margin-top: 8px;
  }
  .home-action-btn {
    min-height: 42px;
    border-radius: 14px;
  }
  .platform-grid { gap: 10px; }
  .platform-card {
    min-height: 90px;
    grid-template-columns: minmax(0, 1fr) 60px;
    padding: 12px;
  }
  .platform-icon {
    width: 60px;
    height: 60px;
    border-radius: 19px;
  }
  .platform-icon::before {
    inset: 6px;
    border-radius: 15px;
  }
  .platform-icon .icon-svg,
  .platform-icon .icon-svg.icon-instagram,
  .platform-icon .icon-svg.icon-tiktok,
  .platform-icon .icon-svg.icon-telegram,
  .platform-icon .icon-svg.icon-x,
  .platform-icon .icon-svg.icon-facebook,
  .platform-icon .icon-svg.icon-youtube,
  .platform-icon .icon-svg.icon-snapchat,
  .platform-icon .icon-svg.icon-whatsapp {
    width: 46px;
    height: 46px;
  }
  .category-row,
  .menu-row-card,
  .service-row-card,
  .order-row-card {
    padding-inline: 12px;
  }
  .service-row-card {
    grid-template-columns: 52px minmax(0, 1fr) 16px;
    gap: 10px;
  }
  .payment-method-card {
    grid-template-columns: 20px minmax(0, 1fr) auto 56px;
    gap: 10px;
    padding: 13px;
    border-radius: 22px;
  }
  .payment-method-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
  .payment-method-icon svg {
    width: 29px;
    height: 29px;
  }
  .payment-method-copy strong {
    font-size: 18px;
  }
  .payment-method-copy small {
    font-size: 12px;
  }
  .payment-method-badge {
    padding-inline: 8px;
    font-size: 10px;
  }
  .category-icon,
  .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
  .category-title,
  .service-title,
  .order-title,
  .menu-title { font-size: 16px; }
  .category-hero-mini h3,
  .service-detail-hero h3 { font-size: 22px; }
}

@media (max-width: 360px) {
  .app-root { padding-inline: 12px; }
  .brand-mark { width: 50px; min-width: 50px; }
  .balance-chip {
    min-height: 40px;
    padding-left: 11px;
  }
  .balance-chip-value { font-size: 13px; }
  .balance-plus {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .home-actions { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .preset-grid { gap: 9px; }
  .premium-preset-btn { min-height: 62px; font-size: 19px; }
  .bottom-nav { width: calc(100% - 24px); }
  .settings-card { grid-template-columns: 1fr; }
  .settings-rainbow { justify-self: start; }
  .nav-error-actions { grid-template-columns: 1fr; }
}

/* ==================================================
   Premium polish pass / source-order overrides
   Keep source order unchanged
   ================================================== *//* Premium polish pass: visual-only overrides for the Telegram WebApp. */
:root {
  --bg: #0d151e;
  --bg-soft: #111c27;
  --surface: rgba(18, 28, 39, .82);
  --surface-2: rgba(24, 36, 48, .86);
  --surface-3: rgba(31, 45, 59, .90);
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .065);
  --text: #f4f8fb;
  --muted: #a7b7c7;
  --muted-2: #7f91a3;
  --yellow: #f7c948;
  --yellow-2: #eab308;
  --green: #37d98a;
  --blue: #55bdf8;
  --red: #ff7474;
  --shadow: 0 18px 42px rgba(0, 0, 0, .24);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, .18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --tap-size: 48px;
}

html {
  overflow-x: clip;
  background: #070c12;
}

body.app-body {
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(85, 189, 248, .10), transparent 34%),
    linear-gradient(180deg, #071018 0%, #0d151e 48%, #0e1720 100%);
  font-family: "Cairo", "Tajawal", "Noto Sans Arabic", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body.app-body,
body.app-body * {
  -webkit-text-size-adjust: 100%;
}

.app-root {
  width: min(100%, 520px);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px var(--bottom-safe-space);
  background:
    linear-gradient(180deg, rgba(14, 23, 32, .96) 0%, rgba(13, 21, 30, .985) 100%);
  isolation: isolate;
}

.app-root::before {
  background:
    radial-gradient(circle at 50% 0, rgba(247, 201, 72, .055), transparent 38%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .018), transparent);
}

:where(.content-view, .detail-stack, .section-card, .section-rows, .service-card, .order-card, .menu-row-card, .category-row, .wallet-page, .payment-method-card, .launch-card, .leaderboard-card, .order-success-shell) {
  min-width: 0;
}

:where(.service-title, .order-title, .menu-title, .category-title, .detail-title, .page-title, .platform-title, .wallet-pricing-head h3, .launch-card h3, .leader-main strong) {
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

:where(.muted, .service-meta, .order-meta, .menu-meta, .detail-meta, .field-hint, .wallet-rate-note, .launch-card p, .guide-step p) {
  color: var(--muted);
  line-height: 1.75;
}

:where(.primary-btn, .accent-btn, .ghost-btn, .secondary-btn, .back-link, .home-action-btn, .premium-create-btn, .voucher-submit, .launch-action, .order-success-primary, .order-success-secondary) {
  min-height: 52px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  touch-action: manipulation;
}

.primary-btn,
.accent-btn,
.home-action-btn:not(.is-soft),
.premium-create-btn,
.voucher-submit,
.launch-action,
.order-success-primary {
  border-color: rgba(247, 201, 72, .30);
  background:
    linear-gradient(180deg, #f8d56b 0%, #eab308 100%);
  color: #1c1502;
  box-shadow:
    0 14px 30px rgba(234, 179, 8, .14),
    inset 0 1px 0 rgba(255, 255, 255, .40);
}

.ghost-btn,
.secondary-btn,
.back-link,
.home-action-btn.is-soft,
.order-success-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  border-color: rgba(255, 255, 255, .09);
  color: #edf5fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

:where(button, a, input, textarea, select):focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(85, 189, 248, .18),
    0 0 0 1px rgba(85, 189, 248, .42);
}

:where(button, .nav-item, .platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option):disabled,
:where(button, .nav-item, .platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option)[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
}

.app-header {
  margin-bottom: 18px;
}

.brand-title {
  color: rgba(244, 248, 251, .96);
  font-size: 12px;
  letter-spacing: .035em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
}

.balance-chip {
  min-height: 44px;
  border-color: rgba(255, 255, 255, .10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .026)),
    rgba(12, 20, 29, .88);
  box-shadow: var(--shadow-soft);
}

.search-bar {
  min-height: 50px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.search-bar input {
  font-size: 15px;
  font-weight: 650;
}

.section-card,
.section-rows,
.wallet-pricing-card,
.voucher-card,
.launch-card,
.leaderboard-hero,
.leaderboard-card,
.order-success-shell,
.settings-card,
.detail-card {
  border-color: rgba(255, 255, 255, .085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(17, 27, 38, .82);
  box-shadow: var(--shadow-soft);
}

.section-card,
.section-rows {
  border-radius: 24px;
}

.home-balance-card {
  min-height: 154px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, .11), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(85, 189, 248, .16), transparent 40%),
    linear-gradient(135deg, #172842 0%, #142539 58%, #12304a 100%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .24);
}

.home-balance-copy span,
.home-section-title,
.detail-field-label,
.wallet-section-title span {
  color: #b5c5d5;
}

.home-balance-copy strong {
  letter-spacing: -.025em;
}

.platform-card {
  min-height: 98px;
  border-color: rgba(255, 255, 255, .085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .050), rgba(255, 255, 255, .018)),
    rgba(16, 25, 35, .86);
}

.platform-title {
  font-size: 16px;
  font-weight: 850;
}

.platform-icon,
.category-icon,
.service-icon,
.order-icon,
.menu-icon,
.category-mini-icon,
.service-detail-icon,
.order-detail-main-icon,
.launch-icon,
.payment-method-icon {
  border-color: rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .022)),
    rgba(21, 33, 45, .92);
}

.service-row-card,
.order-row-card,
.menu-row-card,
.category-row {
  min-height: 84px;
  padding-block: 13px;
}

.service-row-card,
.order-row-card {
  gap: 13px;
}

.service-title,
.order-title,
.menu-title,
.category-title {
  color: #f3f7fb;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
}

.service-row-card .service-title,
.order-row-card .order-title,
.menu-row-card .menu-title {
  -webkit-line-clamp: 2;
}

.service-panel-meta-row,
.service-panel-actions,
.order-extra-meta,
.price-line,
.detail-line {
  gap: 8px;
}

.pill,
.status-pill,
.service-point-pill,
.service-discount-badge,
.service-range-pill,
.payment-method-badge,
.discount-pill {
  border: 1px solid rgba(255, 255, 255, .07);
  font-weight: 850;
  letter-spacing: 0;
}

.input-field,
.select-field,
.text-area,
.voucher-input {
  min-height: 56px;
  border-color: rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(7, 14, 22, .62);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.input-field:focus,
.select-field:focus,
.text-area:focus,
.voucher-input:focus {
  border-color: rgba(85, 189, 248, .48);
  box-shadow:
    0 0 0 4px rgba(85, 189, 248, .10),
    inset 0 1px 0 rgba(255, 255, 255, .055);
}

.premium-preset-btn {
  border-color: rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(16, 25, 35, .88);
}

.premium-preset-btn.is-active {
  border-color: rgba(247, 201, 72, .30);
  background:
    radial-gradient(circle at 50% 0, rgba(247, 201, 72, .22), transparent 55%),
    rgba(247, 201, 72, .10);
}

.speed-gauge-card {
  border-color: rgba(255, 255, 255, .060);
}

.detail-link-value {
  max-width: 68%;
  color: var(--blue);
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

.wallet-page,
.detail-stack {
  gap: 16px;
}

.wallet-rate-table,
.api-response,
.api-sample,
.api-key-card,
.account-field {
  border: 1px solid rgba(255, 255, 255, .075);
  background: rgba(10, 18, 27, .58);
}

.payment-method-card {
  border-color: rgba(255, 255, 255, .085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018)),
    rgba(16, 25, 35, .88);
}

.payment-method-copy strong,
.wallet-topbar h2,
.page-title,
.service-create-title,
.settings-section-title {
  color: #f5f8fb;
  font-weight: 900;
  letter-spacing: 0;
}

.referral-page {
  gap: 16px;
  padding-bottom: var(--bottom-safe-space);
}

.gifts-page {
  gap: 16px;
  padding-bottom: var(--bottom-safe-space);
}

.gifts-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 197, 47, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .040), rgba(255, 255, 255, .016)),
    rgba(17, 24, 39, .92);
}

.gifts-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #ffd66b;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 197, 47, .22), transparent 44%),
    linear-gradient(180deg, rgba(255, 197, 47, .11), rgba(255, 197, 47, .03)),
    rgba(11, 18, 32, .82);
  border: 1px solid rgba(255, 197, 47, .24);
}

.gifts-hero-icon .icon-svg {
  width: 34px;
  height: 34px;
}

.gifts-hero-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gifts-hero-copy h3 {
  margin: 0;
  color: var(--app-text);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
}

.gifts-hero-copy p {
  margin: 0;
  color: var(--app-text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.gifts-hero-hint {
  justify-self: start;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 197, 47, .22);
  background: rgba(255, 197, 47, .08);
  color: #ffe9a6;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.6;
}

.gifts-daily-card,
.gifts-code-card {
  gap: 14px;
}

.gifts-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.gifts-card-icon {
  flex: 0 0 auto;
}

.gifts-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.gifts-card-kicker {
  color: #ffd66b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.gifts-card-copy h3 {
  margin: 0;
  color: var(--app-text);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 950;
}

.gifts-card-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.gifts-daily-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gifts-daily-pill {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(255, 255, 255, .055);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.gifts-daily-pill.is-ready {
  border-color: rgba(34, 197, 94, .26);
  background: rgba(34, 197, 94, .12);
  color: #9cf3be;
}

.gifts-daily-pill.is-cooldown {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(148, 163, 184, .08);
  color: #d7e0ee;
}

.gifts-daily-value {
  color: var(--app-text);
  font-size: 18px;
  font-weight: 950;
}

.gifts-daily-helper {
  color: var(--app-text-secondary);
  font-size: 12px;
  line-height: 1.7;
}

.gifts-countdown-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(7, 13, 24, .60);
}

.gifts-countdown-box span {
  color: var(--app-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.gifts-countdown-box strong {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.gifts-countdown-box bdi {
  unicode-bidi: isolate;
}

.gifts-claim-btn[disabled] {
  opacity: .72;
}

.referral-hero,
.referral-link-card,
.referral-steps-card {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .040), rgba(255, 255, 255, .016)),
    rgba(17, 24, 39, .92);
}

.referral-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.referral-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #9dc7ff;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 123, 255, .20), transparent 44%),
    linear-gradient(180deg, rgba(47, 123, 255, .10), rgba(47, 123, 255, .03)),
    rgba(11, 18, 32, .82);
  border: 1px solid rgba(47, 123, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.referral-icon .icon-svg {
  width: 34px;
  height: 34px;
}

.referral-copy {
  display: grid;
  gap: 8px;
  max-width: 100%;
}

.referral-title {
  margin: 0;
  color: var(--app-text);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
}

.referral-subtitle {
  margin: 0;
  color: var(--app-text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.referral-reward-hint {
  justify-self: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 123, 255, .22);
  background: rgba(47, 123, 255, .10);
  color: #d9e9ff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.6;
}

.referral-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.referral-section-head strong {
  color: var(--app-text);
  font-size: 15px;
  font-weight: 900;
}

.referral-section-head span {
  color: var(--app-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.referral-link-box {
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(7, 13, 24, .66);
  min-width: 0;
}

.referral-link-text {
  display: block;
  min-width: 0;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}

.referral-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.referral-copy-btn,
.referral-share-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: center;
  line-height: 1.4;
  white-space: normal;
}

.referral-copy-btn .ui-icon,
.referral-share-btn .icon-svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.referral-share-btn {
  text-decoration: none;
  color: var(--app-text);
}

.referral-copy-btn[disabled],
.referral-share-btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

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

.referral-stat-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .016)),
    rgba(16, 25, 35, .88);
}

.referral-stat-card span {
  color: var(--app-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.referral-stat-card strong {
  color: var(--app-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.referral-steps {
  display: grid;
  gap: 10px;
}

.referral-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.referral-step:first-child {
  border-top: 0;
  padding-top: 4px;
}

.referral-step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #d9e9ff;
  background: rgba(47, 123, 255, .14);
  border: 1px solid rgba(47, 123, 255, .22);
  font-size: 13px;
  font-weight: 900;
}

.referral-step strong {
  color: var(--app-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 430px) {
  .gifts-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .gifts-hero-hint {
    justify-self: center;
  }

  .gifts-card-head {
    grid-template-columns: 1fr;
  }

  .gifts-card-icon {
    justify-self: start;
  }

  .gifts-daily-state,
  .gifts-countdown-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .referral-actions {
    grid-template-columns: 1fr;
  }

  .referral-title {
    font-size: 22px;
  }
}

.orders-filter-row,
.api-tabs,
.settings-tabs {
  padding-bottom: 2px;
}

.orders-filter-chip,
.api-tab,
.settings-tab {
  min-height: 44px;
  border-color: rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .025);
  font-size: 15px;
  font-weight: 800;
}

.orders-filter-chip.active,
.api-tab.active,
.settings-tab.active,
.language-option.is-active {
  border-color: rgba(247, 201, 72, .26);
  background:
    radial-gradient(circle at 50% 0, rgba(247, 201, 72, .15), transparent 58%),
    rgba(247, 201, 72, .075);
}

.language-option {
  border-radius: 20px;
  min-height: 66px;
}

.bottom-nav {
  width: min(calc(100% - 36px), 430px);
  border-color: rgba(255, 255, 255, .10);
  background: rgba(9, 16, 24, .88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
}

.nav-item {
  min-height: 50px;
  font-weight: 800;
}

.nav-item small {
  font-size: 11.5px;
}

.app-toast {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .070), rgba(255, 255, 255, .025)),
    rgba(10, 17, 25, .96);
  backdrop-filter: none;
}

.empty-state,
.nav-error-state {
  border-radius: 24px;
}

.empty-state {
  padding: 30px 18px;
  color: #aebdcb;
  font-weight: 750;
}

.skeleton {
  background: rgba(255, 255, 255, .045);
}

.skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
}

.order-success-shell {
  padding-inline: 18px;
}

.order-success-row {
  gap: 12px;
}

.order-success-row strong {
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  :where(.platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option, .premium-preset-btn, .nav-item):hover {
    border-color: rgba(255, 255, 255, .14);
  }
}

@media (max-width: 430px) {
  .app-root {
    padding-inline: 16px;
  }

  .content-view {
    min-height: 400px;
  }

  .section-card,
  .section-rows {
    border-radius: 22px;
  }

  .home-balance-card {
    min-height: 146px;
    padding: 16px;
  }

  .platform-card {
    min-height: 92px;
    padding: 12px;
  }

  .service-row-card,
  .order-row-card {
    padding-inline: 12px;
  }

  .payment-method-card {
    grid-template-columns: 18px minmax(0, 1fr) auto 54px;
  }

  .detail-link-value {
    max-width: 62%;
  }
}

@media (max-width: 360px) {
  .app-root {
    padding-inline: 12px;
  }

  .bottom-nav {
    width: calc(100% - 24px);
  }

  .service-row-card {
    grid-template-columns: 50px minmax(0, 1fr) 14px;
  }

  .order-row-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .order-status-stack {
    grid-column: 2;
    justify-self: start;
  }

  .detail-line,
  .price-line {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-link-value {
    max-width: 100%;
  }
}

/* ==================================================
   Obsidian Blue theme overrides
   Keep source order unchanged
   ================================================== *//* Obsidian Blue theme: final visual layer, no layout or business logic changes. */
:root {
  --app-bg: #0B1220;
  --app-bg-deep: #070D18;
  --app-surface: #111827;
  --app-surface-elevated: #172033;
  --app-surface-soft: #1E293B;
  --app-primary: #2F7BFF;
  --app-primary-hover: #1D64E8;
  --app-primary-soft: rgba(47, 123, 255, .12);
  --app-primary-border: rgba(47, 123, 255, .28);
  --app-text: #F8FAFC;
  --app-text-secondary: #CBD5E1;
  --app-text-muted: #94A3B8;
  --app-text-disabled: #64748B;
  --app-border: #263244;
  --app-border-soft: rgba(148, 163, 184, .16);
  --app-border-strong: rgba(148, 163, 184, .28);
  --app-success: #22C55E;
  --app-success-soft: rgba(34, 197, 94, .13);
  --app-warning: #F59E0B;
  --app-warning-soft: rgba(245, 158, 11, .14);
  --app-danger: #EF4444;
  --app-danger-soft: rgba(239, 68, 68, .14);
  --app-transition-fast: .15s ease-in-out;
  --app-transition-smooth: .25s cubic-bezier(.4, 0, .2, 1);
  --app-radius-sm: 6px;
  --app-radius-md: 12px;
  --app-radius-lg: 16px;
  --app-radius-xl: 24px;
  --app-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, .16), 0 2px 4px -1px rgba(0, 0, 0, .10);
  --app-shadow-elevated: 0 18px 38px rgba(0, 0, 0, .26);

  --bg: var(--app-bg);
  --bg-soft: var(--app-bg-deep);
  --surface: var(--app-surface);
  --surface-2: var(--app-surface-elevated);
  --surface-3: var(--app-surface-soft);
  --line: var(--app-border);
  --line-soft: var(--app-border-soft);
  --text: var(--app-text);
  --muted: var(--app-text-secondary);
  --muted-2: var(--app-text-muted);
  --yellow: var(--app-primary);
  --yellow-2: var(--app-primary-hover);
  --green: var(--app-success);
  --blue: var(--app-primary);
  --red: var(--app-danger);
  --orange: var(--app-warning);
  --shadow: var(--app-shadow-elevated);
  --shadow-soft: var(--app-shadow-soft);
  --radius-xl: var(--app-radius-xl);
  --radius-lg: var(--app-radius-lg);
  --radius-md: var(--app-radius-md);
  --bottom-safe-space: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 20px) + 42px);
}

html {
  background: var(--app-bg-deep);
  scrollbar-color: var(--app-surface-elevated) var(--app-bg-deep);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--app-bg-deep);
}

::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid var(--app-bg-deep);
  border-radius: 999px;
  background: var(--app-surface-elevated);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--app-surface-soft);
}

body.app-body {
  color: var(--app-text);
  background:
    radial-gradient(circle at 50% -12%, rgba(47, 123, 255, .12), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(47, 123, 255, .06), transparent 30%),
    linear-gradient(180deg, var(--app-bg-deep) 0%, var(--app-bg) 46%, #0A101D 100%);
}

.app-root {
  background:
    linear-gradient(180deg, rgba(11, 18, 32, .98) 0%, rgba(11, 18, 32, .995) 100%);
  padding-bottom: var(--bottom-safe-space);
}

.app-root::before {
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .075), transparent 40%),
    linear-gradient(90deg, transparent, rgba(203, 213, 225, .018), transparent);
}

.auth-card {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .040), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .90);
  box-shadow: var(--app-shadow-soft);
}

.auth-badge {
  border: 1px solid var(--app-primary-border);
  background: var(--app-primary-soft);
  color: #BFDBFE;
}

:where(.platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option, .premium-preset-btn, .primary-btn, .accent-btn, .ghost-btn, .secondary-btn, .back-link, .home-action-btn, .input-field, .select-field, .text-area, .voucher-input, .bottom-nav, .app-toast) {
  transition:
    background-color var(--app-transition-smooth),
    border-color var(--app-transition-smooth),
    box-shadow var(--app-transition-smooth),
    color var(--app-transition-fast),
    transform var(--app-transition-fast);
}

.section-card,
.section-rows,
.wallet-pricing-card,
.voucher-card,
.launch-card,
.leaderboard-hero,
.leaderboard-card,
.order-success-shell,
.settings-card,
.detail-card,
.wallet-rate-table,
.api-response,
.api-sample,
.api-key-card,
.account-field {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    rgba(17, 24, 39, .88);
  box-shadow: var(--app-shadow-soft);
}

.home-balance-card {
  border-color: var(--app-primary-border);
  background:
    radial-gradient(circle at 20% 0, rgba(248, 250, 252, .08), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(47, 123, 255, .18), transparent 44%),
    linear-gradient(135deg, #111827 0%, #14213A 58%, #172033 100%);
  box-shadow: var(--app-shadow-elevated);
}

.primary-btn,
.accent-btn,
.home-action-btn:not(.is-soft),
.premium-create-btn,
.voucher-submit,
.launch-action,
.order-success-primary {
  border-color: var(--app-primary-border);
  background:
    linear-gradient(180deg, var(--app-primary) 0%, var(--app-primary-hover) 100%);
  color: #FFFFFF;
  box-shadow:
    0 14px 30px rgba(47, 123, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .24);
}

.primary-btn:hover,
.accent-btn:hover,
.home-action-btn:not(.is-soft):hover,
.premium-create-btn:hover,
.voucher-submit:hover,
.launch-action:hover,
.order-success-primary:hover {
  background:
    linear-gradient(180deg, #3B82FF 0%, var(--app-primary-hover) 100%);
  box-shadow:
    0 16px 34px rgba(47, 123, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}

.ghost-btn,
.secondary-btn,
.back-link,
.home-action-btn.is-soft,
.order-success-secondary {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .070), rgba(203, 213, 225, .024)),
    rgba(17, 24, 39, .74);
  color: var(--app-text);
}

:where(button, a, input, textarea, select):focus-visible {
  box-shadow:
    0 0 0 3px rgba(47, 123, 255, .22),
    0 0 0 1px rgba(47, 123, 255, .52);
}

.balance-chip,
.search-bar,
.input-field,
.select-field,
.text-area,
.voucher-input {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .060), rgba(203, 213, 225, .020)),
    rgba(7, 13, 24, .70);
}

.input-field:focus,
.select-field:focus,
.text-area:focus,
.voucher-input:focus {
  border-color: rgba(47, 123, 255, .52);
  box-shadow:
    0 0 0 4px rgba(47, 123, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.platform-card,
.payment-method-card {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .052), rgba(203, 213, 225, .016)),
    rgba(17, 24, 39, .88);
}

.platform-card:hover,
.payment-method-card:hover {
  border-color: var(--app-primary-border);
  background:
    radial-gradient(circle at 88% 0, rgba(47, 123, 255, .10), transparent 42%),
    rgba(23, 32, 51, .92);
}

.platform-icon,
.category-icon,
.service-icon,
.order-icon,
.menu-icon,
.category-mini-icon,
.service-detail-icon,
.order-detail-main-icon,
.launch-icon,
.payment-method-icon {
  border-color: var(--app-border-soft);
  background:
    radial-gradient(circle at 34% 20%, rgba(248, 250, 252, .095), transparent 34%),
    linear-gradient(180deg, rgba(203, 213, 225, .060), rgba(203, 213, 225, .020)),
    var(--app-surface-elevated);
}

.service-row-card:hover,
.order-row-card:hover,
.menu-row-card:hover,
.category-row:hover {
  background: rgba(47, 123, 255, .045);
}

.home-balance-copy span,
.home-section-title,
.detail-field-label,
.wallet-section-title span,
.muted,
.service-meta,
.order-meta,
.menu-meta,
.detail-meta,
.field-hint {
  color: var(--app-text-secondary);
}

.empty-state,
.wallet-rate-note,
.launch-card p,
.guide-step p,
.payment-method-copy small,
.brand-subtitle {
  color: var(--app-text-muted);
}

.pill.green,
.status-pill.completed,
.tx-amount.is-positive,
.wallet-rate-points,
.stars-pay-status.is-success,
.voucher-result.is-success {
  color: #86EFAC !important;
}

.pill.green,
.status-pill.completed {
  background: var(--app-success-soft);
}

.pill.yellow,
.status-pill.processing,
.speed-gauge-card.speed-gauge-medium {
  color: #FCD34D;
}

.pill.yellow,
.status-pill.processing {
  background: var(--app-warning-soft);
}

.status-pill.failed,
.status-pill.cancelled,
.pill.red,
.voucher-result.is-error,
.stars-pay-status.is-error {
  color: #FCA5A5;
  background: var(--app-danger-soft);
}

.pill.blue,
.orders-filter-chip .count-dot,
.service-point-pill,
.wallet-history-chip,
.stars-kicker,
.language-code,
.discount-pill,
.service-range-pill {
  color: #93C5FD;
  background: var(--app-primary-soft);
  border-color: var(--app-primary-border);
}

.service-discount-badge {
  color: #FCD34D;
  background: var(--app-warning-soft);
  border-color: rgba(245, 158, 11, .26);
}

.old-price,
.nav-item,
.copy-btn {
  color: var(--app-text-muted);
}

.copy-btn:hover,
.menu-row-card:hover .menu-chevron,
.order-row-card:hover .menu-chevron,
.service-row-card:hover .menu-chevron {
  color: #93C5FD;
  border-color: var(--app-primary-border);
}

.premium-preset-btn.is-active,
.orders-filter-chip.active,
.api-tab.active,
.settings-tab.active,
.language-option.is-active,
.nav-item.active {
  border-color: var(--app-primary-border);
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .18), transparent 58%),
    var(--app-primary-soft);
  color: #BFDBFE;
}

.premium-preset-btn.is-active {
  box-shadow: inset 0 0 0 1px rgba(47, 123, 255, .10);
}

.nav-icon,
.nav-item.active .nav-icon {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .070), rgba(203, 213, 225, .020)),
    rgba(17, 24, 39, .70);
}

.nav-item.active .nav-icon {
  color: #93C5FD;
  border-color: var(--app-primary-border);
  box-shadow:
    0 8px 18px rgba(47, 123, 255, .14),
    inset 0 1px 0 rgba(255, 255, 255, .09);
}

.bottom-nav {
  border-color: var(--app-border-soft);
  background: rgba(7, 13, 24, .88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .36);
}

.progress-bar {
  background: rgba(148, 163, 184, .14);
}

.progress-bar span {
  background: linear-gradient(90deg, var(--app-primary-hover), var(--app-primary));
}

.speed-gauge-card {
  --speed-color: var(--app-warning);
  --speed-color-2: var(--app-warning);
  --speed-glow: rgba(245, 158, 11, .16);
  border-color: var(--app-border-soft);
}

.speed-gauge-card.speed-gauge-fast {
  --speed-color: var(--app-success);
  --speed-color-2: var(--app-success);
  --speed-glow: rgba(34, 197, 94, .17);
}

.speed-gauge-card.speed-gauge-slow {
  --speed-color: var(--app-danger);
  --speed-color-2: var(--app-danger);
  --speed-glow: rgba(239, 68, 68, .17);
}

.speed-gauge-track {
  stroke: var(--app-surface-soft);
}

.speed-gauge-card::after,
.app-toast {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .070), rgba(203, 213, 225, .020)),
    rgba(7, 13, 24, .96);
}

.stars-custom-card,
.stars-preview-card span {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .052), rgba(203, 213, 225, .016)),
    rgba(17, 24, 39, .82);
}

.stars-points-input {
  border-color: var(--app-border-soft);
  background: rgba(7, 13, 24, .72);
}

.stars-points-input:focus {
  border-color: rgba(47, 123, 255, .52);
}

.stars-submit-btn:disabled {
  box-shadow: none;
}

.app-toast.is-success {
  border-color: rgba(34, 197, 94, .28);
  background: rgba(8, 38, 25, .96);
}

.app-toast.is-error {
  border-color: rgba(239, 68, 68, .30);
  background: rgba(50, 18, 24, .96);
}

.wallet-pricing-card,
.voucher-card,
.leaderboard-hero,
.order-success-shell {
  background:
    radial-gradient(circle at 90% 0, rgba(47, 123, 255, .12), transparent 36%),
    linear-gradient(180deg, rgba(203, 213, 225, .040), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .90);
}

.payment-sheet-head {
  background: var(--app-bg);
  color: var(--app-text);
}

.payment-sheet-backdrop,
.stars-sheet-backdrop {
  background: rgba(7, 13, 24, .76);
}

.payment-sheet-close {
  border-color: var(--app-border-soft);
  background: rgba(203, 213, 225, .08);
}

/* ==================================================
   Focused category / service layout polish
   Keep source order unchanged
   ================================================== *//* Focused category/service layout polish. */
.platform-card {
  min-height: 94px;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.platform-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  padding: 0;
}

.platform-icon::before {
  inset: 6px;
  border-radius: 16px;
}

.platform-icon .icon-svg,
.platform-icon .icon-svg.icon-instagram,
.platform-icon .icon-svg.icon-tiktok,
.platform-icon .icon-svg.icon-telegram,
.platform-icon .icon-svg.icon-x,
.platform-icon .icon-svg.icon-facebook,
.platform-icon .icon-svg.icon-youtube,
.platform-icon .icon-svg.icon-snapchat,
.platform-icon .icon-svg.icon-whatsapp {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon .icon-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.platform-icon .icon-svg.icon-whatsapp {
  width: 45px;
  height: 45px;
  transform: translateY(1px);
}

.service-row-card {
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 11px 14px;
}

.service-row-card .service-icon-wrap {
  display: none;
}

.service-row-card .service-body {
  min-width: 0;
  gap: 6px;
}

.service-row-card .service-copy,
.service-row-card .service-copy-strong,
.service-row-card .service-panel-head {
  min-width: 0;
}

.service-row-card .service-title {
  font-size: 15.5px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.service-row-card .service-meta {
  display: none;
}

.service-row-card .service-panel-meta-row,
.service-row-card .service-panel-actions,
.service-row-card .service-tags {
  gap: 6px;
}

.service-row-card .service-point-pill,
.service-row-card .service-range-pill,
.service-row-card .service-discount-badge,
.service-row-card .pill {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.35;
}

.service-row-card .service-point-pill {
  gap: 5px;
}

.service-row-card .menu-chevron {
  align-self: center;
  justify-self: end;
}

@media (max-width: 430px) {
  .platform-card {
    min-height: 88px;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    padding: 12px;
  }

  .platform-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 18px;
  }

  .platform-icon .icon-svg,
  .platform-icon .icon-svg.icon-instagram,
  .platform-icon .icon-svg.icon-tiktok,
  .platform-icon .icon-svg.icon-telegram,
  .platform-icon .icon-svg.icon-x,
  .platform-icon .icon-svg.icon-facebook,
  .platform-icon .icon-svg.icon-youtube,
  .platform-icon .icon-svg.icon-snapchat,
  .platform-icon .icon-svg.icon-whatsapp {
    width: 43px;
    height: 43px;
  }

  .platform-icon .icon-svg.icon-whatsapp {
    width: 41px;
    height: 41px;
  }

  .service-row-card {
    grid-template-columns: minmax(0, 1fr) 16px;
    min-height: 70px;
    padding: 10px 12px;
  }
}

@media (max-width: 360px) {
  .service-row-card {
    grid-template-columns: minmax(0, 1fr) 14px;
  }
}

/* ==================================================
   Focused service details / create-order polish
   Keep source order unchanged
   ================================================== *//* Focused service details/create-order layout polish. */
.service-order-detail-view {
  gap: 12px;
  padding-bottom: 58px;
}

.service-order-detail-view .service-detail-topbar {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  min-height: 42px;
  margin-bottom: 0;
}

.service-order-detail-view .service-create-title {
  font-size: 17px;
  line-height: 1.35;
}

.service-order-detail-view .service-detail-premium {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--app-border-soft);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .075), transparent 44%),
    linear-gradient(180deg, rgba(203, 213, 225, .045), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.service-order-detail-view .service-detail-hero {
  gap: 5px;
  margin-bottom: 2px;
  padding: 2px 4px 4px;
}

.service-order-detail-view .service-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
}

.service-order-detail-view .service-detail-icon .icon-svg {
  width: 30px;
  height: 30px;
}

.service-order-detail-view .service-detail-hero h3 {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.service-order-detail-view .service-detail-hero .muted {
  font-size: 12px;
  line-height: 1.45;
  color: var(--app-text-muted);
}

.service-order-detail-view .detail-field-label {
  margin: 4px 0 5px;
  color: var(--app-text-secondary);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.service-order-detail-view .preset-grid {
  gap: 8px;
  margin: 2px 0 8px;
}

.service-order-detail-view .premium-preset-btn {
  min-height: 44px;
  justify-content: center;
  gap: 7px;
  padding-inline: 10px;
  border-radius: 14px;
  font-size: 14px;
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .040), rgba(203, 213, 225, .014)),
    rgba(15, 23, 42, .72);
  box-shadow: none;
}

.service-order-detail-view .premium-preset-btn.is-active {
  border-color: var(--app-primary-border);
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .18), transparent 58%),
    var(--app-primary-soft);
  color: #BFDBFE;
  box-shadow: inset 0 0 0 1px rgba(47, 123, 255, .10);
}

.service-order-detail-view .premium-preset-btn.is-muted {
  color: var(--app-text-secondary);
  font-size: 13px;
}

.service-order-detail-view .preset-ico {
  font-size: 12px;
  opacity: .72;
  line-height: 1;
}

.service-order-detail-view .preset-value,
.service-order-detail-view .numeric-value {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.service-order-detail-view .service-premium-form {
  gap: 8px;
  margin-top: 2px;
}

.service-order-detail-view .premium-input-field {
  min-height: 46px;
  border-radius: 15px;
  padding-inline: 12px;
  border-color: var(--app-border-soft);
  background: rgba(7, 13, 24, .58);
  font-size: 15px;
  font-weight: 700;
}

.service-order-detail-view .premium-input-field:focus {
  border-color: var(--app-primary-border);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, .14);
  background: rgba(11, 18, 32, .78);
}

.service-order-detail-view .premium-input-field::placeholder {
  color: var(--app-text-muted);
  opacity: .82;
}

.service-order-detail-view .service-link-input,
.service-order-detail-view .service-qty-input {
  text-align: left;
}

.service-order-detail-view .field-hint {
  margin-top: -2px;
  color: var(--app-text-muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
}

.service-order-detail-view .service-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  align-items: center;
  gap: 12px;
  direction: rtl;
  padding: 9px 0;
}

.service-order-detail-view .service-summary-row .detail-meta {
  min-width: 0;
  justify-self: start;
  color: var(--app-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.service-order-detail-view .service-summary-value,
.service-order-detail-view .service-discount,
.service-order-detail-view .service-id-chip {
  min-width: 0;
  max-width: min(52vw, 230px);
  justify-self: end;
  text-align: left;
}

.service-order-detail-view .service-summary-value,
.service-order-detail-view .price-value {
  color: var(--app-text);
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
}

.service-order-detail-view .service-discount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.service-order-detail-view .discount-pill {
  min-height: 23px;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.35;
}

.service-order-detail-view .premium-create-btn {
  min-height: 50px;
  margin: 10px 0 6px;
  border-radius: 17px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.service-order-detail-view .service-id-row {
  margin-top: 2px;
}

.service-order-detail-view .service-id-chip {
  min-height: 34px;
  padding: 5px 8px 5px 11px;
  border-radius: 12px;
  gap: 7px;
  direction: ltr;
  overflow: hidden;
}

.service-order-detail-view .service-id-chip .copy-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
}

.service-order-detail-view .speed-gauge-card {
  margin: 8px 0 0;
  padding: 9px 0 0;
}

.service-order-detail-view .speed-gauge-arc {
  width: min(198px, 100%);
  height: 98px;
}

.service-order-detail-view .speed-gauge-center {
  bottom: 16px;
}

.service-order-detail-view .speed-gauge-center strong {
  max-width: 190px;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  .service-order-detail-view {
    gap: 10px;
    padding-bottom: 68px;
  }

  .service-order-detail-view .service-detail-premium {
    padding: 13px;
    border-radius: 22px;
  }

  .service-order-detail-view .preset-grid {
    gap: 7px;
  }

  .service-order-detail-view .premium-preset-btn {
    min-height: 42px;
    font-size: 13.5px;
  }
}

@media (max-width: 360px) {
  .service-order-detail-view .service-detail-premium {
    padding: 12px;
  }

  .service-order-detail-view .service-summary-row {
    gap: 8px;
  }

  .service-order-detail-view .service-summary-value,
  .service-order-detail-view .service-discount,
  .service-order-detail-view .service-id-chip {
    max-width: 54vw;
  }
}

/* ==================================================
   Modals / sheets / confirmations
   ================================================== */.order-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--app-transition-smooth);
}

.order-confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.order-confirm-open {
  overflow: hidden;
}

.order-confirm-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(47, 123, 255, .16), transparent 42%),
    rgba(7, 13, 24, .78);
  backdrop-filter: blur(8px);
}

.order-confirm-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 34px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding: 20px 16px 16px;
  border: 1px solid var(--app-border-soft);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .13), transparent 38%),
    linear-gradient(180deg, rgba(203, 213, 225, .070), rgba(203, 213, 225, .020)),
    rgba(11, 18, 32, .97);
  box-shadow:
    0 24px 74px rgba(0, 0, 0, .44),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translateY(14px) scale(.985);
  transition: transform var(--app-transition-smooth);
  direction: rtl;
}

.order-confirm-modal.is-open .order-confirm-dialog {
  transform: translateY(0) scale(1);
}

.order-confirm-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.order-confirm-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  background: rgba(203, 213, 225, .08);
  color: var(--app-text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--app-transition-smooth), border-color var(--app-transition-smooth), background-color var(--app-transition-smooth), transform var(--app-transition-smooth), opacity var(--app-transition-smooth);
}

.order-confirm-close:hover {
  color: var(--app-text);
  border-color: var(--app-primary-border);
  background: rgba(47, 123, 255, .10);
  transform: translateY(-1px);
}

.order-confirm-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto -2px;
  display: grid;
  place-items: center;
  color: #93C5FD;
}

.order-confirm-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: rgba(47, 123, 255, .13);
  animation: orderConfirmPulse 4s ease-in-out infinite;
}

.order-confirm-icon svg {
  position: relative;
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 14px 24px rgba(47, 123, 255, .18));
}

.order-confirm-ring {
  fill: rgba(47, 123, 255, .065);
  stroke: rgba(147, 197, 253, .38);
  stroke-width: 2;
}

.order-confirm-spark {
  fill: currentColor;
  transform-origin: 32px 32px;
  animation: orderConfirmSpark 4s ease-in-out infinite;
}

.order-confirm-title {
  margin: 0;
  color: var(--app-text);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 950;
  text-align: center;
}

.order-confirm-subtitle {
  margin: -5px auto 0;
  max-width: 320px;
  color: var(--app-text-muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  text-align: center;
}

.order-confirm-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--app-border-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, .60);
}

.order-confirm-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .045), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .72);
}

.order-confirm-row > span {
  min-width: 0;
  color: var(--app-text-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.order-confirm-row > strong {
  min-width: 0;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-align: end;
  overflow-wrap: anywhere;
}

.order-confirm-row.is-link > strong {
  overflow: hidden;
}

.order-confirm-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.order-confirm-row .numeric-value,
.order-confirm-row bdi {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.order-confirm-row.is-danger > strong {
  color: #FCA5A5;
}

.order-confirm-row.is-balance-after > strong {
  color: #86EFAC;
}

.order-confirm-error {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(239, 68, 68, .24);
  border-radius: 15px;
  background: var(--app-danger-soft);
  color: #FCA5A5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.order-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  gap: 10px;
  padding-top: 2px;
}

.order-confirm-submit,
.order-confirm-edit {
  min-height: 50px;
  white-space: nowrap;
}

.order-confirm-modal.is-submitting .order-confirm-submit {
  cursor: progress;
}

.order-confirm-modal.is-submitting .order-confirm-submit::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-inline-end: 8px;
  display: inline-block;
  vertical-align: -3px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .36);
  border-top-color: #fff;
  animation: orderConfirmSpin .8s linear infinite;
}

@keyframes orderConfirmPulse {
  0%, 72%, 100% { opacity: .42; transform: scale(.92); }
  18% { opacity: 1; transform: scale(1); }
  42% { opacity: .30; transform: scale(1.13); }
}

@keyframes orderConfirmSpark {
  0%, 100% { transform: scale(1); opacity: .92; }
  18% { transform: scale(1.06); opacity: 1; }
  42% { transform: scale(.98); opacity: .90; }
}

@keyframes orderConfirmSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 360px) {
  .order-confirm-dialog {
    padding-inline: 14px;
    border-radius: 24px;
  }

  .order-confirm-row {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 9px;
    padding-inline: 9px;
  }

  .order-confirm-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-confirm-modal,
  .order-confirm-dialog,
  .order-confirm-icon::before,
  .order-confirm-spark,
  .order-confirm-modal.is-submitting .order-confirm-submit::before {
    animation: none;
    transition-duration: .01ms;
  }
}

/* ==================================================
   Identity / smoothness / compatibility fixes
   Keep source order unchanged
   ================================================== *//* Identity + smoothness pass: final shared system layer. */
:root {
  --app-space-1: 4px;
  --app-space-2: 8px;
  --app-space-3: 12px;
  --app-space-4: 16px;
  --app-space-5: 20px;
  --app-space-6: 24px;
  --app-z-nav: 50;
  --app-z-sheet: 82;
  --app-z-modal: 94;
  --app-z-toast: 110;
  --app-transition-fast: .16s ease;
  --app-transition-smooth: .22s cubic-bezier(.4, 0, .2, 1);
}

.app-root {
  width: min(100%, 520px);
  padding-inline: clamp(14px, 4vw, 18px);
}

/* ==================================================
   Preview mode
   ================================================== */.preview-mode-banner {
  display: grid;
  gap: 4px;
  margin: -6px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--app-primary-border);
  border-radius: var(--app-radius-lg);
  background:
    linear-gradient(180deg, rgba(47, 123, 255, .12), rgba(47, 123, 255, .05)),
    rgba(17, 24, 39, .82);
  box-shadow: var(--app-shadow-soft);
}

.preview-mode-banner__pill {
  width: max-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--app-primary-border);
  background: rgba(47, 123, 255, .14);
  color: #BFDBFE;
  font-size: 12px;
  font-weight: 900;
}

.preview-mode-banner small {
  color: var(--app-text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.content-view,
.detail-stack,
.wallet-page,
.home-dashboard,
.home-platforms,
.payment-method-list,
.leaderboard-list {
  min-width: 0;
}

.content-view.is-transitioning {
  opacity: .62;
  transform: translate3d(0, 6px, 0) scale(.996);
}

.app-root[data-navigation-direction="back"] .content-view.is-transitioning {
  transform: translate3d(0, -4px, 0) scale(.997);
}

:where(.section-card, .section-rows, .wallet-pricing-card, .voucher-card, .launch-card, .leaderboard-hero, .leaderboard-card, .order-success-shell, .settings-card, .detail-card, .wallet-rate-table, .api-response, .api-sample, .api-key-card, .account-field, .order-confirm-summary, .stars-success-details) {
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-xl);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .045), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .88);
  box-shadow: var(--app-shadow-soft);
}

:where(.service-row-card, .order-row-card, .menu-row-card, .category-row, .platform-card, .payment-method-card, .language-option, .premium-preset-btn, .stars-pack, .stars-custom-card, .stars-preview-card span, .order-confirm-row, .stars-success-row) {
  border-color: var(--app-border-soft);
  background-color: rgba(17, 24, 39, .72);
}

:where(.platform-card, .payment-method-card, .home-balance-card, .wallet-pricing-card, .voucher-card, .stars-sheet-panel, .stars-success-dialog, .order-confirm-dialog) {
  box-shadow: var(--app-shadow-elevated);
}

:where(.primary-btn, .accent-btn, .ghost-btn, .secondary-btn, .back-link, .home-action-btn, .premium-create-btn, .voucher-submit, .launch-action, .order-success-primary, .order-success-secondary, .order-confirm-submit, .order-confirm-edit, .stars-success-wallet, .stars-success-dismiss) {
  min-height: 50px;
  border-radius: var(--app-radius-lg);
  font-weight: 900;
  white-space: nowrap;
  touch-action: manipulation;
}

:where(.primary-btn, .accent-btn, .home-action-btn:not(.is-soft), .premium-create-btn, .voucher-submit, .launch-action, .order-success-primary, .order-confirm-submit, .stars-success-wallet) {
  border-color: var(--app-primary-border);
  background:
    linear-gradient(180deg, var(--app-primary), var(--app-primary-hover));
  color: var(--app-text);
  box-shadow:
    0 12px 26px rgba(47, 123, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

:where(.ghost-btn, .secondary-btn, .back-link, .home-action-btn.is-soft, .order-success-secondary, .order-confirm-edit, .stars-success-dismiss) {
  border-color: var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .070), rgba(203, 213, 225, .024)),
    rgba(17, 24, 39, .78);
  color: var(--app-text-secondary);
}

:where(button, a[role="button"], .nav-item, .platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option, .premium-preset-btn, .stars-pack, .copy-btn) {
  transition:
    background-color var(--app-transition-smooth),
    border-color var(--app-transition-smooth),
    color var(--app-transition-smooth),
    box-shadow var(--app-transition-smooth),
    transform var(--app-transition-fast),
    opacity var(--app-transition-smooth);
}

:where(button, .nav-item, .platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option, .premium-preset-btn, .stars-pack):disabled,
:where(button, .nav-item, .platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option, .premium-preset-btn, .stars-pack)[aria-disabled="true"] {
  opacity: .54;
  cursor: not-allowed;
  transform: none;
}

:where(.input-field, .select-field, .text-area, .premium-input-field, .voucher-input, .stars-points-input) {
  min-height: 54px;
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius-lg);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .050), rgba(203, 213, 225, .016)),
    rgba(7, 13, 24, .72);
  color: var(--app-text);
  font-weight: 800;
  transition:
    background-color var(--app-transition-smooth),
    border-color var(--app-transition-smooth),
    color var(--app-transition-smooth),
    box-shadow var(--app-transition-smooth),
    opacity var(--app-transition-smooth);
}

:where(.input-field, .select-field, .text-area, .premium-input-field, .voucher-input, .stars-points-input)::placeholder {
  color: var(--app-text-disabled);
}

:where(.input-field, .select-field, .text-area, .premium-input-field, .voucher-input, .stars-points-input):focus {
  border-color: rgba(47, 123, 255, .56);
  box-shadow:
    0 0 0 4px rgba(47, 123, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

:where(.auth-badge, .badge, .pill, .status-pill, .service-point-pill, .service-discount-badge, .service-range-pill, .payment-method-badge, .discount-pill, .wallet-history-chip, .stars-kicker, .language-code) {
  min-height: 26px;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  padding-inline: 10px;
  font-weight: 900;
}

.service-point-pill,
.service-range-pill,
.stars-kicker,
.language-code,
.wallet-history-chip {
  color: #BFDBFE;
  background: var(--app-primary-soft);
  border-color: var(--app-primary-border);
}

.service-discount-badge,
.discount-pill,
.pill.yellow,
.status-pill.processing {
  color: #FCD34D;
  background: var(--app-warning-soft);
  border-color: rgba(245, 158, 11, .28);
}

.pill.green,
.status-pill.completed,
.tx-amount.is-positive {
  color: #86EFAC !important;
  background: var(--app-success-soft);
}

.pill.red,
.status-pill.failed,
.status-pill.cancelled,
.tx-amount.is-negative {
  color: #FCA5A5 !important;
  background: var(--app-danger-soft);
}

.balance-chip,
.app-toast {
  backdrop-filter: none;
}

.payment-sheet-backdrop,
.stars-sheet-backdrop,
.stars-success-backdrop,
.order-confirm-backdrop {
  background: rgba(7, 13, 24, .82);
  backdrop-filter: blur(8px);
}

.payment-sheet {
  z-index: var(--app-z-sheet);
}

.stars-sheet {
  z-index: calc(var(--app-z-sheet) + 1);
}

.order-confirm-modal {
  z-index: calc(var(--app-z-modal) - 2);
}

.stars-success-modal {
  z-index: var(--app-z-modal);
}

.bottom-nav {
  z-index: var(--app-z-nav);
  width: min(calc(100% - 28px), 430px);
  border-color: var(--app-border-soft);
  background: rgba(7, 13, 24, .92);
}

.app-toast {
  z-index: var(--app-z-toast);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow-elevated);
}

.empty-state,
.nav-error-state {
  border: 1px solid var(--app-border-soft);
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .038), rgba(203, 213, 225, .012)),
    rgba(17, 24, 39, .72);
  color: var(--app-text-muted);
}

.numeric-value,
.balance-chip-value,
.date-value,
.price-value,
.service-summary-value,
.service-id-chip bdi,
.wallet-rate-row bdi,
.wallet-rate-note bdi,
.tx-amount bdi,
.order-confirm-row bdi,
.stars-success-row bdi,
.leader-main bdi,
.api-code-line span,
.detail-link-value {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.detail-link-value,
.api-code-line span,
.leader-main strong,
.leader-main small,
.home-id-chip,
.service-id-chip,
.order-confirm-link {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-line-link {
  align-items: flex-start;
}

.detail-line-link .detail-link-value {
  flex: 1 1 100%;
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.55;
  text-align: start;
  overflow-wrap: anywhere;
}

.order-detail-view {
  gap: 12px;
  padding-bottom: max(28px, var(--bottom-safe-space));
}

.order-detail-view .order-detail-premium-shell {
  display: grid;
  gap: 10px;
  padding: 14px 14px calc(20px + var(--bottom-safe-space) - var(--bottom-nav-height));
  border: 1px solid var(--app-border-soft);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .055), transparent 44%),
    linear-gradient(180deg, rgba(203, 213, 225, .040), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.order-detail-view .order-detail-hero {
  gap: 6px;
  margin-bottom: 2px;
  padding: 4px 4px 8px;
}

.order-detail-view .order-title {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.48;
  text-align: center;
  text-wrap: balance;
}

.order-detail-view .order-progress-hero {
  font-size: 20px;
  line-height: 1.2;
}

.order-detail-view .order-progress-count {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: .4em;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.order-detail-view .detail-line {
  display: grid;
  grid-template-columns: minmax(86px, 108px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  direction: rtl;
}

.order-detail-view .detail-meta {
  min-width: 0;
  padding-top: 2px;
  color: var(--app-text-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
  text-align: right;
}

.order-detail-view .detail-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--app-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.5;
  text-align: left;
}

.order-detail-view .detail-value-inline {
  flex-wrap: wrap;
}

.order-detail-view .detail-line-link {
  align-items: start;
}

.order-detail-view .detail-link-value {
  width: 100%;
  max-width: 100%;
  color: #C7D9F8;
  white-space: normal;
  text-align: left;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.order-detail-view .price-value {
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: 17px;
  line-height: 1.45;
}

.order-detail-view .service-old-price {
  font-size: 12px;
}

.order-detail-view .copy-btn {
  flex: 0 0 auto;
}

.order-detail-view .detail-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .012)),
    rgba(8, 14, 24, .58);
}

.order-detail-view .order-progress-card {
  margin-top: 2px;
}

.order-detail-view .order-progress-card-value {
  justify-self: start;
  min-width: 0;
  color: var(--app-text);
  font-size: 16px;
  font-weight: 900;
}

.order-detail-view .order-service-action {
  min-height: 58px;
  margin: 14px 0 8px;
  padding: 11px 14px;
  border-radius: 18px;
}

.order-detail-view .order-service-action span {
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.order-detail-view .order-service-action small {
  line-height: 1.5;
}

@media (max-width: 430px) {
  .order-detail-view {
    gap: 10px;
  }

  .order-detail-view .order-detail-premium-shell {
    padding: 13px;
    border-radius: 22px;
  }
}

@media (max-width: 360px) {
  .order-detail-view .detail-line {
    grid-template-columns: minmax(76px, 94px) minmax(0, 1fr);
    gap: 10px;
  }

  .order-detail-view .detail-value {
    font-size: 14px;
  }

  .order-detail-view .order-progress-hero {
    font-size: 18px;
  }
}

.wallet-rate-note,
.field-hint,
.stars-input-hint,
.stars-formatted-value {
  unicode-bidi: plaintext;
}

.service-panel-meta-row,
.order-extra-meta,
.wallet-section-title,
.section-head,
.detail-line,
.price-line,
.api-code-line,
.leaderboard-card,
.payment-method-card {
  min-width: 0;
}

.skeleton {
  overflow: hidden;
  background: rgba(148, 163, 184, .10);
}

.skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(203, 213, 225, .10), transparent);
}

/* ==================================================
   Onboarding / required channels
   ================================================== */.app-root.mode-onboarding {
  --bottom-safe-space: calc(env(safe-area-inset-bottom, 0px) + 28px);
}

.onboarding-shell {
  display: grid;
  gap: 18px;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
}

.onboarding-hero,
.onboarding-panel {
  position: relative;
  overflow: hidden;
}

.onboarding-hero {
  display: grid;
  gap: 10px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(47, 123, 255, .17), transparent 32%),
    radial-gradient(circle at 88% 0, rgba(37, 211, 102, .10), transparent 28%),
    linear-gradient(160deg, rgba(19, 30, 43, .98), rgba(10, 18, 28, .96));
  box-shadow:
    0 22px 54px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.onboarding-badge,
.onboarding-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #d8e7fb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

.onboarding-kicker {
  color: #9cc1ff;
  background: rgba(47, 123, 255, .10);
  border-color: rgba(47, 123, 255, .18);
}

.onboarding-hero h1,
.onboarding-panel-copy h2 {
  margin: 0;
  color: var(--text);
  font-weight: 1000;
}

.onboarding-hero h1 {
  font-size: 28px;
  line-height: 1.18;
}

.onboarding-hero p,
.onboarding-panel-copy p {
  margin: 0;
  color: rgba(226, 236, 248, .76);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 800;
}

.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.onboarding-progress-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.onboarding-progress-dot.is-active {
  background: linear-gradient(135deg, #5ca1ff, #2f7bff);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, .12);
}

.onboarding-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(18, 28, 39, .96), rgba(9, 16, 24, .96));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.onboarding-panel-copy {
  display: grid;
  gap: 10px;
}

.onboarding-panel-copy h2 {
  font-size: 22px;
  line-height: 1.25;
}

.onboarding-channel-list,
.onboarding-actions {
  display: grid;
  gap: 12px;
}

.onboarding-channel-item,
.onboarding-terms-card,
.onboarding-tutorial-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)),
    rgba(10, 18, 27, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 16px 34px rgba(0, 0, 0, .16);
}

.onboarding-channel-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
}

.onboarding-channel-item.is-missing {
  border-color: rgba(255, 197, 47, .26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 0 1px rgba(255, 197, 47, .08),
    0 18px 36px rgba(0, 0, 0, .18);
}

.onboarding-channel-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.onboarding-channel-copy strong,
.onboarding-tutorial-step strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 1000;
  color: var(--text);
}

.onboarding-channel-copy small,
.onboarding-tutorial-step span {
  color: rgba(201, 214, 229, .68);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.onboarding-channel-link {
  min-width: 88px;
  justify-content: center;
}

.onboarding-channel-link.is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  color: rgba(201, 214, 229, .64);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-terms-card,
.onboarding-tutorial-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.onboarding-terms-preview,
.onboarding-terms-full {
  color: rgba(235, 243, 251, .92);
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
}

.onboarding-terms-details {
  display: grid;
  gap: 12px;
}

.onboarding-terms-details summary {
  cursor: pointer;
  color: #9cc1ff;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.onboarding-terms-details summary::-webkit-details-marker {
  display: none;
}

.onboarding-tutorial-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-tutorial-text {
  margin: 0;
  white-space: pre-wrap;
  color: rgba(235, 243, 251, .92);
  font-size: 15px;
  line-height: 1.95;
  font-weight: 800;
  font-family: inherit;
}

.onboarding-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onboarding-actions > .accent-btn:first-child:last-child,
.onboarding-actions > .ghost-btn:first-child:last-child {
  grid-column: 1 / -1;
}

[data-onboarding-action].is-busy {
  opacity: .72;
  pointer-events: none;
}

/* ==================================================
   Free services
   ================================================== */.free-services-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.free-service-card.is-selected {
  border-color: rgba(113, 213, 255, .52);
  box-shadow: 0 18px 40px rgba(12, 26, 46, .24), 0 0 0 1px rgba(113, 213, 255, .18) inset;
}

.free-service-form-card {
  display: grid;
  gap: 12px;
}

.free-price-pill {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  color: #8AF0C3;
  background: rgba(54, 197, 134, .14);
  border: 1px solid rgba(54, 197, 134, .32);
  vertical-align: middle;
  white-space: nowrap;
}

.free-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(54, 197, 134, .08);
  border: 1px solid rgba(54, 197, 134, .22);
  font-size: 13px;
}

.free-cost-row strong {
  color: #8AF0C3;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .onboarding-hero {
    padding: 20px 18px 17px;
  }

  .onboarding-hero h1 {
    font-size: 24px;
  }

  .onboarding-panel {
    padding: 18px;
  }

  .onboarding-panel-copy h2 {
    font-size: 20px;
  }

  .onboarding-channel-item,
  .onboarding-actions {
    grid-template-columns: 1fr;
  }

  .onboarding-channel-link,
  .onboarding-channel-link.is-disabled {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .app-root {
    padding-inline: 14px;
  }

  .bottom-nav {
    width: calc(100% - 28px);
  }

  .stars-success-actions,
  .order-success-actions {
    grid-template-columns: 1fr;
  }

  .payment-method-card {
    grid-template-columns: 18px minmax(0, 1fr) auto 54px;
  }
}

@media (max-width: 360px) {
  :where(.primary-btn, .accent-btn, .ghost-btn, .secondary-btn, .back-link, .home-action-btn, .premium-create-btn, .voucher-submit, .launch-action, .order-success-primary, .order-success-secondary, .order-confirm-submit, .order-confirm-edit, .stars-success-wallet, .stars-success-dismiss) {
    min-height: 48px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .stars-preview-card,
  .home-actions,
  .preset-grid {
    grid-template-columns: 1fr;
  }

  .wallet-rate-row strong {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .content-view,
  :where(button, a[role="button"], .nav-item, .platform-card, .service-row-card, .order-row-card, .menu-row-card, .category-row, .payment-method-card, .language-option, .premium-preset-btn, .stars-pack, .copy-btn),
  :where(.input-field, .select-field, .text-area, .premium-input-field, .voucher-input, .stars-points-input) {
    transition-duration: .01ms !important;
  }
}

/* ==================================================
   Orders page UI polish
   ================================================== */
.orders-panel-shell {
  padding: 10px;
  padding-bottom: calc(12px + var(--bottom-safe-space));
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.order-list {
  gap: 12px;
}

.order-row-card {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--app-border-soft);
  border-bottom: 1px solid var(--app-border-soft);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(47, 123, 255, .08), transparent 42%),
    linear-gradient(180deg, rgba(203, 213, 225, .042), rgba(203, 213, 225, .016)),
    rgba(17, 24, 39, .78);
  box-shadow: var(--app-shadow-soft);
}

.order-row-card:last-child {
  border-bottom-color: var(--app-border-soft);
}

.order-icon-wrap {
  align-self: start;
  padding-top: 1px;
}

.order-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
}

.order-copy {
  gap: 8px;
  padding-top: 1px;
}

.order-copy-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.order-title {
  font-size: 15px;
  line-height: 1.55;
  text-align: start;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.order-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.order-progress-meta {
  min-width: 0;
}

.order-state-inline {
  color: var(--app-text-muted);
}

.order-progress-separator {
  color: var(--app-text-muted);
  line-height: 1;
}

.order-extra-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-points-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--app-primary-border);
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: #bfdbfe;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.order-points-chip .numeric-value,
.order-points-chip span {
  color: inherit;
}

.date-value {
  color: var(--app-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.order-status-stack {
  align-content: start;
  justify-items: end;
  gap: 6px;
  padding-top: 1px;
}

.order-status-stack .status-pill {
  min-height: 30px;
  padding-inline: 10px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .orders-panel-shell {
    padding: 8px;
    padding-bottom: calc(14px + var(--bottom-safe-space));
  }

  .order-list {
    gap: 10px;
  }

  .order-row-card {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 12px;
    border-radius: 20px;
  }

  .order-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .order-title {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .order-meta,
  .date-value,
  .order-points-chip {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .order-row-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .order-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .order-status-stack {
    grid-column: 2;
    justify-self: start;
    justify-items: start;
    width: 100%;
  }

  .order-extra-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* ==================================================
   Bottom nav — glass panel + sliding active indicator
   ================================================== */
.bottom-nav {
  position: fixed;
  isolation: isolate;
  overflow: hidden;
  background: var(--bottom-nav-glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(147, 197, 253, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.34),
    0 2px 8px rgba(47, 123, 255, 0.06);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-nav {
    background: var(--bottom-nav-glass-bg-fallback);
  }
}

.bottom-nav .nav-item {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  isolation: isolate;
}

.bottom-nav .nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94);
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(203, 213, 225, 0.12), rgba(17, 24, 39, 0.55));
  border: 1px solid rgba(147, 197, 253, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 8px 18px rgba(47, 123, 255, 0.12);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav .nav-item.active::before {
  opacity: 1;
  transform: scale(1);
}

.bottom-nav .nav-item small {
  opacity: 0.82;
  transition: color 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav .nav-item .nav-icon {
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav .nav-item.active {
  color: #BFDBFE;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.bottom-nav .nav-item.active small {
  opacity: 1;
}

.bottom-nav .nav-item.active .nav-icon {
  transform: scale(1.06);
  color: #93C5FD;
  border-color: rgba(147, 197, 253, 0.24);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(47, 123, 255, 0.18), rgba(47, 123, 255, 0.06));
  box-shadow:
    0 8px 18px rgba(47, 123, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav .nav-item::before,
  .bottom-nav .nav-item .nav-icon,
  .bottom-nav .nav-item small {
    transition-duration: 0.01ms !important;
  }
}

/* ==================================================
   Visual consistency pass — unified page rhythm
   CSS only. Additive final layer. No layout system rewrite.
   ================================================== */

/* One vertical rhythm for every top-level page wrapper so Home, Menu,
   Orders, Wallet, Gifts, Points Transfer and Notifications align. */
.home-dashboard,
.detail-stack,
.wallet-page,
.gifts-page,
.points-transfer-page,
.notifications-page,
.page-shell {
  gap: var(--app-page-gap);
}

/* One bottom safe spacing so content never hides behind the glass nav. */
.home-dashboard,
.detail-stack,
.wallet-page,
.gifts-page,
.points-transfer-page,
.notifications-page {
  padding-bottom: var(--bottom-safe-space);
}

/* Keep Orders list shell on the same bottom rhythm while preserving its
   own compact inner padding and scroll restoration behaviour. */
.orders-panel-shell {
  padding-bottom: calc(12px + var(--bottom-safe-space));
}

/* One inner card rhythm for grouped lists/grids across pages. */
.home-platforms,
.order-list,
.payment-method-list,
.leaderboard-list {
  gap: var(--app-card-gap);
}

/* One section-title scale across pages (Home "المنصات", Wallet, etc.). */
.home-section-title,
.wallet-section-title h3,
.section-heading,
.detail-section-title {
  font-size: var(--app-section-title-size);
  line-height: 1.35;
  font-weight: 1000;
}

/* One internal page top-bar rhythm so back/title frames match everywhere. */
.category-topbar,
.page-topbar,
.service-detail-topbar,
.wallet-topbar {
  margin-bottom: 20px;
}

@media (max-width: 360px) {
  :root {
    --app-page-gap: 14px;
    --app-card-gap: 10px;
  }
}

/* ==================================================
   Client UX polish pass — responsive SaaS layout
   Additive layer only. Keeps routes/data/actions unchanged.
   ================================================== */

:root {
  --client-readable: minmax(0, 760px);
  --client-wide: min(100%, 1120px);
}

.content-view {
  width: 100%;
}

.home-dashboard,
.detail-stack,
.wallet-page,
.gifts-page,
.points-transfer-page,
.notifications-page {
  padding-bottom: calc(var(--bottom-safe-space) + 30px);
}

.orders-panel-shell {
  padding-bottom: calc(var(--bottom-safe-space) + 30px);
}

.service-order-detail-view {
  max-width: 760px;
  margin-inline: auto;
}

.service-order-detail-view .service-detail-premium {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--app-border-soft);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .065), transparent 44%),
    linear-gradient(180deg, rgba(203, 213, 225, .040), rgba(203, 213, 225, .014)),
    rgba(17, 24, 39, .90);
  box-shadow: var(--app-shadow-soft);
}

.service-order-detail-view .service-detail-hero {
  margin-bottom: 0;
  padding-bottom: 4px;
}

.service-order-detail-view .service-premium-form {
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, .075);
  border-radius: 20px;
  background: rgba(7, 13, 24, .38);
}

.service-order-detail-view .service-summary-row {
  padding: 13px 14px;
  border: 1px solid rgba(203, 213, 225, .070);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(203, 213, 225, .034), rgba(203, 213, 225, .012)),
    rgba(7, 13, 24, .44);
}

.service-order-detail-view .service-summary-row + .service-summary-row {
  margin-top: -6px;
}

.service-order-detail-view .premium-create-btn {
  margin-top: 2px;
  position: sticky;
  bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 12;
}

.service-order-detail-view .service-id-row {
  margin-top: 2px;
}

.service-order-detail-view .speed-gauge-card {
  margin-bottom: 0;
}

.order-row-card,
.service-row-card,
.payment-method-card,
.menu-row-card,
.category-row {
  scroll-margin-bottom: calc(var(--bottom-safe-space) + 26px);
}

.empty-state {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  line-height: 1.75;
}

.order-track-card,
.launch-card,
.settings-card,
.api-key-card,
.api-sample,
.api-response {
  overflow-wrap: anywhere;
}

.api-response {
  max-width: 100%;
  overflow: auto;
  direction: ltr;
  text-align: left;
}

.topup-promo-modal {
  padding-inline: 18px;
}

.topup-promo-dialog {
  max-height: min(620px, calc(100dvh - 36px));
  overflow: auto;
}

.wallet-topup-preview-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.wallet-topup-preview-card {
  padding: 16px;
}

.wallet-topup-preview-head span {
  max-width: 100%;
  text-align: start;
}

.topup-bonus-row {
  min-width: 0;
}

.topup-bonus-row span,
.topup-bonus-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  .service-order-detail-view .service-detail-premium {
    padding: 13px;
  }

  .service-order-detail-view .service-summary-row {
    align-items: flex-start;
    gap: 10px;
  }

  .service-order-detail-view .service-summary-value,
  .service-order-detail-view .price-value {
    font-size: 17px;
  }

  .service-order-detail-view .premium-create-btn {
    min-height: 56px;
  }
}

@media (min-width: 700px) {
  .app-root {
    width: min(calc(100% - 36px), 860px);
    padding-inline: 24px;
  }

  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-transactions-card,
  .wallet-pricing-card,
  .wallet-methods-section {
    max-width: 760px;
    width: 100%;
    justify-self: center;
  }
}

@media (min-width: 980px) {
  body.app-body {
    background:
      radial-gradient(circle at 84% -8%, rgba(47, 123, 255, .12), transparent 30%),
      radial-gradient(circle at 10% 12%, rgba(34, 197, 94, .07), transparent 28%),
      linear-gradient(180deg, #07101D 0%, #0B1220 48%, #090F19 100%);
  }

  .app-root {
    width: min(calc(100% - 56px), 1120px);
    padding-inline: 30px;
  }

  .app-header,
  .preview-mode-banner,
  .app-footer {
    max-width: 1040px;
    width: 100%;
    margin-inline: auto;
  }

  .content-view {
    max-width: 1040px;
    margin-inline: auto;
  }

  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-list,
  .order-list,
  .menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--app-card-gap);
    padding: 12px;
  }

  .service-row-card,
  .order-row-card,
  .menu-row-card,
  .category-row {
    border: 1px solid var(--app-border-soft);
    border-radius: 20px;
    min-height: 112px;
  }

  .category-row:last-child,
  .menu-row-card:last-child,
  .order-row-card:last-child,
  .service-row-card:last-child {
    border-bottom-color: var(--app-border-soft);
  }

  .wallet-page {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: start;
  }

  .wallet-topbar,
  .promo-banner-topup,
  .wallet-topup-preview-card,
  .wallet-transactions-card {
    grid-column: 1 / -1;
  }

  .wallet-pricing-card,
  .wallet-methods-section {
    max-width: none;
    justify-self: stretch;
  }

  .detail-stack:not(.service-order-detail-view):not(.order-detail-view):not(.points-transfer-page):not(.gifts-page):not(.notifications-page) {
    max-width: 920px;
    margin-inline: auto;
  }

  .bottom-nav {
    width: min(430px, calc(100% - 48px));
  }
}

@media (min-width: 1280px) {
  .bottom-nav {
    inset-inline: auto auto;
    left: max(18px, calc((100vw - min(calc(100vw - 56px), 1120px)) / 2 - 94px));
    right: auto;
    bottom: auto;
    top: 50%;
    width: 78px;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 28px;
    transform: translateY(-50%);
  }

  .bottom-nav .nav-item {
    min-height: 72px;
    border-radius: 22px;
  }

  .bottom-nav .nav-item::before {
    border-radius: 22px;
  }

  .bottom-nav .nav-item small {
    font-size: 11px;
    line-height: 1.25;
  }
}

/* ==================================================
   Customer panel final responsive polish
   Scoped visual layer. No route/API/business logic changes.
   ================================================== */

:root {
  --client-panel-max: 1180px;
  --client-card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .016)),
    rgba(13, 21, 32, .86);
  --client-card-border: rgba(148, 163, 184, .14);
  --client-card-border-strong: rgba(147, 197, 253, .22);
  --client-soft: rgba(15, 23, 42, .68);
}

body.app-body {
  background:
    radial-gradient(circle at 82% -14%, rgba(59, 130, 246, .16), transparent 32%),
    radial-gradient(circle at 10% 10%, rgba(34, 197, 94, .07), transparent 30%),
    linear-gradient(180deg, #08111d 0%, #0d1724 48%, #09111c 100%);
}

.app-root {
  background:
    linear-gradient(180deg, rgba(12, 20, 31, .94), rgba(9, 15, 24, .98));
}

.content-view,
.app-header,
.preview-mode-banner,
.app-footer {
  max-width: var(--client-panel-max);
}

.client-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: -2px;
  padding: 10px;
  border: 1px solid var(--client-card-border);
  border-radius: 20px;
  background: var(--client-card-bg);
  box-shadow: var(--app-shadow-soft);
}

.client-search-field {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 12px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 15px;
  background: rgba(4, 11, 20, .52);
}

.client-search-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  color: #93c5fd;
}

.client-search-icon svg {
  width: 20px;
  height: 20px;
}

.client-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-align: start;
}

.client-search-input::placeholder {
  color: rgba(203, 213, 225, .56);
}

.client-search-count {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-inline: 12px;
  border-radius: 999px;
  background: rgba(47, 123, 255, .12);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.service-row-card.is-filtered-out {
  display: none !important;
}

.platform-card,
.service-row-card,
.order-row-card,
.menu-row-card,
.payment-method-card,
.category-row,
.detail-card,
.section-card,
.launch-card,
.wallet-pricing-card,
.wallet-transactions-card,
.api-key-card,
.api-sample,
.api-response {
  border-color: var(--client-card-border);
  background: var(--client-card-bg);
}

.service-row-card,
.order-row-card,
.menu-row-card,
.category-row,
.payment-method-card {
  min-width: 0;
}

.service-title,
.order-title,
.menu-title,
.platform-title,
.page-title,
.detail-title,
.leader-main strong,
.wallet-transaction-head strong {
  overflow-wrap: anywhere;
  hyphens: none;
}

.service-panel-meta-row,
.service-panel-actions,
.order-extra-meta,
.wallet-transaction-meta,
.referral-actions,
.order-success-actions,
.notifications-actions {
  min-width: 0;
}

.service-point-pill,
.service-range-pill,
.service-discount-badge,
.status-pill,
.order-points-chip,
.payment-method-badge {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.service-order-detail-view .service-detail-premium {
  border-color: var(--client-card-border-strong);
}

.service-order-detail-view .service-detail-hero {
  text-align: center;
}

.service-order-detail-view .preset-grid {
  align-items: stretch;
}

.service-order-detail-view .premium-preset-btn {
  min-height: 52px;
  justify-content: center;
}

.service-order-detail-view .service-link-input,
.service-order-detail-view .service-qty-input,
.points-transfer-input,
.voucher-input,
.input-field,
.select-field,
.text-area {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(2, 8, 18, .58);
}

.service-order-detail-view .premium-create-btn,
.accent-btn,
.primary-btn {
  box-shadow: 0 14px 32px rgba(47, 123, 255, .22);
}

.orders-filter-row,
.api-tabs {
  padding-bottom: 4px;
  scrollbar-width: none;
}

.orders-filter-row::-webkit-scrollbar,
.api-tabs::-webkit-scrollbar {
  display: none;
}

.order-track-form {
  align-items: stretch;
}

.order-track-submit {
  white-space: nowrap;
}

.api-code-line,
.referral-link-box,
.account-field {
  min-width: 0;
}

.api-code-line > span,
.api-response,
.referral-link-text,
.order-confirm-link,
.detail-link-value {
  white-space: pre-wrap;
  word-break: break-word;
}

.api-code-line .copy-btn,
.service-id-chip .copy-btn {
  flex: 0 0 auto;
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 123, 255, .08), transparent 46%),
    rgba(7, 13, 24, .45);
  color: rgba(226, 232, 240, .82);
}

.app-toast {
  max-width: min(430px, calc(100vw - 28px));
  line-height: 1.55;
}

@media (max-width: 430px) {
  .app-root {
    padding-inline: 12px;
  }

  .app-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .brand-mark {
    width: 50px;
    min-width: 50px;
  }

  .balance-chip {
    max-width: 54%;
  }

  .balance-chip-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .client-search-panel {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .client-search-count {
    justify-self: start;
  }

  .service-row-card,
  .order-row-card,
  .menu-row-card,
  .payment-method-card,
  .category-row {
    border-radius: 18px;
  }

  .service-panel-meta-row {
    gap: 7px;
  }

  .service-order-detail-view .service-premium-form,
  .service-order-detail-view .service-summary-row {
    border-radius: 15px;
  }

  .order-confirm-dialog {
    width: min(100%, calc(100vw - 24px));
  }

  .order-confirm-actions,
  .order-success-actions,
  .notifications-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .app-root {
    padding-inline: 10px;
  }

  .brand-title {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .balance-chip {
    padding-inline: 7px;
    gap: 6px;
  }

  .balance-chip-value {
    font-size: 13px;
  }

  .client-search-field {
    min-height: 44px;
    padding-inline: 10px;
  }

  .premium-preset-btn .preset-value,
  .service-point-pill,
  .service-range-pill,
  .service-discount-badge,
  .status-pill {
    font-size: 11.5px;
  }
}

@media (min-width: 980px) {
  .app-root {
    width: min(calc(100% - 64px), var(--client-panel-max));
  }

  .content-view,
  .app-header,
  .preview-mode-banner,
  .app-footer {
    margin-inline: auto;
  }

  .home-dashboard {
    max-width: 1080px;
    margin-inline: auto;
  }

  .service-list,
  .order-list,
  .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row-card,
  .order-row-card,
  .menu-row-card {
    min-height: 126px;
  }

  .service-order-detail-view {
    max-width: 940px;
  }

  .service-order-detail-view .service-detail-premium {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    align-items: start;
    padding: 20px;
  }

  .service-order-detail-view .service-detail-hero,
  .service-order-detail-view .preset-grid,
  .service-order-detail-view .service-premium-form {
    grid-column: 1;
  }

  .service-order-detail-view .service-summary-row,
  .service-order-detail-view .premium-create-btn,
  .service-order-detail-view .service-id-row,
  .service-order-detail-view .speed-gauge-card {
    grid-column: 2;
  }

  .service-order-detail-view .premium-create-btn {
    position: static;
  }

  .wallet-page {
    max-width: 1080px;
    margin-inline: auto;
  }
}

@media (min-width: 1280px) {
  .bottom-nav {
    left: max(18px, calc((100vw - var(--client-panel-max)) / 2 - 96px));
  }
}
