@font-face {
  font-family: "Skinrave Rubik";
  src: url("assets/fonts/skinrave-c9f6ebf08ddd616b.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 900;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2215;
}

@font-face {
  font-family: "Skinrave Rubik";
  src: url("assets/fonts/skinrave-21445b8bd0ec5702.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 900;
  unicode-range: U+0020, U+0041, U+00A0, U+00C1, U+0102, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Skinrave Unna";
  src: url("assets/fonts/skinrave-a9ea9ad630487a2c.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Skinrave Unna";
  src: url("assets/fonts/skinrave-0255eb7af02910bd.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --main-bg: #121217;
  --panel: #191920;
  --panel-soft: #202029;
  --panel-strong: #282832;
  --line: #343440;
  --line-green: #469770;
  --line-green-hover: #38795a;
  --green-1: #68ebb6;
  --green-2: #76c290;
  --green-3: #119270;
  --green-hover-1: #58ae84;
  --green-hover-2: #5e9d74;
  --green-hover-3: #10755a;
  --text: #ffffff;
  --text-dark: #121217;
  --muted: #8f8fa3;
  --muted-strong: #c9c9d8;
  --warning-bg: #2a2114;
  --warning-line: #7c5b24;
  --warning-text: #fcbb00;
  --radius: 4px;
  --spacing: 0.25rem;
  --text-xs: 0.75rem;
  --text-xs--line-height: 1.33333;
  --text-lg: 1.125rem;
  --text-lg--line-height: 1.55556;
  --font-weight-bold: 700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
  outline: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--main-bg);
  color: var(--text);
  font-family: "Skinrave Rubik", Rubik, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -18%, rgba(104, 235, 182, 0.22), transparent 36rem),
    radial-gradient(circle at 100% 20%, rgba(48, 128, 255, 0.12), transparent 24rem),
    var(--main-bg);
}

button,
input,
select {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  background-color: transparent;
  border-radius: 0;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

.uppercase {
  text-transform: uppercase;
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.text-lg {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.text-white {
  color: var(--text);
}

.text-gray-100 {
  color: var(--main-bg);
}

@media (min-width: 1280px) {
  .xl\:text-\[26px\] {
    font-size: 26px;
  }
}

.checkout-shell {
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  min-height: 100dvh;
  padding: 18px 12px 32px;
}

.checkout-content {
  width: min(100%, 460px);
  min-width: 0;
  max-width: 100%;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
}

.brand-mark svg {
  display: block;
  /* width: 40px; */
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 20px rgba(104, 235, 182, 0.28));
}

.invoice-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(70, 151, 112, 0.45);
  border-radius: var(--radius);
  background: rgba(104, 235, 182, 0.08);
  color: var(--green-1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 10px 12px;
  text-transform: uppercase;
}

.gift-card {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
}

.gift-card > * {
  min-width: 0;
}

.app-header,
.app-network,
.appPaymentBox {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(32, 32, 41, 0.96), rgba(18, 18, 23, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.app-header {
  padding: 18px;
}

.app-header-subtitle {
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 10px;
  margin-top: 18px;
}

.amount-field {
  display: block;
  min-width: 0;
}

.amount-label,
.app-label {
  display: block;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.amount-control {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(70, 151, 112, 0.58);
  border-radius: var(--radius);
  background: #0f0f14;
  padding: 11px 12px 9px;
}

.amount-control:focus-within {
  border-color: var(--green-1);
  box-shadow: 0 0 0 3px rgba(104, 235, 182, 0.12);
}

.amount-control--readonly {
  border-color: rgba(143, 143, 163, 0.34);
  background: rgba(255, 255, 255, 0.035);
}

.amount-input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Skinrave Rubik", Rubik, Arial, sans-serif;
  font-size: clamp(24px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.amount-control--readonly .amount-input {
  color: var(--green-1);
}

.amount-input::placeholder {
  color: rgba(255, 255, 255, 0.26);
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.amount-token {
  flex: 0 0 auto;
  color: var(--green-1);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  padding-bottom: 4px;
}

.app-header-note {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
  margin-top: 14px;
  border: 1px solid rgba(70, 151, 112, 0.35);
  border-radius: var(--radius);
  background: rgba(104, 235, 182, 0.08);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  padding: 8px 10px;
}

.app-header-note span:last-child {
  min-width: 0;
}

.info-dot,
.warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.appPaymentBox {
  padding: 12px;
}

.appQrPanel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 4px 0 6px;
  text-align: center;
}

.qr-shell {
  width: 256px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 8px;
}

.appQrCode {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
}

.appQrCode--disabled {
  opacity: 0.55;
}

.payment-summary {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 15, 20, 0.82);
  padding: 10px 12px;
  text-align: left;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.summary-row strong,
.summary-value {
  flex: 1 1 auto;
  justify-content: flex-end;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.appWarningPanel {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--warning-line);
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 9px 10px;
  text-align: left;
}

.appWarningPanel span:last-child {
  min-width: 0;
}

.address-warning {
  margin-top: 10px;
  border: 1px solid #7b3030;
  border-radius: var(--radius);
  background: rgba(211, 63, 63, 0.12);
  color: #ff6568;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 9px 10px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line-green);
  border-radius: var(--radius);
  background: var(--main-bg);
  color: var(--green-1);
  font-size: 13px;
  font-weight: 800;
  padding: 13px 16px;
  text-transform: uppercase;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .checkout-shell {
    padding: 12px 10px 22px;
  }

  .brand-mark {
    font-size: 22px;
  }

  .invoice-pill {
    font-size: 10px;
    padding: 9px 10px;
  }

  .app-header {
    padding: 14px;
  }

  .app-header-subtitle {
    font-size: clamp(28px, 10vw, 38px);
  }

  .toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
    text-align: center;
  }
}
