/* EarnIt VIP: the members' entry gate (always dark) and the Interviews page (follows the app theme). */

/* ------------------------------------------------------- shared gold bits */

/* Gold that reads on both light and dark surfaces. Used by the badge, the tab and the page. */
:root {
  --vip-gold: #8C6A23;
  --vip-gold-2: #C9A24A;
  --vip-gold-soft: #F7EDD0;
  --vip-gold-line: #D9BE7A;
}
:root[data-theme="dark"] {
  --vip-gold: #E8C872;
  --vip-gold-2: #C9A24A;
  --vip-gold-soft: #2A2314;
  --vip-gold-line: #6E5520;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vip-gold: #E8C872;
    --vip-gold-2: #C9A24A;
    --vip-gold-soft: #2A2314;
    --vip-gold-line: #6E5520;
  }
}

/* Small gold pill: next to the Interviews title and in Settings ("Member"). Global on purpose. */
.vip-badge {
  display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 7px 0 8px;
  border: 1px solid var(--vip-gold-line); border-radius: 999px;
  background: var(--vip-gold-soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--vip-gold-soft) 70%, var(--surface)), var(--vip-gold-soft));
  color: var(--vip-gold);
  font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap;
}
.card-title .vip-badge { margin-left: 8px; vertical-align: 2px; }

/* The VIP tab in the nav: a quiet gold crown when it's the current page. */
.tab-vip[aria-current="page"], .tab-vip[aria-current="page"]:hover { color: var(--vip-gold); }
.tab-vip:hover .ico { color: var(--vip-gold-2); }

/* ================================================================== gate */
/* Phone first (360–430px wide). One screen, no scrolling; it compresses when the keyboard opens. */

body[data-route="vip"]:has(.vip-gate) { background: #0B0B0C; color-scheme: dark; }
body[data-route="vip"] #main.enter > .vip-gate { animation: vg-in .5s ease-out; }

.vip-gate {
  --g1: #F5E6B8;
  --g2: #E8C872;
  --g3: #C9A24A;
  --g4: #8C6A23;
  --vg-ink: #EDE6D6;
  --vg-ink-2: #A59D8C;
  --vg-bad: #E0907F;
  --vg-serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --vg-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* Card size: as wide as the phone allows, but shrinks with the height left over for it. */
  --chrome: 330px;
  --card-w: min(88vw, 360px);
  --card-w: clamp(124px, calc((100dvh - var(--chrome)) * 1.586), min(88vw, 360px));
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  overflow: hidden auto; overscroll-behavior: contain;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background:
    radial-gradient(120% 55% at 50% 100%, rgba(140, 106, 35, .14), transparent 62%),
    #0B0B0C;
  color: var(--vg-ink);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
.vip-gate ::selection { background: rgba(201, 162, 74, .35); color: #fff; }
/* Fine pinstripes, like the lining of a jacket. Static. */
.vip-gate::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 63px, rgba(201, 162, 74, .03) 63px 64px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 70%);
}
/* A slow gold light behind the card. Moves by transform only. */
.vg-glow {
  position: absolute; left: 50%; top: 34%; width: 720px; height: 720px; margin: -360px 0 0 -360px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 200, 114, .15), rgba(201, 162, 74, .05) 55%, transparent);
  animation: vg-drift 18s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------ top bar */

.vg-top {
  position: relative; z-index: 2; flex: none;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: 56px; padding: 0 8px;
}
.vg-close {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--g1); text-decoration: none;
}
.vg-close::before {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, .3); background: rgba(22, 22, 24, .7);
  transition: border-color .2s;
}
.vg-close:hover::before { border-color: rgba(232, 200, 114, .65); }
.vg-close:focus-visible { outline: none; }
.vg-close:focus-visible::before { border-color: var(--g1); box-shadow: 0 0 0 2px rgba(232, 200, 114, .5); }
.vg-close svg { position: relative; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.vg-brand {
  margin: 0; text-align: center;
  font-family: var(--vg-serif); font-size: 12px; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase;
  color: var(--g3);
}

/* --------------------------------------------------------------- hero */

.vg-hero {
  position: relative; z-index: 1; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 20px 22px;
}
.vg-card-wrap { position: relative; width: var(--card-w); aspect-ratio: 1.586; perspective: 1200px; }
.vg-halo {
  position: absolute; inset: -26% -18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 200, 114, .34), rgba(201, 162, 74, .08) 60%, transparent);
  opacity: .4; transition: opacity .9s ease-out, transform .9s ease-out;
}

