/* HeistTable — original neon nightlife / tropical evening UI
   GTA 6–inspired palette only; no Rockstar IP or ripped assets. */
:root {
  --bg: #0a0614;
  --bg-mid: #12081f;
  --surface: #16102a;
  --surface-2: #1e1538;
  --ink: #f4eef8;
  --muted: #b5a8c9;
  --border: #3a2a55;
  --border-glow: rgba(255, 45, 149, 0.35);

  --pink: #ff2d95;
  --pink-hot: #ff4eb8;
  --magenta: #e0118a;
  --teal: #2de2c5;
  --aqua: #5ef0e0;
  --sunset: #ff8a3d;
  --sunset-soft: #ffb347;
  --violet: #7b4dff;
  --night: #1a0b2e;

  --accent: var(--pink);
  --accent-hover: var(--pink-hot);
  --accent-soft: rgba(255, 45, 149, 0.16);
  --accent-2: var(--teal);
  --good: var(--teal);
  --good-soft: rgba(45, 226, 197, 0.14);
  --warn: var(--sunset);
  --warn-bg: rgba(255, 138, 61, 0.14);
  --danger: #ff5c7a;
  --danger-soft: rgba(255, 92, 122, 0.14);

  --radius: 14px;
  --shadow:
    0 0 0 1px rgba(255, 45, 149, 0.08),
    0 12px 40px rgba(8, 2, 20, 0.55),
    0 0 48px rgba(123, 77, 255, 0.08);
  --glow-pink: 0 0 24px rgba(255, 45, 149, 0.45);
  --glow-teal: 0 0 20px rgba(45, 226, 197, 0.35);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(255, 45, 149, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(45, 226, 197, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 70% 100%, rgba(255, 138, 61, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 40% 60%, rgba(123, 77, 255, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 45%, #0d0718 100%);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Soft grain overlay (CSS-only, no asset) */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Subtle scanlines */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--aqua);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  background: rgba(16, 10, 32, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 45, 149, 0.12), 0 8px 32px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 45, 149, 0.35);
}

.logo span {
  color: var(--teal);
  font-weight: 600;
  text-shadow: 0 0 16px rgba(45, 226, 197, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-pro {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--good-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 226, 197, 0.4);
  box-shadow: var(--glow-teal);
}

.badge-pro.is-visible {
  display: inline-flex;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 55%, #c40a7a 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--glow-pink), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--pink-hot) 0%, var(--pink) 60%, var(--magenta) 100%);
  box-shadow: 0 0 32px rgba(255, 45, 149, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(30, 21, 56, 0.9);
  border-color: rgba(45, 226, 197, 0.35);
  color: var(--ink);
  box-shadow: 0 0 12px rgba(45, 226, 197, 0.08);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--teal);
  background: rgba(45, 226, 197, 0.1);
  color: var(--aqua);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding-inline: 0.5rem;
}

.btn-ghost:hover {
  color: var(--pink-hot);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border: none;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.btn-danger-ghost:hover {
  background: var(--danger-soft);
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 2.85rem 0 2.15rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 75% 70% at 50% -30%, rgba(255, 45, 149, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 80%, rgba(255, 138, 61, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 35% 45% at 10% 90%, rgba(45, 226, 197, 0.12) 0%, transparent 50%),
    transparent;
}

.hero .wrap {
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4.2vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
  background: linear-gradient(105deg, #fff 10%, var(--pink-hot) 45%, var(--aqua) 78%, var(--sunset-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 45, 149, 0.35));
}

.hero .sub {
  margin: 0 auto 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.privacy-note {
  margin-top: 1.15rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.privacy-note strong {
  color: var(--aqua);
  font-weight: 600;
}

/* Main layout */
main {
  padding: 1.75rem 0 3.5rem;
}

main .wrap {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  main .wrap {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }

  .sticky-card {
    position: sticky;
    top: 4.5rem;
  }
}

.card {
  background: linear-gradient(165deg, rgba(30, 21, 56, 0.95) 0%, rgba(18, 12, 36, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.12), transparent 40%, transparent 60%, rgba(45, 226, 197, 0.08));
  opacity: 0.9;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card .hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-hot);
  margin: 1.25rem 0 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  text-shadow: 0 0 12px rgba(255, 45, 149, 0.35);
}

.section-label:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
  color: #e8dff2;
}

.field .help {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.22rem;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 6, 20, 0.65);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
  color: #7a6b90;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.22), 0 0 16px rgba(255, 45, 149, 0.2);
}

select {
  cursor: pointer;
}

textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

@media (max-width: 560px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

/* Members */
.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.member-row {
  background: rgba(10, 6, 22, 0.55);
  border: 1px solid rgba(58, 42, 85, 0.95);
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 45, 149, 0.06);
}

.member-row:hover {
  border-color: rgba(255, 45, 149, 0.35);
}

.member-row .member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.member-row .member-index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(45, 226, 197, 0.35);
}

.member-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.5rem;
}

.member-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.55fr;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .member-grid,
  .member-grid-2 {
    grid-template-columns: 1fr;
  }
}

.member-row .field {
  margin-bottom: 0;
}

.member-row .field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.members-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.cut-sum {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.cut-sum.is-ok {
  color: var(--teal);
  text-shadow: 0 0 12px rgba(45, 226, 197, 0.4);
}

.cut-sum.is-bad {
  color: var(--sunset);
  text-shadow: 0 0 10px rgba(255, 138, 61, 0.35);
}

.cut-warn {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--sunset);
  background: var(--warn-bg);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 138, 61, 0.35);
}

/* Cut table */
.cut-table-wrap {
  overflow-x: auto;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 0 0 24px rgba(123, 77, 255, 0.06);
}

.cut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cut-table th,
.cut-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cut-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pink-hot);
  background: rgba(255, 45, 149, 0.08);
  font-weight: 700;
}

.cut-table tbody tr:last-child td {
  border-bottom: none;
}

.cut-table tbody tr:hover td {
  background: rgba(45, 226, 197, 0.04);
}

.cut-table .empty-row td {
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
}

.cut-table .pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--pink-hot);
  text-shadow: 0 0 10px rgba(255, 45, 149, 0.35);
}

