* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --gold:#E8C766;
  --gold-bright:#F5D77A;
  --gold-deep:#B8944A;
  --gold-soft:rgba(232,199,102,.10);
  --gold-line:rgba(232,199,102,.22);
  --gold-glow:rgba(232,199,102,.35);
  --bg:#000000;
  --card:#080808;
  --input:#111111;
  --border:#1c1c1c;
  --border-hi:#2a2a2a;
  --text:#f5f5f5;
  --muted:#6e6e6e;
  --error:#ff5757;
}

html, body { height:100%; }

body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  position:relative;
}

.bg-glow {
  position:fixed;
  top:-40%;
  left:50%;
  transform:translateX(-50%);
  width:1100px;
  height:1100px;
  background:radial-gradient(circle, rgba(232,199,102,.10) 0%, rgba(232,199,102,.03) 35%, transparent 65%);
  pointer-events:none;
  z-index:0;
  animation:glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity:.75; transform:translateX(-50%) scale(1); }
  50% { opacity:1; transform:translateX(-50%) scale(1.1); }
}

.bg-grid {
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(232,199,102,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,199,102,.022) 1px, transparent 1px);
  background-size:52px 52px;
  pointer-events:none;
  z-index:0;
  mask-image:radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image:radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
}

.bg-vignette {
  position:fixed;
  inset:0;
  background:radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.85) 100%);
  pointer-events:none;
  z-index:0;
}

.toast-stack {
  position:fixed;
  top:20px;
  right:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:100;
  pointer-events:none;
  width:fit-content;
  max-width:280px;
}

.toast {
  position:relative;
  border-radius:0;
  background:linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
  border:1px solid var(--gold);
  transform:translateX(120%);
  opacity:0;
  animation:toastIn .55s cubic-bezier(.2,.9,.2,1) forwards;
  box-shadow:
    0 20px 50px rgba(0,0,0,.85),
    0 0 0 1px rgba(232,199,102,.08),
    inset 0 1px 0 rgba(255,255,255,.03);
  overflow:hidden;
}

@keyframes toastIn {
  0%   { opacity:0; transform:translateX(120%) scale(.95); }
  60%  { opacity:1; transform:translateX(-6px) scale(1); }
  100% { opacity:1; transform:translateX(0) scale(1); }
}

.toast.out {
  animation:toastOut .45s cubic-bezier(.4,0,.7,.2) forwards;
}
@keyframes toastOut {
  0%   { opacity:1; transform:translateX(0) scale(1); }
  100% { opacity:0; transform:translateX(120%) scale(.95); }
}

.toast-inner {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 13px;
  background:linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
}