.vg-card {
  --rx: 0deg; --ry: 0deg; --flip: 0deg;
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.vip-gate:hover .vg-card { transition-duration: .2s; }

.vg-face {
  position: absolute; inset: 0; overflow: hidden;
  container-type: inline-size;
  border: 1.5px solid transparent; border-radius: calc(var(--card-w) * .048);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.vg-frame { position: absolute; inset: 3.2cqw; border: 1px solid rgba(201, 162, 74, .17); border-radius: 2.6cqw; pointer-events: none; }

/* Front: black brushed metal with a gold foil edge. */
.vg-front {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 30%, transparent 70%, rgba(255, 255, 255, .04)) padding-box,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 2px, rgba(0, 0, 0, .2) 2px 3px, transparent 3px 5px) padding-box,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 9px) padding-box,
    linear-gradient(160deg, #1E1E21 0%, #131315 46%, #0A0A0B 100%) padding-box,
    linear-gradient(135deg, var(--g4), var(--g1) 20%, var(--g3) 38%, var(--g4) 58%, var(--g2) 80%, var(--g4)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 28px 50px -22px rgba(0, 0, 0, .95),
    0 12px 34px -18px rgba(201, 162, 74, .4);
}
.vg-tag {
  position: absolute; left: 7.5cqw; top: 7cqw;
  font-family: var(--vg-serif); font-size: 3.2cqw; letter-spacing: .34em; text-transform: uppercase;
  color: var(--g3);
}
.vg-mark {
  position: absolute; right: 6.5cqw; top: 4.6cqw; width: 8cqw; height: 8cqw;
  fill: none; stroke: var(--g2); stroke-width: 1.6; stroke-linejoin: round; opacity: .9;
}
/* Engraved metal contact chip. */
.vg-chip {
  position: absolute; left: 7.5cqw; top: 25cqw; width: 12.5cqw; height: 9.6cqw; border-radius: 1.8cqw;
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(60, 44, 10, .55) 30% 32%, transparent 32% 68%, rgba(60, 44, 10, .55) 68% 70%, transparent 70%),
    linear-gradient(0deg, transparent 0 46%, rgba(60, 44, 10, .55) 46% 54%, transparent 54%),
    linear-gradient(135deg, var(--g1), var(--g3) 45%, var(--g4) 70%, var(--g2));
  box-shadow: inset 0 0 0 1px rgba(60, 44, 10, .4), 0 1px 0 rgba(255, 255, 255, .06);
}
.vg-word {
  position: absolute; right: 7cqw; top: 14.5cqw;
  font-family: var(--vg-serif); font-weight: 400; font-size: 24cqw; line-height: 1; letter-spacing: .05em;
  color: var(--g2);
  background: linear-gradient(100deg, var(--g4) 0%, var(--g3) 22%, var(--g1) 40%, var(--g2) 55%, var(--g4) 78%, var(--g3) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* The same letters, brighter, fading in as the glint passes: a sheen without repainting. */
.vg-word-hi {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--g2) 0%, #FFF8E2 45%, var(--g1) 60%, var(--g2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0; animation: vg-catch 7s ease-in-out infinite;
}
.vg-emboss {
  position: absolute; bottom: 7cqw;
  font-family: var(--vg-serif); font-size: 3.4cqw; letter-spacing: .26em; text-transform: uppercase;
  color: #A08C5C;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 238, 196, .14);
  font-variant-numeric: lining-nums;
}
.vg-no { left: 7.5cqw; }
.vg-club { right: 7cqw; }
/* A slow gold glint sweeping across the card. Transform only. */
.vg-glint {
  position: absolute; top: -10%; bottom: -10%; left: -100%; width: 300%; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 40%, rgba(245, 230, 184, .05) 45%, rgba(255, 248, 225, .17) 49%,
    rgba(232, 200, 114, .1) 52%, rgba(190, 215, 255, .05) 54%, transparent 59%);
  transform: translateX(-36%);
  animation: vg-glint 7s ease-in-out infinite;
}
/* Light under the pointer (mouse/trackpad). */
.vg-light {
  position: absolute; left: 0; top: 0; width: 80cqw; height: 80cqw; margin: -40cqw 0 0 -40cqw;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 230, 184, .11), transparent);
  transform: translate(var(--lx, 50cqw), var(--ly, 20cqw));
  opacity: 0; transition: opacity .3s;
}
.vg-card.is-lit .vg-light { opacity: 1; }

