/* ============================================================
   PurePayment – Figma-Design
   Dunkle, zentrierte Card auf Backgroundimg.png, blaue Glows,
   Divider-Line, Discord-Footer. Icons = Inline-SVG.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,600;1,700&display=swap');

/* ---------- Custom Fonts (Figma) ---------- */
@font-face {
  font-family: 'TT Octosquares Trl';
  src: url('/assets/fonts/TT-Octosquares-Trial-Regular-BF66a89bf888cc2.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Octosquares Trl';
  src: url('/assets/fonts/TT-Octosquares-Trial-Bold-BF66a89bf5aa7d3.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Octosquares Trl';
  src: url('/assets/fonts/TT-Octosquares-Trial-Black-BF66a89bf44aed0.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Octosquares Trl';
  src: url('/assets/fonts/TT-Octosquares-Trial-Black-Italic-BF66a89bf4be6f5.ttf') format('truetype');
  font-weight: 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Purista TRIAL';
  src: url('/assets/fonts/PuristaTRIAL-Medium-BF676e1286a3d86.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Purista TRIAL';
  src: url('/assets/fonts/PuristaTRIAL-MediumItalic-BF676e128692bae.otf') format('opentype');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Purista TRIAL';
  src: url('/assets/fonts/PuristaTRIAL-SemiBold-BF676e1286adaff.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Purista TRIAL';
  src: url('/assets/fonts/PuristaTRIAL-SemiBoldItalic-BF676e128694008.otf') format('opentype');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Purista TRIAL';
  src: url('/assets/fonts/PuristaTRIAL-Bold-BF676e12869ff65.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Purista TRIAL';
  src: url('/assets/fonts/PuristaTRIAL-BoldItalic-BF676e12868b31b.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --bg: #000307;
  --card: #010915;
  --panel: rgba(255, 255, 255, 0.07);
  --blue: #5493ff;
  --blue-deep: #1148a7;
  --glow: #006dff;
  --btn: #3760a6;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --muted-2: rgba(255, 255, 255, 0.45);
  --line: rgba(84, 147, 255, 0.16);
  --radius: 22px;
  --err: #ff6a6a;
  --ok: #48d597;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'TT Octosquares Trl', 'Inter', system-ui, sans-serif;
  --accent-font: 'Purista TRIAL', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg) url('/assets/Backgroundimg.png') center / cover fixed no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* Zentrierte Bühne */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

/* User-Chip oben rechts */
.user-chip {
  position: fixed;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(1, 9, 21, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.user-chip a { color: var(--blue); text-decoration: none; font-weight: 600; }
.user-chip a:hover { text-decoration: underline; }

/* ---------- Card ---------- */
.card {
  position: relative;
  width: 672px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px 26px;
  overflow: hidden;
  box-shadow: 0 50px 130px rgba(0, 0, 0, 0.65);
}
/* Blaue Ecken-Glows (Ellipse 92 / 93) */
.card::before,
.card::after {
  content: '';
  position: absolute;
  background: var(--glow);
  filter: blur(150px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.card::before { width: 279px; height: 279px; right: -70px; bottom: -50px; }
.card::after { width: 210px; height: 244px; left: -70px; top: -70px; opacity: 0.4; }
.card > * { position: relative; z-index: 1; }

/* ---------- Card-Header ---------- */
.logo { width: 232px; max-width: 66%; height: auto; display: block; }
.eyebrow {
  display: block;
  margin: 9px 0 0 3px;
  font-family: var(--accent-font);
  font-style: italic;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}
.divider { width: 100%; height: 2px; display: block; margin: 16px 0 14px; }
.card-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.card-sub {
  margin: 12px 0 0;
  font-family: var(--accent-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}
.card-body { margin-top: 22px; }

/* ---------- Card-Footer ---------- */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  padding-top: 4px;
}
.card-foot img { width: 44px; height: 44px; border-radius: 9px; }
.card-foot span {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #fff;
}

/* ---------- Typo-Helfer ---------- */
h1, h2, h3 { font-family: var(--display); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
code {
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.right { text-align: right; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 44px; height: 44px; }
.icon-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
/* Buttons – 1:1 nach Figma (Rectangle 40895): #3760A6, radius 3px, Höhe 33px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 33px;
  padding: 6px 16px;
  border: none;
  border-radius: 3px;
  background: #3760a6;
  box-shadow: 0px 4px 7.9px rgba(84, 147, 255, 0.25);
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease, background 0.15s ease;
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: #3760a6; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.actions { display: flex; gap: 12px; margin-top: 22px; }
.actions .btn { flex: 1; }

/* ---------- Scroll-Box (AGB) ---------- */
.scrollbox {
  background: var(--panel);
  border-radius: 10px;
  padding: 18px 20px;
  max-height: 340px;
  overflow-y: auto;
  font-family: var(--accent-font);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}
.scrollbox h4 {
  font-family: var(--font);
  font-style: normal;
  margin: 14px 0 4px;
  font-size: 14px;
  color: var(--blue);
}
.scrollbox h4:first-child { margin-top: 0; }
.scrollbox p { margin: 0 0 6px; color: rgba(255, 255, 255, 0.85); }
.scrollbox::-webkit-scrollbar { width: 4px; }
.scrollbox::-webkit-scrollbar-track { background: rgba(119, 119, 119, 0.45); border-radius: 2px; }
.scrollbox::-webkit-scrollbar-thumb { background: #fff; border-radius: 2px; }

/* ---------- Checkbox ---------- */
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  background: #d9d9d9;
  cursor: pointer;
  position: relative;
  flex: none;
  transition: background 0.15s ease;
}
.check input:checked { background: var(--blue); }
.check input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Formfelder ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
input[type='text'],
input[type='email'] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px 15px;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus,
input[type='text']:focus,
input[type='email']:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(84, 147, 255, 0.18);
}

/* ---------- Radio-Cards (Zahlungsmethode) ---------- */
.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-card:hover { border-color: rgba(84, 147, 255, 0.5); }
.radio-card .r-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(84, 147, 255, 0.12);
  color: var(--blue);
  flex: none;
}
.radio-card .r-icon .icon { width: 24px; height: 24px; }
.radio-card .r-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.radio-card .r-text strong { font-size: 15px; }
.radio-card .r-text span { font-size: 12.5px; color: var(--muted); }
.radio-card input { accent-color: var(--blue); width: 18px; height: 18px; }
.radio-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(84, 147, 255, 0.1);
}

/* ---------- Bestellung / Tabelle ---------- */
.order { display: flex; flex-direction: column; gap: 2px; }
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.order-row .o-name { font-weight: 600; font-size: 15px; }
.order-row .o-qty { color: var(--muted-2); font-size: 12px; margin-left: 8px; }
.order-row .o-price { font-weight: 700; white-space: nowrap; }
.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 20px;
  min-height: 56px;
  background: var(--panel);
  border-radius: 12px;
}
.order-total .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.order-total .val { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; color: var(--blue); }
.eta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.eta-line .icon { width: 16px; height: 16px; color: var(--blue); }

/* ---------- Zahlungsdetails ---------- */
.amount-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  min-height: 64px;
  background: var(--panel);
  border-radius: 12px;
  margin-bottom: 18px;
}
.amount-box .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.amount-box .amount { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; color: var(--blue); }

.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.detail-list dt { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.detail-list .val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
  cursor: copy;
  transition: color 0.2s ease;
}
.detail-list .val .icon { width: 15px; height: 15px; color: var(--muted-2); }
.detail-list .val:hover .icon { color: var(--blue); }
.detail-list .val.copied { color: var(--ok); }

.hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(84, 147, 255, 0.08);
  border: 1px solid rgba(84, 147, 255, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}
.hint .icon { width: 18px; height: 18px; color: var(--blue); margin-top: 1px; }

/* ---------- Upload ---------- */
.filedrop {
  display: block;
  border: 2px dashed rgba(84, 147, 255, 0.35);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(84, 147, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.filedrop:hover { border-color: var(--blue); background: rgba(84, 147, 255, 0.08); }
.filedrop input[type='file'] { display: none; }
.filedrop .icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 10px; }
.filedrop-text { display: block; color: var(--muted); font-size: 14px; }
.preview { max-width: 100%; margin-top: 16px; border-radius: 10px; }

/* ---------- Status / Icons groß ---------- */
.status-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(84, 147, 255, 0.1);
  color: var(--blue);
}
.status-icon.ok { background: rgba(72, 213, 151, 0.12); color: var(--ok); }
.status-icon .icon { width: 40px; height: 40px; }
.spin { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.alert {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.alert .icon { width: 18px; height: 18px; flex: none; }
.alert-error { background: rgba(255, 106, 106, 0.12); border: 1px solid rgba(255, 106, 106, 0.4); color: #ffbcbc; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .card { padding: 26px 22px 22px; }
  .card-title { font-size: 24px; }
  .logo { max-width: 60%; }
  .user-chip { top: 10px; right: 10px; }
}
