@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..800;1,14..32,400..600&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* =========================================================================
   Big Jew VPN — interface stylesheet
   -------------------------------------------------------------------------
    1. Tokens              7. Cards & surfaces
    2. Reset & base        8. Forms
    3. Typography          9. Feedback: alerts, badges, pills
    4. Chrome: header      10. Tables
    5. Chrome: footer      11. Pages: home, account, pay, admin
    6. Buttons             12. Motion  13. Responsive
   ========================================================================= */


/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Surfaces, darkest first. Everything is mixed from these five. */
  --void:        #04060b;
  --bg:          #070a11;
  --bg-soft:     #0a0e17;
  --surface:     #0d121c;
  --surface-2:   #121927;
  --surface-3:   #182133;

  /* Hairlines. --line is the resting border, --line-2 the hovered one. */
  --line:        rgba(255, 255, 255, .07);
  --line-2:      rgba(255, 255, 255, .13);
  --line-3:      rgba(255, 255, 255, .20);

  /* Ink */
  --text:        #eaf0fa;
  --text-dim:    #9fb0c8;
  --muted:       #6f8199;
  --ink-invert:  #04070d;

  /* Brand */
  --brand:       #6d8bff;
  --brand-lift:  #93a9ff;
  --brand-deep:  #3355e0;
  --violet:      #a78bfa;
  --mint:        #2fd4a0;
  --mint-lift:   #6ce9c1;
  --mint-deep:   #0e9c74;
  --danger:      #ff6b6b;
  --danger-deep: #b13a3a;
  --warn:        #ffc16b;

  --brand-glow:  rgba(109, 139, 255, .45);
  --mint-glow:   rgba(47, 212, 160, .35);

  /* Signature gradient — used on the mark, the rules and the headline. */
  --sheen: linear-gradient(100deg, var(--brand-lift) 0%, var(--violet) 42%, var(--mint) 100%);

  /* Geometry */
  --r-xs:  8px;
  --r-sm:  11px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  26px;
  --r-pill: 999px;

  /* Depth */
  --hair:      inset 0 1px 0 rgba(255, 255, 255, .06);
  --sh-xs:     0 1px 2px rgba(0, 0, 0, .4);
  --sh-sm:     0 2px 8px -2px rgba(0, 0, 0, .5);
  --sh-md:     0 18px 40px -24px rgba(0, 0, 0, .9);
  --sh-lg:     0 40px 80px -40px rgba(0, 0, 0, 1);
  --ring:      0 0 0 3px rgba(109, 139, 255, .3);
  --ring-mint: 0 0 0 3px rgba(47, 212, 160, .26);

  --ease:      cubic-bezier(.22, .7, .26, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);

  --container: 1120px;
  --gutter:    clamp(18px, 5vw, 36px);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* ---------- 2. Reset & base ---------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "cv05" 1, "cv11" 1, "ss01" 1;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere. Two colour fields and a hairline grid, pinned to the viewport so
   the page moves over the light rather than dragging it along. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(1100px 620px at 8% -14%, rgba(109, 139, 255, .30), transparent 60%),
    radial-gradient(900px 560px at 96% -8%, rgba(47, 212, 160, .18), transparent 58%),
    radial-gradient(700px 700px at 60% 110%, rgba(167, 139, 250, .12), transparent 62%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 46%, var(--void) 100%);
}
body::after {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 78% at 50% 0%, #000 0%, transparent 72%);
  opacity: .8;
}

a {
  color: var(--brand-lift);
  text-decoration: none;
  transition: color .16s var(--ease);
}
a:hover { color: #b8c7ff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

code, kbd, pre, samp { font-family: var(--mono); font-size: .9em; font-feature-settings: "zero" 1; }

img, svg { max-width: 100%; display: block; }

hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 32px 0; }

::selection { background: rgba(109, 139, 255, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-lift);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); background-clip: content-box; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 60;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--ink-invert);
  font-weight: 650;
  box-shadow: var(--sh-md);
}
.skip:focus { left: 16px; text-decoration: none; color: var(--ink-invert); }


