:root {
  --bg: #0b0d12;
  --surface: #151821;
  --surface-2: #1d2230;
  --surface-3: #252b3c;
  --border: #2a2f3d;
  --border-2: #353c4f;
  --text: #e8ecf3;
  --muted: #8b93a7;
  --muted-2: #5f667b;
  --accent: #ffd23f;
  --accent-2: #ff7a59;
  --success: #4ade80;
  --danger: #f87171;
  --info: #60a5fa;
  --radius: 14px;
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(
      800px 400px at 80% 0%,
      rgba(255, 122, 89, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1200px 600px at 20% -10%,
      rgba(96, 165, 250, 0.1),
      transparent 60%
    ),
    radial-gradient(
      1200px 600px at 50% 110%,
      rgba(255, 210, 63, 0.06),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.app {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 16px 80px;
  position: relative;
}

/* ----- Header ----- */
.header {
  text-align: center;
  padding: 20px 0 10px;
  position: relative;
  transition: padding 0.3s ease;
}
.header.compact {
  padding: 8px 0 4px;
}
.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: font-size 0.3s ease;
}
.header.compact .brand {
  font-size: 20px;
}
.brand .emoji {
  margin: 0 6px;
  display: inline-block;
}
.brand .emoji.moon {
  animation: floaty 4s ease-in-out infinite;
}
.brand .emoji.gift {
  animation: floaty 4s ease-in-out infinite 0.5s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-3px) rotate(-4deg);
  }
}
.tagline {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
  transition:
    opacity 0.3s,
    height 0.3s;
}
.header.compact .tagline {
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.logout {
  position: absolute;
  top: 14px;
  right: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.logout:hover,
.logout:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 210, 63, 0.08);
}

/* ----- Card ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 14px 0;
  box-shadow: var(--shadow-lg);
}
.card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}
.card .hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.card.flat {
  padding: 14px;
}

/* ----- Form ----- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field .valid-tick {
  display: inline-block;
  color: var(--success);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.field .valid-tick.show {
  opacity: 1;
  transform: scale(1);
}
.input {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  width: 100%;
  font-family: inherit;
}
.input:focus,
.input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.15);
}
.input.is-valid {
  border-color: rgba(74, 222, 128, 0.5);
}

/* OTP — one real input under 6 styled cells. SMS autofill + paste work natively. */
.otp-field {
  position: relative;
  margin: 6px 0 8px;
}
.otp-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  border: none;
  outline: none;
  text-align: center;
  font-size: 1px; /* tiny — but the field is the full size for taps */
  letter-spacing: 0;
  padding: 0;
  z-index: 2;
  cursor: text;
  font-family: inherit;
  /* Hide the native autofill highlight without breaking it */
  -webkit-text-fill-color: transparent;
}
.otp-real::selection {
  background: transparent;
  color: transparent;
}
.otp-real:focus {
  outline: none;
}
.otp-cells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  pointer-events: none;
}
.otp-cell {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  padding: 16px 0;
  font-variant-numeric: tabular-nums;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.2s;
}
.otp-cell.filled {
  background: linear-gradient(
    160deg,
    rgba(255, 210, 63, 0.08),
    rgba(255, 122, 89, 0.04)
  );
  border-color: var(--border-2);
}
.otp-cell.focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.15);
}
.otp-cell .caret {
  display: inline-block;
  width: 2px;
  height: 24px;
  background: var(--accent);
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.otp-field.shake {
  animation: error-shake 0.4s ease-in-out;
}
@keyframes error-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  font-family: inherit;
  transition:
    transform 0.05s ease,
    filter 0.15s ease,
    opacity 0.15s ease,
    background 0.15s;
  position: relative;
  overflow: hidden;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1a1a;
  width: 100%;
  box-shadow: 0 6px 20px rgba(255, 122, 89, 0.25);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  margin-top: 8px;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
}
.btn-chip {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  min-height: 40px;
}
.btn-chip:hover {
  border-color: var(--accent);
}
.btn-chip.active {
  border-color: var(--accent);
  background: linear-gradient(
    160deg,
    rgba(255, 210, 63, 0.18),
    rgba(255, 122, 89, 0.08)
  );
  color: var(--accent);
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----- Tabs ----- */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--surface-2);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.tab {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    color 0.15s;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px var(--border-2);
}

