:root {
  --cream: #f5f1eb;
  --yellow: #ffe14a;
  --purple: #6b21d6;
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.3);
  --text: #1a1a1a;
  --muted: #9ca0aa;
  --line: #eef0f4;
  --border: #e5e7ec;
  --icon-bg: #f1f2f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% -8%, rgba(255, 225, 74, 0.28), transparent 60%),
    var(--cream);
  color: var(--text);
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 48px;
}

.brand {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin-bottom: 8px;
}

.brand-logo {
  height: 92px;
  width: auto;
  margin-bottom: 14px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(255, 225, 74, 0.22));
}

.hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

.hint-ar {
  margin: 4px 0 16px;
  font-family: Cairo, Inter, sans-serif;
  font-size: 15px;
  color: #5c5c5c;
}

.pay-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.slides {
  position: relative;
}

.pay-slide {
  display: none;
}

.pay-slide.active {
  display: block;
  animation: fade-in 0.28s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
}

.card-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.favorites {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 500;
}

.method-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 20px 8px;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 48px;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.method.active .method-icon {
  background: var(--purple);
  color: #fff;
}

.method-bar {
  width: 28px;
  height: 3px;
  border-radius: 99px;
}

.method.active .method-bar {
  background: var(--purple);
}

.section-line {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.section-title {
  padding: 16px 20px 0;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--purple);
}

.account-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  padding: 0 20px;
}

.account-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 12px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.account-tab.active {
  color: var(--orange);
  font-weight: 500;
  border-bottom-color: var(--orange);
}

.tabs-rule {
  border-bottom: 1px solid var(--line);
  margin-top: -1px;
}

.fields {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pill {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px 0 20px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill:focus-within {
  border-color: #d7dbe3;
  box-shadow: 0 0 0 4px rgba(107, 33, 214, 0.06);
}

.pill.amount {
  padding: 0 20px;
}

.pill.name-pill {
  padding-right: 8px;
}

.prefix,
.currency {
  color: var(--muted);
  font-size: 15px;
  flex-shrink: 0;
}

.divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
}

.field-value,
.amount-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}

.field-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.amount-input {
  font-size: 15px;
  min-height: 36px;
}

.amount-input::placeholder {
  color: var(--muted);
}

.name-stack {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
}

.name-stack strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.name-stack span {
  display: block;
  margin-top: 3px;
  font-family: Cairo, Inter, sans-serif;
  font-size: 13px;
  color: #4b4b4b;
  line-height: 1.35;
}

.copy-btn {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
}

.copy-btn:hover,
.copy-btn:focus {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.copy-all {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  background: #111;
  color: var(--yellow);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  box-shadow: none;
}

.copy-all:hover,
.copy-all:focus {
  background: #000;
  color: var(--yellow);
}

.copy-all.copied {
  background: #16a34a;
  color: #fff;
}

.guide {
  padding: 24px 22px 8px;
}

.guide h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.guide-lead {
  margin: 6px 0 18px;
  color: #666;
  font-size: 14px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steps span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.steps strong {
  display: block;
  font-size: 15px;
}

.steps small {
  color: var(--muted);
  font-size: 13px;
}

.qr-box {
  text-align: center;
  padding: 8px 0 4px;
}

.qr {
  width: 164px;
  height: 164px;
  margin: 0 auto 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.qr img,
.qr canvas {
  width: 100% !important;
  height: 100% !important;
}

.qr-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--orange-soft);
}

.dot.active {
  background: var(--orange);
  width: 18px;
  border-radius: 99px;
}

.disclaimer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(6px);
}

.disclaimer.hide {
  display: none;
}

.disclaimer-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
  animation: fade-in 0.28s ease;
}

.disclaimer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

.disclaimer-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.disclaimer-card > p {
  margin: 0 0 8px;
  color: #444;
  font-size: 15px;
  line-height: 1.55;
}

.disclaimer-ar {
  margin: 16px 0 20px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #f7f3ea;
  text-align: right;
}

.disclaimer-ar h3 {
  margin: 0 0 8px;
  font-family: Cairo, Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.disclaimer-ar p {
  margin: 0 0 6px;
  font-family: Cairo, Inter, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.disclaimer-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
}

.disclaimer-btn:hover,
.disclaimer-btn:focus {
  background: #000;
  color: var(--yellow);
}

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.toast-wrap.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 420px) {
  .brand-logo {
    height: 78px;
  }

  .hint,
  .hint-ar {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay-slide.active,
  .toast-wrap,
  .pill {
    animation: none;
    transition: none;
  }
}