/* ---------- 3. Typography ------------------------------------------------ */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  line-height: 1.18;
  letter-spacing: -.022em;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.page-title {
  font-size: clamp(27px, 3.6vw, 36px);
  letter-spacing: -.032em;
  margin-bottom: 8px;
}
.page-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 30px;
  max-width: 66ch;
}

.sub { color: var(--text-dim); margin: 0 0 24px; }
.muted { color: var(--muted); }
.dot { color: var(--line-3); }

strong, b { font-weight: 650; color: var(--text); }


/* ---------- 4. Chrome: header -------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 13px var(--gutter);
  background: rgba(4, 6, 11, .72);
  background: color-mix(in srgb, var(--void) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
/* Thin coloured filament along the bottom edge of the bar. */
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 139, 255, .5) 22%, rgba(47, 212, 160, .5) 78%, transparent);
  opacity: .55;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--sheen);
  color: var(--ink-invert);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow:
    0 6px 18px -6px var(--brand-glow),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 6px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease-out);
}
.brand-vpn {
  background: linear-gradient(92deg, var(--mint-lift), var(--mint));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.topbar nav > a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r-xs);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.topbar nav > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
}
.topbar nav > a.active { color: var(--text); }
.topbar nav > a.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--sheen);
  box-shadow: 0 0 10px var(--brand-glow);
}
.topbar nav > a.btn,
.topbar .logout-form .btn {
  --btn-h: 34px;
  --btn-px: 14px;
  --btn-fs: 13.5px;
  --btn-r: var(--r-xs);
  padding: 0 var(--btn-px);
  color: var(--btn-ink);
}
.topbar nav > a.btn:hover { background: var(--btn-fill); color: var(--btn-ink); }

.logout-form { display: inline-flex; margin: 0 0 0 8px; }


/* ---------- 5. Chrome: main & footer ------------------------------------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter) 96px;
}

footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 11, .55);
  background: color-mix(in srgb, var(--void) 60%, transparent);
  color: var(--muted);
  font-size: 13.5px;
}
.foot-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: var(--text); text-decoration: none; }

/* Sections ---------------------------------------------------------------- */

.section { margin-top: 68px; }
.section > h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.section > h2::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint-glow);
  flex: none;
}
.section > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent 70%);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

.actions {
  display: flex;
  gap: 11px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.row { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }


/* ---------- 6. Buttons --------------------------------------------------- */

/* One shape, three weights. Size comes from the three --btn-* properties so a
   variant only ever restates the size it needs, and every button on a row ends
   up the same height whether it is a link, a <button> or a form submit. */
.btn {
  --btn-h:  42px;
  --btn-px: 19px;
  --btn-fs: 14.5px;
  --btn-r:  var(--r-sm);

  --btn-fill:  linear-gradient(180deg, #7389ff, #5468ee);
  --btn-edge:  rgba(255, 255, 255, .16);
  --btn-glow:  rgba(84, 104, 238, .5);
  --btn-ink:   #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border: 0;
  border-radius: var(--btn-r);
  background: var(--btn-fill);
  color: var(--btn-ink);
  font-family: var(--sans);
  font-size: var(--btn-fs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.006em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  /* A crisp 1px edge, a contact shadow, then the colour bed underneath. */
  box-shadow:
    inset 0 0 0 1px var(--btn-edge),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 1px 2px rgba(0, 0, 0, .45),
    0 10px 22px -12px var(--btn-glow);
  transition: filter .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), color .16s var(--ease),
              transform .08s var(--ease);
}

.btn:hover {
  color: var(--btn-ink);
  text-decoration: none;
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 1px var(--btn-edge),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 1px 2px rgba(0, 0, 0, .45),
    0 14px 30px -12px var(--btn-glow);
}

/* Press moves the button down onto the page and takes the bed away with it. */
.btn:active {
  transform: translateY(1px);
  filter: brightness(.94);
  box-shadow:
    inset 0 0 0 1px var(--btn-edge),
    inset 0 2px 5px rgba(0, 0, 0, .35),
    0 1px 1px rgba(0, 0, 0, .4);
}

/* The global focus ring is brand blue, which disappears on a brand-blue
   button, so buttons take a light ring of their own. */
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .85);
  outline-offset: 2px;
}