.cut-table .pounds {
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(45, 226, 197, 0.3);
}

.need-more {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--sunset);
  background: var(--warn-bg);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 138, 61, 0.35);
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.copy-toast {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
  align-self: center;
  text-shadow: 0 0 10px rgba(45, 226, 197, 0.4);
}

.copy-toast.is-visible {
  opacity: 1;
}

.lock-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 2, 14, 0.78);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: linear-gradient(165deg, #1e1538 0%, #12081f 100%);
  border: 1px solid rgba(255, 45, 149, 0.4);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 45, 149, 0.2);
  position: relative;
}

.modal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--ink), var(--pink-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--pink-hot);
}

.modal .price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-hot);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 18px rgba(255, 45, 149, 0.45);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.unlock-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.unlock-error.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: linear-gradient(0deg, rgba(255, 138, 61, 0.06), transparent 60%);
}

.site-footer strong {
  color: var(--ink);
}

/* Print-friendly roster (browser print) */
@media print {
  .site-header,
  .hero,
  .form-col,
  .results-actions,
  .lock-hint,
  .site-footer,
  .modal-backdrop,
  body::before,
  body::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .results-col {
    width: 100%;
  }

  .card {
    box-shadow: none;
    border: none;
    background: #fff;
  }

  .card::before {
    display: none;
  }

  .hero h1,
  .modal h3 {
    color: #111;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    filter: none;
  }
}

/* Prefer reduced motion: tone down glows */
@media (prefers-reduced-motion: reduce) {
  .btn,
  input,
  select,
  textarea {
    transition: none;
  }
}

/* —— Availability planner —— */
.avail-full {
  grid-column: 1 / -1;
}

.avail-card .hint {
  max-width: 42rem;
}

.avail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.avail-toolbar .field {
  margin-bottom: 0;
  min-width: 12rem;
}

