/* Support page (support/). Page parts use the site tokens from style.css. The Mac window stays dark
   in both themes, like the builder window on the home page. */

.sp-fade { color: var(--accent-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sp-fade { background: linear-gradient(90deg, #1F5EFF 0%, #7C3AED 50%, #DB2777 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  [data-theme="dark"] .sp-fade { background-image: linear-gradient(90deg, #6B93FF 0%, #A78BFA 50%, #F472B6 100%); }
}

/* ---------- wallpaper + window ---------- */
.sp-stage {
  max-width: 1040px; margin: 0 auto; padding: clamp(14px, 4vw, 48px); box-sizing: border-box;
  border: 1px solid var(--border-line); border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(60% 70% at 0% 0%, #D9C9FF 0%, rgba(217, 201, 255, 0) 100%),
    radial-gradient(60% 70% at 100% 20%, #BDEEDF 0%, rgba(189, 238, 223, 0) 100%),
    radial-gradient(70% 70% at 80% 100%, #FFCDB6 0%, rgba(255, 205, 182, 0) 100%),
    #F3EEFA;
}
[data-theme="dark"] .sp-stage {
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0) 100%),
    radial-gradient(60% 70% at 100% 20%, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 100%),
    radial-gradient(70% 70% at 80% 100%, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0) 100%),
    #1A1A1E;
}
.sp-win {
  max-width: 900px; margin: 0 auto; overflow: hidden; background: #1E1E20; color: #ECECEF; text-align: left;
  border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 50px 90px -40px rgba(60, 40, 90, 0.6);
}
.sp-bar { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: #2C2C2F; border-bottom: 1px solid #000; }
.sp-lights { display: flex; gap: 8px; flex-shrink: 0; }
.sp-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.sp-lights i:nth-child(2) { background: #FEBC2E; }
.sp-lights i:nth-child(3) { background: #28C840; }
.sp-title { flex-grow: 1; padding-right: 52px; text-align: center; font: 500 12.5px var(--font-mono); color: #A1A1A8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-body { display: grid; gap: 18px; padding: clamp(16px, 3vw, 28px); }
.sp-win [hidden] { display: none !important; }
.sp-win :focus-visible { outline: 3px solid #8FB0FF; outline-offset: 2px; }

/* Region tabs. Without JavaScript both panels show, one under the other, and the tabs stay away. */
.sp-seg { display: none; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #2A2A31; border-radius: 12px; }
.sp-js .sp-seg { display: grid; }
.sp-seg button { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #B5B4BF; font: inherit; font-weight: 600; cursor: pointer; }
.sp-seg button small { font-size: 12.5px; font-weight: 500; opacity: 0.85; }
.sp-seg button[aria-selected="true"] { background: #1F5EFF; color: #fff; }
.sp-segnote { margin: -6px 0 0; font-size: 13px; color: #A9A8B3; }

.sp-panel { display: grid; gap: 18px; }
.sp-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 760px) { .sp-cols { grid-template-columns: 0.8fr 1.2fr; gap: 32px; } }
.sp-lbl { margin: 0 0 12px; font: 600 12px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #A9A8B3; }

/* Amounts */
.sp-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sp-chip { min-height: 52px; padding: 12px 10px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: #2A2A31; color: #ECECEF; font: 700 22px var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; cursor: pointer; }
.sp-chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.sp-chip[aria-pressed="true"] { background: #F4F4F6; border-color: #F4F4F6; color: #17171B; }
.sp-custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: #2A2A31; }
.sp-custom span { font-weight: 600; color: #A9A8B3; }
.sp-custom input { flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; outline: none; background: transparent; color: #ECECEF; font: inherit; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.sp-custom input::-webkit-outer-spin-button, .sp-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-custom input::placeholder { color: #A9A8B3; }
.sp-custom:focus-within { border-color: #8AA8FF; box-shadow: 0 0 0 3px rgba(107, 147, 255, 0.35); }
.sp-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: #A9A8B3; }
.sp-js .sp-pick { display: block; }
html:not(.sp-js) .sp-pick { display: none; }

/* Payment box */
.sp-pay { padding: clamp(14px, 2.5vw, 22px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; background: #26262A; min-width: 0; }
.sp-qr-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
@media (min-width: 520px) { .sp-qr-row { grid-template-columns: auto minmax(0, 1fr); } }
.sp-qr-tile { width: 200px; max-width: 100%; padding: 12px; box-sizing: border-box; margin-inline: auto; background: #fff; border-radius: 14px; }
.sp-qr { width: 100%; aspect-ratio: 1; }
.sp-qr svg { display: block; width: 100%; height: 100%; }
html:not(.sp-js) .sp-qr-tile { display: none; }
.sp-qr-info { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.sp-big { margin: 0; font: 800 40px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sp-small { margin: 0; font-size: 15px; color: #B5B4BF; }
.sp-micro { margin: 0; font-size: 13px; line-height: 1.5; color: #A9A8B3; }
.sp-upi { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 12px; border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 10px; background: #2A2A31; }
.sp-mono { min-width: 0; overflow-x: auto; font: 13.5px var(--font-mono); white-space: nowrap; }
.sp-ghost { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: transparent; color: #ECECEF; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sp-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* A phone can open the UPI app but cannot scan its own screen; a computer can show the QR but has no UPI app. */
@media (hover: hover) and (pointer: fine) { .sp-open, .sp-open-note { display: none; } }
@media (hover: none) and (pointer: coarse) { .sp-qr-tile { display: none; } }

.sp-world { display: grid; gap: 14px; justify-items: start; }
.sp-world .sp-lbl { margin: 0; }
.sp-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sp-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: s; }
.sp-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; background: #2A2A31; font: 600 13px var(--font-mono); }
.sp-status { margin: 0; font-size: 14px; color: #8FE3B8; }
.sp-status:empty { display: none; }

/* ---------- cards under the window ---------- */
/* ---------- optional personal thank-you ---------- */
.sp-thanks { display: flex; align-items: flex-start; gap: 16px; max-width: 1040px; margin: 18px auto 0; padding: 20px 22px; box-sizing: border-box; border: 1px solid var(--border-line); border-radius: 20px; background: var(--bg-card); }
.sp-thanks-heart { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #FDF0F6; border: 1px solid #F3B6D2; color: #DB2777; font-size: 20px; line-height: 1; }
[data-theme="dark"] .sp-thanks-heart { background: rgba(219, 39, 119, 0.14); border-color: rgba(244, 114, 182, 0.45); color: #F472B6; }
.sp-thanks h2 { margin: 0 0 4px; font: 700 20px var(--font-display); letter-spacing: -0.02em; }
.sp-thanks p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-secondary); }
.sp-thanks a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 480px) { .sp-thanks { flex-direction: column; gap: 12px; padding: 18px; } }

.sp-cards { max-width: 1040px; margin: 56px auto 0; }
.sp-cards > p { max-width: 640px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 8px; }
@media (min-width: 820px) { .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-card { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--border-line); border-radius: 20px; background: var(--bg-card); }
.sp-card h3 { margin: 0; font: 700 20px var(--font-display); letter-spacing: -0.02em; }
.sp-card p, .sp-card li { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-secondary); }
.sp-card ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; }
.sp-card a:not(.sp-pill) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.sp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border-line); border-radius: 999px; background: var(--bg-card-subtle); color: var(--ink-primary); font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.sp-pill:hover { border-color: var(--outline-strong); }
.sp-pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .sp-win * { transition: none !important; } }
@media (max-width: 719px) {
  .sp-win { border-radius: 12px; }
  .sp-bar { height: 36px; padding: 0 12px; }
  .sp-lights i { width: 11px; height: 11px; }
  .sp-title { padding-right: 46px; font-size: 12px; }
}