/* Variants -- each one restates only its fill, edge, bed and ink. */

.btn.secondary {
  --btn-fill: rgba(255, 255, 255, .055);
  --btn-edge: rgba(255, 255, 255, .13);
  --btn-glow: transparent;
  --btn-ink:  var(--text);
  box-shadow:
    inset 0 0 0 1px var(--btn-edge),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 2px rgba(0, 0, 0, .35);
}
.btn.secondary:hover {
  --btn-fill: rgba(255, 255, 255, .095);
  --btn-edge: rgba(255, 255, 255, .22);
  filter: none;
  box-shadow:
    inset 0 0 0 1px var(--btn-edge),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 2px 6px rgba(0, 0, 0, .4);
}
.btn.secondary:active {
  filter: none;
  box-shadow:
    inset 0 0 0 1px var(--btn-edge),
    inset 0 2px 5px rgba(0, 0, 0, .3);
}
.btn.secondary:focus-visible { outline-color: var(--brand-lift); }

.btn.danger {
  --btn-fill: rgba(255, 107, 107, .1);
  --btn-edge: rgba(255, 107, 107, .32);
  --btn-glow: transparent;
  --btn-ink:  #ff9d9d;
  box-shadow: inset 0 0 0 1px var(--btn-edge);
}
.btn.danger:hover {
  --btn-fill: rgba(255, 107, 107, .17);
  --btn-edge: rgba(255, 107, 107, .55);
  --btn-ink:  #ffc0c0;
  filter: none;
  box-shadow:
    inset 0 0 0 1px var(--btn-edge),
    0 10px 24px -14px rgba(255, 107, 107, .75);
}
.btn.danger:active {
  filter: none;
  box-shadow: inset 0 0 0 1px var(--btn-edge), inset 0 2px 5px rgba(0, 0, 0, .3);
}
.btn.danger:focus-visible { outline-color: #ff9d9d; }

/* Sizes */

.btn.small {
  --btn-h: 32px;
  --btn-px: 12px;
  --btn-fs: 13px;
  --btn-r: var(--r-xs);
}
.btn.block {
  display: flex;
  width: 100%;
  margin-top: 26px;
  --btn-h: 48px;
  --btn-fs: 15px;
}

/* Off, not faded: a disabled button drops its colour entirely rather than
   showing a ghost of the live one. */
.btn:disabled, .btn[disabled] {
  --btn-fill: rgba(255, 255, 255, .04);
  --btn-edge: rgba(255, 255, 255, .08);
  --btn-glow: transparent;
  --btn-ink:  var(--muted);
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: inset 0 0 0 1px var(--btn-edge);
}

/* The bare text button used inside admin table rows. */
.linkbtn {
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease),
              text-decoration-color .16s var(--ease);
}
.linkbtn:hover {
  color: var(--brand-lift);
  background: rgba(109, 139, 255, .12);
  text-decoration-color: currentColor;
}
.linkbtn:active { background: rgba(109, 139, 255, .2); }
.linkbtn:disabled { opacity: .5; cursor: wait; background: none; }

/* ---------- 7. Cards & surfaces ------------------------------------------ */

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--sh-md), var(--hair);
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
/* A light source resting on the top edge, brought up on hover. */
.card::before {
  content: "";
  position: absolute;
  left: 14%; right: 14%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  opacity: .7;
  transition: opacity .22s var(--ease);
  pointer-events: none;
}

.card > h2 {
  font-size: 17.5px;
  letter-spacing: -.02em;
  margin-bottom: 7px;
}
.card > h2 + p { color: var(--text-dim); margin: 0 0 4px; }

/* The small uppercase label used on feature cards. */
.card > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.card > h3::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sheen);
  flex: none;
}
.card > p { color: var(--text-dim); margin: 0; }

.grid > .card + .card,
.steps-cards > .card + .card { margin-top: 0; }