.avail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.leg {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.leg-free {
  color: var(--teal);
  background: var(--good-soft);
  border-color: rgba(45, 226, 197, 0.4);
}

.leg-maybe {
  color: var(--sunset);
  background: var(--warn-bg);
  border-color: rgba(255, 138, 61, 0.4);
}

.leg-busy {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(255, 92, 122, 0.35);
}

.best-slots {
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 226, 197, 0.25);
  background: rgba(45, 226, 197, 0.06);
}

.best-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.best-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.55rem;
  text-shadow: 0 0 10px rgba(45, 226, 197, 0.3);
}

.best-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.best-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(10, 6, 20, 0.45);
  border: 1px solid var(--border);
}

.best-item.is-strong {
  border-color: rgba(45, 226, 197, 0.45);
  box-shadow: 0 0 16px rgba(45, 226, 197, 0.12);
}

.best-item.is-all-free {
  border-color: rgba(45, 226, 197, 0.65);
  background: rgba(45, 226, 197, 0.12);
  box-shadow: var(--glow-teal);
}

.best-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.best-main strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.best-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.avail-grid-wrap {
  margin-top: 0.25rem;
}

.avail-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 6, 20, 0.35);
}

.avail-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.82rem;
}

.avail-table th,
.avail-table td {
  padding: 0.45rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.avail-table thead th {
  text-align: center;
  background: rgba(255, 45, 149, 0.08);
  color: var(--pink-hot);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.avail-table .day-lab {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
}

.avail-table .day-sub {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
}

.avail-member-col {
  text-align: left !important;
  min-width: 8.5rem;
  max-width: 10rem;
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(22, 16, 42, 0.97);
  border-right: 1px solid var(--border);
}

.avail-table thead .avail-member-col {
  z-index: 3;
  background: rgba(30, 16, 48, 0.98);
}

.avail-member-name {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.avail-note {
  width: 100%;
  font: inherit;
  font-size: 0.75rem !important;
  padding: 0.35rem 0.45rem !important;
  border-radius: 7px !important;
}

.slot-stack {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 4.4rem;
}

.slot-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(16, 10, 32, 0.8);
  color: var(--muted);
  cursor: pointer;
  padding: 0.38rem 0.3rem;
  min-height: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.slot-btn .slot-short {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.slot-btn .slot-status {
  font-size: 0.72rem;
  font-weight: 700;
}

.slot-btn.status-unset:hover {
  border-color: rgba(255, 45, 149, 0.4);
  color: var(--ink);
}

.slot-btn.status-free {
  background: rgba(45, 226, 197, 0.18);
  border-color: rgba(45, 226, 197, 0.55);
  color: var(--teal);
  box-shadow: 0 0 10px rgba(45, 226, 197, 0.15);
}

.slot-btn.status-maybe {
  background: rgba(255, 138, 61, 0.16);
  border-color: rgba(255, 138, 61, 0.5);
  color: var(--sunset);
}

.slot-btn.status-busy {
  background: rgba(255, 92, 122, 0.14);
  border-color: rgba(255, 92, 122, 0.4);
  color: var(--danger);
  opacity: 0.85;
}

.slot-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.35);
}

.avail-help {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .slot-btn {
    min-height: 2.75rem;
  }

  .avail-member-col {
    min-width: 7.2rem;
  }
}

/* —— Pro: live sync + Discord —— */
.sub-pro {
  margin-top: -0.5rem !important;
  font-size: 0.95rem !important;
  max-width: 38rem;
  margin-inline: auto;
}

.sub-pro strong {
  color: var(--pink-hot);
}

.pro-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--pink-hot);
  border: 1px solid rgba(255, 45, 149, 0.35);
}

.pro-card .pro-bullets {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pro-card .pro-bullets li {
  margin-bottom: 0.4rem;
}

.pro-card .pro-bullets strong {
  color: var(--ink);
}

.pro-sync-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.sync-status {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

.sync-status.is-err {
  color: var(--danger);
}

.sync-help {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.sync-help code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--aqua);
}

.warn-secret {
  color: var(--sunset) !important;
}

.modal-bullets {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-bullets li {
  margin-bottom: 0.25rem;
}

.pro-locked,
.pro-unlocked {
  margin-top: 0.5rem;
}