/* Back: the card turned over, solid gold. Shown after a successful unlock. */
.vg-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw;
  padding-bottom: 6cqw;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px, rgba(90, 60, 10, .05) 3px 4px, transparent 4px 6px) padding-box,
    linear-gradient(125deg, #8C6A23 0%, #C9A24A 20%, #F5E6B8 38%, #E8C872 50%, #B88F3E 68%, #8C6A23 86%, #D4B062 100%) padding-box,
    linear-gradient(135deg, #FFF6DA, #8C6A23 40%, #F5E6B8 70%, #8C6A23) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, .55), 0 30px 60px -22px rgba(0, 0, 0, .9);
}
.vg-back .vg-frame { border-color: rgba(70, 48, 10, .3); }
.vg-crest { width: 15cqw; height: 15cqw; fill: none; stroke: #4A360D; stroke-width: 1.5; stroke-linejoin: round; }
.vg-back-title {
  font-family: var(--vg-serif); font-size: 5cqw; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase;
  color: #3E2C08; text-shadow: 0 1px 0 rgba(255, 246, 218, .6);
}
.vg-back .vg-emboss { color: #5A4313; text-shadow: 0 1px 0 rgba(255, 246, 218, .55), 0 -1px 0 rgba(60, 40, 8, .25); }
.vg-back .vg-glint { animation-duration: 3.5s; }

/* -------------------------------------------------------------- panel */

.vg-panel {
  position: relative; z-index: 1; flex: none;
  display: grid; width: 100%; max-width: 440px; margin: 0 auto;
  padding: 0 20px max(18px, calc(env(safe-area-inset-bottom) + 10px));
}
.vg-entry, .vg-welcome { grid-area: 1 / 1; min-width: 0; }
.vg-entry { transition: opacity .3s, transform .3s; }
.vg-lead { margin: 22px 0 0; text-align: center; font-size: 15px; line-height: 1.45; color: var(--vg-ink-2); transition: opacity .3s; }
.vip-gate[data-state="success"] .vg-lead { opacity: 0; }
.vg-form { display: grid; grid-template-columns: minmax(0, 1fr); }
.vg-label {
  margin: 0 0 8px 4px;
  font-family: var(--vg-serif); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--g3);
}

/* One framed field, with the Paste pill inside its right end. */
.vg-field {
  position: relative; display: flex; align-items: center; height: 58px;
  border: 1px solid rgba(201, 162, 74, .42); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transition: border-color .2s, box-shadow .2s;
}
.vg-field:focus-within { border-color: var(--g2); box-shadow: 0 0 0 3px rgba(232, 200, 114, .14); }
.vip-gate.is-complete .vg-field { border-color: var(--g2); }
.vip-gate[data-state="wrong"] .vg-field { border-color: rgba(224, 144, 127, .75); }
.vip-gate[data-state="wrong"] .vg-field:focus-within { box-shadow: 0 0 0 3px rgba(224, 144, 127, .16); }
.vg-field.is-shaking { animation: vg-shake .45s cubic-bezier(.36, .07, .19, .97); }
.vg-input {
  flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 16px;
  border: 0; border-radius: 14px; background: transparent;
  color: var(--g1); caret-color: var(--g2);
  font-family: var(--vg-mono); font-size: 18px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.vg-input:focus { outline: none; }
.vg-input::placeholder { color: rgba(232, 200, 114, .26); }
.vg-input:disabled { opacity: .6; }
.vg-paste {
  position: relative; flex: none; height: 44px; margin-right: 6px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--g1); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.vg-paste::before {
  content: ''; position: absolute; inset: 6px 0; border-radius: 999px;
  border: 1px solid rgba(232, 200, 114, .65); background: rgba(232, 200, 114, .08);
  transition: background-color .15s, border-color .15s;
}
.vg-paste:hover::before { background: rgba(232, 200, 114, .16); border-color: var(--g2); }
.vg-paste:active::before { background: rgba(232, 200, 114, .24); }
.vg-paste:focus-visible { outline: none; }
.vg-paste:focus-visible::before { border-color: var(--g1); box-shadow: 0 0 0 2px rgba(232, 200, 114, .45); }
.vg-paste:disabled { opacity: .4; cursor: default; }

.vg-msg { margin: 9px 4px 0; font-size: 14px; line-height: 1.4; color: var(--g2); }
.vg-msg:empty { display: none; }
.vg-msg[data-tone="bad"] { color: var(--vg-bad); }
.vg-msg:not(:empty) + .vg-hint { display: none; } /* one line under the field, never two */
.vg-hint { margin: 9px 4px 0; font-size: 12px; line-height: 1.4; color: rgba(165, 157, 140, .72); }

.vg-btn {
  position: relative; overflow: hidden; width: 100%; height: 52px; margin-top: 18px; padding: 0 24px;
  border: 1px solid rgba(255, 246, 218, .35); border-radius: 14px;
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 45%, var(--g3) 100%);
  color: #1C1505;
  font-family: var(--vg-serif); font-size: 16px; font-weight: 600; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
  box-shadow: 0 12px 26px -12px rgba(201, 162, 74, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
  cursor: pointer; transition: transform .12s;
}
.vg-btn:active { transform: scale(.985); }
.vg-btn:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; }
.vg-btn[aria-disabled="true"] { cursor: default; }
.vg-btn[aria-disabled="true"]:active { transform: none; }
.vip-gate[data-state="unsupported"] .vg-btn { opacity: .45; }
/* Verifying: a bright band slides across the button, and the label breathes. */
.vg-btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-120%); opacity: 0;
}
.vg-btn[aria-busy="true"]::after { opacity: 1; animation: vg-sweep 1.1s ease-in-out infinite; }
.vg-btn[aria-busy="true"] span { animation: vg-breathe 1.1s ease-in-out infinite alternate; }

