/*
 * German in Context — Checkout + USDT · Warm Midnight Luxury V1
 * Staging-only stylesheet injected by the staging HTTPS Nginx virtual host.
 * Scope: ONLY html[data-gic-theme="dark"] .gc-wrap / .cp-wrap.
 * No HTML, JS, wallet, QR payload, status polling, amounts, forms or payment routes change.
 */

/* ── Shared visual foundations ───────────────────────────────────────────── */
html[data-gic-theme="dark"] :is(.gc-wrap, .cp-wrap) {
  color-scheme: dark;
  --pay-surface: #222b26;
  --pay-surface-hi: #29352d;
  --pay-subtle: #19231f;
  --pay-line: rgba(219, 203, 166, .17);
  --pay-line-soft: rgba(219, 203, 166, .105);
  --pay-ink: #f0ebe1;
  --pay-soft: #c3c8bc;
  --pay-muted: #adb8ac;
  --pay-gold: #ddc193;
  --pay-focus: #e1c38f;
  --pay-shadow: 0 20px 54px rgba(3, 10, 8, .22), inset 0 1px rgba(255,255,255,.033);
  box-sizing: border-box;
  width: calc(100% - 32px);
  margin: 24px auto 58px;
  border-radius: 30px;
  border: 1px solid rgba(221, 194, 141, .11);
  background:
    radial-gradient(ellipse at 92% 0%, rgba(188, 157, 105, .085), transparent 43%),
    linear-gradient(155deg, #18231e 0%, #141e1a 90%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .12);
}
html[data-gic-theme="dark"] :is(.gc-wrap, .cp-wrap),
html[data-gic-theme="dark"] :is(.gc-wrap, .cp-wrap) * {
  -webkit-tap-highlight-color: transparent;
}
html[data-gic-theme="dark"] :is(.gc-wrap, .cp-wrap) :is(a,button,input):focus-visible {
  outline: 2px solid var(--pay-focus);
  outline-offset: 3px;
}

/* ── CHECKOUT | page header ──────────────────────────────────────────────── */
html[data-gic-theme="dark"] .gc-wrap {
  max-width: 1020px;
  padding: clamp(18px, 3.2vw, 34px);
}
html[data-gic-theme="dark"] .gc-wrap .gc-head {
  align-items: center;
  padding: 0 0 20px;
  margin-bottom: 18px;
  background: transparent !important; /* global night header override */
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html[data-gic-theme="dark"] .gc-wrap .gc-head h1 {
  color: var(--pay-ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: clamp(29px, 4.1vw, 43px);
  letter-spacing: -.028em;
  line-height: 1.06;
  margin: 12px 0 9px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-head p {
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.6;
}
html[data-gic-theme="dark"] .gc-wrap .gc-chip {
  background: rgba(214, 185, 129, .095);
  border: 1px solid rgba(222, 196, 147, .25);
  color: var(--pay-gold);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 7px 11px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-head .gc-chip {
  color: var(--pay-gold) !important; /* global header span rule */
}
html[data-gic-theme="dark"] .gc-wrap .gc-back {
  color: var(--pay-gold) !important; /* global header anchor rule */
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  padding: 9px 2px;
  white-space: nowrap;
}
html[data-gic-theme="dark"] .gc-wrap .gc-back:hover {
  color: #f3d5a1 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── CHECKOUT | paired glass-matte cards ───────────────────────────────── */
html[data-gic-theme="dark"] .gc-wrap .gc-grid {
  gap: clamp(12px, 2.2vw, 20px);
  align-items: stretch;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}
html[data-gic-theme="dark"] .gc-wrap .gc-card {
  min-width: 0;
  padding: clamp(19px, 2.2vw, 29px);
  border-radius: 23px;
  border: 1px solid var(--pay-line);
  background: linear-gradient(165deg, #26332c 0%, #1e2923 75%, #1c2721 100%);
  box-shadow: var(--pay-shadow);
  color: var(--pay-ink);
}
html[data-gic-theme="dark"] .gc-wrap .gc-card.plus {
  border-color: rgba(222, 188, 124, .34);
  background:
    radial-gradient(ellipse at 96% 0%, rgba(200, 156, 92, .12), transparent 55%),
    linear-gradient(165deg, #30392f 0%, #232d25 58%, #1c2721 100%);
}
html[data-gic-theme="dark"] .gc-wrap .gc-tier {
  color: #e3d7bb;
  background: rgba(195, 176, 141, .13);
  border: 1px solid rgba(218, 189, 139, .15);
  font-size: 9px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-tier.pro {
  color: #221d16;
  background: linear-gradient(130deg, #edd9ae, #c5a76e);
  border-color: rgba(243, 220, 164, .30);
  box-shadow: 0 4px 14px rgba(13, 13, 10, .15);
}
html[data-gic-theme="dark"] .gc-wrap .gc-title {
  gap: 9px;
  margin: 18px 0 10px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-title h2 {
  color: var(--pay-ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 600;
  letter-spacing: -.02em;
}
html[data-gic-theme="dark"] .gc-wrap .gc-period {
  color: var(--pay-muted);
  line-height: 1.6;
  font-size: 11px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-price {
  color: var(--pay-gold);
  margin: 21px 0 20px;
  font-size: 20px;
  letter-spacing: -.02em;
}
html[data-gic-theme="dark"] .gc-wrap .gc-price strong {
  font-size: clamp(40px, 5.2vw, 56px);
  color: #f0d6a7;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
html[data-gic-theme="dark"] .gc-wrap .gc-features {
  border-top: 1px solid var(--pay-line-soft);
  padding-top: 17px;
  gap: 12px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-features li {
  color: #d2d6cc;
  font-size: 12px;
  line-height: 1.52;
  padding-left: 23px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-features li::before {
  color: #d9c397;
}

/* ── CHECKOUT | order summary, availability and controls ──────────────── */
html[data-gic-theme="dark"] .gc-wrap .gc-summary {
  gap: 14px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-order-title {
  border-bottom: 1px solid var(--pay-line-soft);
  padding-bottom: 15px;
  align-items: center;
}
html[data-gic-theme="dark"] .gc-wrap .gc-order-title strong {
  color: var(--pay-ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-order-title small {
  color: #b7bcb2;
  background: rgba(193, 191, 167, .085);
  border: 1px solid rgba(220, 205, 175, .13);
  font-size: 9px;
  white-space: nowrap;
}
html[data-gic-theme="dark"] .gc-wrap .gc-row {
  color: var(--pay-muted);
  font-size: 11px;
  border-bottom: 1px solid var(--pay-line-soft);
  padding-bottom: 13px;
  min-width: 0;
}
html[data-gic-theme="dark"] .gc-wrap .gc-row b {
  color: #e6e7de;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-total {
  color: var(--pay-ink);
  align-items: baseline;
  padding-top: 6px;
  border-top: 1px solid rgba(227, 206, 161, .16);
}
html[data-gic-theme="dark"] .gc-wrap .gc-total strong {
  font-variant-numeric: tabular-nums;
  color: #eed4a5;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: -.035em;
  white-space: nowrap;
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-heading {
  color: #ede6d9;
  font-size: 13px;
  margin-top: 10px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-payment-list {
  gap: 10px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-option {
  color: var(--pay-ink);
  background: #1b2721;
  border-color: rgba(224, 207, 171, .19);
  border-radius: 15px;
  padding: 15px;
  min-width: 0;
  transition: border-color .18s ease, background-color .18s ease;
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-option:not(:disabled):hover {
  background: #26372d;
  border-color: rgba(225, 196, 137, .55);
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-option:disabled {
  opacity: 1;
  border-color: rgba(224, 207, 171, .10);
  background: rgba(13, 20, 17, .25);
  cursor: not-allowed;
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-copy {
  min-width: 0;
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-copy b {
  color: #e6e6db;
  font-size: 13px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-copy small {
  color: #b0bab0;
  font-size: 10px;
  line-height: 1.5;
}
html[data-gic-theme="dark"] .gc-wrap .gc-pay-status {
  color: #dcc6a0;
  background: rgba(201, 161, 93, .13);
  border: 1px solid rgba(221, 183, 119, .16);
  font-size: 8px;
  max-width: 140px;
  text-align: center;
  line-height: 1.45;
}
/* The availability label has an inline day-theme background and text color. */
html[data-gic-theme="dark"] .gc-wrap .gc-pay-option:not(:disabled) .gc-pay-status {
  color: #d4eadb !important;
  background: #294639 !important;
  border-color: rgba(146, 187, 156, .35);
}
html[data-gic-theme="dark"] .gc-wrap .gc-consent {
  color: #b1bcb0;
  font-size: 10px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-consent a,
html[data-gic-theme="dark"] .gc-wrap .gc-other a,
html[data-gic-theme="dark"] .gc-wrap .gc-signin a {
  color: #d9bd8c;
  text-decoration: underline;
  text-decoration-color: rgba(217, 189, 140, .44);
  text-underline-offset: 3px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-consent input {
  accent-color: #cdb687;
}
html[data-gic-theme="dark"] .gc-wrap .gc-note {
  color: #d5c6a5;
  background: #303126;
  border: 1px solid rgba(228, 194, 126, .21);
  border-radius: 13px;
  line-height: 1.65;
  font-size: 10px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-clarity {
  color: #b9c7b8;
  background: rgba(50, 70, 57, .35);
  border: 1px solid var(--pay-line-soft);
}
html[data-gic-theme="dark"] .gc-wrap .gc-btn,
html[data-gic-theme="dark"] .gc-wrap .gc-account-cta {
  color: #262219;
  background: linear-gradient(135deg, #e7cea0, #bc9e6d);
  box-shadow: 0 7px 19px rgba(0,0,0,.14);
  border: 1px solid rgba(255, 233, 180, .22);
  text-decoration: none;
  font-size: 12px;
}
html[data-gic-theme="dark"] .gc-wrap .gc-btn:hover,
html[data-gic-theme="dark"] .gc-wrap .gc-account-cta:hover {
  filter: brightness(1.045);
}
html[data-gic-theme="dark"] .gc-wrap .gc-signin {
  color: #b8c2b5;
}

/* ── CRYPTO PAYMENT | primary surface and header ───────────────────────── */
html[data-gic-theme="dark"] .cp-wrap {
  max-width: 804px;
  padding: clamp(12px, 2.5vw, 24px);
}
html[data-gic-theme="dark"] .cp-wrap .cp-card {
  color: var(--pay-ink);
  border: 1px solid rgba(222, 199, 155, .24);
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 50% -7%, rgba(206, 171, 114, .10), transparent 40%),
    linear-gradient(155deg, #27332b 0%, #1e2923 70%, #1a2520 100%);
  box-shadow: var(--pay-shadow);
  padding: clamp(19px, 3.5vw, 31px);
  min-width: 0;
}
html[data-gic-theme="dark"] .cp-wrap .cp-head {
  padding: 2px 0 4px;
  margin-bottom: 21px;
  background: transparent !important; /* global night header rule */
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html[data-gic-theme="dark"] .cp-wrap .cp-chip {
  color: #ead3a6 !important; /* global header span rule */
  border: 1px solid rgba(221, 190, 131, .35);
  background: rgba(206, 172, 105, .12);
  padding: 7px 12px;
  font-size: 10px;
  letter-spacing: .065em;
}
html[data-gic-theme="dark"] .cp-wrap .cp-head h1 {
  color: #f0e9db;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(29px, 4.1vw, 41px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.027em;
  margin: 16px 0 8px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-head p {
  color: #b8c1b6;
  font-size: 11px;
  overflow-wrap: anywhere;
}
html[data-gic-theme="dark"] .cp-wrap .cp-total {
  border: 1px solid rgba(228, 201, 153, .27);
  border-radius: 19px;
  background: linear-gradient(143deg, #38402e 0%, #2b342b 54%, #263128 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  padding: 20px 14px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-total small {
  color: #c8ccb9;
  font-size: 11px;
  line-height: 1.5;
}
html[data-gic-theme="dark"] .cp-wrap .cp-total strong {
  color: #f0d6a8;
  font-size: clamp(27px, 6.3vw, 42px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  line-height: 1.16;
}
html[data-gic-theme="dark"] .cp-wrap .cp-grid {
  align-items: center;
  gap: clamp(15px, 3vw, 24px);
  margin-top: 22px;
  grid-template-columns: 194px minmax(0,1fr);
}
/* QR MUST remain light for camera contrast. Never recolor/filter the QR image. */
html[data-gic-theme="dark"] .cp-wrap .cp-qr {
  box-sizing: border-box;
  width: 194px;
  height: 194px;
  margin-inline: auto;
  border: 1px solid #e0dbcc;
  border-radius: 21px;
  padding: 13px;
  background: #fffdf8;
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
}
html[data-gic-theme="dark"] .cp-wrap .cp-qr img {
  display: block;
  object-fit: contain;
  max-width: 100%;
  height: 100%;
  image-rendering: auto;
  filter: none;
}
html[data-gic-theme="dark"] .cp-wrap .cp-info {
  min-width: 0;
  gap: 11px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-row {
  min-width: 0;
  background: #1a251f;
  border: 1px solid rgba(225, 207, 174, .17);
  border-radius: 14px;
  padding: 13px 15px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-row span {
  color: #bcbdac;
  letter-spacing: .07em;
  font-size: 10px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-row b {
  color: #ede8db;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
html[data-gic-theme="dark"] .cp-wrap .cp-copy {
  color: #f0d19b;
  padding: 5px 1px;
  margin-top: 6px;
  font-size: 11px;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240,209,155,.4);
}
html[data-gic-theme="dark"] .cp-wrap .cp-copy:hover {
  color: #fff0d1;
}
html[data-gic-theme="dark"] .cp-wrap .cp-warning {
  background: #383125;
  border: 1px solid rgba(225, 178, 101, .33);
  border-left: 3px solid #d4b376;
  color: #eddab4;
  font-size: 12px;
  line-height: 1.68;
  padding: 16px 18px;
  border-radius: 13px;
  margin-top: 22px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-warning b {
  color: #f8e2b5;
}
html[data-gic-theme="dark"] .cp-wrap .cp-status {
  background: #26372e;
  border: 1px solid rgba(145, 188, 150, .25);
  color: #e4eadc;
  margin-top: 16px;
  padding: 17px 15px;
  border-radius: 15px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-status b {
  color: #e9eae0;
  font-size: 15px;
}
html[data-gic-theme="dark"] .cp-wrap .cp-status span {
  color: #b9c7b8;
  font-size: 11px;
  line-height: 1.5;
}
html[data-gic-theme="dark"] .cp-wrap .cp-timer {
  color: #e7cc99;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
}
html[data-gic-theme="dark"] .cp-wrap .cp-back {
  color: #dbbe8e;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(219, 190, 142, .4);
}

/* ── Small screens: single-column checkout + centered readable QR ───────── */
@media (max-width: 760px) {
  html[data-gic-theme="dark"] .gc-wrap .gc-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-gic-theme="dark"] .gc-wrap .gc-head { display: block; }
  html[data-gic-theme="dark"] .gc-wrap .gc-back { margin-top: 12px; }
}
@media (max-width: 620px) {
  html[data-gic-theme="dark"] .cp-wrap .cp-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 390px) {
  html[data-gic-theme="dark"] :is(.gc-wrap, .cp-wrap) {
    width: calc(100% - 20px);
    margin: 14px auto 36px;
    border-radius: 23px;
  }
  html[data-gic-theme="dark"] .gc-wrap { padding: 13px; }
  html[data-gic-theme="dark"] .cp-wrap { padding: 9px; }
  html[data-gic-theme="dark"] .gc-wrap .gc-card,
  html[data-gic-theme="dark"] .cp-wrap .cp-card { padding: 17px 14px; border-radius: 19px; }
  html[data-gic-theme="dark"] .gc-wrap .gc-pay-option { padding: 12px 10px; gap: 9px; }
  html[data-gic-theme="dark"] .gc-wrap .gc-pay-status { max-width: 110px; padding: 5px; }
  html[data-gic-theme="dark"] .gc-wrap .gc-price strong { font-size: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-gic-theme="dark"] .gc-wrap .gc-pay-option { transition: none; }
}
