/* ══════════════════════════════════════════════
   Payment Page — miclogs style
   Fonts: DM Serif Display + IBM Plex Mono
   Palette: dark/light + violet/cyan/rose/indigo
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:        #05050a;
  --surface:      #0c0c14;
  --violet:       #7c3aed;
  --violet-mid:   #4c1d95;
  --violet-neon:  #a855f7;
  --violet-dim:   rgba(124, 58, 237, 0.14);
  --cyan:         #06b6d4;
  --cyan-neon:    #22d3ee;
  --cyan-dim:     rgba(6, 182, 212, 0.10);
  --rose:         #e63e82;
  --rose-neon:    #f472b6;
  --rose-dim:     rgba(236, 72, 153, 0.10);
  --indigo:       #6366f1;
  --indigo-neon:  #818cf8;
  --lavender:     #a78bfa;
  --amber:        #f59e0b;
  --amber-neon:   #fbbf24;
  --text:         #eaeaf2;
  --text-muted:   #6e6e88;
  --text-faint:   #222233;
  --glass-bg:     rgba(12, 12, 22, 0.55);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover:  rgba(255, 255, 255, 0.04);
  --glass-blur:   20px;
  --mono:         'IBM Plex Sans', sans-serif;
  --serif:        'DM Serif Display', serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t:            0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --green:        #22c55e;
  --green-neon:   #4ade80;
}

/* ── Light theme ── */
body.light {
  --black:        #c8c0d8;
  --surface:      #beb5d0;
  --violet:       #6d28d9;
  --violet-mid:   #4c1d95;
  --violet-neon:  #7c3aed;
  --violet-dim:   rgba(109, 40, 217, 0.12);
  --cyan:         #0891b2;
  --cyan-neon:    #06b6d4;
  --cyan-dim:     rgba(6, 182, 212, 0.10);
  --rose:         #db2777;
  --rose-neon:    #ec4899;
  --rose-dim:     rgba(236, 72, 153, 0.10);
  --indigo:       #4f46e5;
  --indigo-neon:  #6366f1;
  --lavender:     #8b5cf6;
  --amber:        #d97706;
  --amber-neon:   #f59e0b;
  --text:         #120d1e;
  --text-muted:   #453a60;
  --text-faint:   #a298bc;
  --glass-bg:     rgba(175, 165, 210, 0.4);
  --glass-border: rgba(90, 60, 160, 0.10);
  --glass-hover:  rgba(90, 60, 160, 0.06);
}

html, body {
  width: 100%; min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--mono);
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════════════
   BACKGROUND ORBS
   ═══════════════════════════════════════════════ */
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  mix-blend-mode: screen;
}
body.light .orb { mix-blend-mode: multiply; }

.orb-violet {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  top: -15%; right: -10%;
  opacity: 0.25;
  animation: orbFloat1 18s ease-in-out infinite;
}
.orb-cyan {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -10%; left: 10%;
  opacity: 0.18;
  animation: orbFloat2 22s ease-in-out infinite;
}
.orb-rose {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  top: 30%; left: -5%;
  opacity: 0.14;
  animation: orbFloat3 20s ease-in-out infinite;
}
.orb-indigo {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
  top: 10%; right: 30%;
  opacity: 0.12;
  animation: orbFloat4 25s ease-in-out infinite;
}
.orb-lavender {
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  bottom: 20%; right: 5%;
  opacity: 0.14;
  animation: orbFloat5 23s ease-in-out infinite;
}
.orb-amber {
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  bottom: 5%; left: 40%;
  opacity: 0.08;
  animation: orbFloat6 26s ease-in-out infinite;
}

body.light .orb-violet   { opacity: 0.22; }
body.light .orb-cyan     { opacity: 0.14; }
body.light .orb-rose     { opacity: 0.16; }
body.light .orb-indigo   { opacity: 0.18; }
body.light .orb-lavender { opacity: 0.20; }
body.light .orb-amber    { opacity: 0.14; }

@keyframes orbFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-80px,60px) scale(1.08)} 66%{transform:translate(40px,-40px) scale(0.92)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0) scale(1)} 40%{transform:translate(60px,-50px) scale(1.1)} 75%{transform:translate(-40px,30px) scale(0.95)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(70px,-60px) scale(1.06)} }
@keyframes orbFloat4 { 0%,100%{transform:translate(0,0) scale(1)} 35%{transform:translate(-50px,40px) scale(1.12)} 70%{transform:translate(30px,-50px) scale(0.9)} }
@keyframes orbFloat5 { 0%,100%{transform:translate(0,0) scale(1)} 45%{transform:translate(-40px,-40px) scale(1.05)} 80%{transform:translate(50px,30px) scale(0.97)} }
@keyframes orbFloat6 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,-30px) scale(1.08)} }

/* Grain overlay */
.hero-grain {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}
body.light .hero-grain { opacity: 0.03; }