.toast-logo {
  width:34px;
  height:34px;
  border-radius:0;
  background:linear-gradient(135deg, rgba(232,199,102,.14), rgba(232,199,102,.03));
  border:1px solid var(--gold-line);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.toast-logo img {
  width:22px;
  height:22px;
  object-fit:contain;
}

.toast-body {
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}

.toast-user {
  font-size:.82rem;
  font-weight:700;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:flex;
  align-items:center;
}
.toast-user-blur {
  filter:blur(4px);
  opacity:.65;
  user-select:none;
  margin-left:1px;
}

.toast-action {
  font-size:.7rem;
  color:var(--muted);
  font-weight:500;
  white-space:nowrap;
}
.toast-action span {
  color:var(--gold);
  font-weight:700;
}

.widget {
  position:relative;
  z-index:1;
  width:100%;
  max-width:440px;
  background:linear-gradient(180deg, #0a0a0a 0%, #030303 100%);
  border:1px solid var(--border);
  border-radius:24px;
  padding:38px 30px 34px;
  box-shadow:
    0 40px 100px rgba(0,0,0,.95),
    0 0 0 1px rgba(232,199,102,.04),
    inset 0 1px 0 rgba(255,255,255,.03);
  animation:widgetIn .8s cubic-bezier(.2,.9,.2,1) both;
}
@keyframes widgetIn {
  from { opacity:0; transform:translateY(28px) scale(.96); }
  to { opacity:1; transform:translateY(0) scale(1); }
}

.widget::before {
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:24px;
  padding:0.5px;
  background:linear-gradient(135deg,
    rgba(232,199,102,.65) 0%,
    rgba(232,199,102,.10) 25%,
    transparent 50%,
    rgba(232,199,102,.10) 75%,
    rgba(232,199,102,.55) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  opacity:.95;
  animation:borderShift 9s linear infinite;
}
@keyframes borderShift {
  0%, 100% { opacity:.65; }
  50% { opacity:1; }
}

.widget-head { margin-bottom:30px; }

.brand {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-bottom:24px;
}
.brand img {
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:16px;
  filter:drop-shadow(0 8px 26px var(--gold-glow));
  transition:transform .35s cubic-bezier(.2,.8,.2,1);
  animation:logoFloat 4.5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform:translateY(0); }
  50% { transform:translateY(-5px); }
}
.brand img:hover { transform:scale(1.08) rotate(-3deg); }

.brand-name {
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:-.3px;
  background:linear-gradient(135deg, #fff 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.brand-name span {
  color:var(--gold);
  -webkit-text-fill-color:var(--gold);
}

.widget h2 {
  font-size:1.4rem;
  font-weight:800;
  letter-spacing:-.4px;
  text-align:center;
  margin-bottom:8px;
}
.widget .sub {
  color:var(--muted);
  font-size:.88rem;
  text-align:center;
  line-height:1.5;
}
.widget .sub strong { color:var(--gold); font-weight:600; }

.field { margin-bottom:22px; }

.field label {
  display:block;
  font-size:.72rem;
  color:var(--muted);
  margin-bottom:10px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

.country-select { width:100%; }

.country-trigger {
  width:100%;
  background:var(--input);
  border:1px solid var(--border);
  border-radius:14px;
  padding:0 16px;
  height:54px;
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  font-size:.95rem;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  transition:border-color .25s, background .25s, box-shadow .25s;
  text-align:left;
}
.country-trigger:hover { border-color:var(--border-hi); }
.country-trigger span { flex:1; }
.country-trigger .chev {
  width:16px;
  height:16px;
  color:var(--muted);
  transition:transform .3s cubic-bezier(.2,.9,.2,1), color .25s;
  flex-shrink:0;
}
.country-select.open .country-trigger {
  border-color:var(--gold);
  background:#151515;
  box-shadow:0 0 0 4px var(--gold-soft);
}
.country-select.open .country-trigger .chev {
  transform:rotate(180deg);
  color:var(--gold);
}

.country-menu {
  max-height:0;
  overflow:hidden;
  background:linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  border:1px solid transparent;
  border-radius:14px;
  padding:0 6px;
  margin-top:0;
  opacity:0;
  transition:
    max-height .35s cubic-bezier(.2,.9,.2,1),
    opacity .3s cubic-bezier(.2,.9,.2,1),
    margin-top .3s cubic-bezier(.2,.9,.2,1),
    padding .3s cubic-bezier(.2,.9,.2,1),
    border-color .3s;
}
.country-select.open .country-menu {
  max-height:260px;
  opacity:1;
  padding:6px;
  margin-top:8px;
  border-color:var(--border);
  box-shadow:0 20px 50px rgba(0,0,0,.8), 0 0 0 1px rgba(232,199,102,.06);
}

.country-menu button {
  width:100%;
  background:transparent;
  border:none;
  color:var(--text);
  padding:12px;
  border-radius:10px;
  font-size:.9rem;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:12px;
  transition:background .2s, color .2s, transform .2s;
  text-align:left;
}
.country-menu button:hover {
  background:#181818;
  transform:translateX(2px);
}
.country-menu button.active {
  background:var(--gold-soft);
  color:var(--gold);
}
.country-menu button .dial {
  margin-left:auto;
  color:var(--muted);
  font-size:.82rem;
  font-weight:600;
}
.country-menu button.active .dial { color:var(--gold); }

.flag-svg {
  width:22px;
  height:15px;
  border-radius:3px;
  overflow:hidden;
  display:block;
  flex-shrink:0;
  transition:transform .3s;
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
}
.country-menu button:hover .flag-svg { transform:scale(1.08); }

.phone-row { display:flex; gap:10px; }

.prefix {
  background:var(--input);
  border:1px solid var(--border);
  border-radius:14px;
  padding:0 16px;
  height:54px;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:var(--gold);
  font-size:.95rem;
  user-select:none;
  flex-shrink:0;
}
.prefix svg {
  width:16px;
  height:16px;
  opacity:.85;
  animation:ring 3.5s ease-in-out infinite;
  transform-origin:center;
}
@keyframes ring {
  0%, 88%, 100% { transform:rotate(0); }
  90% { transform:rotate(-12deg); }
  92% { transform:rotate(12deg); }
  94% { transform:rotate(-8deg); }
  96% { transform:rotate(8deg); }
  98% { transform:rotate(0); }
}

.phone-row input {
  flex:1;
  background:var(--input);
  border:1px solid var(--border);
  border-radius:14px;
  padding:0 16px;
  height:54px;
  color:var(--text);
  font-size:1rem;
  font-family:inherit;
  outline:none;
  transition:border-color .25s, background .25s, transform .25s, box-shadow .25s;
  width:100%;
  min-width:0;
}
.phone-row input::placeholder { color:#3a3a3a; }
.phone-row input:focus {
  border-color:var(--gold);
  background:#151515;
  box-shadow:0 0 0 4px var(--gold-soft);
  transform:translateY(-1px);
}

.username-row { display:flex; gap:10px; }

.at-icon {
  background:var(--input);
  border:1px solid var(--border);
  border-radius:14px;
  padding:0 16px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  flex-shrink:0;
  transition:border-color .25s, box-shadow .25s;
}
.at-icon svg {
  width:18px;
  height:18px;
  transition:transform .35s cubic-bezier(.2,.9,.2,1);
}
.username-row:focus-within .at-icon {
  border-color:var(--gold);
  box-shadow:0 0 0 4px var(--gold-soft);
}
.username-row:focus-within .at-icon svg {
  transform:scale(1.18) rotate(-8deg);
}

.username-row input {
  flex:1;
  background:var(--input);
  border:1px solid var(--border);
  border-radius:14px;
  padding:0 16px;
  height:54px;
  color:var(--text);
  font-size:1rem;
  font-family:inherit;
  outline:none;
  transition:border-color .25s, background .25s, transform .25s, box-shadow .25s;
  width:100%;
  min-width:0;
}
.username-row input::placeholder { color:#3a3a3a; }
.username-row input:focus {
  border-color:var(--gold);
  background:#151515;
  box-shadow:0 0 0 4px var(--gold-soft);
  transform:translateY(-1px);
}

.operators {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.operators button {
  background:var(--input);
  border:1px solid var(--border);
  color:var(--text);
  padding:14px 10px;
  border-radius:14px;
  font-size:.85rem;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  transition:all .25s cubic-bezier(.2,.8,.2,1);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
}
.operators button svg {
  width:16px;
  height:16px;
  opacity:.5;
  transition:opacity .25s, transform .25s;
  flex-shrink:0;
}
.operators button:hover {
  border-color:var(--border-hi);
  background:#181818;
  transform:translateY(-2px);
}
.operators button:hover svg { opacity:.9; transform:scale(1.15); }
.operators button:active { transform:translateY(0) scale(.97); }
.operators button.selected {
  border-color:var(--gold);
  background:var(--gold-soft);
  color:var(--gold);
  box-shadow:0 0 0 3px rgba(232,199,102,.1);
}
.operators button.selected svg { opacity:1; transform:scale(1.1); }

.btn {
  width:100%;
  background:linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  color:#000;
  border:none;
  padding:16px;
  border-radius:14px;
  font-weight:800;
  font-size:.95rem;
  font-family:inherit;
  cursor:pointer;
  transition:transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  margin-top:6px;
  letter-spacing:.4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  position:relative;
  overflow:hidden;
  box-shadow:0 6px 22px rgba(232,199,102,.18);
}

.btn::after {
  content:"";
  position:absolute;
  top:0; left:-100%;
  width:100%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition:left .7s;
}
.btn:hover::after { left:100%; }

.btn svg { width:16px; height:16px; transition:transform .25s; }
.btn:hover {
  transform:translateY(-2px);
  box-shadow:0 16px 40px rgba(232,199,102,.35);
}
.btn:hover svg { transform:translateX(4px); }
.btn:active { transform:translateY(0) scale(.98); }

.error-msg {
  color:var(--error);
  font-size:.82rem;
  margin-top:10px;
  min-height:18px;
  text-align:center;
  font-weight:500;
}
.error-msg:not(:empty) {
  animation:shake .4s cubic-bezier(.36,.07,.19,.97);
}
@keyframes shake {
  10%, 90% { transform:translateX(-2px); }
  20%, 80% { transform:translateX(4px); }
  30%, 50%, 70% { transform:translateX(-6px); }
  40%, 60% { transform:translateX(6px); }
}

.step { display:none; }
.step.active { display:block; animation:stepIn .45s cubic-bezier(.2,.9,.2,1); }
@keyframes stepIn {
  from { opacity:0; transform:translateY(12px) scale(.98); }
  to { opacity:1; transform:translateY(0) scale(1); }
}

.code-boxes {
  display:flex;
  justify-content:center;
  gap:10px;
  margin:32px 0 26px;
}
.code-boxes input {
  width:54px;
  height:64px;
  background:var(--input);
  border:1px solid var(--border);
  border-radius:14px;
  text-align:center;
  font-size:1.7rem;
  font-weight:800;
  color:var(--gold);
  outline:none;
  font-family:inherit;
  transition:border-color .25s, transform .2s cubic-bezier(.2,.9,.2,1), background .25s, box-shadow .25s;
  caret-color:var(--gold);
}
.code-boxes input:focus {
  border-color:var(--gold);
  background:#151515;
  transform:scale(1.06);
  box-shadow:0 0 0 4px var(--gold-soft);
}
.code-boxes input.filled {
  border-color:var(--gold-line);
  background:#151515;
}

.wait-anim {
  position:relative;
  width:150px;
  height:150px;
  margin:30px auto 24px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wait-ring {
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid var(--gold);
  opacity:0;
  animation:waitRing 2.4s cubic-bezier(.2,.8,.2,1) infinite;
}
.wait-ring.r2 { animation-delay:.8s; }
.wait-ring.r3 { animation-delay:1.6s; }
@keyframes waitRing {
  0% { transform:scale(.3); opacity:0; }
  20% { opacity:.8; }
  100% { transform:scale(1.4); opacity:0; }
}
.wait-core {
  position:relative;
  z-index:2;
  width:76px;
  height:76px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  color:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 10px 40px var(--gold-glow),
    0 0 60px rgba(232,199,102,.25);
  animation:waitPulse 2s ease-in-out infinite;
}
.wait-core::before {
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:50%;
  border:1px dashed rgba(232,199,102,.4);
  animation:spinDashed 8s linear infinite;
}
@keyframes spinDashed {
  from { transform:rotate(0); }
  to { transform:rotate(360deg); }
}
.wait-core svg {
  width:34px;
  height:34px;
  animation:clockSpin 2s linear infinite;
}
@keyframes waitPulse {
  0%, 100% { transform:scale(1); box-shadow:0 10px 40px var(--gold-glow), 0 0 60px rgba(232,199,102,.25); }
  50% { transform:scale(1.1); box-shadow:0 10px 50px var(--gold-glow), 0 0 80px rgba(232,199,102,.4); }
}
@keyframes clockSpin {
  from { transform:rotate(0); }
  to { transform:rotate(360deg); }
}
.wait-text {
  text-align:center;
  color:var(--gold);
  font-size:.88rem;
  font-weight:600;
  margin-top:10px;
  letter-spacing:.3px;
  animation:waitBlink 2.4s ease-in-out infinite;
}
@keyframes waitBlink {
  0%, 100% { opacity:.5; }
  50% { opacity:1; }
}

.reveal-anim {
  position:relative;
  width:150px;
  height:150px;
  margin:30px auto 28px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.reveal-scan {
  position:absolute;
  inset:0;
  border-radius:50%;
  background:radial-gradient(circle,
    rgba(232,199,102,.35) 0%,
    rgba(232,199,102,.08) 40%,
    transparent 70%);
  animation:revealGlow 1.8s ease-out forwards;
  pointer-events:none;
}
@keyframes revealGlow {
  0%   { opacity:0; transform:scale(.4); }
  40%  { opacity:1; transform:scale(1.1); }
  100% { opacity:0; transform:scale(1.5); }
}

.reveal-ring {
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid var(--gold);
  opacity:0;
  animation:revealRing 1.6s cubic-bezier(.2,.8,.2,1) forwards;
}
.reveal-ring.r2 { animation-delay:.25s; }
@keyframes revealRing {
  0%   { transform:scale(.3); opacity:0; }
  30%  { opacity:.9; }
  100% { transform:scale(1.5); opacity:0; }
}

.reveal-badge {
  position:relative;
  z-index:2;
  width:90px;
  height:90px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  color:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 10px 45px var(--gold-glow),
    0 0 80px rgba(232,199,102,.4);
  animation:revealBadge .9s cubic-bezier(.2,.9,.2,1) both;
}
.reveal-badge svg {
  width:44px;
  height:44px;
  stroke-dasharray:60;
  stroke-dashoffset:60;
  animation:revealDraw 1s .3s cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes revealBadge {
  0%   { transform:scale(0) rotate(-45deg); opacity:0; }
  60%  { transform:scale(1.15) rotate(10deg); opacity:1; }
  100% { transform:scale(1) rotate(0); opacity:1; }
}
@keyframes revealDraw {
  to { stroke-dashoffset:0; }
}

.reveal-title {
  font-size:1.4rem;
  font-weight:800;
  letter-spacing:-.4px;
  text-align:center;
  margin-bottom:10px;
  background:linear-gradient(135deg, #fff 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:revealSlide .6s .4s cubic-bezier(.2,.9,.2,1) both;
}
.reveal-sub {
  color:var(--muted);
  font-size:.9rem;
  text-align:center;
  line-height:1.5;
  animation:revealSlide .6s .55s cubic-bezier(.2,.9,.2,1) both;
}
@keyframes revealSlide {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.success { text-align:center; padding:20px 0 8px; }

.send-anim {
  position:relative;
  width:120px;
  height:120px;
  margin:0 auto 26px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.send-anim .ring {
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid var(--gold);
  opacity:0;
  animation:ringExpand 2.4s 0.4s cubic-bezier(.2,.8,.2,1) infinite;
}
.send-anim .ring2 { animation-delay:1.2s; }
@keyframes ringExpand {
  0% { transform:scale(.4); opacity:0; }
  30% { opacity:.6; }
  100% { transform:scale(1.4); opacity:0; }
}

.send-anim .paper {
  position:relative;
  z-index:2;
  width:64px;
  height:64px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  color:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 34px var(--gold-glow);
  animation:paperFly 2.4s cubic-bezier(.5,0,.3,1) infinite;
}
.send-anim .paper svg { width:28px; height:28px; }
@keyframes paperFly {
  0% { transform:translate(0,0) rotate(0deg) scale(1); }
  15% { transform:translate(-6px,4px) rotate(-8deg) scale(1.05); }
  35% { transform:translate(8px,-8px) rotate(10deg) scale(1.08); }
  55% { transform:translate(28px,-40px) rotate(28deg) scale(.85); opacity:.9; }
  75% { transform:translate(70px,-95px) rotate(55deg) scale(.45); opacity:0; }
  76% { transform:translate(0,0) rotate(0) scale(0); opacity:0; }
  100% { transform:translate(0,0) rotate(0) scale(1); opacity:1; }
}

.send-anim .check-badge {
  position:absolute;
  bottom:-4px;
  right:-4px;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--card);
  border:2px solid var(--gold);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3;
  animation:badgeIn .5s 1.6s cubic-bezier(.2,.9,.2,1) both, badgePulse 2.4s 2.1s ease-out infinite;
  box-shadow:0 0 0 0 var(--gold-glow);
}
.send-anim .check-badge svg { width:20px; height:20px; }
@keyframes badgeIn {
  0% { transform:scale(0) rotate(-45deg); opacity:0; }
  60% { transform:scale(1.15) rotate(8deg); opacity:1; }
  100% { transform:scale(1) rotate(0); opacity:1; }
}
@keyframes badgePulse {
  0% { box-shadow:0 0 0 0 var(--gold-glow); }
  70% { box-shadow:0 0 0 14px rgba(232,199,102,0); }
  100% { box-shadow:0 0 0 0 rgba(232,199,102,0); }
}

.success h3 {
  font-size:1.25rem;
  font-weight:800;
  margin-bottom:8px;
  letter-spacing:-.3px;
}
.success p {
  color:var(--muted);
  font-size:.9rem;
}

.username-badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
  padding:10px 20px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(232,199,102,.10), rgba(232,199,102,.04));
  border:1px solid var(--gold-line);
  color:var(--gold);
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.3px;
  box-shadow:0 4px 18px rgba(232,199,102,.08);
}

.delay-note {
  margin-top:20px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:12px 18px;
  border-radius:12px;
  background:rgba(232,199,102,.05);
  border:1px solid var(--gold-line);
  color:var(--gold);
  font-size:.82rem;
  font-weight:600;
}
.delay-note svg {
  width:16px;
  height:16px;
  flex-shrink:0;
  animation:clockTick 3s ease-in-out infinite;
  transform-origin:center;
}
@keyframes clockTick {
  0%, 100% { transform:rotate(0); }
  25% { transform:rotate(-12deg); }
  75% { transform:rotate(12deg); }
}

.notice-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:1;
  visibility:visible;
  transition:opacity .35s cubic-bezier(.2,.9,.2,1), visibility .35s;
}
.notice-overlay.hidden {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.notice-modal {
  position:relative;
  width:100%;
  max-width:400px;
  background:linear-gradient(180deg, #0a0a0a 0%, #030303 100%);
  border:1px solid var(--border);
  border-radius:22px;
  padding:36px 28px 28px;
  text-align:center;
  box-shadow:
    0 40px 100px rgba(0,0,0,.95),
    0 0 0 1px rgba(232,199,102,.06),
    inset 0 1px 0 rgba(255,255,255,.03);
  animation:noticeIn .55s cubic-bezier(.2,.9,.2,1) both;
}
@keyframes noticeIn {
  0% { opacity:0; transform:translateY(28px) scale(.94); }
  100% { opacity:1; transform:translateY(0) scale(1); }
}
.notice-modal::before {
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:22px;
  padding:0.5px;
  background:linear-gradient(135deg,
    rgba(232,199,102,.65) 0%,
    rgba(232,199,102,.08) 30%,
    transparent 50%,
    rgba(232,199,102,.08) 70%,
    rgba(232,199,102,.55) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}

.notice-icon {
  width:64px;
  height:64px;
  border-radius:50%;
  background:linear-gradient(135deg, rgba(232,199,102,.14), rgba(232,199,102,.04));
  border:2px solid var(--gold);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 20px;
  animation:noticeIconPulse 2s ease-out infinite;
  box-shadow:0 0 0 0 var(--gold-glow);
}
.notice-icon svg { width:30px; height:30px; }
@keyframes noticeIconPulse {
  0% { box-shadow:0 0 0 0 var(--gold-glow); }
  70% { box-shadow:0 0 0 18px rgba(232,199,102,0); }
  100% { box-shadow:0 0 0 0 rgba(232,199,102,0); }
}

.notice-modal h3 {
  font-size:1.2rem;
  font-weight:800;
  letter-spacing:-.3px;
  margin-bottom:12px;
  background:linear-gradient(135deg, #fff 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.notice-modal p {
  color:var(--muted);
  font-size:.9rem;
  line-height:1.6;
  margin-bottom:24px;
}

.notice-btn {
  width:100%;
  background:linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  color:#000;
  border:none;
  padding:15px;
  border-radius:14px;
  font-weight:800;
  font-size:.92rem;
  font-family:inherit;
  cursor:pointer;
  letter-spacing:.4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  position:relative;
  overflow:hidden;
  box-shadow:0 6px 22px rgba(232,199,102,.2);
  transition:transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.notice-btn::after {
  content:"";
  position:absolute;
  top:0; left:-100%;
  width:100%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition:left .7s;
}
.notice-btn:hover::after { left:100%; }
.notice-btn svg { width:16px; height:16px; transition:transform .25s; }
.notice-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 16px 40px rgba(232,199,102,.35);
}
.notice-btn:hover svg { transform:translateX(3px); }
.notice-btn:active { transform:translateY(0) scale(.98); }

@media (max-width:480px) {
  body {
    padding:14px;
    align-items:center;
    justify-content:center;
    min-height:100dvh;
  }
  .widget { padding:28px 22px 26px; border-radius:20px; }
  .widget h2 { font-size:1.25rem; }
  .brand img { width:50px; height:50px; }
  .brand-name { font-size:.95rem; }
  .country-trigger { padding:0 13px; font-size:.9rem; height:52px; }
  .country-menu button { padding:11px 10px; font-size:.85rem; }
  .prefix { padding:0 13px; font-size:.9rem; gap:6px; }
  .prefix svg { width:14px; height:14px; }
  .phone-row input { padding:0 13px; font-size:.95rem; }
  .at-icon { padding:0 13px; }
  .at-icon svg { width:16px; height:16px; }
  .username-row input { padding:0 13px; font-size:.95rem; }
  .code-boxes { gap:8px; }
  .code-boxes input {
    width:48px;
    height:58px;
    font-size:1.5rem;
    border-radius:12px;
  }
  .operators button { font-size:.8rem; padding:13px 8px; min-height:48px; }
  .flag-svg { width:20px; height:14px; }
  .btn { padding:15px; font-size:.9rem; }
  .send-anim { width:100px; height:100px; }
  .send-anim .paper { width:56px; height:56px; }
  .send-anim .paper svg { width:24px; height:24px; }
  .send-anim .check-badge { width:38px; height:38px; }
  .send-anim .check-badge svg { width:17px; height:17px; }
  .wait-anim { width:120px; height:120px; }
  .wait-core { width:64px; height:64px; }
  .wait-core svg { width:28px; height:28px; }
  .reveal-anim { width:120px; height:120px; }
  .reveal-badge { width:76px; height:76px; }
  .reveal-badge svg { width:36px; height:36px; }
  .reveal-title { font-size:1.25rem; }
  .delay-note { font-size:.76rem; padding:11px 14px; }
  .username-badge { font-size:.82rem; padding:9px 16px; }
  .notice-modal { padding:30px 22px 24px; border-radius:20px; }
  .notice-modal h3 { font-size:1.1rem; }
  .notice-modal p { font-size:.85rem; }
  .notice-icon { width:58px; height:58px; }
  .notice-icon svg { width:26px; height:26px; }
  .notice-btn { padding:14px; font-size:.88rem; }
  .toast-stack { top:14px; right:14px; left:auto; max-width:calc(100vw - 28px); }
  .toast-inner { padding:8px 11px; gap:9px; }
  .toast-logo { width:30px; height:30px; }
  .toast-logo img { width:19px; height:19px; }
  .toast-user { font-size:.78rem; }
  .toast-action { font-size:.66rem; }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}