/* ==========================================================================
   Pastel Alpha — design system (v4)
   Dark glass UI over the illustrated pastel world, candy + gold accents.
   No Tailwind, no theme.css. Pages opt in per-page.
   ========================================================================== */

@font-face {
  font-family: 'PastelAlpha';
  src: url('/fonts/PastelAlpha-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --pink: #ff8cde;
  --pink-soft: #ffc9ef;
  --violet: #a696ff;
  --gold: #ffb937;
  --gold-soft: #ffd569;
  --bg-top: #e6a1c5;
  --bg-bottom: #8080b7;
  --ink: #2e2344; /* dark plum — text on gold surfaces */

  /* ink on glass */
  --text: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.55);

  /* surfaces */
  --glass: rgba(24, 18, 38, 0.55);
  --glass-raise: rgba(255, 255, 255, 0.06);
  --well: rgba(0, 0, 0, 0.25);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.09);

  /* feedback */
  --ok: #8ef0b1;
  --err: #ff9b9b;

  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(46, 29, 66, 0.25);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'PastelAlpha', 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg-bottom);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 2px;
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 639px) {
  .hide-mobile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Backdrop: brand gradient + illustrated world pinned to the bottom.
   Fixed layer instead of background-attachment:fixed (broken on iOS). */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/bkOnly.webp') no-repeat bottom center;
  background-size: max(680px, 100%) auto;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  flex: 1;
}

@media (min-width: 940px) {
  .page {
    padding-top: 22px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 22px;
  }

  /* Checkout is first in source (mobile-first); swap it right on desktop */
  .col-info { order: 1; }
  .col-checkout { order: 2; position: sticky; top: 22px; }
}

.col-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 940px) {
  .col-info { gap: 22px; }
}

/* --------------------------------------------------------------------------
   Card — dark glass over the world
   -------------------------------------------------------------------------- */

.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

@media (max-width: 640px) {
  .card {
    padding: 18px 16px;
    border-radius: 16px;
  }
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 16px;
}

@media (min-width: 640px) {
  .site-header { padding-bottom: 20px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(46, 35, 68, 0.35));
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 10px rgba(58, 42, 84, 0.4);
}

@media (min-width: 640px) {
  .brand img { width: 54px; height: 54px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-glass {
  background: rgba(24, 18, 38, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--line);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(24, 18, 38, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 2px 10px rgba(46, 29, 66, 0.3);
}

.btn-discord:hover {
  background: #4b58e8;
}

/* dark plum button — sits on the gold banner */
.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 3px 0 rgba(46, 35, 68, 0.4);
}

.btn-ink:hover {
  background: #3d2f59;
  box-shadow: 0 4px 0 rgba(46, 35, 68, 0.4);
}

.btn-ink:active {
  box-shadow: 0 1px 0 rgba(46, 35, 68, 0.4);
}

.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .btn { padding: 8px 13px; }
}

/* --------------------------------------------------------------------------
   Referral banner — the gold ticket up front
   -------------------------------------------------------------------------- */

.ref-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 22px;
  background: linear-gradient(115deg, #ffdf8e 0%, var(--gold) 100%);
  border: 1px solid rgba(46, 35, 68, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
}

@media (min-width: 940px) {
  .ref-banner { margin-bottom: 22px; }
}

.ref-copy {
  min-width: 0;
  flex: 1;
}

.ref-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.ref-sub {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(46, 35, 68, 0.85);
  max-width: 52ch;
}

.ref-sub strong {
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 1px 7px;
  white-space: nowrap;
}

.ref-banner .btn-ink {
  flex-shrink: 0;
}

.ref-coins {
  flex-shrink: 0;
  width: 92px;
  height: 68px;
  margin-right: 6px;
}

@media (max-width: 767px) {
  .ref-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .ref-coins { display: none; }

  .ref-banner .btn-ink {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Checkout card
   -------------------------------------------------------------------------- */

.checkout-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.checkout-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.section-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin: 20px 0 9px;
}

/* Plan picker */

.plans {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  background: var(--glass-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.plan-option:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.plan-option.selected {
  border-color: var(--pink);
  background: rgba(255, 140, 222, 0.1);
}

.plan-radio {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.12s ease;
}

.plan-option.selected .plan-radio {
  border-color: var(--pink);
}

.plan-option.selected .plan-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--pink);
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
}

.plan-save {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 185, 55, 0.18);
  border: 1px solid rgba(255, 185, 55, 0.45);
  color: var(--gold-soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.plan-price {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-soft);
  white-space: nowrap;
  padding-left: 10px;
}

/* Discord connect */

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: #5865f2;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(46, 29, 66, 0.3);
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.discord-btn:hover {
  background: #4b58e8;
  transform: translateY(-1px);
}

.discord-btn:active {
  transform: translateY(1px);
}

.discord-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.discord-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--glass-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.discord-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-chip .chip-name {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-disconnect {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-faint);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.12s ease, background-color 0.12s ease;
}

.chip-disconnect:hover {
  color: var(--err);
  background: rgba(255, 255, 255, 0.08);
}

.chip-disconnect svg {
  width: 18px;
  height: 18px;
}

/* Referral input */

.field-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  font-weight: 500;
  transition: border-color 0.12s ease;
}

.field-input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.field-input:focus {
  outline: none;
  border-color: var(--pink);
}

.referral-message {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.referral-message.is-valid { color: var(--ok); }
.referral-message.is-error { color: var(--err); }
.referral-message.is-info { color: var(--pink-soft); }

/* Total — little receipt */

.total-block {
  margin-top: 22px;
  padding: 13px 2px;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.total-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.total-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-original {
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: line-through;
  font-weight: 600;
}

.price-final {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.discount-note {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ok);
  margin-top: 3px;
  text-align: right;
}

/* Pay buttons */

.pay-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.pay-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.pay-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.pay-btn:active {
  transform: translateY(1px);
}

.pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
}

.pay-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.pay-net {
  color: var(--text-soft);
  font-weight: 500;
}

.pay-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.45;
  flex-shrink: 0;
}

.fine-print {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-faint);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Info column
   -------------------------------------------------------------------------- */

/* Benefits */

.benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.benefits li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.benefits svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--pink);
  flex-shrink: 0;
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 8px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 40px;
  bottom: -6px;
  width: 2px;
  background: var(--line-soft);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}