/* ══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes splashIn {
  0%   { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splashPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  60%     { transform: scale(0.95); opacity: 0.8; }
}
@keyframes splashOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes dotBounce {
  0%,80%,100% { transform: scale(0); }
  40%         { transform: scale(1); }
}

/* ══════════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════════ */
.splash {
  position: fixed; inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: var(--black);
  transition: background 0.4s ease;
}
.splash-logo {
  font-family: var(--mono);
  font-size: 48px;
  color: var(--violet-neon);
  animation: splashIn 0.8s ease-out forwards, splashPulse 1.2s ease-in-out 0.8s infinite;
  filter: drop-shadow(0 0 24px rgba(168,85,247,0.4));
}
.splash.fade-out .splash-logo {
  animation: splashOut 0.4s ease-in-out forwards;
}
.splash.hidden { display: none; }

/* ══════════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════════ */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.2s forwards;
}

/* ── Top bar ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.logo-mark {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--violet-neon);
}
.logo-text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 0.7;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color var(--t), background var(--t), transform 0.2s var(--ease-spring);
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--glass-hover);
}
.theme-toggle:active { transform: scale(0.88); }

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
body.light .theme-toggle .icon-moon { display: none; }
body.light .theme-toggle .icon-sun  { display: block; }

/* ══════════════════════════════════════════════
   PAYMENT CARD
   ═══════════════════════════════════════════════ */
.pay-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: border-color var(--t), background var(--t);
}
body.light .glass-card {
  background: rgba(180, 170, 215, 0.32);
  border-color: rgba(90,60,160,0.12);
}

.pay-card {
  width: 100%;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Staggered fade in */
.pay-card .anim-item {
  opacity: 0;
  animation: fadeInUp 0.55s var(--ease-out) both;
}
.pay-card .anim-item:nth-child(1) { animation-delay: 0.1s; }
.pay-card .anim-item:nth-child(2) { animation-delay: 0.18s; }
.pay-card .anim-item:nth-child(3) { animation-delay: 0.26s; }
.pay-card .anim-item:nth-child(4) { animation-delay: 0.34s; }
.pay-card .anim-item:nth-child(5) { animation-delay: 0.42s; }
.pay-card .anim-item:nth-child(6) { animation-delay: 0.5s; }
.pay-card .anim-item:nth-child(7) { animation-delay: 0.58s; }
.pay-card .anim-item:nth-child(8) { animation-delay: 0.66s; }

/* ── Recipient ── */
.recipient {
  display: flex;
  align-items: center;
  gap: 14px;
}
.recipient-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-neon), var(--indigo-neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.recipient-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recipient-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}
.recipient-handle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Amount ── */
.amount-section {
  text-align: center;
  padding: 8px 0;
}
.amount-input {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  text-align: center;
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
  caret-color: var(--violet-neon);
}
.amount-label {
  display: none;
}
.currency-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 5px 14px;
  margin-top: 10px;
}
body.light .currency-badge {
  background: rgba(100,60,180,0.06);
  border-color: rgba(90,60,160,0.12);
}

/* ── Message ── */
.message-section {
  width: 100%;
  display: flex;
  justify-content: center;
}
.message-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 18px;
  outline: none;
  text-align: left;
  letter-spacing: 0.03em;
  transition: border-color var(--t), background var(--t);
}
.message-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.message-input:focus {
  border-color: rgba(124,58,237,0.3);
  background: rgba(255,255,255,0.05);
}
body.light .message-input {
  background: rgba(100,60,180,0.04);
  border-color: rgba(90,60,160,0.12);
}
body.light .message-input:focus {
  border-color: rgba(109,40,217,0.25);
  background: rgba(100,60,180,0.08);
}

/* ── Quick amounts ── */
.quick-amounts {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.quick-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: color var(--t), background var(--t), border-color var(--t), transform 0.15s ease;
}
.quick-btn:hover {
  color: var(--violet-neon);
  border-color: rgba(168,85,247,0.3);
  background: var(--violet-dim);
}
.quick-btn:active { transform: scale(0.95); }
.quick-btn.active {
  color: var(--violet-neon);
  border-color: rgba(168,85,247,0.4);
  background: var(--violet-dim);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), rgba(99,102,241,0.2), rgba(124,58,237,0.15), transparent);
}

/* ── Or divider ── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.or-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), rgba(99,102,241,0.2), rgba(124,58,237,0.15), transparent);
}
.or-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Card section label ── */
.card-section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}

/* ══════════════════════════════════════════════
   CARD FORM
   ═══════════════════════════════════════════════ */
.card-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  letter-spacing: 0.06em;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-input:focus {
  border-color: rgba(124,58,237,0.35);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
body.light .form-input {
  background: rgba(100,60,180,0.04);
  border-color: rgba(90,60,160,0.12);
}
body.light .form-input:focus {
  border-color: rgba(109,40,217,0.3);
  background: rgba(100,60,180,0.08);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.06);
}