/* ------------------------------------------------------------ success */

.vg-welcome { align-self: center; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; }
.vg-welcome-kicker { margin: 0 0 6px; font-family: var(--vg-serif); font-size: 12px; letter-spacing: .36em; padding-left: .36em; text-transform: uppercase; color: var(--g3); }
.vg-welcome-line { margin: 0; font-family: var(--vg-serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--g1); }

.vip-gate[data-state="success"] .vg-card { --flip: 180deg; transition: transform 1.05s cubic-bezier(.3, 1.25, .5, 1); }
.vip-gate[data-state="success"] .vg-card-wrap { animation: vg-lift 1.3s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--vg-t, 0ms); }
.vip-gate[data-state="success"] .vg-halo { opacity: 1; transform: scale(1.15); }
.vip-gate[data-state="success"] .vg-entry { opacity: 0; transform: translateY(10px); }
.vip-gate[data-state="success"] .vg-welcome {
  visibility: visible;
  animation: vg-fade-in .6s ease-out forwards;
  animation-delay: calc(var(--vg-t, 0ms) + 650ms);
}
.vg-burst { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* ------------------------------------------------------------ keyframes */

@keyframes vg-in { from { opacity: 0; } }
@keyframes vg-drift {
  0% { transform: translate3d(-4%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 2%, 0) scale(1.08); }
}
@keyframes vg-glint {
  0% { transform: translateX(-36%); }
  55%, 100% { transform: translateX(36%); }
}
@keyframes vg-catch {
  0%, 22% { opacity: 0; }
  32% { opacity: .85; }
  44%, 100% { opacity: 0; }
}
@keyframes vg-sweep { from { transform: translateX(-120%); } to { transform: translateX(260%); } }
@keyframes vg-breathe { from { opacity: 1; } to { opacity: .55; } }
@keyframes vg-shake {
  15%, 85% { transform: translateX(-3px); }
  30%, 70% { transform: translateX(7px); }
  45% { transform: translateX(-9px); }
  58% { transform: translateX(9px); }
}
@keyframes vg-lift {
  0% { transform: scale(1); }
  45% { transform: scale(1.07) translateY(-4px); }
  100% { transform: scale(1.03); }
}
@keyframes vg-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- responsive */

/* Big screens: centre everything as one composition. */
@media (min-width: 700px) and (min-height: 700px) {
  .vip-gate { --card-w: 360px; justify-content: center; }
  .vg-top { position: absolute; top: env(safe-area-inset-top); left: 0; right: 0; padding: 12px 16px; height: auto; }
  .vg-hero { flex: none; padding: 0 0 36px; }
  .vg-panel { max-width: 400px; }
}

/* Short screens, or the keyboard is open: smaller card, only what's needed to unlock. */
@media (max-height: 560px) {
  .vip-gate { --chrome: 262px; }
  .vg-top { height: 48px; }
  .vg-brand { font-size: 11px; }
  .vg-hero { padding: 2px 0 14px; }
  .vg-lead, .vg-hint { display: none; }
  .vg-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vg-field { height: 54px; }
  .vg-btn { margin-top: 12px; }
  .vg-panel { padding-bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px)); }
  .vg-welcome-line { font-size: 22px; }
}