/* ----- Balance ----- */
.balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.balance::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px 80px at 100% 0%,
    rgba(255, 210, 63, 0.1),
    transparent
  );
  pointer-events: none;
}
.balance .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.balance .amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.balance .amount.flash-up {
  animation: flash-green 0.6s ease;
}
.balance .amount.flash-down {
  animation: flash-red 0.6s ease;
}
@keyframes flash-green {
  0%,
  100% {
    color: var(--accent);
  }
  40% {
    color: var(--success);
    text-shadow: 0 0 16px rgba(74, 222, 128, 0.6);
  }
}
@keyframes flash-red {
  0%,
  100% {
    color: var(--accent);
  }
  40% {
    color: var(--danger);
  }
}
.balance .btn-chip {
  width: auto;
  min-height: 36px;
}
/* ----- Boxes ----- */
.grid-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.box {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.2s;
  overflow: hidden;
}
.box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 210, 63, 0.06) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.box:hover:not(.opening):not(.disabled)::before {
  transform: translateX(100%);
}
.box:hover:not(.opening):not(.disabled) {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 210, 63, 0.12);
}
.box.disabled {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(40%);
}
.box .icon {
  font-size: 32px;
  transition: transform 0.2s;
  animation: box-idle 3.5s ease-in-out infinite;
}
.box:nth-child(1) .icon {
  animation-delay: 0s;
}
.box:nth-child(2) .icon {
  animation-delay: 0.4s;
}
.box:nth-child(3) .icon {
  animation-delay: 0.8s;
}
.box:nth-child(4) .icon {
  animation-delay: 1.2s;
}
.box:nth-child(5) .icon {
  animation-delay: 1.6s;
}
.box:nth-child(6) .icon {
  animation-delay: 2s;
}
@keyframes box-idle {
  0%,
  92%,
  100% {
    transform: translateY(0) rotate(0);
  }
  96% {
    transform: translateY(-3px) rotate(-3deg);
  }
}
.box .label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.4px;
}
.box.opening {
  border-color: var(--accent);
  background: linear-gradient(
    160deg,
    rgba(255, 210, 63, 0.2),
    rgba(255, 122, 89, 0.1)
  );
  animation: shake 0.5s ease-in-out infinite;
  z-index: 2;
  box-shadow: 0 0 40px rgba(255, 210, 63, 0.3);
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0) rotate(0deg) scale(1.06);
  }
  25% {
    transform: translateX(-5px) rotate(-5deg) scale(1.06);
  }
  75% {
    transform: translateX(5px) rotate(5deg) scale(1.06);
  }
}
.box.opening .icon {
  animation: bounce 0.5s ease-in-out infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.stake-info {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 4px;
}
.stake-info strong {
  color: var(--text);
}
.low-balance-warning {
  text-align: center;
  color: var(--danger);
  font-size: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 8px;
  display: none;
}
.low-balance-warning.show {
  display: block;
}
.low-balance-warning a {
  color: var(--danger);
  font-weight: 800;
}

/* ----- Wallet ----- */
.chips-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.deposit-preview {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
.deposit-preview .arrow {
  color: var(--muted-2);
  margin: 0 6px;
}
.deposit-preview .new-bal {
  color: var(--success);
  font-weight: 700;
}
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.stat .k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stat .v {
  font-size: 17px;
  font-weight: 700;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* ----- History ----- */
.history-group {
  margin-top: 14px;
}
.history-group:first-child {
  margin-top: 0;
}
.history-group-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.history-item:last-child {
  border-bottom: none;
}
.history-item .left {
  display: flex;
  gap: 12px;
  align-items: center;
}
.history-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.history-item .meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.history-item .amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.pos {
  color: var(--success);
}
.neg {
  color: var(--danger);
}
.neu {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 30px 16px;
}
.empty .empty-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty .empty-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.empty .empty-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2),
    var(--surface-3),
    var(--surface-2)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skel-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}
.skel-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.skel-text {
  flex: 1;
}
.skel-line {
  height: 12px;
  margin: 4px 0;
}
.skel-line.w-50 {
  width: 50%;
}
.skel-line.w-30 {
  width: 30%;
}
.skel-amt {
  width: 70px;
  height: 14px;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}

/* ----- Modal ----- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0.85);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-backdrop.show .modal {
  transform: scale(1);
}
.modal.win {
  background: linear-gradient(
    160deg,
    rgba(74, 222, 128, 0.14),
    var(--surface) 55%
  );
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(74, 222, 128, 0.08);
}
.modal.big-win {
  background: linear-gradient(
    160deg,
    rgba(255, 210, 63, 0.18),
    rgba(255, 122, 89, 0.08) 50%,
    var(--surface) 80%
  );
  border-color: rgba(255, 210, 63, 0.55);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 6px rgba(255, 210, 63, 0.12);
}
.modal.lose {
  background: linear-gradient(
    160deg,
    rgba(248, 113, 113, 0.1),
    var(--surface) 60%
  );
  border-color: rgba(248, 113, 113, 0.3);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  color: var(--muted);
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: inherit;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text);
  background: var(--surface-2);
}
.modal .ribbon {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}
.modal.lose .ribbon {
  color: var(--danger);
}
.modal.big-win .ribbon {
  color: var(--accent);
  font-size: 16px;
}
.modal .amount-big {
  font-size: 44px;
  font-weight: 900;
  margin: 8px 0 4px;
  color: var(--accent);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.modal.big-win .amount-big {
  font-size: 56px;
}
.modal.lose .amount-big {
  color: var(--muted);
  font-size: 36px;
}
.modal .sub {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 18px;
}
.modal .emoji-burst {
  font-size: 56px;
  margin-bottom: 4px;
  animation: burst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.big-win .emoji-burst {
  font-size: 68px;
}
@keyframes burst {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.3) rotate(20deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Confetti */
.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}
.confetti {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(420px) rotate(720deg);
    opacity: 0;
  }
}

/* ----- Toast ----- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  max-width: 90%;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.err {
  border-color: rgba(248, 113, 113, 0.5);
}
#toast.ok {
  border-color: rgba(74, 222, 128, 0.5);
}

.welcome-banner {
  background: linear-gradient(
    135deg,
    rgba(255, 210, 63, 0.15),
    rgba(255, 122, 89, 0.08)
  );
  border: 1px solid rgba(255, 210, 63, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in 0.4s ease;
}
@keyframes slide-in {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.welcome-banner .b-emoji {
  font-size: 24px;
}
.welcome-banner .b-text {
  flex: 1;
  font-size: 13px;
}
.welcome-banner .b-text strong {
  color: var(--accent);
}
.welcome-banner .b-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  font-family: inherit;
}

.copy-box {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
}

.copy-link {
  color: #333;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn svg {
  width: 22px;
  height: 22px;
  stroke: #444;
}

.copied {
  color: green;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}