/* ══════════════════════════════════════════════
   STRIPE CARD ELEMENT
   ═══════════════════════════════════════════════ */
.stripe-card-element {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.stripe-card-element.StripeElement--focus {
  border-color: rgba(124,58,237,0.35);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.stripe-card-element.StripeElement--invalid {
  border-color: rgba(236,72,153,0.5);
  box-shadow: 0 0 0 3px rgba(236,72,153,0.08);
}
body.light .stripe-card-element {
  background: rgba(100,60,180,0.04);
  border-color: rgba(90,60,160,0.12);
}
body.light .stripe-card-element.StripeElement--focus {
  border-color: rgba(109,40,217,0.3);
  background: rgba(100,60,180,0.08);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.06);
}

.stripe-card-errors {
  font-family: var(--mono);
  font-size: 11px;
  color: #e05c6e;
  letter-spacing: 0.03em;
  min-height: 16px;
}

/* Payment error below form */
.payment-error {
  font-family: var(--mono);
  font-size: 12px;
  color: #e05c6e;
  background: rgba(224,92,110,0.08);
  border: 1px solid rgba(224,92,110,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
}
.payment-error[hidden] { display: none; }

/* ══════════════════════════════════════════════
   PAYMENT REQUEST BUTTON (Apple Pay / Google Pay)
   ═══════════════════════════════════════════════ */
#paymentRequestButton {
  min-height: 48px;
}

/* ══════════════════════════════════════════════
   PAY BUTTON
   ═══════════════════════════════════════════════ */
.pay-btn {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow var(--t), opacity var(--t);
  box-shadow: 0 4px 20px rgba(124,58,237,0.25), 0 0 40px rgba(124,58,237,0.08);
  margin-top: 4px;
}
.pay-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,58,237,0.35), 0 0 60px rgba(124,58,237,0.12);
}
.pay-btn:active:not(:disabled) { transform: scale(0.98); }
.pay-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pay-btn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pay-btn-loader[hidden] { display: none; }
.pay-btn-loader span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: dotBounce 1.4s ease-in-out infinite both;
}
.pay-btn-loader span:nth-child(1) { animation-delay: -0.32s; }
.pay-btn-loader span:nth-child(2) { animation-delay: -0.16s; }
.pay-btn-loader span:nth-child(3) { animation-delay: 0s; }

/* ══════════════════════════════════════════════
   SECURITY BADGE
   ═══════════════════════════════════════════════ */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  opacity: 0;
  animation: fadeInUp 0.55s var(--ease-out) 0.8s both;
}
.security-badge svg {
  color: var(--green-neon);
  opacity: 0.6;
}
.security-badge span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.pay-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-brand, .footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  opacity: 0.35;
}

/* ══════════════════════════════════════════════
   SUCCESS OVERLAY
   ═══════════════════════════════════════════════ */
.success-overlay {
  position: fixed; inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  background: rgba(5,5,10,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}
.success-overlay[hidden] { display: none; }
body.light .success-overlay { background: rgba(180,170,215,0.6); }

.success-card {
  padding: 40px 36px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  animation: successPop 0.5s var(--ease-spring) both;
}
.success-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(74,222,128,0.1));
  border: 1px solid rgba(34,197,94,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green-neon);
}
.success-check svg {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.6s ease 0.3s forwards;
}
.success-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}
.success-msg {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 24px;
}
.success-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--violet-neon);
  background: none;
  border: 1px solid rgba(168,85,247,0.3);
  padding: 10px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform 0.15s ease;
}
.success-btn:hover {
  background: var(--violet-dim);
  border-color: rgba(168,85,247,0.5);
}
.success-btn:active { transform: scale(0.96); }

/* ══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.35); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 520px) {
  .app { max-width: 100%; padding: 0 16px; }
  .pay-card { padding: 24px 18px; }
  .amount-input { font-size: 40px; }
  .quick-btn { padding: 7px 12px; font-size: 10px; }
}

@media (max-width: 380px) {
  .pay-card { padding: 20px 14px; border-radius: 16px; }
  .amount-input { font-size: 34px; }
  .form-input { padding: 12px 14px; font-size: 13px; }
}

/* ══════════════════════════════════════════════
   TOUCH OVERRIDES
   ═══════════════════════════════════════════════ */
@media (hover: none) {
  .quick-btn:hover { color: var(--text-muted); background: none; border-color: var(--glass-border); }
  .quick-btn.active { color: var(--violet-neon); border-color: rgba(168,85,247,0.4); background: var(--violet-dim); }
  .pay-btn:hover:not(:disabled) { transform: none; box-shadow: 0 4px 20px rgba(124,58,237,0.25); }
}