@media (max-width: 359px) {
  .vg-input { letter-spacing: .08em; padding-left: 12px; font-size: 16px; }
  .vg-paste { padding: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .vg-glow, .vg-glint, .vg-word-hi { animation: none !important; }
  .vg-card, .vg-halo { transition: none !important; }
  .vip-gate[data-state="success"] .vg-card-wrap { animation: none !important; }
  .vip-gate[data-state="success"] .vg-welcome { animation: none !important; opacity: 1; }
}

/* ======================================================== interviews page */

.vip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 12px; flex-wrap: wrap; }
.vip-head-text { min-width: 0; }
.vip-head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vip-head .vip-badge { margin-top: 3px; }
.vip-head .page-sub { margin-top: 4px; }

/* Default penalty card, with a hairline of gold on the left. */
.vip-stake {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding: 14px 14px 14px 16px;
  box-shadow: inset 3px 0 0 var(--vip-gold-2);
}
.vip-stake-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vip-stake-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.vip-stake-value { font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.vip-stake-value b { font-weight: 700; color: var(--bad); font-variant-numeric: tabular-nums; }
.vip-stake-kind {
  display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 6px; vertical-align: 2px;
  background: var(--vip-gold-soft); color: var(--vip-gold); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.vip-stake-empty { color: var(--accent-ink); }
.vip-stake-sub { font-size: 12.5px; color: var(--ink-3); }

/* Interview rows. The main button stretches over the whole row; the side buttons sit above it. */
.iv-list { overflow: hidden; }
.iv {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px;
  padding: 8px 12px 8px 4px;
}
.iv-main {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 6px 8px;
  border: 0; background: transparent; text-align: left; cursor: pointer;
}
.iv-main::after { content: ''; position: absolute; inset: 0; transition: background-color .12s; }
.iv-main:hover::after { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.iv-main:focus-visible { outline: none; }
.iv-main:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: var(--r-sm); }
.iv-avatar {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-top: 1px;
  border-radius: 10px; background: var(--fill); color: var(--ink-2);
  font-size: 16px; font-weight: 700;
}
.iv.is-upcoming .iv-avatar { background: var(--vip-gold-soft); color: var(--vip-gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vip-gold-line) 60%, transparent); }
.iv-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.iv-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.iv-company { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-role {
  flex: none; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
}
.iv-date { font-size: 13.5px; color: var(--ink-2); }
.iv-date.is-late { color: var(--accent-ink); font-weight: 600; }
.iv-pen { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.iv-pen.is-none { font-style: italic; }

.iv-side { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.iv-side[aria-hidden="true"] { pointer-events: none; } /* the pill: taps go through to the row */
.iv-actions .btn { gap: 5px; padding: 0 10px; }
.iv-actions .btn .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.iv-ok .ico { color: var(--good); }
.iv-fail { color: var(--bad); }

.iv-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px;
  border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.iv-pill .ico { width: 13px; height: 13px; stroke-width: 2.8; }
.iv-pill.is-cleared { background: var(--good-soft); color: var(--good); }
.iv-pill.is-failed { background: var(--bad-soft); color: var(--bad); }
.iv-pill.is-cancelled { background: var(--fill); color: var(--ink-3); }
.iv.is-cancelled .iv-company { color: var(--ink-2); }

/* What a failure cost. Taps go through to the row. */
.iv-after { grid-column: 1 / -1; position: relative; margin: 0 0 6px 58px; pointer-events: none; font-size: 13.5px; line-height: 1.45; }
.iv-owed { color: var(--bad); }
.iv-owed b { font-weight: 700; font-variant-numeric: tabular-nums; }
.iv-pledge {
  padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--bad-soft); box-shadow: inset 3px 0 0 var(--bad);
  color: var(--ink-2); font-size: 14.5px;
}
.iv-pledge b { color: var(--bad); font-weight: 700; }

@media (max-width: 520px) {
  .iv.has-actions { grid-template-columns: minmax(0, 1fr); }
  .iv.has-actions .iv-actions { padding: 0 0 6px 58px; }
  .iv-after { margin-left: 58px; }
}

.vip-note { margin: 28px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.vip-leave { margin: 18px 2px 0; font-size: 14px; }
.vip-leave .link { color: var(--ink-3); font-weight: 500; }
.vip-leave .link:hover { color: var(--ink-2); }

/* Sheets opened from this page: a fine gold line along the top. */
dialog.sheet-vip .sheet-card { box-shadow: inset 0 2px 0 var(--vip-gold-2), var(--pop); }
.sheet-vip .vip-pen { display: grid; gap: 10px; }
.sheet-vip .vip-pen legend { margin-bottom: 4px; }
.sheet-vip input[type="date"].input { min-width: 0; }

/* ---- example interview ---- */
/* The seeded demo row: dashed outline, muted avatar, an "Example" chip and a note with a quiet remove. */
.vip-page .iv.is-example {
  margin: 6px; padding-left: 2px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-sm);
}
.vip-page .iv.is-example + .iv { border-top: 0; }
.vip-page .iv.is-example .iv-main::after { border-radius: calc(var(--r-sm) - 2px); }
.vip-page .iv.is-example .iv-avatar {
  background: transparent; color: var(--ink-3); box-shadow: none;
  border: 1.5px dashed var(--line-2); opacity: .8;
}
.vip-page .iv.is-example .iv-company { color: var(--ink-2); }
.vip-page .iv-example-chip {
  flex: none; padding: 1px 6px; border-radius: 6px;
  background: var(--fill-2); color: var(--ink-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.vip-page .iv-example-note {
  grid-column: 1 / -1; position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px;
  margin: 2px 0 4px 58px; font-size: 13px; line-height: 1.4; color: var(--ink-3);
}
.vip-page .iv-example-remove { min-height: 30px; padding: 0 10px; margin: 0 -4px 0 -10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ---- custom penalty ideas ---- */
.vip-pledge-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vip-pledge-chip {
  min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--fill); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer;
}
.vip-pledge-chip:hover { color: var(--ink); border-color: var(--vip-gold-line, var(--line)); }
.vip-pledge-chip:focus-visible { outline: 2px solid var(--vip-gold, currentColor); outline-offset: 2px; }

/* ---- penalty kinds: Pay (with what happens when short), Ban, Custom ---- */
.vip-pen-wrap { min-width: 0; }
.vip-pen-reward { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.vip-pen[data-kind="ban"] .vip-pen-reward { grid-template-columns: minmax(0, 1fr); }
.vip-pen-amount .affix:first-child { color: var(--bad); font-weight: 700; font-size: 16px; padding-right: 0; }
.vip-pen-amount .input { font-variant-numeric: tabular-nums; }

.vip-pen-rest { display: grid; gap: 6px; }
.vip-pen-sub { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vip-pen-rest-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vip-pen-rest-row .seg { flex: 1 1 210px; width: auto; }
.vip-pen-rest-row .seg-opt span { padding: 0 8px; }
.vip-pen-restdays { flex: 1 1 120px; min-width: 0; }

.vip-pen-days .seg {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; width: 100%;
}
.vip-pen-days .seg-opt span { padding: 0 6px; }
/* Forever is the heavy one: tint it when picked. */
.vip-pen-days .seg-opt:last-child input:checked + span { color: var(--bad); }
/* Very narrow sheets: two rows of two. */
@media (max-width: 339px) {
  .vip-pen-days .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vip-pen-sentence { font-size: 13.5px; color: var(--ink-2); }

/* A failed interview's penalty, read-only in its edit sheet. */
.vip-pen-locked { display: grid; gap: 4px; }
.vip-pen-locked-value {
  margin: 0; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--fill); color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere;
}

.vip-stake-rest { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.iv-served { color: var(--ink-3); }
