/* Stage 3.8: paint-only Graphite / White / Gold theme.
   Layout, typography, stacking, scene containers and animation rules stay in
   their original stylesheets. The footer is intentionally outside this scope. */
.av-surface {
  --av-panel-text: #f5f5f3;
  --av-panel-muted: #b6bbc4;
  --av-panel-gold: #d5ae67;
  --av-panel-gold-light: #f0cd72;
  --av-panel-focus: #d8b976;
  color: var(--av-panel-text);
  border-color: #35383f;
  background:
    radial-gradient(ellipse at 42% -35%, #72778038 0, #4b505619 42%, transparent 70%),
    radial-gradient(ellipse at 100% 100%, #090b0f66 0, transparent 62%),
    linear-gradient(165deg, #292d34 0, #1a1e25 33%, #14171d 68%, #101217 100%);
  box-shadow: 0 20px 35px #11182038, inset 0 1px 0 #ffffff12, inset 0 0 40px #00000016;
}
.av-surface::before,
.av-surface::after {
  background: none;
  opacity: 0;
}
.av-card-entry.av-surface {
  /* Match the background of T-Bank's dark payment form. */
  background: #202020;
  box-shadow: 0 20px 35px #11182038;
}
.av-checkout.av-surface {
  background: none;
}
.av-checkout.av-surface::before {
  background:
    radial-gradient(ellipse at 42% -35%, #72778038 0, #4b505619 42%, transparent 70%),
    radial-gradient(ellipse at 100% 100%, #090b0f66 0, transparent 62%),
    linear-gradient(165deg, #292d34 0, #1a1e25 33%, #14171d 68%, #101217 100%);
  clip-path: none;
  opacity: .9;
}
.av-surface :is(button, input, select, a):focus-visible {
  outline: 3px solid var(--av-panel-focus);
  outline-offset: 4px;
}
.av-checkout .av-order-summary::after {
  background: linear-gradient(180deg, transparent 0, #9e783028 17%, #e7bf67a3 43%, #f0cd72e6 51%, #be8d384d 76%, transparent 100%);
  box-shadow: 0 0 9px #d5a14d36;
}
.av-checkout .av-eyebrow { color: #b9bdc5; }
.av-checkout .av-order-summary h1,
.av-checkout .av-price { color: #fff; }
.av-checkout .av-accent-line {
  background: linear-gradient(90deg, #f0d78c, #d5ad62);
  box-shadow: 0 0 6px #dfb55a26;
}
.av-checkout .av-preview-note { color: #b5bac3; }
.av-checkout .av-benefits li { color: #d6d9df; }
.av-checkout .av-benefits .av-icon {
  color: var(--av-panel-gold);
  filter: drop-shadow(0 0 3px #caa05b12);
}
.av-checkout .av-field-label { color: #f5f5f3; }
.av-checkout .av-email-wrap > .av-icon { color: #c2c7ce; }
.av-checkout .av-email-wrap input {
  color: #f5f5f3;
  caret-color: #f0cd72;
  border-color: #555b65;
  background: linear-gradient(120deg, #30353e, #292d35);
  box-shadow: inset 0 1px 1px #ffffff08, inset 0 0 18px #10121724;
}
.av-checkout .av-email-wrap input::placeholder { color: #b6bbc4; }
.av-checkout .av-email-wrap input:focus {
  border-color: #c6a66b;
  box-shadow: inset 0 1px 1px #ffffff08, 0 0 0 1px #c6a66b20;
}
.av-checkout .av-email-wrap input[aria-invalid=true] { border-color: #d98d98; }
.av-checkout .av-email-wrap input:-webkit-autofill {
  -webkit-text-fill-color: #f5f5f3;
  caret-color: #f0cd72;
  box-shadow: inset 0 0 0 1000px #2c3038;
}
.av-surface .av-card-button {
  color: #1b1e24;
  background: linear-gradient(180deg, #fff 0, #f2f3f5 65%, #e8eaed 100%);
  box-shadow: inset 0 1px 0 #ffffffed, inset 0 0 0 1px #ffffff5c, 0 5px 13px #00000030;
}
.av-surface .av-card-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff 0, #fafafb 65%, #f0f1f3 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #ffffff80, 0 6px 17px #0000003b;
}
.av-surface .av-card-button:active:not(:disabled) {
  background: linear-gradient(180deg, #e2e5e9, #f2f3f5);
  box-shadow: inset 0 2px 4px #14171d1f, 0 2px 6px #00000026;
}
.av-surface .av-card-button:disabled {
  color: #7b818a;
  background: linear-gradient(180deg, #e0e3e7, #cfd3d9);
  box-shadow: inset 0 1px 0 #ffffff80;
  opacity: 1;
}
.av-checkout .av-bank-button,
.av-checkout .av-gold-card-button {
  color: #171a20;
  background: linear-gradient(180deg, #ffe893 0, #f4c655 54%, #d5a034 100%);
  box-shadow: inset 0 1px 0 #fff2c6c4, inset 0 0 0 1px #ffe49a47, 0 4px 13px #0000002e;
}
.av-checkout .av-bank-button:hover:not(:disabled),
.av-checkout .av-gold-card-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffeda5, #f8cd68 54%, #dfad45);
  box-shadow: inset 0 1px 0 #fff5d2, inset 0 0 0 1px #ffe49a59, 0 5px 15px #00000038;
}
.av-checkout .av-bank-button:active:not(:disabled),
.av-checkout .av-gold-card-button:active:not(:disabled) {
  background: linear-gradient(180deg, #d3a23e, #edc15b);
  box-shadow: inset 0 2px 4px #49320c2b, 0 2px 6px #00000026;
}
.av-checkout .av-bank-button:disabled,
.av-checkout .av-gold-card-button:disabled {
  color: #75623c;
  background: linear-gradient(180deg, #e5d299, #c7ad70);
  box-shadow: inset 0 1px 0 #fff0b873;
  opacity: 1;
}
.av-checkout .av-bank-symbol { background: #171a1e; color: #f2cf77; }
.av-checkout .av-bank-button img[alt="СБП"] { filter: grayscale(1) brightness(.32); }
.av-checkout .av-bank-picker { color: #171a20; }
.av-checkout .av-bank-picker:has(select:focus-visible) { outline-color: #775823; }
.av-checkout .agreement input[type=checkbox] {
  border-color: #a0a6b0;
  background: linear-gradient(180deg, #343a44, #242930);
}
.av-checkout .agreement input:checked {
  border-color: #e6c57b;
  background: linear-gradient(180deg, #efd28a, #cca45d);
}
.av-checkout .agreement input:checked::after { border-color: #24272d; }
.av-checkout .agreement label { color: #d7dbe2; }
.av-checkout .agreement a { color: #e6dfd1; }
.av-checkout .agreement a:hover { color: #f0cd72; }
/* Existing payment loading overlay is outside the card in the React tree. */
.avtrade:has(.av-checkout) :is(.vkuiScreenSpinner__container, .vkuiScreenSpinner__spinner) { color: #8e692d; }
