:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --text: #20242c;
  --muted: #737b8c;
  --line: #e7ebf2;
  --brand: #18c7ae;
  --brand-dark: #089986;
  --gold: #f5bd41;
  --danger: #e45757;
  --warning: #b7791f;
  --shadow: 0 10px 28px rgba(24, 33, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  justify-content: center;
  background: #10131a;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

[v-cloak] {
  display: none;
}

.page {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 58px;
  align-items: center;
  min-height: 56px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(24, 33, 54, 0.06);
  direction: ltr;
}

.topbar h1 {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 12px rgba(24, 33, 54, 0.07);
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.icon-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.language-switcher {
  position: relative;
  justify-self: end;
}

.language-button {
  width: 42px;
  height: 30px;
  border: 1px solid rgba(35, 40, 46, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  color: #25282e;
  font-size: 13px;
  font-weight: 900;
}

.language-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  gap: 2px;
  min-width: 58px;
  padding: 5px;
  border: 1px solid rgba(35, 40, 46, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px rgba(36, 46, 60, 0.14);
}

.language-menu button {
  min-height: 28px;
  border-radius: 6px;
  color: #25282e;
  font-size: 12px;
  font-weight: 900;
  background: transparent;
}

.language-menu button.is-active {
  background: #e6fbf8;
  color: #0e8f82;
}

[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

.content {
  display: grid;
  gap: 12px;
  padding: 14px 14px 32px;
}

.panel,
.notice {
  border: 1px solid rgba(231, 235, 242, 0.86);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.notice {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.35;
}

.notice strong {
  font-size: 14px;
}

.notice.warning {
  border-color: #f7d48b;
  background: #fff8e9;
  color: #74510c;
}

.notice.success {
  border-color: #9be6d9;
  background: #ecfffb;
  color: #087565;
}

.notice.error {
  border-color: #f4aaaa;
  background: #fff0f0;
  color: #a33f3f;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.guide-text {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 15px;
}

.search-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 199, 174, 0.13);
}

.search-form button,
.primary-wide {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(24, 199, 174, 0.22);
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--brand-dark);
}

.account-panel {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
}

.avatar-wrap {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5fbf7, #fff6db);
}

.avatar-wrap img,
.avatar-wrap span {
  width: 100%;
  height: 100%;
}

.avatar-wrap img {
  display: block;
  object-fit: cover;
}

.avatar-wrap span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
}

.account-copy {
  min-width: 0;
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  background: #edf2f7;
  color: #4a5568;
  font-size: 11px;
  font-weight: 850;
}

.role-pill.dealer {
  background: #fff2cf;
  color: #946000;
}

.role-pill.fee {
  background: #e8fbf7;
  color: var(--brand-dark);
}

.account-copy h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-button {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef6f4;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf7f5;
  color: var(--brand-dark);
  font-weight: 900;
}

.method-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-head h4 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-badge {
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 6px;
  background: #fff0c2;
  color: #8a5c00;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-head {
  margin-top: 4px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.package-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 6px;
  background: #fff;
  color: var(--text);
}

.package-button.active {
  border-color: var(--brand);
  background: #eafffb;
  box-shadow: 0 0 0 3px rgba(24, 199, 174, 0.12);
}

.coin-mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: url("../smash-golden-egg/assets/common/yumi_coin.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(145, 91, 0, 0.18));
}

.package-button strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.package-button span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.package-button small {
  max-width: 100%;
  min-height: 12px;
  overflow: hidden;
  color: #b7791f;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.channel-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 6px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: center;
}

.channel-button.usdt {
  grid-column: 1 / -1;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  justify-items: stretch;
  min-height: 68px;
  padding: 10px 12px;
  border-color: rgba(245, 189, 65, 0.7);
  background: linear-gradient(180deg, #fffaf0, #fff);
  text-align: left;
}

.channel-button.active {
  border-color: var(--brand);
  background: #eafffb;
  box-shadow: 0 0 0 3px rgba(24, 199, 174, 0.12);
}

.channel-button.usdt.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #effffc, #fffaf0);
}

.channel-copy {
  min-width: 0;
}

.channel-copy h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.channel-button.usdt .channel-copy {
  align-self: center;
}

.channel-button.usdt .channel-copy h4 {
  font-size: 15px;
  text-align: left;
}

.channel-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.create-order-button {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  margin-top: 2px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.create-order-button:not(:disabled) {
  box-shadow: 0 8px 18px rgba(24, 199, 174, 0.22);
}

[dir="rtl"] .channel-button {
  text-align: center;
}

[dir="rtl"] .channel-button.usdt {
  text-align: right;
}

[dir="rtl"] .channel-button.usdt .channel-copy h4 {
  text-align: right;
}

.empty-state {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d9dee8;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 20, 28, 0.46);
}

.usdt-mask {
  align-items: center;
  padding: 18px 14px;
}

.result-sheet {
  position: relative;
  width: min(100%, 440px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 18px 24px;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.usdt-dialog {
  position: relative;
  width: min(100%, 400px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 14px;
  border-radius: 12px;
  padding: 20px 16px 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 28, 43, 0.2);
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.usdt-dialog h3 {
  margin: 0;
  padding-inline-end: 28px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.field-block,
.usdt-form {
  display: grid;
  gap: 8px;
}

.field-block label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.address-value,
.readonly-amount,
.usdt-input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.address-value {
  overflow-wrap: anywhere;
  text-align: left;
  direction: ltr;
}

.readonly-amount {
  display: flex;
  align-items: center;
  color: var(--brand-dark);
  background: #eefaf8;
  font-size: 15px;
  font-weight: 900;
}

.copy-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff0c2;
  color: #8a5c00;
  font-size: 12px;
  font-weight: 900;
}

.usdt-input {
  width: 100%;
  outline: none;
  font-weight: 750;
}

.usdt-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 199, 174, 0.13);
}

.result-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
}

.result-icon.error {
  background: var(--danger);
}

.result-icon.info {
  background: var(--gold);
}

.result-sheet h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.result-sheet p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.result-sheet dl {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 13px;
}

.result-sheet dt {
  color: var(--muted);
}

.result-sheet dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.primary-wide {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 44px));
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(23, 29, 38, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 360px) {
  .package-grid,
  .channel-list {
    gap: 6px;
  }

  .package-button {
    min-height: 90px;
    padding: 8px 4px;
  }

  .package-button strong,
  .channel-copy h4 {
    font-size: 11px;
  }

  .method-badge {
    padding-inline: 5px;
    font-size: 9px;
  }
}