.step > span:last-child {
  padding-top: 3px;
}

/* Partners — icon-only app-grid, logo names on hover via title */

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  /* exactly five 48px icons per row -> nine partners wrap as 5 + 4, centered */
  max-width: calc(5 * 48px + 4 * 10px);
  margin: 0 auto;
}

.partner {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 3px 8px rgba(46, 29, 66, 0.25);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.partner:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 14px rgba(46, 29, 66, 0.35);
}

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

/* --------------------------------------------------------------------------
   Shared components (inner pages: invoice, dashboard, staff, analytics)
   -------------------------------------------------------------------------- */

/* Primary CTA — brand gradient */
.btn-primary {
  background: linear-gradient(115deg, var(--pink), var(--violet));
  color: #fff;
  box-shadow: 0 2px 10px rgba(46, 29, 66, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.07);
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-soft);
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pill-ok { color: var(--ok); background: rgba(142, 240, 177, 0.1); border-color: rgba(142, 240, 177, 0.35); }
.pill-warn { color: var(--gold-soft); background: rgba(255, 185, 55, 0.12); border-color: rgba(255, 185, 55, 0.4); }
.pill-err { color: var(--err); background: rgba(255, 155, 155, 0.1); border-color: rgba(255, 155, 155, 0.35); }
.pill-info { color: var(--pink-soft); background: rgba(255, 140, 222, 0.1); border-color: rgba(255, 140, 222, 0.35); }

/* Stat tiles */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat {
  padding: 13px 15px;
  background: var(--glass-raise);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
}

.stat-value {
  margin-top: 3px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-sub {
  margin-top: 1px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
  color: rgba(255, 255, 255, 0.88);
}

.table tbody tr {
  transition: background-color 0.12s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Spinner */
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--pink);
  animation: pastel-spin 0.8s linear infinite;
}

@keyframes pastel-spin {
  to { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 12, 32, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal {
  width: 100%;
  max-width: 440px;
  max-height: min(85vh, 640px);
  overflow-y: auto;
  background: rgba(31, 24, 48, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(20, 12, 32, 0.5);
  padding: 22px;
}

/* Copyable value (addresses, codes, tx hashes) */
.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.copy-field code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Notices */
.notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-raise);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
}

.notice-ok { color: var(--ok); background: rgba(142, 240, 177, 0.08); border-color: rgba(142, 240, 177, 0.3); }
.notice-warn { color: var(--gold-soft); background: rgba(255, 185, 55, 0.08); border-color: rgba(255, 185, 55, 0.35); }
.notice-err { color: var(--err); background: rgba(255, 155, 155, 0.08); border-color: rgba(255, 155, 155, 0.3); }

/* QR code holder — white pad so scanners read it */
.qr-box {
  width: fit-content;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.qr-box img, .qr-box canvas {
  display: block;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: 18px 0;
}

/* Text utilities — for JS-composed content */
.text-ok { color: var(--ok); }
.text-err { color: var(--err); }
.text-warn { color: var(--gold-soft); }
.text-soft { color: var(--text-soft); }
.text-faint { color: var(--text-faint); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 12px 18px;
}

@media (min-width: 940px) {
  .site-footer { margin-top: 22px; }
}

.footer-note {
  font-size: 13px;
  color: var(--text-soft);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