/* Interactive lift for the marketing cards only — panels holding forms and
   tables stay put so nothing shifts under the cursor. */
.grid > .card:hover,
.steps-cards > .card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--sh-lg), var(--hair);
}
.grid > .card:hover::before,
.steps-cards > .card:hover::before { opacity: 1; }

.form-card {
  max-width: 456px;
  margin: 52px auto;
  padding: 34px;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg), var(--hair), 0 0 90px -50px var(--brand-glow);
}
.form-card.wide { max-width: 660px; }
.form-card h1 { font-size: 25px; letter-spacing: -.03em; margin-bottom: 9px; }
.form-card::before { left: 22%; right: 22%; }
.form-foot {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.danger-zone {
  border-color: rgba(255, 107, 107, .22);
  background:
    radial-gradient(700px 200px at 0% 0%, rgba(255, 107, 107, .07), transparent 70%),
    linear-gradient(180deg, #140d11, var(--bg-soft));
}
.danger-zone > h2 { color: #ffb3b3; }
.danger-zone::before { background: linear-gradient(90deg, transparent, rgba(255, 107, 107, .35), transparent); }


/* ---------- 8. Forms ----------------------------------------------------- */

label {
  display: block;
  margin: 20px 0 8px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .35);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
input::placeholder, textarea::placeholder { color: #536278; }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(0, 0, 0, .5);
  box-shadow: var(--ring), inset 0 1px 2px rgba(0, 0, 0, .4);
}
textarea { min-height: 84px; resize: vertical; }

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 53%, calc(100% - 13px) 53%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select option { background: var(--surface-2); color: var(--text); }

input[type=color] {
  width: 62px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .35);
  cursor: pointer;
}
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
input[type=color]::-moz-color-swatch { border: 0; border-radius: 7px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.check:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .035); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--mint); }
.check span small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.searchrow { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.searchrow input { flex: 1 1 300px; }


/* ---------- 9. Feedback -------------------------------------------------- */

.alert {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 13px 16px 13px 17px;
  margin-bottom: 20px;
  border: 1px solid;
  border-radius: var(--r-md);
  font-size: 14.2px;
  line-height: 1.6;
  overflow: hidden;
}
/* Coloured spine on the leading edge. */
.alert::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: currentColor;
  opacity: .8;
}
.account-reveal + .alert,
.account-reveal + label + .alert { margin-top: 20px; }

.alert.error { background: rgba(255, 107, 107, .07); border-color: rgba(255, 107, 107, .26); color: #ffb0b0; }
.alert.ok    { background: rgba(47, 212, 160, .07);  border-color: rgba(47, 212, 160, .26);  color: #86efc7; }
.alert.warn  { background: rgba(255, 193, 107, .07); border-color: rgba(255, 193, 107, .26); color: #ffd9a3; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(47, 212, 160, .3);
  border-radius: var(--r-pill);
  background: rgba(47, 212, 160, .1);
  color: var(--mint-lift);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex: none;
}
.badge.pending { border-color: rgba(255, 193, 107, .3); background: rgba(255, 193, 107, .1); color: var(--warn); }
.badge.bad     { border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .1); color: #ff9d9d; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pill.ok      { border-color: rgba(47, 212, 160, .3);  background: rgba(47, 212, 160, .1);  color: var(--mint-lift); }
.pill.pending { border-color: rgba(255, 193, 107, .3); background: rgba(255, 193, 107, .1); color: var(--warn); }
.pill.bad     { border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .1); color: #ff9d9d; }
.pill.muted-pill { color: var(--muted); }
a.pill:hover { text-decoration: none; border-color: var(--line-3); filter: brightness(1.15); }

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-dim);
  margin: 14px 0 0;
}


/* ---------- 10. Tables --------------------------------------------------- */

.tablewrap {
  position: relative;
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .22);
}

table.servers {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.servers th {
  position: sticky;
  top: 0;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
table.servers td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  vertical-align: middle;
  color: var(--text-dim);
}
table.servers td:first-child, table.servers td:nth-child(2) { color: var(--text); }
table.servers tbody tr:last-child td { border-bottom: 0; }
table.servers tbody tr { transition: background .14s var(--ease); }
table.servers tbody tr:hover { background: rgba(255, 255, 255, .028); }
table.servers code { color: var(--mint-lift); font-size: 13px; letter-spacing: -.01em; }

/* The payments table on the dashboard sits directly in a card. */
table.payments { margin-top: 16px; }
table.payments th { position: static; background: transparent; }
table.payments code { color: var(--mint-lift); }

table.admin { min-width: 980px; }
table.admin th, table.admin td { padding: 11px 12px; white-space: nowrap; }
table.admin td:nth-child(3) { white-space: normal; min-width: 140px; }
table.admin select { width: auto; min-width: 108px; padding: 7px 30px 7px 11px; font-size: 13px; }
.row-banned td { opacity: .5; }
.rowactions { display: flex; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.keycell { white-space: nowrap; }
.keycell code { letter-spacing: .08em; color: var(--text); }


/* ---------- 11. Pages ---------------------------------------------------- */

/* Home: hero ------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(40px, 8vw, 88px) 0 clamp(16px, 3vw, 34px);
}
.hero::before {
  content: "";
  position: absolute;
  left: -18%;
  top: -34%;
  width: 620px;
  height: 620px;
  max-width: 120vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 139, 255, .22), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(38px, 7.2vw, 70px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.042em;
  margin-bottom: 22px;
  max-width: 15ch;
}
.hero h1 span {
  background: var(--sheen);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
.hero p {
  max-width: 56ch;
  margin: 0 0 34px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn {
  --btn-h: 52px;
  --btn-px: 26px;
  --btn-fs: 15.5px;
  --btn-r: var(--r-md);
}

/* Home: how it works ------------------------------------------------------ */

.steps-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps-cards h3 {
  margin: 14px 0 7px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--text);
}
.steps-cards h3::before { display: none; }
.steps-cards p { color: var(--text-dim); margin: 0; }

.step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(109, 139, 255, .22), rgba(109, 139, 255, .06));
  color: var(--brand-lift);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--hair), 0 6px 16px -12px var(--brand-glow);
}

.steps {
  color: var(--text-dim);
  margin: 0 0 26px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  counter-increment: step;
  margin: 10px 0;
  padding-left: 34px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(109, 139, 255, .14);
  border: 1px solid rgba(109, 139, 255, .22);
  color: var(--brand-lift);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

/* Home: price ------------------------------------------------------------- */

.price-card {
  text-align: center;
  padding: 44px 26px 38px;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(109, 139, 255, .13), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
}
/* Gradient hairline border drawn with a mask so the fill stays flat. */
.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(109, 139, 255, .6), transparent 42%, rgba(47, 212, 160, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.price-card p { max-width: 46ch; margin: 0 auto; color: var(--text-dim); }
.price-card .actions { justify-content: center; margin-top: 26px; }

.price-big {
  font-size: clamp(52px, 9vw, 68px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff, #8fa4c6);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.price-big span {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  -webkit-text-fill-color: var(--muted);
}

.coins-line {
  margin-top: 16px !important;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--mint);
  text-transform: uppercase;
}

/* Account header ---------------------------------------------------------- */

.account-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.account-head h1 { font-size: 25px; letter-spacing: -.03em; }
.account-head .muted {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 13.8px;
  margin-top: 7px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 19px;
  color: var(--ink-invert);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  flex: none;
  box-shadow:
    0 12px 30px -16px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -3px 10px rgba(0, 0, 0, .22),
    0 0 0 1px rgba(255, 255, 255, .08);
}

/* Revealed secrets: account numbers, addresses, amounts -------------------- */

.account-reveal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(47, 212, 160, .05), transparent 60%),
    rgba(0, 0, 0, .38);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
}
.account-reveal code {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(17px, 3.2vw, 25px);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--mint-lift);
  text-shadow: 0 0 24px rgba(47, 212, 160, .35);
  word-break: break-all;
}
.account-reveal code.addr {
  font-size: clamp(12.5px, 2.1vw, 15px);
  letter-spacing: .04em;
  font-weight: 500;
}

.acct-input {
  font-family: var(--mono) !important;
  font-size: 20px !important;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
}

/* Pay: duration & currency pickers ---------------------------------------- */

.months { margin-top: 16px; gap: 12px; }

.pick {
  position: relative;
  flex: 1 1 122px;
  margin: 0;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .022);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              transform .16s var(--ease), box-shadow .18s var(--ease);
}
.pick:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick strong { display: block; color: var(--text); font-size: 15px; font-weight: 650; }
.pick span { color: var(--muted); font-size: 13.5px; }
.pick.on {
  border-color: rgba(109, 139, 255, .7);
  background: rgba(109, 139, 255, .12);
  box-shadow: 0 0 0 1px rgba(109, 139, 255, .5), 0 14px 30px -22px var(--brand-glow);
}
.pick.on strong { color: #cdd8ff; }
.pick.on span { color: var(--brand-lift); }
.pick:has(input:focus-visible) { outline: 2px solid var(--brand-lift); outline-offset: 2px; }

.coins { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(164px, 1fr)); }

.coin {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .022);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              transform .16s var(--ease), box-shadow .18s var(--ease);
}
.coin:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
.coin strong {
  display: block;
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.coin span { display: block; color: var(--muted); font-size: 13.5px; }
.coin em {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: .01em;
  color: var(--mint);
}
.coin.on {
  border-color: rgba(47, 212, 160, .6);
  background: rgba(47, 212, 160, .09);
  box-shadow: 0 0 0 1px rgba(47, 212, 160, .45), 0 14px 30px -22px var(--mint-glow);
}
/* Check mark on the selected coin. */
.coin.on::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 7px; height: 12px;
  border: solid var(--mint);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* Admin: stats ------------------------------------------------------------ */

.stats { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
/* Six tiles, one row, so the set reads as a single instrument panel. */
@media (min-width: 980px) {
  .stats { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}

.card.stat {
  padding: 20px;
  border-radius: var(--r-md);
}
.stat .n {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: var(--text);
}
.stat .n.ok  { color: var(--mint-lift); }
.stat .n.bad { color: #ff9d9d; }
.stat .l {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}


/* ---------- 12. Motion --------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero h1, .hero p, .hero-actions,
.form-card, .page-title, .page-sub, .account-head {
  animation: rise .6s var(--ease-out) both;
}
.hero p        { animation-delay: .07s; }
.hero-actions  { animation-delay: .14s; }
.page-sub      { animation-delay: .06s; }

/* Sections fade in as they enter the viewport where the browser supports it;
   everywhere else they are simply visible. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section {
      animation: rise .7s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- 13. Responsive ----------------------------------------------- */

@media (max-width: 860px) {
  .account-head > div:last-child { margin-left: 0 !important; width: 100%; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  body::after { background-size: 44px 44px; }

  .topbar { padding: 11px 16px; gap: 10px; }
  .topbar nav { width: 100%; gap: 1px; }
  .topbar nav > a { padding: 7px 10px; font-size: 13.5px; }
  .logout-form { margin-left: auto; }

  main { padding: 28px 16px 64px; }
  .section { margin-top: 48px; }

  .card { padding: 20px; border-radius: var(--r-md); }
  .form-card { margin: 24px auto; padding: 24px; border-radius: var(--r-lg); }

  .hero { padding: 28px 0 6px; }
  .hero h1 { max-width: none; letter-spacing: -.035em; }
  .hero-actions .btn, .actions .btn, .actions form { flex: 1 1 100%; }
  .actions form .btn { width: 100%; }

  .account-head { gap: 14px; }
  .avatar { width: 52px; height: 52px; font-size: 18px; border-radius: 16px; }

  .account-reveal { flex-direction: column; align-items: stretch; text-align: center; padding: 16px; }
  .account-reveal .btn { width: 100%; }

  .price-card { padding: 32px 20px 28px; }

  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
