/* ==========================================================================
   Jars Mt. Pleasant Secret Santa — stylesheet
   Mobile-first, no external assets (works fully offline on the Pi hotspot)
   ========================================================================== */

:root {
  --bg: #0a1d14;
  --bg-2: #10291d;
  --surface: #ffffff;
  --surface-2: #f5f7f3;
  --border: #e2e7e0;
  --border-strong: #c9d2c8;

  --ink: #14211a;
  --ink-2: #47564d;
  --ink-3: #7a887f;
  --on-dark: #eef4ef;
  --on-dark-2: #a9bcb0;

  --green: #1d8a59;
  --green-600: #167048;
  --green-50: #e7f5ed;
  --red: #c8102e;
  --red-600: #a30c25;
  --red-50: #fdecee;
  --gold: #e6b24c;
  --gold-50: #fff6e2;
  --gold-ink: #7f5300;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 2px rgba(20, 33, 26, .06), 0 2px 8px rgba(20, 33, 26, .06);
  --ring: 0 0 0 4px rgba(29, 138, 89, .2);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background-color: var(--bg-2); }
[data-theme="dark"] {
  --surface: #132a1e;
  --surface-2: #193828;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --ink: #eef4ef;
  --ink-2: #b5c7bc;
  --ink-3: #8a9c90;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark);
  background-color: var(--bg-2);
  background-image:
    radial-gradient(1200px 600px at 10% 0%, rgba(29, 138, 89, .28), transparent 60%),
    radial-gradient(900px 500px at 100% 8%, rgba(200, 16, 46, .18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 600px, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--green); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --------------------------------------------------------------- Snow */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.flake {
  position: absolute; top: -24px; color: #fff; user-select: none;
  animation: fall linear infinite;
}
@keyframes fall { to { transform: translate3d(30px, 110vh, 0) rotate(360deg); } }

/* ------------------------------------------------------------- Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 22, 15, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(230, 178, 76, 0.2);
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45), inset 0 -1px 0 0 rgba(29, 138, 89, 0.22);
  padding-top: env(safe-area-inset-top);
  transition: background .2s ease;
}

.topbar-inner {
  max-width: 1040px; margin: 0 auto;
  padding: 10px 20px;
  min-height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--on-dark); min-width: 0;
  transition: transform .15s ease;
}
.brand:hover { transform: translateY(-1px); }

.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 12px; font-size: 20px;
  background: linear-gradient(135deg, #d81636 0%, #88091d 100%);
  border: 1px solid rgba(230, 178, 76, 0.35);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong {
  font-size: 15px; font-weight: 700; letter-spacing: -0.015em; color: #fff;
  white-space: nowrap;
}
.brand-text small {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; color: var(--on-dark-2); white-space: nowrap;
}
.brand-sub-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); display: inline-block;
  box-shadow: 0 0 6px var(--gold);
}

/* Desktop Pill Dock */
.nav-desktop { display: flex; align-items: center; }
.nav-pill-dock {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  color: rgba(238, 244, 239, 0.85); text-decoration: none;
  font-size: 13.5px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}
.nav-link.active {
  background: linear-gradient(135deg, rgba(29, 138, 89, 0.9), rgba(22, 112, 72, 0.95));
  color: #fff;
  border-color: rgba(230, 178, 76, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nav-link-danger:hover {
  background: rgba(200, 16, 46, 0.2);
  color: #ff8597;
}

.audio-toggle {
  background: rgba(230, 178, 76, 0.14);
  border: 1px solid rgba(230, 178, 76, 0.32);
  color: var(--gold);
  font-family: inherit;
  cursor: pointer;
}
.audio-toggle:hover {
  background: rgba(230, 178, 76, 0.24);
  color: #ffe39f;
  transform: translateY(-1px);
}
.audio-toggle.is-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--on-dark-2);
  opacity: .8;
}

.audio-track-btn {
  background: rgba(29, 138, 89, 0.2);
  border: 1px solid rgba(29, 138, 89, 0.45);
  color: #a3e635;
  font-family: inherit;
  cursor: pointer;
  max-width: 175px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.audio-track-btn:hover {
  background: rgba(29, 138, 89, 0.32);
  color: #bef264;
  border-color: rgba(29, 138, 89, 0.65);
  transform: translateY(-1px);
}
.audio-track-btn.is-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--on-dark-2);
  opacity: .75;
}
.audio-track-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-track-btn-mobile {
  padding: 7px 11px;
  font-size: 16px;
  min-width: 40px;
  justify-content: center;
}
.nav-mobile-audio-dock {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.audio-track-btn-drawer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(29, 138, 89, 0.15);
  border: 1px solid rgba(29, 138, 89, 0.35);
  color: #a3e635;
  text-align: left;
}
.audio-track-drawer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.audio-track-drawer-meta strong {
  font-size: 14px;
  color: #eef4ef;
}
.audio-track-drawer-sub {
  font-size: 11.5px;
  color: var(--on-dark-2);
}

/* Toast popup notification */
.santa-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(16, 41, 29, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 178, 76, 0.5);
  color: #ffe39f;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(230, 178, 76, 0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.santa-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Controls & Drawer */
.topbar-mobile-controls { display: none; align-items: center; gap: 8px; }
.audio-toggle-mobile {
  padding: 7px 11px;
  font-size: 16px;
  min-width: 40px;
  justify-content: center;
}

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer; padding: 0;
  transition: all .2s ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(230, 178, 76, 0.4);
}
.nav-toggle-icon {
  position: relative; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: background .2s ease;
}
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after  { bottom: -6px; }

.nav-toggle.is-active .nav-toggle-icon { background: transparent; }
.nav-toggle.is-active .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-icon::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
  background: rgba(8, 22, 15, 0.98);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1.5px solid rgba(230, 178, 76, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85);
  padding: 14px 16px 22px;
  animation: slideDown .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile-inner {
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}

.nav-mobile-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(230, 178, 76, 0.25);
  border-radius: 14px;
}
.nav-mobile-user .user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(230, 178, 76, 0.15);
  border: 1px solid rgba(230, 178, 76, 0.35);
  color: var(--gold);
  flex-shrink: 0;
}
.nav-mobile-user .user-avatar svg {
  width: 20px;
  height: 20px;
}
.nav-mobile-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold);
}
.nav-mobile-item .nav-icon svg {
  width: 20px;
  height: 20px;
}
.nav-mobile-item.active .nav-icon {
  color: #fff;
}
.nav-mobile-danger .nav-icon {
  color: #ff8597;
}
.nav-mobile-user .user-meta { display: flex; flex-direction: column; }
.nav-mobile-user strong { font-size: 15px; color: #fff; }
.nav-mobile-user small { font-size: 12px; color: var(--gold); }

.nav-mobile-links {
  display: flex; flex-direction: column; gap: 8px;
}

.nav-mobile-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  text-decoration: none;
  font-size: 15px; font-weight: 600;
  transition: all .15s ease;
}
.nav-mobile-item:hover, .nav-mobile-item:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(230, 178, 76, 0.3);
}
.nav-mobile-item.active {
  background: linear-gradient(135deg, rgba(29, 138, 89, 0.8), rgba(22, 112, 72, 0.9));
  border-color: rgba(230, 178, 76, 0.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.nav-mobile-danger {
  color: #ff8597;
  border-color: rgba(200, 16, 46, 0.25);
}
.nav-mobile-danger:hover {
  background: rgba(200, 16, 46, 0.18);
  color: #fff;
}

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .topbar-mobile-controls { display: flex; }
  .topbar-inner { padding: 8px 16px; min-height: 56px; }
  .brand-text small { display: none; }
}

/* -------------------------------------------------------------- Layout */
.main { position: relative; z-index: 1; flex: 1; width: 100%; padding: 16px 14px 32px; }
.container { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.container-narrow { max-width: 460px; margin: 28px auto 44px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head h1 { font-size: clamp(24px, 4.5vw, 32px); margin-top: 4px; font-weight: 800; letter-spacing: -0.015em; }
.page-head .muted { color: var(--on-dark-2); margin-top: 4px; }

.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-red { color: var(--red); }
.muted { color: var(--ink-3); }
.text-amber { color: var(--gold-ink); font-weight: 600; }
.strong { font-weight: 700; }
.right { text-align: right; }
.center { text-align: center; }

/* --------------------------------------------------------------- Cards */
.card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 18px 20px;
  border: 1px solid rgba(226, 231, 224, 0.95);
  box-shadow:
    0 14px 34px -10px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow:
    0 18px 40px -10px rgba(0, 0, 0, 0.48),
    0 3px 8px rgba(0, 0, 0, 0.1);
}
.card h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.status-actions .btn { margin-top: 0; }
@media (max-width: 480px) { .card { padding: 14px 15px; border-radius: 16px; } }

/* ------------------------------------------------------------- Buttons */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; min-height: 44px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background .15s, box-shadow .15s, border-color .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 14px 22px; min-height: 52px; font-size: 16px; }
.btn-sm { padding: 8px 12px; min-height: 38px; font-size: 14px; }
.btn-xs { padding: 6px 10px; min-height: 32px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-block { width: 100%; }
.grow { flex: 1; }

.btn-primary { background: linear-gradient(180deg, #d81636, var(--red)); color: #fff; box-shadow: 0 8px 20px -8px rgba(200, 16, 46, .7); }
.btn-primary:hover:not(:disabled) { background: var(--red-600); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(29, 138, 89, .8); }
.btn-green:hover:not(:disabled) { background: var(--green-600); }
.btn-light { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
.btn-light:hover:not(:disabled) { background: #eaeee8; border-color: var(--border-strong); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--on-dark); border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-danger { background: var(--red-50); color: var(--red-600); border-color: #f6c7cf; }
.btn-danger:hover { background: #fadbe0; }
.btn-danger-ghost { background: transparent; color: var(--red-600); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--red-50); }

.link-button {
  background: none; border: 0; padding: 8px; font: inherit; font-size: 14px;
  color: var(--on-dark-2); text-decoration: underline; cursor: pointer;
}
.link-button:hover { color: #fff; }

/* --------------------------------------------------------------- Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1.4fr; } }
.label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--ink-3); }
.input {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink); background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: #9aa69e; }
.input:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: var(--ring); }
textarea.input { resize: vertical; min-height: 96px; }
select.input {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2347564d' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-sm { min-height: 38px; padding: 7px 12px; font-size: 15px; max-width: 220px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .btn { flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .65; }

/* ---------------------------------------------------------------- Auth */
.card-auth { padding: 28px 24px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1 { font-size: 24px; margin: 8px 0 6px; }
.auth-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; font-size: 32px;
  border-radius: 20px; background: var(--green-50);
}
.card-auth.center .auth-icon { margin-bottom: 8px; }
.card-auth.center h1 { font-size: 24px; margin-bottom: 8px; }
.card-auth.center .btn { margin-top: 18px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; }
.auth-foot a { font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------- Flash messages */
.flashes {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  margin-inline: auto;
  max-width: 560px;
  width: calc(100vw - 24px);
  box-sizing: border-box;
  z-index: 1250;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flash {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.6);
  border-left: 4px solid; background: #fff; color: var(--ink);
  animation: host-popup-drop .35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity .25s, transform .25s;
  overflow-wrap: anywhere;
}
.flash-hide { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.flash-success { border-color: var(--green); background: var(--green-50); }
.flash-danger  { border-color: var(--red);   background: var(--red-50); }
.flash-warning { border-color: var(--gold);  background: var(--gold-50); }
.flash-info    { border-color: #3b82f6;      background: #eef4ff; }
.flash-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 0 2px; }

/* ----------------------- Bundled "Hello User" + Host Dropdown Popup ----------------------- */
.host-announcement-popup {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(560px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  z-index: 1300;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(230, 178, 76, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(16, 42, 29, 0.97) 0%, rgba(8, 22, 15, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(230, 178, 76, 0.55);
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow:
    0 24px 55px -12px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(230, 178, 76, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #f8faf8;
  animation: host-popup-drop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.host-announcement-popup.is-hiding {
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  pointer-events: none;
}

@keyframes host-popup-drop {
  0% {
    opacity: 0;
    transform: translateY(-28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.host-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.host-popup-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.host-popup-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 20px;
  border-radius: 12px;
  background: rgba(230, 178, 76, 0.16);
  border: 1px solid rgba(230, 178, 76, 0.35);
  box-shadow: 0 0 12px rgba(230, 178, 76, 0.25);
  flex-shrink: 0;
}

.host-popup-greeting {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.host-popup-sub {
  display: block;
  font-size: 11.5px;
  color: var(--on-dark-2);
  font-weight: 500;
  margin-top: 2px;
}

.host-popup-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-dark-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.host-popup-close:hover {
  background: rgba(230, 76, 76, 0.2);
  border-color: rgba(230, 76, 76, 0.45);
  color: #fff;
  transform: scale(1.08);
}

.host-popup-body {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(230, 178, 76, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.host-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

.host-popup-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(248, 250, 248, 0.95);
}

.host-popup-footer {
  display: flex;
  justify-content: flex-end;
}

.host-popup-ack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(230, 178, 76, 0.18);
  border: 1px solid rgba(230, 178, 76, 0.45);
  color: #fff;
  transition: all 0.2s ease;
}

.host-popup-ack-btn:hover {
  background: var(--gold);
  color: #1a2215;
  box-shadow: 0 0 14px rgba(230, 178, 76, 0.4);
}

@media (max-width: 480px) {
  .flashes {
    top: 60px;
  }
  .host-announcement-popup {
    top: 60px;
    padding: 14px 14px 12px;
    border-radius: 16px;
  }
  .host-popup-greeting {
    font-size: 14.5px;
  }
  .host-popup-text {
    font-size: 13px;
  }
}
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } }

/* -------------------------------------------------------------- Notices */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid; color: var(--ink); font-size: 15px;
}
.notice strong { display: block; margin-bottom: 2px; }
.notice p { color: var(--ink-2); font-size: 14px; }
.notice-icon { font-size: 22px; line-height: 1.2; }
.notice-green { background: var(--green-50); border-color: #b9e2cb; }
.notice-gold  { background: var(--gold-50);  border-color: #f2d9a2; }
.notice-red   { background: var(--red-50);   border-color: #f3c3cc; }

/* --------------------------------------------------------------- Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge-lg { padding: 7px 14px; font-size: 14px; }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-amber { background: var(--gold-50); color: var(--gold-ink); }
.badge-gold  { background: var(--gold-50); color: var(--gold-ink); border: 1px solid rgba(230, 178, 76, 0.45); }
.badge-red   { background: var(--red-50); color: var(--red-600); }
.badge-gray  { background: #eef1ed; color: var(--ink-2); }
.preview-badge-green { background: rgba(29, 138, 89, 0.2) !important; color: #00e676 !important; border-color: rgba(29, 138, 89, 0.5) !important; }
.preview-badge-red   { background: rgba(200, 16, 46, 0.2) !important; color: #ff8597 !important; border-color: rgba(200, 16, 46, 0.5) !important; }
.preview-badge-amber { background: rgba(230, 178, 76, 0.2) !important; color: #ffd56b !important; border-color: rgba(230, 178, 76, 0.5) !important; }

/* ---------------------------------------------------------------- Hero */
.hero { max-width: 740px; margin: 12px auto 28px; text-align: center; }
.hero h1 { font-size: clamp(34px, 8vw, 56px); font-weight: 800; margin: 10px 0 14px; letter-spacing: -.02em; }
.hero .accent {
  background: linear-gradient(90deg, #ff4d6a, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17px; color: var(--on-dark-2); max-width: 520px; margin: 0 auto; }

/* ------------------------------------------- Flip Clock Showcase Piece */
.flip-showcase {
  position: relative;
  max-width: 640px;
  margin: 28px auto 26px;
  padding: 24px 22px 20px;
  border-radius: 24px;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(230, 178, 76, .16), transparent 70%),
    linear-gradient(180deg, rgba(16, 42, 29, .92) 0%, rgba(9, 25, 17, .96) 100%);
  border: 1.5px solid rgba(230, 178, 76, .38);
  box-shadow:
    0 24px 50px -14px rgba(0, 0, 0, .65),
    0 0 36px -8px rgba(230, 178, 76, .22),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}
.flip-showcase-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(230, 178, 76, .14);
  border: 1px solid rgba(230, 178, 76, .32);
  margin-bottom: 18px;
}
.flip-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}
.flip-showcase-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.flip-clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.flip-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* Split-flap mechanical tile */
.flip-card {
  --card-w: 104px;
  --card-h: 108px;
  --card-fs: 56px;
  --card-radius: 14px;
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-radius);
  font-variant-numeric: tabular-nums;
  font-size: var(--card-fs);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #f8faf8;
  perspective: 460px;
  user-select: none;
  box-shadow:
    0 4px 0 #07120c,
    0 8px 0 #050c08,
    0 16px 28px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(230, 178, 76, .28);
}

/* Center seam line across the split flap */
.flip-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: rgba(4, 11, 7, .92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
  z-index: 6;
  pointer-events: none;
}

/* Side mechanical hinge pins */
.flip-hinge {
  position: absolute;
  top: calc(50% - 6px);
  width: 5px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #9caea3 0%, #3a4a40 50%, #18231c 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  z-index: 7;
}
.flip-hinge-l { left: -2px; }
.flip-hinge-r { right: -2px; }

.flip-top,
.flip-bottom,
.flip-leaf-front,
.flip-leaf-back {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-top,
.flip-leaf-front {
  top: 0;
  background: linear-gradient(180deg, #213d2d 0%, #172d20 100%);
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.flip-bottom,
.flip-leaf-back {
  bottom: 0;
  background: linear-gradient(180deg, #13261b 0%, #1c3526 100%);
  border-bottom-left-radius: var(--card-radius);
  border-bottom-right-radius: var(--card-radius);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.flip-top span,
.flip-bottom span,
.flip-leaf-front span,
.flip-leaf-back span {
  position: absolute;
  left: 0;
  right: 0;
  height: 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55);
}

.flip-top span,
.flip-leaf-front span { top: 0; }
.flip-bottom span,
.flip-leaf-back span { bottom: 0; }

.flip-leaf-front {
  z-index: 3;
  transform-origin: 50% 100%;
  transform: rotateX(0deg);
  will-change: transform;
  backface-visibility: hidden;
}
.flip-leaf-back {
  z-index: 4;
  transform-origin: 50% 0%;
  transform: rotateX(90deg);
  will-change: transform;
  backface-visibility: hidden;
}

.flip-card.is-flipping .flip-leaf-front {
  animation: flap-front .28s ease-in forwards;
}
.flip-card.is-flipping .flip-leaf-back {
  animation: flap-back .28s ease-out .28s forwards;
}

@keyframes flap-front {
  0%   { transform: rotateX(0deg); filter: brightness(1); }
  100% { transform: rotateX(-90deg); filter: brightness(.55); }
}
@keyframes flap-back {
  0%   { transform: rotateX(90deg); filter: brightness(.65); }
  100% { transform: rotateX(0deg); filter: brightness(1); }
}

/* Colon separator dots */
.flip-sep {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  height: 108px;
  padding: 0 2px;
}
.flip-sep i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(230, 178, 76, .75);
  will-change: opacity, transform;
  animation: sep-glow 1.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes sep-glow {
  0%, 100% { opacity: .95; transform: scale(1); }
  50%      { opacity: .22; transform: scale(.82); }
}

/* Footer pills inside the showcase */
.flip-showcase-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.flip-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--on-dark-2);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.flip-meta-pill strong { color: #fff; font-weight: 700; }
.meta-icon { font-size: 15px; }

.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  .flip-showcase { padding: 18px 12px 16px; border-radius: 20px; margin: 22px auto; }
  .flip-clock { gap: 6px; }
  .flip-card {
    --card-w: 68px;
    --card-h: 76px;
    --card-fs: 36px;
    --card-radius: 11px;
  }
  .flip-sep { height: 76px; gap: 10px; padding: 0; }
  .flip-sep i { width: 5px; height: 5px; }
  .flip-label { font-size: 10px; letter-spacing: .1em; }
  .flip-meta-pill { font-size: 12px; padding: 6px 11px; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 360px) {
  .flip-card { --card-w: 58px; --card-h: 66px; --card-fs: 30px; }
  .flip-sep { height: 66px; }
}

.steps { max-width: 880px; margin: 28px auto 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.step h3 { font-size: 17px; margin: 10px 0 6px; }
.step p { font-size: 14px; color: var(--on-dark-2); }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #3b2a00; font-weight: 800; font-size: 14px;
}

/* ----------------------------------------------------- Progress tracker */
.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tracker li {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .05); color: var(--on-dark-2); border: 1px solid rgba(255, 255, 255, .08);
}
.tracker-dot {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 800;
}
.tracker li.done { color: #fff; }
.tracker li.done .tracker-dot { background: var(--green); color: #fff; }
.tracker li.current { color: #fff; border-color: rgba(230, 178, 76, .55); }
.tracker li.current .tracker-dot { background: var(--gold); color: #3b2a00; }
@media (max-width: 480px) {
  .tracker li { flex-direction: column; text-align: center; gap: 4px; padding: 10px 4px; font-size: 12px; }
}

/* --------------------------------------------------------- Status cards */
.status { text-align: center; padding: 30px 22px; }
.status h2 { font-size: 22px; margin: 8px 0; }
.status p { max-width: 460px; margin: 0 auto 6px; }
.status .btn { margin-top: 16px; }
.status-icon { font-size: 42px; }
.status-action { border: 2px solid var(--gold); }
.countdown-line { font-weight: 700; color: var(--gold-ink); margin-top: 8px !important; }

/* --------------------------------------------------------------- Reveal */
.reveal { position: relative; overflow: hidden; text-align: center; border: 2px solid var(--gold); }
.reveal h2 { font-size: 22px; margin: 6px 0 18px; }
.reveal-cover {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 36px 20px; border: 0; border-radius: var(--radius); cursor: pointer;
  font: inherit; color: #fff;
  background:
    repeating-linear-gradient(90deg, transparent 0 46%, rgba(230, 178, 76, .9) 46% 54%, transparent 54% 100%),
    linear-gradient(135deg, #d81636, #7d0a1d);
  box-shadow: 0 14px 30px -10px rgba(200, 16, 46, .7);
  transition: transform .15s;
}
.reveal-cover:hover { transform: scale(1.01); }
.reveal-cover strong { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.reveal-cover small { opacity: .85; }
.reveal-gift { font-size: 56px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.reveal-cover-locked {
  cursor: default;
  background:
    repeating-linear-gradient(90deg, transparent 0 46%, rgba(230, 178, 76, .55) 46% 54%, transparent 54% 100%),
    linear-gradient(135deg, #1b3b2b 0%, #0a1b12 100%);
  border: 2px dashed rgba(230, 178, 76, .65);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, .55), 0 14px 30px -10px rgba(0, 0, 0, .55);
}
.reveal-cover-locked:hover { transform: none; }
.reveal-gift-locked { filter: drop-shadow(0 4px 12px rgba(230, 178, 76, .4)); }
.reveal-locked-note {
  max-width: 560px;
  margin: 16px auto 4px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Suspenseful Roulette Reveal Stage */
.reveal-stage {
  padding: 24px 18px 22px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, #20422f 0%, #0b1d14 78%);
  color: #fff;
  border: 1.5px solid rgba(230, 178, 76, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 34px -10px rgba(5, 16, 10, .65);
  animation: pop .25s ease-out;
}
.stage-lights {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.stage-lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  animation: bulb-twinkle .9s ease-in-out infinite alternate;
}
.stage-lights span:nth-child(3n+1) { background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; animation-delay: 0s; }
.stage-lights span:nth-child(3n+2) { background: #5be09a; box-shadow: 0 0 10px #5be09a; animation-delay: .3s; }
.stage-lights span:nth-child(3n)   { background: #e6b24c; box-shadow: 0 0 10px #e6b24c; animation-delay: .6s; }
@keyframes bulb-twinkle {
  0%   { opacity: .35; transform: scale(.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

.stage-icon {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 6px;
  animation: stage-wobble .65s ease-in-out infinite alternate;
}
@keyframes stage-wobble {
  0%   { transform: rotate(-6deg) scale(.96); }
  100% { transform: rotate(6deg) scale(1.05); }
}

.stage-status {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.roulette-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.roulette-ptr {
  font-size: 18px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(230, 178, 76, .8);
  flex: none;
  user-select: none;
}

.roulette-window {
  flex: 1;
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #07120c 0%, #12281c 50%, #07120c 100%);
  border: 2px solid rgba(230, 178, 76, .45);
  box-shadow:
    inset 0 6px 14px rgba(0, 0, 0, .75),
    0 0 22px rgba(230, 178, 76, .18);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, background .25s, transform .25s;
}
.roulette-window.is-slowing {
  border-color: var(--gold);
  box-shadow:
    inset 0 6px 14px rgba(0, 0, 0, .75),
    0 0 28px rgba(230, 178, 76, .45);
}
.roulette-window.is-locked {
  background: linear-gradient(135deg, #b80d29 0%, #7d0a1d 100%);
  border-color: #ffe08a;
  box-shadow:
    0 0 0 4px rgba(230, 178, 76, .35),
    0 0 36px rgba(230, 178, 76, .85);
  transform: scale(1.03);
}

.roulette-name {
  font-size: clamp(24px, 6.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #f8faf8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.roulette-name.tick-pop {
  animation: tick-slide .09s ease-out;
}
.roulette-name.tick-heavy {
  color: #ffe39f;
  animation: tick-bounce .28s cubic-bezier(0.22, 1, 0.36, 1);
}
.roulette-name.is-locked {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  animation: winner-lock .5s cubic-bezier(0.18, 1.25, 0.4, 1);
}

@keyframes tick-slide {
  0%   { opacity: .35; transform: translateY(-14px) scale(.94); filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes tick-bounce {
  0%   { opacity: .4; transform: translateY(-20px) scale(.9); }
  65%  { opacity: 1; transform: translateY(3px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes winner-lock {
  0%   { transform: scale(.75); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.stage-meter {
  max-width: 340px;
  height: 7px;
  margin: 16px auto 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.stage-meter span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--gold), #ff5c77);
  transition: width .22s ease-out;
}
.stage-sub {
  font-size: 13px;
  color: var(--on-dark-2);
  margin: 0;
}

/* Final Revealed Body & Confetti */
.reveal-body { position: relative; }
.reveal-body.pop { animation: pop .4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.95); } }

.reveal-badge {
  display: inline-block;
  margin: 0 auto 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-50);
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.recipient-name {
  font-size: clamp(32px, 9vw, 48px); font-weight: 800; color: var(--red); letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.budget { margin: 4px 0 18px; color: var(--ink-2); }
.shh { margin: 18px 0 12px; font-weight: 600; color: var(--red-600); }
.reveal-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.confetti-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.confetti-piece {
  position: absolute;
  top: 42px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-pop 1.35s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}
@keyframes confetti-pop {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) * -1.4)) rotate(var(--rot)) scale(.7); }
}

/* -------------------------------------------------------- Preference list */
.prefs { margin: 0; display: grid; gap: 0; text-align: left; }
.pref {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.pref:first-child { border-top: 0; }
.pref dt { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.pref dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 480px) {
  .pref { grid-template-columns: 1fr; gap: 6px; }
}
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: #eef1ed; color: var(--ink); font-size: 13px; font-weight: 600;
}
.tag-green { background: var(--green-50); color: var(--green-600); }
.tag-red   { background: var(--red-50); color: var(--red-600); }
.tag-gold  { background: var(--gold-50); color: var(--gold-ink); }
.note { display: block !important; width: 100%; padding: 10px 12px; border-radius: var(--radius-xs); font-weight: 500; }
.note-green { background: var(--green-50); color: #134b31; }
.note-red { background: var(--red-50); color: var(--red-600); }

/* -------------------------------------------------------------- Wishlist */
.wishlist-fields { display: flex; flex-direction: column; gap: 14px; }
.progress {
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 64px; z-index: 5;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(8, 22, 15, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
}
@media (max-width: 640px) { .progress { top: 104px; } }
.progress-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #4cd08e); transition: width .3s; }
.progress-text { font-size: 13px; font-weight: 700; color: var(--on-dark); white-space: nowrap; }

.q { padding: 20px; transition: box-shadow .2s; }
.q-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.q-head h2 { font-size: 17px; margin: 0 0 2px; }
.q-head .muted { font-size: 14px; }
.q-subhead {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 10px;
}
.q-subhead-spaced {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.q-num {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; margin-top: 1px;
}
.req { color: var(--red); }
.q-error { box-shadow: 0 0 0 3px var(--red), var(--shadow); }
.q-error .q-head h2::after { content: ' — pick at least one 👍'; color: var(--red); font-size: 13px; font-weight: 600; }

.legend-up { color: var(--green-600); }
.legend-down { color: var(--red-600); }

/* Thumbs Up / Down Option Tiles */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 7px;
}
.thumb-grid-wide {
  grid-template-columns: 1fr;
  gap: 7px;
}
@media (min-width: 600px) {
  .thumb-grid-wide { grid-template-columns: 1fr 1fr; }
}

.thumb-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: background .2s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color .2s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow .2s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform .15s ease;
}
.thumb-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.thumb-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.thumb-icon {
  font-size: 22px;
  line-height: 1;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.thumb-wide .thumb-icon {
  font-size: 24px;
  width: 32px;
  height: 32px;
}
.thumb-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.thumb-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color .15s;
}
.thumb-text small {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.3;
}

.thumb-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.thumb-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  filter: grayscale(.6);
  opacity: .75;
  transition: transform .12s cubic-bezier(0.34, 1.56, 0.64, 1),
              background .2s ease,
              border-color .2s ease,
              filter .2s ease,
              opacity .2s ease,
              box-shadow .2s ease;
}
.thumb-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  display: block;
}
.svg-btn-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}
.btn-sm .svg-btn-icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}
.svg-badge-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}
.svg-notice-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  display: block;
}
.thumb-btn:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--border-strong);
  background: #fff;
}
.thumb-btn:active {
  transform: scale(.92);
}

/* Liked (Green 👍) state with vibrant emerald glow */
.thumb-item.is-up {
  background: linear-gradient(180deg, #f0fdf4 0%, #def7ec 100%);
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 4px 16px -2px rgba(29, 138, 89, .32), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.thumb-item.is-up .thumb-text strong {
  color: var(--green-600);
}
.thumb-item.is-up .thumb-up {
  background: linear-gradient(180deg, #24aa6f 0%, #167048 100%);
  border-color: #125e3c;
  filter: none;
  opacity: 1;
  color: #fff;
  box-shadow: 0 3px 10px rgba(29, 138, 89, .45), 0 0 0 2px rgba(29, 138, 89, .25);
  transform: scale(1.05);
}
.thumb-item.is-up .thumb-down {
  opacity: .45;
  filter: grayscale(.85);
}

/* Disliked (Red 👎) state with vibrant ruby glow */
.thumb-item.is-down {
  background: linear-gradient(180deg, #fef2f2 0%, #fde8e8 100%);
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 4px 16px -2px rgba(200, 16, 46, .32), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.thumb-item.is-down .thumb-text strong {
  color: var(--red-600);
}
.thumb-item.is-down .thumb-down {
  background: linear-gradient(180deg, #e01b3c 0%, #a30c25 100%);
  border-color: #7d0a1d;
  filter: none;
  opacity: 1;
  color: #fff;
  box-shadow: 0 3px 10px rgba(200, 16, 46, .45), 0 0 0 2px rgba(200, 16, 46, .25);
  transform: scale(1.05);
}
.thumb-item.is-down .thumb-up {
  opacity: .45;
  filter: grayscale(.85);
}

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 400px) { .chips { grid-template-columns: 1fr 1fr; } }
.chip { position: relative; cursor: pointer; }
.chip input, .option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%;
  min-height: 46px; padding: 10px 12px; text-align: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .15s; user-select: none;
}
.chip:hover > span { border-color: var(--border-strong); }
.chip input:checked + span { background: var(--green-50); border-color: var(--green); color: var(--green-600); box-shadow: inset 0 0 0 1px var(--green); }
.chip input:focus-visible + span, .option input:focus-visible + .option-body { outline: 3px solid var(--gold); outline-offset: 2px; }

.options { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .options { grid-template-columns: 1fr 1fr; } }
.option { position: relative; cursor: pointer; }
.option-body {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); transition: all .15s;
}
.option-body strong { display: block; font-size: 15px; }
.option-body small { display: block; font-size: 13px; color: var(--ink-3); }
.option-icon { font-size: 24px; }
.option:hover .option-body { border-color: var(--border-strong); }
.option input:checked + .option-body { background: var(--green-50); border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

.savebar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 4px -4px 0; padding: 12px 4px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg-2) 35%);
}
.wishlist-dense .savebar {
  position: static !important;
  margin-top: 28px;
  padding: 16px 0 24px;
  background: transparent;
}
.savebar .btn-light { flex: 0 1 auto; }
@media (max-width: 480px) { .savebar .btn { flex: 1 1 100%; } .savebar .btn-light { order: 2; } }
.withdraw { text-align: center; }

/* ----------------------------------------------------------------- Host */
.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 580px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, .4);
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .22);
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .25);
}
.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.stat-icon {
  font-size: 16px;
  line-height: 1;
  opacity: .9;
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat-of {
  font-size: 16px;
  font-weight: 600;
  opacity: .5;
  margin-left: 2px;
}

/* Stat color variants */
.stat-total::before { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.stat-blue::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.stat-blue .stat-value { color: #7dd3fc; }
.stat-green::before { background: linear-gradient(90deg, #059669, #34d399); }
.stat-green .stat-value { color: #6ee7b7; }
.stat-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-amber .stat-value { color: var(--gold); }
.stat-rose::before { background: linear-gradient(90deg, #e11d48, #fb7185); }
.stat-rose .stat-value { color: #fca5a5; }

.draw { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.draw h2 { margin-bottom: 4px; }
.draw-info { flex: 1 1 320px; }
.draw-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.draw-live { border: 2px solid var(--green); }

/* Exclusion Rule Builder */
.exclusion-builder {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 8px;
}
.exclusion-form {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr auto;
  align-items: flex-end;
  gap: 12px;
}
.exclusion-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exclusion-field .label-sm {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.exclusion-action {
  padding-bottom: 1px;
}
.exclusion-dir {
  font-weight: 600;
}
@media (max-width: 840px) {
  .exclusion-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .exclusion-action .btn {
    width: 100%;
  }
}

.exclusion-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.exclusion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: transform .12s, box-shadow .12s;
}
.exclusion-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(200, 16, 46, .12);
}
.exclusion-names {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}
.exclusion-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red-50);
  border: 1px solid #fca5a5;
  color: var(--red-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* Modern Roster Table */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
  display: block;
}
.table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  padding: 10px 12px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.table thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.table thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:hover td {
  background: rgba(29, 138, 89, .03);
}
.table th.right, .table td.right { text-align: right; }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; align-items: center; }
.row-actions form { display: inline; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.empty-search { padding: 16px 0 4px; text-align: center; }

.badge-green-subtle {
  background: #eef8f2;
  color: var(--green-600);
}
.row-actions form { display: inline; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.empty-search { padding: 16px 0 4px; text-align: center; }

.empty { text-align: center; padding: 20px 8px; }
.empty-icon { font-size: 40px; margin-bottom: 6px; }
.empty p + p { margin-top: 4px; }

/* -------------------------------------------------------------- Dialogs */
.modal {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 40px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(4, 12, 8, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .2s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 18px; margin: 0; }
.modal-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.prefs-stacked .pref { grid-template-columns: 100px 1fr; }

.card-preview-modal {
  width: min(560px, calc(100vw - 20px));
}
.card-preview-body {
  align-items: center;
  text-align: center;
  max-height: calc(100dvh - 190px);
  overflow-y: auto;
}
.card-preview-tip {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
}
.card-preview-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
  border: 2px solid var(--gold);
  background: #0a1d14;
}
.card-preview-frame img {
  display: block;
  width: 100%;
  height: auto;
}

#cardPrintPdfBtn {
  background: var(--surface-card, #ffffff);
  border: 1.5px solid var(--border-strong, #c8a86a);
  color: var(--ink, #1f2937);
  font-weight: 700;
  transition: all .15s ease;
}
#cardPrintPdfBtn:hover {
  background: var(--gold-50, #fbf7ee);
  border-color: var(--gold, #d4af37);
  color: var(--ink, #111827);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------- Footer */
.footer {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--on-dark-2); border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer strong { color: var(--gold); }
.footer .dot { opacity: .4; }
@media (max-width: 480px) { .footer .dot { display: none; } .footer { flex-direction: column; align-items: center; gap: 2px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------ Enhanced Dashboard Components */
.flip-showcase-dense {
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px 0 16px !important;
  padding: 16px 20px 14px;
  border-radius: 20px;
}
.flip-showcase-dense .flip-showcase-head {
  padding: 4px 12px;
  margin-bottom: 12px;
}
.flip-showcase-dense .flip-showcase-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.flip-showcase-dense .flip-clock {
  gap: 8px;
}
.flip-showcase-dense .flip-card {
  --card-w: 54px;
  --card-h: 64px;
  --card-fs: 34px;
  width: var(--card-w);
  height: var(--card-h);
  font-size: var(--card-fs);
}
.flip-showcase-dense .flip-sep {
  height: 64px;
  gap: 8px;
}
.flip-showcase-dense .flip-sep i {
  width: 5px;
  height: 5px;
}
@media (max-width: 520px) {
  .flip-showcase-dense {
    padding: 14px 12px 12px;
  }
  .flip-showcase-dense .flip-clock {
    gap: 5px;
  }
  .flip-showcase-dense .flip-card {
    --card-w: 44px;
    --card-h: 54px;
    --card-fs: 28px;
    width: var(--card-w);
    height: var(--card-h);
    font-size: var(--card-fs);
  }
  .flip-showcase-dense .flip-sep {
    height: 54px;
    gap: 6px;
  }
}
.flip-showcase-dense .flip-showcase-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
  padding-top: 10px;
  gap: 8px;
}
.flip-showcase-dense .flip-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}

/* Status Action Card - Rich, Purposeful Milestone Layout */
.status-action {
  border: 1.5px solid rgba(230, 178, 76, 0.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 178, 76, 0.1), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 28px 24px;
}
.status-action::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}
.status-action-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-50);
  border: 1px solid rgba(230, 178, 76, 0.35);
  color: var(--gold-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.status-action h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 8px;
}
.status-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 13.5px;
  margin: 12px auto;
}
.status-countdown-pill .pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse-dot 2s infinite;
}
.status-btn-wrap {
  margin-top: 14px;
}

/* 2-Column Preferences Grid on Dashboard & Reveal */
.prefs-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 620px) {
  .prefs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}
.pref-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0;
  transition: border-color .15s ease, background .15s ease;
}
.pref-card:hover {
  border-color: var(--border-strong);
  background: #f0f4ee;
}
.pref-card dt {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--ink-3) !important;
}
.pref-card dd {
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
}
@media (min-width: 620px) {
  .pref-card.pref-wide {
    grid-column: 1 / -1;
  }
}

/* 2-Column Questionnaire Pairing */
.q-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
@media (min-width: 620px) {
  .q-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.q-grid-2 .card {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Refined Auth Card Presentation */
.card-auth {
  padding: 32px 28px;
  border: 1.5px solid rgba(230, 178, 76, 0.28);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.auth-icon {
  display: inline-grid; place-items: center; width: 68px; height: 68px; font-size: 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--green-50), #d5eee0);
  border: 1px solid rgba(29, 138, 89, 0.25);
  box-shadow: 0 4px 14px rgba(29, 138, 89, 0.15);
  margin-bottom: 8px;
}
.auth-foot-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Slim Notice & Tracker Refinements */
.tracker-slim {
  margin-bottom: 14px;
  gap: 8px;
}
.tracker-slim li {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  gap: 8px;
}
@media (max-width: 600px) {
  .tracker-slim li {
    padding: 6px 4px;
    font-size: 11px;
    flex-direction: row;
    justify-content: center;
  }
}
.tracker-slim .tracker-dot {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.notice-slim {
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  border-radius: 12px;
  gap: 10px;
}
.notice-slim .notice-icon {
  font-size: 18px;
}

/* Festive Holiday Card & Prominent Action Buttons */
.btn-holiday {
  background: linear-gradient(135deg, #1d8a59 0%, #115736 100%);
  color: #ffffff !important;
  border: 1px solid rgba(230, 178, 76, .55);
  font-weight: 700;
  box-shadow: 0 4px 14px -3px rgba(29, 138, 89, .6), 0 0 8px -2px rgba(230, 178, 76, .3);
  transition: all .15s ease;
}
.btn-holiday:hover {
  background: linear-gradient(135deg, #24aa6f 0%, #167048 100%);
  border-color: var(--gold);
  box-shadow: 0 6px 18px -3px rgba(29, 138, 89, .7), 0 0 12px rgba(230, 178, 76, .45);
  transform: translateY(-1px);
}
.btn-outline-primary {
  background: #ffffff;
  color: var(--green-600) !important;
  border: 1.5px solid var(--green);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  transition: all .15s ease;
}
.btn-outline-primary:hover {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-600) !important;
  transform: translateY(-1px);
}

/* Splash Page Dedicated High-Focus Styling */
.splash-container {
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}
.splash-hero {
  max-width: 660px;
  margin: 8px auto 20px;
  text-align: center;
}
.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(230, 178, 76, .12);
  border: 1px solid rgba(230, 178, 76, .35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.splash-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
.splash-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 850;
  margin: 4px 0 16px;
  letter-spacing: -.025em;
  line-height: 1.12;
}

/* Dedicated Splash Countdown Showcase - Grand, Tactile & Centerpiece */
.splash-countdown {
  max-width: 640px;
  width: 100%;
  margin: 14px auto 18px;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(230, 178, 76, .22), transparent 75%),
    linear-gradient(180deg, rgba(16, 42, 29, .96) 0%, rgba(8, 22, 15, .98) 100%);
  border: 1.5px solid rgba(230, 178, 76, .45);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, .75),
    0 0 35px -6px rgba(230, 178, 76, .25),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
.splash-countdown .flip-clock {
  gap: 12px;
  margin: 4px 0 10px;
}
.splash-countdown .flip-card {
  --card-w: 82px;
  --card-h: 94px;
  --card-fs: 48px;
  width: var(--card-w) !important;
  height: var(--card-h) !important;
  font-size: var(--card-fs) !important;
  border-radius: 14px !important;
  box-shadow:
    0 4px 0 #07120c,
    0 8px 0 #050c08,
    0 14px 24px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(230, 178, 76, .35);
}
.splash-countdown .flip-sep {
  height: 94px;
  gap: 10px;
}
.splash-countdown .flip-sep i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.splash-countdown .flip-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--on-dark-2);
}

@media (max-width: 640px) {
  .splash-countdown {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }
  .splash-countdown .flip-clock {
    gap: 8px;
  }
  .splash-countdown .flip-card {
    --card-w: 68px;
    --card-h: 78px;
    --card-fs: 38px;
    width: var(--card-w) !important;
    height: var(--card-h) !important;
    font-size: var(--card-fs) !important;
  }
  .splash-countdown .flip-sep {
    height: 78px;
    gap: 8px;
  }
}
@media (max-width: 440px) {
  .splash-countdown {
    padding: 16px 8px 14px;
    border-radius: 18px;
  }
  .splash-countdown .flip-clock {
    gap: 5px;
  }
  .splash-countdown .flip-card {
    --card-w: 60px;
    --card-h: 70px;
    --card-fs: 33px;
    width: var(--card-w) !important;
    height: var(--card-h) !important;
    font-size: var(--card-fs) !important;
    border-radius: 10px !important;
  }
  .splash-countdown .flip-sep {
    height: 70px;
    gap: 6px;
  }
  .splash-countdown .flip-sep i {
    width: 5px;
    height: 5px;
  }
  .splash-countdown .flip-label {
    font-size: 10px;
    letter-spacing: .06em;
  }
}
@media (max-width: 360px) {
  .splash-countdown .flip-card {
    --card-w: 52px;
    --card-h: 62px;
    --card-fs: 28px;
    width: var(--card-w) !important;
    height: var(--card-h) !important;
    font-size: var(--card-fs) !important;
  }
  .splash-countdown .flip-sep {
    height: 62px;
  }
}

.splash-meta {
  margin-top: 14px;
  padding-top: 12px;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.splash-meta .flip-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--on-dark);
}

/* High-Focus Splash Auth Card */
.splash-auth-card {
  max-width: 640px;
  width: 100%;
  background: linear-gradient(180deg, rgba(16, 44, 30, .92) 0%, rgba(10, 28, 19, .95) 100%);
  border: 1.5px solid rgba(230, 178, 76, .38);
  border-radius: 22px;
  padding: 22px 24px;
  margin: 16px auto 0;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, .6),
    0 0 28px -6px rgba(230, 178, 76, .18),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: left;
}
.splash-auth-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  margin: 0 0 4px;
}
.splash-auth-head p {
  font-size: 13.5px;
  color: var(--on-dark-2);
  margin: 0 0 18px;
  line-height: 1.4;
}
.splash-auth-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}
@media (max-width: 580px) {
  .splash-auth-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .splash-auth-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
}
.splash-btn-primary, .splash-btn-host {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.splash-btn-primary {
  background: linear-gradient(135deg, #e01b3c 0%, #aa0c25 100%);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 8px 24px -6px rgba(200, 16, 46, .65);
}
.splash-btn-primary:hover {
  background: linear-gradient(135deg, #f02548 0%, #bd0e2c 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(200, 16, 46, .8), 0 0 14px rgba(230, 178, 76, .35);
  border-color: var(--gold);
}
.splash-btn-host {
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .16) !important;
  color: #fff !important;
}
.splash-btn-host:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(230, 178, 76, .5) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4);
}
.splash-btn-primary .btn-icon, .splash-btn-host .btn-icon {
  font-size: 26px;
  line-height: 1;
  flex: none;
}
.splash-btn-primary strong, .splash-btn-host strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.splash-btn-primary small, .splash-btn-host small {
  display: block;
  font-size: 11.5px;
  opacity: .85;
  font-weight: 500;
  margin-top: 2px;
}
.splash-notice-wrap {
  max-width: 640px;
  margin: 12px auto 16px;
  width: 100%;
}

/* ---------------------------------------------------------------- Navigation Match Highlight */
.nav-link-match {
  background: linear-gradient(135deg, rgba(230, 178, 76, 0.22) 0%, rgba(33, 90, 56, 0.35) 100%) !important;
  border-color: rgba(230, 178, 76, 0.5) !important;
  color: #fff !important;
  font-weight: 750 !important;
  box-shadow: 0 0 12px rgba(230, 178, 76, 0.25);
  animation: pulse-match 2.5s ease-in-out infinite;
}
@keyframes pulse-match {
  0%, 100% { box-shadow: 0 0 10px rgba(230, 178, 76, 0.2); }
  50% { box-shadow: 0 0 18px rgba(230, 178, 76, 0.45); }
}
.nav-mobile-match {
  background: linear-gradient(135deg, rgba(230, 178, 76, 0.15) 0%, rgba(33, 90, 56, 0.25) 100%) !important;
  border: 1px solid rgba(230, 178, 76, 0.45) !important;
  font-weight: 750 !important;
}

/* ---------------------------------------------------------------- Dedicated Match Hub (/match) */
.match-container {
  max-width: 1080px;
  margin: 0 auto;
}
.match-header-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(230, 178, 76, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(16, 42, 29, 0.96) 0%, rgba(8, 22, 15, 0.98) 100%);
  border: 1.5px solid rgba(230, 178, 76, 0.45);
  border-radius: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65);
  margin-bottom: 24px;
}
.match-header-left {
  max-width: 640px;
}
.match-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}
.recipient-highlight {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(230, 178, 76, 0.4);
}
.match-subtitle {
  font-size: 14.5px;
  color: var(--on-dark-2);
  margin: 0;
  line-height: 1.45;
}
.match-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Peek Protection */
.peek-cover {
  position: relative;
  margin: -12px auto 24px;
  padding: 36px 20px;
  border-radius: 20px;
  background: rgba(14, 34, 24, 0.95);
  border: 1.5px dashed rgba(230, 178, 76, 0.4);
  text-align: center;
  z-index: 10;
}
.peek-cover-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 8px;
}
.peek-cover h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 6px;
}
.peek-cover p {
  color: var(--on-dark-2);
  font-size: 14px;
  margin: 0 0 16px;
}

/* Match Grid: Wishlist (Left) + Live Chat (Right) */
.match-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  transition: filter 0.3s ease;
}
@media (min-width: 860px) {
  .match-content-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Doodle / 3D Ornament Preview on Dashboard & Match Card */
.match-doodle-preview {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ornament-preview-showcase {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.doodle-preview-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(230, 178, 76, 0.14);
  border: 1px solid rgba(230, 178, 76, 0.4);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c6b00;
}
.doodle-img-frame {
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
}
.doodle-img-frame.ornament-stage-frame {
  width: 190px;
  height: 220px;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(230, 178, 76, 0.22) 0%, rgba(29, 138, 89, 0.18) 45%, rgba(8, 22, 15, 0.96) 100%),
    #0d2318;
  border: 1.5px solid rgba(230, 178, 76, 0.45);
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.18);
  align-items: center;
  justify-content: center;
}
.doodle-display-img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: 10px;
  display: block;
}
.doodle-display-img.ornament-stage-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}
.ornament-showcase-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ornament-showcase-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.ornament-showcase-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 640px) {
  .ornament-preview-showcase {
    flex-direction: column;
    text-align: center;
    padding: 14px;
    gap: 12px;
  }
  .doodle-img-frame.ornament-stage-frame {
    width: 160px;
    height: 185px;
  }
  .ornament-showcase-meta {
    align-items: center;
  }
  .doodle-preview-head {
    justify-content: center;
    margin-bottom: 4px;
  }
}

/* ---------------------------------------------------------------- Live Chat Component */
.match-chat-card {
  display: flex;
  flex-direction: column;
  height: 580px;
  max-height: 80vh;
  padding: 18px 20px;
  border-radius: 20px;
}
.dashboard-chat-card {
  height: 480px;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.chat-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 20px;
  background: rgba(230, 178, 76, 0.16);
  border: 1px solid rgba(230, 178, 76, 0.35);
}
.chat-head-info h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1.2;
}
.chat-anon-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin-top: 2px;
}
.chat-status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: pulse-dot 2s ease-in-out infinite;
}
.chat-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 10px;
  background: rgba(230, 178, 76, 0.08);
  border: 1px solid rgba(230, 178, 76, 0.22);
  font-size: 12px;
  color: var(--ink-2);
}
.chat-banner-icon { font-size: 14px; flex-shrink: 0; }

.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-loading {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  padding: 20px 0;
}
.chat-empty {
  text-align: center;
  margin: auto;
  padding: 30px 16px;
  color: var(--ink-3);
}
.chat-empty span {
  font-size: 36px;
  display: block;
  margin-bottom: 6px;
}
.chat-empty p {
  font-size: 13.5px;
  margin: 0;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  position: relative;
  word-break: break-word;
  animation: bubble-fade 0.25s ease-out;
}
@keyframes bubble-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble-you {
  align-self: flex-end;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
}
.chat-bubble-them {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-author {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  opacity: 0.85;
}
.chat-bubble-you .chat-author {
  color: #ffd54f;
}
.chat-bubble-them .chat-author {
  color: var(--ink-2);
}
.chat-text {
  font-size: 14px;
  line-height: 1.4;
}
.chat-time {
  font-size: 10px;
  text-align: right;
  margin-top: 4px;
  opacity: 0.7;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 178, 76, 0.25);
}
.chat-send-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- Holiday Doodle Studio */
.doodle-container {
  max-width: 1120px;
  margin: 0 auto;
}
.doodle-head {
  margin-bottom: 18px;
}
.doodle-intro {
  font-size: 14.5px;
  color: var(--on-dark-2);
  margin: 4px 0 0;
}
.doodle-studio-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}

.doodle-toolbar {
  position: sticky;
  top: 56px;
  z-index: 30;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toolbar-group-actions {
  margin-left: auto;
}
.toolbar-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.tool-btn-group, .size-btn-group, .action-btn-group {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.tool-btn, .size-btn {
  background: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-btn.active, .size-btn.active {
  background: var(--gold) !important;
  color: #122118 !important;
  font-weight: 800 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 2px 10px rgba(230, 178, 76, 0.55) !important;
}
.size-btn {
  width: 28px;
  justify-content: center;
  padding: 4px 0;
}

.color-palette {
  display: flex;
  align-items: center;
  gap: 5px;
}
.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-swatch.active {
  transform: scale(1.22);
  border-color: #212121;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}
.custom-color-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.custom-color-wrap input[type="color"] {
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
}

.doodle-subtoolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.doodle-subtoolbar[hidden] {
  display: none !important;
}
.subtoolbar-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
}
.subtoolbar-input {
  flex: 1;
  min-width: 180px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13.5px;
}
.subtoolbar-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  background: #fff;
}
.subtoolbar-check-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.subtoolbar-hint {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Selected Layer Transform Bar */
.object-transform-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(230, 178, 76, 0.08) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(230, 178, 76, 0.35);
  border-radius: 14px;
  margin-bottom: 14px;
}
.transform-selected-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.transform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #122118;
  font-size: 12px;
  font-weight: 800;
}
.transform-tip {
  font-size: 11.5px;
  color: var(--ink-2);
}
.transform-sliders-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.transform-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.transform-control input[type="range"] {
  width: 96px;
  accent-color: var(--gold);
}
.transform-val {
  min-width: 38px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
}
.btn-xxs {
  padding: 2px 6px;
  font-size: 10.5px;
  line-height: 1.2;
  border-radius: 6px;
}
.transform-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}

/* Main 2-Column Studio Grid: Circular Stage + Layers Panel */
.doodle-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .doodle-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.artboard-helper-pill {
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* Layers Manager Panel */
.doodle-layers-panel {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.layers-panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.layers-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink);
}
.layers-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #122118;
  font-size: 11.5px;
  font-weight: 800;
}
.layers-add-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.layers-add-bar .btn {
  justify-content: center;
  font-size: 11.5px;
  padding: 5px 6px;
}
.layers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}
.layer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: all 0.15s ease;
}
.layer-item.active {
  border-color: var(--gold);
  background: rgba(230, 178, 76, 0.14);
  box-shadow: 0 2px 8px rgba(230, 178, 76, 0.25);
}
.layer-item.is-hidden {
  opacity: 0.55;
}
.layer-select-btn {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}
.layer-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.layer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layer-item-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.layer-act-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
}
.layer-act-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.layer-act-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(230, 178, 76, 0.2);
}
.layer-act-del:hover:not(:disabled) {
  border-color: var(--red);
  background: rgba(229, 57, 53, 0.15);
}
.layers-bg-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.layers-bg-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.layers-bg-label-row input[type="color"] {
  width: 28px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: none;
}
.bg-quick-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bg-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.bg-swatch.active {
  transform: scale(1.18);
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(230, 178, 76, 0.6);
}

.clip-art-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stamp-chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stamp-chip.active {
  background: var(--green-50);
  border-color: var(--green);
  font-weight: 750;
  transform: scale(1.08);
}

.doodle-canvas-frame {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #f0f2f0;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.doodle-canvas {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  max-width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

.doodle-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.doodle-status {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- Circular Ornament Artboard */
.ornament-artboard-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px auto;
  position: relative;
  max-width: 100%;
}

.ornament-cap-hanger {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  margin-bottom: -14px;
}
.ornament-wire-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid #d4af37;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  margin-bottom: -14px;
}
.ornament-gold-cap {
  position: relative;
  width: 136px;
  height: 48px;
  border-radius: 10px 10px 4px 4px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0px,
      rgba(255, 255, 255, 0.22) 4px,
      rgba(0, 0, 0, 0.16) 4px,
      rgba(0, 0, 0, 0.16) 9px,
      transparent 9px,
      transparent 14px
    ),
    linear-gradient(90deg, #9a6f0a 0%, #ffd700 22%, #fff3a1 45%, #d4af37 72%, #7a5605 100%);
  border: 1.5px solid rgba(255, 240, 170, 0.7);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    inset 0 -3px 6px rgba(90, 60, 0, 0.55);
}

/* Festive Crimson Velvet Bow on Cap */
.ornament-bow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 36px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
}
.ornament-bow .bow-loop {
  position: absolute;
  top: 2px;
  width: 36px;
  height: 24px;
  background: radial-gradient(circle at 35% 30%, #ff3b56 0%, #c8102e 55%, #7a0619 100%);
  border: 1.5px solid #f7d070;
  border-radius: 50% 50% 45% 45%;
}
.ornament-bow .bow-loop-left {
  left: 2px;
  transform: rotate(-16deg);
}
.ornament-bow .bow-loop-right {
  right: 2px;
  transform: rotate(16deg);
}
.ornament-bow .bow-knot {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: radial-gradient(circle at 40% 35%, #ff5268 0%, #b80d27 70%, #6b0413 100%);
  border: 1.5px solid #ffd700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Employee Gift Name Tag Attached to Cap */
.ornament-name-tag {
  position: absolute;
  top: 4px;
  left: calc(100% - 10px);
  transform: rotate(9deg);
  transform-origin: left center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 9px;
  background: linear-gradient(135deg, #fffdf7 0%, #f7ebd2 100%);
  border: 1.5px solid #d4af37;
  border-radius: 6px 10px 10px 6px;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(212, 175, 55, 0.25);
  white-space: nowrap;
  z-index: 4;
  max-width: 190px;
}
.ornament-name-tag .tag-hole {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a2e22;
  border: 1.5px solid #b8860b;
  flex-shrink: 0;
}
.ornament-name-tag .tag-label {
  font-size: 12px;
  font-weight: 800;
  color: #122118;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ornament-circle-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border: 4px solid var(--gold);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(230, 178, 76, 0.3),
    inset 0 0 15px rgba(0, 0, 0, 0.08);
  touch-action: none;
  cursor: crosshair;
  margin: 0 auto;
}

.canvas-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.05s ease-out;
}

.doodle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Detail Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  padding: 3px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.zoom-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.zoom-indicator {
  font-size: 11.5px;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
  color: var(--ink-2);
}

/* Status Banners on Doodle Page */
.doodle-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.status-banner-icon { font-size: 22px; flex-shrink: 0; }
.banner-approved {
  background: var(--green-50);
  border: 1.5px solid var(--green);
  color: var(--green);
}
.banner-pending {
  background: var(--gold-50);
  border: 1.5px solid var(--gold);
  color: #8c6b00;
}
.banner-rejected {
  background: var(--red-50);
  border: 1.5px solid var(--red);
  color: var(--red);
}

/* ---------------------------------------------------------------- Modals */
.modal-backdrop[hidden] {
  display: none !important;
}
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: modal-fade 0.25s ease-out;
}
.modal-backdrop:not([hidden]) {
  display: flex !important;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-card {
  background: var(--surface);
  border-radius: 22px;
  border: 1.5px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  width: min(640px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--ink);
}
.modal-close {
  background: none;
  border: 0;
  font-size: 24px;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Circular Crop Viewport */
.crop-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.crop-hint {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  text-align: center;
}
.crop-viewport {
  width: min(300px, calc(100vw - 64px));
  height: min(300px, calc(100vw - 64px));
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #212121;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(230, 178, 76, 0.35);
  cursor: grab;
}
.crop-viewport:active { cursor: grabbing; }
.crop-source-img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}
.crop-circle-mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.crop-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  font-size: 13px;
  color: var(--ink-2);
}
.crop-controls-row input[type="range"] {
  flex: 1;
}

/* 3D Sphere Preview Modal */
.preview-modal-card {
  width: min(720px, 100%);
}
.preview-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.preview-hint {
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: center;
  margin: 0;
}
.sphere-render-box {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.35) 100%), #122118;
  border-radius: 18px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}
.sphere-preview-canvas {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.preview-modal-footer {
  justify-content: space-between;
}

@media (max-width: 768px) {
  .ornament-cap-hanger {
    margin-bottom: -10px;
  }
  .ornament-wire-ring {
    width: 32px;
    height: 32px;
    border-width: 4px;
    margin-bottom: -10px;
  }
  .ornament-gold-cap {
    width: 96px;
    height: 34px;
    border-radius: 8px 8px 3px 3px;
  }
  .ornament-bow {
    top: -9px;
    width: 62px;
    height: 28px;
  }
  .ornament-bow .bow-loop {
    width: 27px;
    height: 18px;
  }
  .ornament-bow .bow-knot {
    top: 5px;
    width: 14px;
    height: 14px;
  }
  .ornament-name-tag {
    top: 2px;
    left: calc(100% - 8px);
    padding: 3px 8px 3px 6px;
    gap: 4px;
    max-width: 130px;
  }
  .ornament-name-tag .tag-hole {
    width: 5px;
    height: 5px;
  }
  .ornament-name-tag .tag-label {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 10px 8px 30px;
  }
  .doodle-head {
    margin-bottom: 6px;
  }
  .doodle-head h1 {
    font-size: 18px;
    margin: 2px 0;
  }
  .doodle-intro {
    display: none;
  }
  .doodle-head-actions {
    display: none;
  }
  .doodle-status-banner {
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 11.5px;
    gap: 6px;
  }
  .status-banner-icon {
    font-size: 16px;
  }
  .doodle-studio-card {
    padding: 10px 8px;
  }
  .doodle-toolbar {
    top: 52px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 0 8px;
    margin-bottom: 8px;
  }
  .toolbar-group {
    width: auto;
    gap: 2px;
  }
  .toolbar-group:first-child {
    width: 100%;
  }
  .toolbar-group-actions {
    margin-left: 0;
    width: auto;
  }
  .tool-btn-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    gap: 2px;
  }
  .object-transform-bar {
    padding: 8px 10px;
    gap: 6px;
    margin-bottom: 10px;
  }
  .transform-tip {
    display: none;
  }
  .transform-sliders-row {
    gap: 6px 10px;
  }
  .transform-control input[type="range"] {
    width: 72px;
  }
  .transform-quick-btns {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .transform-quick-btns .btn {
    flex: 1;
    justify-content: center;
    padding: 4px 4px;
    font-size: 11px;
  }
  .artboard-helper-pill {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 12px;
  }
  .layers-add-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-btn {
    padding: 5px 2px;
    font-size: 10.5px;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    text-align: center;
    min-width: 0;
  }
  .tool-btn span {
    font-size: 15px;
    line-height: 1;
  }
  .action-btn-group {
    display: flex;
    gap: 4px;
  }
  .action-btn-group .btn {
    padding: 3px 6px;
    font-size: 11px;
  }
  .color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  .color-swatch {
    width: 18px;
    height: 18px;
  }
  .custom-color-wrap {
    width: 18px;
    height: 18px;
  }
  .size-btn-group {
    padding: 2px;
    gap: 2px;
  }
  .size-btn {
    width: 22px;
    padding: 2px 0;
    font-size: 10.5px;
  }
  .ornament-cap-hanger {
    margin-bottom: -10px;
  }
  .ornament-wire-ring {
    width: 32px;
    height: 32px;
    border-width: 4px;
    margin-bottom: -10px;
  }
  .ornament-gold-cap {
    width: 96px;
    height: 34px;
    border-radius: 8px 8px 3px 3px;
  }
  .ornament-circle-frame {
    width: min(300px, 78vw);
    height: min(300px, 78vw);
    margin: 0 auto;
  }
  .doodle-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
  }
  .doodle-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .doodle-footer-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13.5px;
  }
  .preview-modal-footer {
    flex-direction: column;
    gap: 8px;
  }
  .preview-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------- Host Ornament Review Gallery */
.host-ornaments-card {
  margin-top: 24px;
}
.ornament-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.ornament-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-2);
}
.ornament-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.ornament-review-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ornament-review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ornament-review-card.is-pending {
  border-color: rgba(230, 178, 76, 0.5);
  background: linear-gradient(180deg, rgba(230, 178, 76, 0.04) 0%, var(--surface) 100%);
}
.ornament-review-card.is-approved {
  border-color: rgba(46, 125, 50, 0.4);
}
.ornament-review-card.is-rejected {
  border-color: rgba(200, 16, 46, 0.45);
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.04) 0%, var(--surface) 100%);
}
.ornament-preview-frame {
  width: 170px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ornament-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}
.ornament-review-meta {
  width: 100%;
}
.ornament-review-meta strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.ornament-review-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.reject-details summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
}
.reject-details summary::-webkit-details-marker { display: none; }
.reject-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.empty-ornaments {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-3);
}
.empty-ornaments .empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

/* ==========================================================================
   Festive Holiday Photo Gallery & Cinema Lightbox
   ========================================================================== */
.gallery-container {
  max-width: 1180px;
  padding-bottom: 48px;
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px 28px 26px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(230, 178, 76, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 100%, rgba(200, 16, 46, 0.22) 0%, transparent 48%),
    linear-gradient(135deg, #102a1d 0%, #07150e 100%);
  border: 1.5px solid rgba(230, 178, 76, 0.42);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f6faf7;
}

.gallery-hero-lights {
  display: flex;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto 14px;
  pointer-events: none;
}
.gallery-hero-lights span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: bulb-twinkle 1.1s ease-in-out infinite alternate;
}
.gallery-hero-lights span:nth-child(3n+1) { background: #ff5c77; box-shadow: 0 0 10px #ff5c77; animation-delay: 0s; }
.gallery-hero-lights span:nth-child(3n+2) { background: #5be09a; box-shadow: 0 0 10px #5be09a; animation-delay: .35s; }
.gallery-hero-lights span:nth-child(3n)   { background: #ffd166; box-shadow: 0 0 10px #ffd166; animation-delay: .7s; }

.gallery-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.gallery-hero-text {
  flex: 1 1 480px;
}
.gallery-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 4px 0 8px;
}
.gallery-subtitle {
  color: rgba(236, 245, 239, 0.84);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 640px;
}
.gallery-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gallery-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eaf4ee;
}
.gallery-stat-chip strong {
  color: var(--gold);
  font-weight: 800;
}
.gallery-stat-pending {
  background: rgba(230, 178, 76, 0.16);
  border-color: rgba(230, 178, 76, 0.45);
}

.gallery-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

/* Filter & Search Toolbar */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(11, 31, 21, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 178, 76, 0.25);
}
.gallery-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gallery-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 249, 246, 0.88);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.gallery-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.gallery-pill.active {
  background: linear-gradient(135deg, #e6b24c 0%, #c98f27 100%);
  color: #091910;
  border-color: #ffe299;
  box-shadow: 0 6px 16px -4px rgba(230, 178, 76, 0.55);
}
.gallery-pill-pending {
  border-color: rgba(230, 178, 76, 0.55);
}
.gallery-search-wrap {
  flex: 1 1 210px;
  max-width: 280px;
}
.gallery-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
}

/* Responsive Masonry / Bento Grid */
.gallery-grid {
  columns: 3 320px;
  column-gap: 18px;
}
@media (max-width: 680px) {
  .gallery-grid {
    columns: 1;
  }
  .gallery-hero {
    padding: 22px 18px;
  }
  .gallery-hero-actions {
    width: 100%;
  }
  .gallery-search-wrap {
    max-width: 100%;
  }
}

.gallery-card {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid rgba(230, 178, 76, 0.28);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.gallery-card[hidden] {
  display: none !important;
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 178, 76, 0.72);
  box-shadow: 0 22px 42px -12px rgba(0, 0, 0, 0.65);
}
.gallery-card.is-pending {
  border: 2px dashed #e6b24c;
}

.gallery-card-media {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #0d2419 0%, #163827 100%);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-card:hover .gallery-card-img {
  transform: scale(1.035);
}

.gallery-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.gallery-cat-badge,
.gallery-photographer-badge,
.gallery-status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  background: rgba(8, 24, 16, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.gallery-photographer-badge {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.gallery-photographer-badge:hover {
  transform: scale(1.04);
  background: rgba(20, 56, 38, 0.92);
  border-color: var(--gold);
}
.gallery-status-badge.is-pending {
  background: rgba(200, 130, 20, 0.92);
  color: #fff;
  border-color: #ffe299;
}

.gallery-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-photographer-select {
  min-width: 195px;
}

.gallery-card-quick {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.gallery-card:hover .gallery-card-quick,
.gallery-card:focus-within .gallery-card-quick {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .gallery-card-quick {
    opacity: 1;
    transform: none;
  }
}
.gallery-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 24, 16, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.gallery-icon-btn:hover {
  transform: scale(1.1);
  background: #c8102e;
  border-color: #ffe299;
}

.gallery-card-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-card-caption {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.gallery-uploader strong {
  color: var(--ink-2);
}
.gallery-uploader-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-3);
  cursor: pointer;
  text-align: left;
  transition: color 0.14s ease;
}
.gallery-uploader-link strong {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(29, 138, 89, 0.4);
  text-underline-offset: 2px;
}
.gallery-uploader-link:hover,
.gallery-uploader-link:hover strong {
  color: var(--green);
}

.gallery-exif-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.exif-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.exif-tag-camera {
  background: rgba(230, 178, 76, 0.13);
  border-color: rgba(230, 178, 76, 0.38);
  color: #6b4e09;
}
[data-theme="dark"] .exif-tag-camera {
  color: #f3c86b;
}

.lightbox-exif {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.lightbox-exif .exif-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
.lightbox-exif .exif-tag-camera {
  background: rgba(230, 178, 76, 0.22);
  border-color: rgba(230, 178, 76, 0.5);
  color: #ffe299;
}

.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.gallery-reactions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gallery-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.gallery-react-btn:hover {
  transform: scale(1.07);
  border-color: var(--gold);
}
.gallery-react-btn.is-active {
  background: rgba(200, 16, 46, 0.12);
  border-color: #c8102e;
  color: #a60e26;
}
.gallery-mod-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-empty {
  text-align: center;
  padding: 48px 24px;
}
.gallery-empty-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

/* Upload Modal & Dropzone */
.gallery-upload-modal {
  max-width: 580px;
  width: calc(100% - 28px);
}
.gallery-dropzone {
  border: 2px dashed rgba(29, 138, 89, 0.55);
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  background: rgba(29, 138, 89, 0.05);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.gallery-dropzone:hover,
.gallery-dropzone.is-dragover {
  border-color: var(--gold);
  background: rgba(230, 178, 76, 0.12);
}
.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dropzone-icon {
  font-size: 40px;
  margin-bottom: 4px;
}
.dropzone-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}
.dropzone-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.dropzone-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dropzone-thumb-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(200, 16, 46, 0.92);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.dropzone-add-more {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 2px dashed var(--border);
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.gallery-upload-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: 12px;
}
.gallery-upload-progress {
  margin-top: 12px;
}
.upload-progress-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 4px;
}
.upload-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  transition: width 0.2s ease;
}

/* Cinema Lightbox & Party Slideshow */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.gallery-lightbox[hidden] {
  display: none !important;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 8, 0.94);
  backdrop-filter: blur(18px);
}
.lightbox-topbar,
.lightbox-footer,
.lightbox-stage,
.lightbox-slideshow-bar {
  position: relative;
  z-index: 2;
}
.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  flex-wrap: wrap;
}
.lightbox-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
}
.lightbox-cat-pill,
.lightbox-pending-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(230, 178, 76, 0.4);
  font-size: 12.5px;
}
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lightbox-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close-btn:hover {
  background: #c8102e;
}

.lightbox-slideshow-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.lightbox-slideshow-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5be09a, #e6b24c, #ff5c77);
}

.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 64px;
  position: relative;
}
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(230, 178, 76, 0.38);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 28, 19, 0.78);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.lightbox-nav:hover {
  background: #c8102e;
  transform: translateY(-50%) scale(1.08);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 680px) {
  .lightbox-stage {
    padding: 8px 12px;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 100%);
}
.lightbox-caption {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.lightbox-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lightbox-reactions {
  display: flex;
  gap: 8px;
}
.lightbox-react-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
}
.lightbox-react-btn.is-active {
  background: #c8102e;
  border-color: #ffe299;
  color: #fff;
}

/* ==========================================================================
   Unread Chat Badges, Live Reveal Pulse, Crew Draw Board, Icebreaker Chips
   & Interactive 3D Christmas Tree Ornament Showcase
   ========================================================================== */

/* 1. Unread Chat Notification Badge (.nav-unread-badge) */
.nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3b5c 0%, #c8102e 100%);
  border: 1.5px solid #ffe299;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.55), 0 0 10px rgba(230, 178, 76, 0.4);
  animation: badge-glow-pulse 2s ease-in-out infinite;
}
.nav-mobile-item .nav-unread-badge {
  margin-left: auto;
}
@keyframes badge-glow-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(200, 16, 46, 0.55), 0 0 8px rgba(230, 178, 76, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 3px 12px rgba(255, 59, 92, 0.75), 0 0 14px rgba(255, 226, 153, 0.65); }
}

/* 2. Auto-Unlock Live Sync Pulse Indicator (.reveal-live-pulse, .pulse-dot) */
.reveal-live-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(29, 138, 89, 0.12);
  border: 1px solid rgba(29, 138, 89, 0.35);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1d8a59;
  box-shadow: 0 0 0 0 rgba(29, 138, 89, 0.7);
  flex-shrink: 0;
  animation: live-pulse-ring 1.8s infinite;
}
@keyframes live-pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 138, 89, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(29, 138, 89, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 138, 89, 0); }
}

/* 3. Pre-Draw Crew Participation Board (.crew-board-card, .crew-board-grid, .crew-member-pill) */
.crew-board-card {
  margin-top: 0;
}
.crew-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.crew-member-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  font-size: 13px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.crew-member-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.crew-member-pill.is-finalized {
  background: linear-gradient(135deg, #e7f5ed 0%, #f4fbf7 100%);
  border-color: rgba(29, 138, 89, 0.45);
}
.crew-member-pill.is-draft {
  background: linear-gradient(135deg, #fff6e2 0%, #fffbf0 100%);
  border-color: rgba(230, 178, 76, 0.55);
}
.crew-member-pill.is-pending {
  opacity: 0.82;
}
.crew-status-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.crew-member-name {
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crew-ornament-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(230, 178, 76, 0.22);
  border: 1px solid rgba(230, 178, 76, 0.5);
  flex-shrink: 0;
}
.crew-status-label {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
}
.crew-member-pill.is-finalized .crew-status-label {
  color: var(--green-600);
}
.crew-member-pill.is-draft .crew-status-label {
  color: var(--gold-ink);
}

/* 4. 1-Tap Anonymous Chat Icebreaker Chips (.chat-chips-bar, .chat-chip) */
.chat-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.chat-chips-bar::-webkit-scrollbar {
  height: 4px;
}
.chat-chips-bar::-webkit-scrollbar-thumb {
  background: rgba(20, 33, 26, 0.18);
  border-radius: 99px;
}
.chat-chip {
  appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4fbf7 0%, #e7f5ed 100%);
  border: 1px solid rgba(29, 138, 89, 0.35);
  color: var(--green-600);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-chip:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e7f5ed 0%, #d4efe0 100%);
  border-color: var(--green);
  box-shadow: 0 4px 10px rgba(29, 138, 89, 0.16);
}
.chat-chip:active {
  transform: translateY(0);
}

/* 5. Post-Draw Interactive 3D Ornament Showcase & Zoom Modal */
.crew-tree-showcase {
  margin-top: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(230, 178, 76, 0.14) 0%, transparent 48%),
    radial-gradient(circle at 88% 100%, rgba(29, 138, 89, 0.12) 0%, transparent 48%),
    var(--surface);
  border: 1.5px solid rgba(230, 178, 76, 0.45);
}
.crew-ornament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.crew-ornament-item {
  appearance: none;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 10px 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, #102a1d 0%, #07160f 100%);
  border: 1.5px solid rgba(230, 178, 76, 0.38);
  color: #f4faf6;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.crew-ornament-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ffe299;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.65), 0 0 18px rgba(230, 178, 76, 0.28);
}
.crew-ornament-img-wrap {
  width: 118px;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crew-ornament-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}
.crew-ornament-item:hover .crew-ornament-img {
  transform: rotate(-3deg) scale(1.05);
}
.crew-ornament-name {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(230, 178, 76, 0.35);
  color: #ffe299;
  font-size: 12.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ornament-zoom-modal {
  max-width: 480px;
  width: calc(100% - 28px);
}
.ornament-zoom-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ornament-zoom-stage {
  width: 100%;
  min-height: 300px;
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 226, 153, 0.16) 0%, transparent 65%),
    linear-gradient(160deg, #123122 0%, #07150e 100%);
  border: 1.5px solid rgba(230, 178, 76, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.55);
}
.ornament-zoom-img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6));
}
.ornament-zoom-caption {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Host Employee Preview ("View As") Bar & Overhauled Collapsible Host Panel
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 1. Sticky Top Impersonation Banner (.impersonation-bar) */
.impersonation-bar {
  position: sticky;
  top: 58px;
  z-index: 48;
  background: linear-gradient(90deg, #6e0718 0%, #9b0c23 50%, #144d31 100%);
  border-bottom: 1.5px solid rgba(230, 178, 76, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}
@media (max-width: 680px) {
  .impersonation-bar {
    top: 56px;
  }
}
.impersonation-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.impersonation-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #fff6e2;
}
.impersonation-status strong {
  color: #ffe299;
  font-weight: 800;
}
.impersonation-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(230, 178, 76, 0.25);
  border: 1px solid #ffe299;
  color: #ffe299;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.impersonation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.impersonation-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 28px 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 226, 153, 0.55);
  background-color: rgba(8, 22, 15, 0.78);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23ffe299' stroke-width='1.8' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.impersonation-select:focus {
  outline: 2px solid var(--gold);
}
.btn-gold-subtle,
.impersonation-exit-btn {
  background: linear-gradient(135deg, #ffe299 0%, #e6b24c 100%);
  color: #231600 !important;
  border: 1px solid #fff3cf;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.btn-gold-subtle:hover,
.impersonation-exit-btn:hover {
  background: linear-gradient(135deg, #fff0c2 0%, #f0be59 100%);
  transform: translateY(-1px);
}

/* 2. Host Header Quick "View Site As Employee" Picker */
.host-page-head {
  align-items: center;
}
.host-view-as-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 178, 76, 0.35);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.45);
}
.host-view-as-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.host-view-as-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.host-view-as-select {
  min-width: 210px;
  max-width: 260px;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

/* 3. Host Command Bar (Section Jump Pills + Expand/Collapse All) */
.host-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.host-jump-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.host-jump-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
  margin-right: 4px;
}
.host-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef4ef;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.host-jump-pill:hover {
  background: rgba(29, 138, 89, 0.35);
  border-color: rgba(230, 178, 76, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}
.host-jump-pill.is-active,
.host-jump-pill.active {
  background: linear-gradient(135deg, rgba(29, 138, 89, 0.88) 0%, rgba(22, 112, 72, 0.98) 100%);
  border-color: rgba(230, 178, 76, 0.55);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.jump-badge-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #241700;
  font-size: 11px;
  font-weight: 800;
}
.host-collapse-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 4. Collapsible Host Section Cards (.host-section-collapsible) */
.host-section-collapsible {
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 84px;
}
.host-section-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%);
  transition: background 0.15s ease;
}
.host-section-summary::-webkit-details-marker {
  display: none;
}
.host-section-summary:hover {
  background: #f2f7f3;
}
.host-section-collapsible[open] > .host-section-summary {
  border-bottom: 1px solid var(--border);
}
.host-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.host-section-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-50);
  border: 1px solid rgba(29, 138, 89, 0.22);
  font-size: 20px;
  flex-shrink: 0;
}
.host-section-heading {
  font-size: 18.5px !important;
  font-weight: 800;
  margin: 0 !important;
  color: var(--ink);
}
.host-section-sub {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}
.host-section-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.host-section-chevron {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 14px;
  transition: transform 0.2s ease, background 0.15s ease;
}
.host-section-collapsible:not([open]) .host-section-chevron {
  transform: rotate(-90deg);
}
.host-section-body {
  padding: 20px 24px 24px;
}
.host-subcard {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.host-subcard h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}
@media (max-width: 560px) {
  .host-section-summary {
    padding: 14px 16px;
  }
  .host-section-body {
    padding: 16px;
  }
  .host-section-sub {
    display: none;
  }
}

/* 5. Roster Toolbar & Filter Pills (.roster-toolbar) */
.roster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.roster-search-input {
  min-width: 210px;
  background: #ffffff;
}
.roster-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.roster-filter-pill {
  appearance: none;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.roster-filter-pill:hover {
  border-color: var(--green);
  color: var(--ink);
}
.roster-filter-pill.is-active {
  background: var(--green);
  border-color: var(--green-600);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 138, 89, 0.3);
}
.roster-mini-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 13px;
  vertical-align: middle;
}

/* ==========================================================================
   High-Density Employee Dashboard & Wishlist Questionnaire Upgrades
   ========================================================================== */

/* 1. Employee Header Bar & Quick Actions (.emp-header-bar, .emp-quick-actions) */
.emp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.emp-header-left,
.emp-header-info,
.emp-header-bar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.emp-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.emp-header-bar h1 {
  font-size: clamp(22px, 3.8vw, 28px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.015em;
}
.emp-status-badges,
.emp-status-pills,
.emp-inline-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.emp-status-pills .badge,
.emp-status-badges .badge {
  font-size: 12px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.emp-status-pills .badge-green,
.emp-status-badges .badge-green {
  background: linear-gradient(135deg, rgba(29, 138, 89, 0.28) 0%, rgba(29, 138, 89, 0.16) 100%);
  color: #72f7b4;
  border: 1px solid rgba(114, 247, 180, 0.45);
}
.emp-status-pills .badge-amber,
.emp-status-badges .badge-amber,
.emp-status-pills .badge-gold,
.emp-status-badges .badge-gold {
  background: linear-gradient(135deg, rgba(230, 178, 76, 0.24) 0%, rgba(230, 178, 76, 0.14) 100%);
  color: #ffe299;
  border: 1px solid rgba(255, 226, 153, 0.45);
}
.emp-status-pills .badge-red,
.emp-status-badges .badge-red {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.28) 0%, rgba(200, 16, 46, 0.16) 100%);
  color: #ff8597;
  border: 1px solid rgba(255, 133, 151, 0.45);
}
.emp-status-pills .badge-gray,
.emp-status-badges .badge-gray {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.emp-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 2. Employee Command Bar & Collapsible Sections (.emp-command-bar, .emp-section-collapsible) */
.emp-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.emp-jump-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.emp-jump-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
  margin-right: 4px;
}
.emp-jump-pill,
.emp-command-bar a[href^="#"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef4ef;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.emp-jump-pill:hover,
.emp-command-bar a[href^="#"]:hover {
  background: rgba(29, 138, 89, 0.35);
  border-color: rgba(230, 178, 76, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}
.emp-collapse-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.emp-section-collapsible {
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 78px;
}
.emp-section-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%);
  transition: background 0.15s ease;
}
.emp-section-summary::-webkit-details-marker {
  display: none;
}
.emp-section-summary:hover {
  background: #f2f7f3;
}
.emp-section-collapsible[open] > .emp-section-summary {
  border-bottom: 1px solid var(--border);
}
.emp-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.emp-section-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-50);
  border: 1px solid rgba(29, 138, 89, 0.22);
  font-size: 18px;
  flex-shrink: 0;
}
.emp-section-heading {
  font-size: 17.5px !important;
  font-weight: 800;
  margin: 0 !important;
  color: var(--ink);
}
.emp-section-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 1px;
}
.emp-section-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.emp-section-chevron {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 13px;
  transition: transform 0.2s ease, background 0.15s ease;
}
.emp-section-collapsible:not([open]) .emp-section-chevron {
  transform: rotate(-90deg);
}
.emp-section-body {
  padding: 16px 18px 18px;
}
@media (max-width: 560px) {
  .emp-section-summary {
    padding: 12px 14px;
  }
  .emp-section-body {
    padding: 14px;
  }
  .emp-section-sub {
    display: none;
  }
}

/* 3. Employee Hero 2-Column Grid (.emp-hero-grid, .emp-hero-right-stack) */
.emp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px) {
  .emp-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    align-items: start;
  }
  .emp-hero-grid.emp-hero-single {
    grid-template-columns: 1fr;
  }
}
.emp-hero-grid > *,
.emp-hero-right-stack > *,
.emp-hero-col-left > *,
.emp-hero-col-right > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.emp-hero-right-stack,
.emp-hero-col-right,
.emp-hero-col-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* 4. Interactive 3-Row Readiness Checklist Card (.emp-checklist-card, .emp-check-row) */
.emp-checklist-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1.5px solid rgba(29, 138, 89, 0.28);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.emp-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.emp-checklist-head h2 {
  font-size: 18px;
  margin: 0;
}
.emp-tracker-compact {
  margin: 0 !important;
}
.emp-checklist-card .tracker {
  margin: 0 !important;
}
.emp-checklist-card .tracker li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
}
.emp-checklist-card .tracker li.done {
  background: var(--green-50);
  border-color: rgba(29, 138, 89, 0.35);
  color: var(--green-600);
}
.emp-checklist-card .tracker li.done .tracker-dot {
  background: var(--green);
  color: #ffffff;
}
.emp-checklist-card .tracker li.current {
  background: var(--gold-50);
  border-color: rgba(230, 178, 76, 0.6);
  color: var(--gold-ink);
}
.emp-checklist-card .tracker li.current .tracker-dot {
  background: var(--gold);
  color: #3b2a00;
}
.emp-checklist-list,
.emp-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.emp-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.emp-check-row:hover {
  border-color: var(--border-strong);
}
.emp-check-row.is-done {
  background: linear-gradient(135deg, #e7f5ed 0%, #f4fbf7 100%);
  border-color: rgba(29, 138, 89, 0.42);
}
.emp-check-row.is-current,
.emp-check-row.is-active {
  background: linear-gradient(135deg, #fff6e2 0%, #fffdf7 100%);
  border-color: rgba(230, 178, 76, 0.65);
  box-shadow: 0 2px 10px rgba(230, 178, 76, 0.15);
}
.emp-check-left,
.emp-check-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.emp-check-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
}
.emp-check-row.is-done .emp-check-icon {
  background: var(--green-50);
  border-color: rgba(29, 138, 89, 0.35);
}
.emp-check-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.emp-check-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.emp-check-text small,
.emp-check-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}
.emp-check-action,
.emp-check-row .btn,
.emp-check-row .badge {
  flex-shrink: 0;
  white-space: nowrap;
}
.emp-check-action {
  margin-left: auto;
}
.emp-checklist-foot {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}
.emp-checklist-foot .status-countdown-pill {
  margin: 0;
}

/* 5. Employee Wishlist Split & Dense Preferences Grid (.emp-wishlist-split, .prefs-grid-dense) */
.emp-section-actions-bar {
  margin-bottom: 12px;
}
.emp-wishlist-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 820px) {
  .emp-wishlist-split {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 16px;
    align-items: start;
  }
  .emp-wishlist-split:not(.has-ornament) {
    grid-template-columns: 1fr;
  }
}
.emp-wishlist-split .match-doodle-preview {
  margin-top: 0 !important;
}
.prefs-grid-dense {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
}
.prefs-grid-dense .pref-card {
  padding: 10px 12px;
  gap: 4px !important;
}
.prefs-grid-dense .pref-card.pref-wide {
  grid-column: 1 / -1;
}

/* 6. Crew Board Filter Pills ([data-crew-filter]) & Stats Badges (.crew-stats-badges) */
.crew-stats-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.crew-stats-badges .badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.crew-stats-badges .badge-green {
  border-color: rgba(29, 138, 89, 0.35);
}
.crew-stats-badges .badge-amber {
  border-color: rgba(230, 178, 76, 0.45);
}
.crew-stats-badges .badge-gray {
  border-color: var(--border);
}
.crew-filter-bar,
.crew-filter-pills,
.crew-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.crew-filter-pill,
[data-crew-filter] {
  appearance: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.crew-filter-pill:hover,
[data-crew-filter]:hover {
  border-color: var(--green);
  color: var(--ink);
}
.crew-filter-pill.active,
.crew-filter-pill.is-active,
[data-crew-filter].active,
[data-crew-filter].is-active {
  background: var(--green) !important;
  border-color: var(--green-600) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(29, 138, 89, 0.35);
}

/* 7. Wishlist Questionnaire Sticky Bar & High-Density Top Grid (.wishlist-sticky-bar, .q-grid-top) */
.notice-compact {
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 12px;
  gap: 10px;
}
.wishlist-sticky-bar {
  position: sticky;
  top: 62px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(8, 22, 15, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 178, 76, 0.32);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.55);
}
body:has(.impersonation-bar) .wishlist-sticky-bar {
  top: 114px;
}
@media (max-width: 680px) {
  .wishlist-sticky-bar {
    position: static !important;
    padding: 8px 10px;
    margin-bottom: 12px;
  }
}
.wishlist-sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  min-width: 0;
  flex-wrap: wrap;
}
.wishlist-sticky-bar .progress {
  position: static;
  flex: 1 1 180px;
  min-width: 150px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wishlist-jump-links,
.wishlist-jump-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.wishlist-jump-pill,
.wishlist-sticky-bar a[href^="#"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef4ef;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.wishlist-jump-pill:hover,
.wishlist-sticky-bar a[href^="#"]:hover {
  background: rgba(29, 138, 89, 0.38);
  border-color: rgba(230, 178, 76, 0.5);
  color: #ffffff;
}
.wishlist-sticky-right,
.wishlist-sticky-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.q-compact {
  padding: 16px 18px;
  scroll-margin-top: 120px;
}
.q-grid-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px) {
  .q-grid-top {
    grid-template-columns: 1.45fr 1fr;
    gap: 14px;
    align-items: start;
  }
}
.q-grid-top > .card,
.q-grid-top > .q {
  margin: 0;
  height: 100%;
}
.q-grid-top .options,
.options-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}
.q-grid-top .option-body,
.option-compact .option-body {
  padding: 10px 12px;
  gap: 10px;
}
.q-terps-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .q-terps-split {
    grid-template-columns: 1fr 1.15fr;
    gap: 18px;
    align-items: start;
  }
}
.q-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 120px;
}
.q-details-wrap .q-grid-2 {
  margin-bottom: 0;
}

/* ==========================================================================
   Activity Hub Launchpad & Dedicated Clickable Sub-Pages
   ========================================================================== */
.activity-hub-section {
  margin-top: 14px;
  margin-bottom: 24px;
}
.activity-hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.activity-hub-title {
  font-size: 22px;
  font-weight: 800;
  margin: 2px 0 0;
  color: #ffffff;
}
.activity-hub-sub {
  font-size: 13.5px;
  color: var(--on-dark-2);
}
/* 1. Employee Activity Hub Container & Compact Single Non-Scroll Dashboard */
.emp-hub-container,
.emp-hub-single-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 4px 8px 8px;
}
@media (max-width: 600px) {
  .emp-hub-container,
  .emp-hub-single-page {
    gap: 8px;
    padding: 2px 4px 6px;
  }
}

.emp-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.emp-hub-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.emp-hub-greeting-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.emp-hub-greeting {
  font-size: 18px;
  font-weight: 850;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.emp-hub-status-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.emp-hub-tagline {
  font-size: 11.5px;
  color: var(--ink-2);
  font-weight: 600;
}

/* Compact Countdown Banner */
.emp-countdown-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(230, 178, 76, 0.12) 0%, transparent 65%),
    linear-gradient(135deg, rgba(19, 42, 30, 0.9) 0%, rgba(13, 29, 21, 0.96) 100%);
  border: 1.5px solid rgba(230, 178, 76, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.emp-countdown-banner-holiday {
  background:
    radial-gradient(ellipse at 85% 50%, rgba(200, 16, 46, 0.16) 0%, transparent 65%),
    linear-gradient(135deg, rgba(30, 18, 22, 0.9) 0%, rgba(16, 26, 20, 0.96) 100%);
  border-color: rgba(200, 16, 46, 0.4);
}

.emp-countdown-banner-locked {
  background:
    radial-gradient(ellipse at 85% 50%, rgba(230, 178, 76, 0.15) 0%, transparent 65%),
    linear-gradient(135deg, rgba(28, 38, 22, 0.9) 0%, rgba(16, 26, 20, 0.96) 100%);
  border-color: rgba(230, 178, 76, 0.45);
}

.countdown-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.countdown-banner-badge {
  display: flex;
  align-items: center;
  gap: 7px;
}

.countdown-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: ticker-pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

.countdown-badge-dot-holiday {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.countdown-badge-dot-amber {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* -------------------------------------------------------------
   Strict Fixed Single-Page Application Dashboard (Zero Scrolling Kiosk Grid)
   ------------------------------------------------------------- */
html:has(body.emp-dashboard-body),
html.emp-dashboard-html,
body.emp-dashboard-body,
body:has(.emp-tile-grid-container) {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

body.emp-dashboard-body .topbar,
body:has(.emp-tile-grid-container) .topbar {
  flex-shrink: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

body.mobile-nav-open .topbar {
  z-index: 2000 !important;
}

body.emp-dashboard-body .topbar-inner,
body:has(.emp-tile-grid-container) .topbar-inner {
  max-width: 1440px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

body.emp-dashboard-body .brand,
body:has(.emp-tile-grid-container) .brand {
  flex-shrink: 0 !important;
  gap: 8px !important;
}

body.emp-dashboard-body .brand-mark,
body:has(.emp-tile-grid-container) .brand-mark {
  width: 30px !important;
  height: 30px !important;
}

body.emp-dashboard-body .brand-text strong,
body:has(.emp-tile-grid-container) .brand-text strong {
  font-size: 13.5px !important;
  white-space: nowrap !important;
}

body.emp-dashboard-body .brand-text small,
body:has(.emp-tile-grid-container) .brand-text small {
  font-size: 10.5px !important;
}

body.emp-dashboard-body .nav-pill-dock,
body:has(.emp-tile-grid-container) .nav-pill-dock {
  padding: 2px !important;
  gap: 2px !important;
}

body.emp-dashboard-body .nav-link,
body:has(.emp-tile-grid-container) .nav-link {
  padding: 3px 8px !important;
  font-size: 12px !important;
  gap: 4px !important;
}

body.emp-dashboard-body .audio-track-btn,
body:has(.emp-tile-grid-container) .audio-track-btn {
  padding: 3px 8px !important;
  font-size: 11px !important;
  max-width: 130px !important;
}

body.emp-dashboard-body .audio-toggle,
body:has(.emp-tile-grid-container) .audio-toggle {
  padding: 3px 8px !important;
  font-size: 11px !important;
}

body.emp-dashboard-body .footer,
body:has(.emp-tile-grid-container) .footer {
  display: none !important;
}

body.emp-dashboard-body .main,
body:has(.emp-tile-grid-container) .main {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: calc(100vh - 44px) !important;
  max-height: calc(100vh - 44px) !important;
  padding: clamp(6px, 1.2vh, 12px) clamp(8px, 1.5vw, 16px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 6-Tile Kiosk Grid: Exactly 3 Columns x 2 Rows */
.emp-tile-grid-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(6px, 1.2vh, 12px) !important;
}

@media (max-width: 767px) {
  body.emp-dashboard-body .main,
  body:has(.emp-tile-grid-container) .main {
    padding: 4px 6px !important;
  }

  .emp-tile-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .emp-tile {
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }

  .emp-tile-header {
    height: 28px !important;
    min-height: 28px !important;
    gap: 4px !important;
  }

  .emp-tile-icon-box {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
  }

  .emp-tile-icon-box svg {
    width: 15px !important;
    height: 15px !important;
  }

  .emp-tile-greet-name {
    font-size: 12px !important;
  }

  .emp-tile-greet-sub {
    display: none !important;
  }

  .emp-tile-title {
    font-size: 13px !important;
    white-space: normal !important;
    line-height: 1.18 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .emp-tile-desc {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .emp-tile-tags {
    gap: 3px !important;
  }

  .emp-tag {
    font-size: 9px !important;
    padding: 1px 5px !important;
  }

  .emp-tile-footer {
    height: 22px !important;
    min-height: 22px !important;
    padding-top: 3px !important;
  }

  .emp-tile-cta {
    font-size: 10.5px !important;
  }

  .emp-announcement-chip {
    padding: 2px 5px !important;
    font-size: 9px !important;
    gap: 3px !important;
  }

  .announcement-pill {
    font-size: 7.5px !important;
    padding: 1px 3px !important;
  }

  .announcement-text {
    font-size: 9px !important;
  }

  .emp-countdown-heading {
    font-size: 10.5px !important;
    gap: 3px !important;
  }

  .flip-clock-mini {
    gap: 2.5px !important;
  }

  .flip-clock-mini .flip-card {
    --card-w: clamp(23px, 6.2vw, 29px) !important;
    --card-h: clamp(28px, 4vh, 36px) !important;
    --card-fs: clamp(15px, 2.2vh, 20px) !important;
    --card-radius: 4px !important;
  }

  .flip-clock-mini .flip-label {
    font-size: 7.5px !important;
    margin-top: 1px !important;
  }

  .flip-clock-mini .flip-sep {
    height: clamp(28px, 4vh, 36px) !important;
    gap: 2px !important;
    padding: 0 !important;
  }

  .flip-clock-mini .flip-sep i {
    width: 2px !important;
    height: 2px !important;
  }

  .emp-tile-meta-chips {
    gap: 2.5px !important;
  }

  .emp-meta-chip {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
  }

  .emp-save-card-btn {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
  }

  .badge {
    font-size: 10px !important;
    padding: 1.5px 6px !important;
  }
}

@media (max-width: 360px) {
  .emp-tile-grid-container {
    gap: 4px !important;
  }

  .emp-tile {
    padding: 4px 6px !important;
  }

  .flip-clock-mini {
    gap: 1.5px !important;
  }

  .flip-clock-mini .flip-card {
    --card-w: 22px !important;
    --card-h: 27px !important;
    --card-fs: 14px !important;
    --card-radius: 3px !important;
  }

  .flip-clock-mini .flip-label {
    font-size: 7px !important;
  }

  .flip-clock-mini .flip-sep {
    height: 27px !important;
    gap: 1.5px !important;
  }

  .flip-clock-mini .flip-sep i {
    width: 1.8px !important;
    height: 1.8px !important;
  }

  .emp-countdown-heading {
    font-size: 9.5px !important;
  }

  .emp-tile-greet-name {
    font-size: 11px !important;
  }

  .badge {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
}

/* Individual Tile Styling */
.emp-tile {
  background: radial-gradient(ellipse at 50% 0%, rgba(26, 62, 44, 0.88) 0%, rgba(10, 26, 18, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  padding: clamp(8px, 1.5vh, 14px) clamp(10px, 1.5vw, 16px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: var(--on-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  position: relative;
}

a.emp-tile:hover,
.emp-party-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 175, 55, 0.25);
  color: var(--on-dark);
  cursor: pointer;
}

.emp-party-tile {
  cursor: pointer;
}

.emp-tile-hero {
  background: radial-gradient(ellipse at 85% 15%, rgba(230, 178, 76, 0.2) 0%, transparent 60%),
              linear-gradient(135deg, rgba(24, 60, 42, 0.98) 0%, rgba(11, 28, 19, 0.98) 100%);
  border: 1.5px solid rgba(230, 178, 76, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.emp-tile-holiday {
  background: radial-gradient(ellipse at 85% 15%, rgba(200, 16, 46, 0.22) 0%, transparent 60%),
              linear-gradient(135deg, rgba(42, 22, 28, 0.98) 0%, rgba(16, 26, 20, 0.98) 100%);
  border-color: rgba(200, 16, 46, 0.55);
}

.emp-tile-locked {
  background: radial-gradient(ellipse at 85% 15%, rgba(230, 178, 76, 0.2) 0%, transparent 60%),
              linear-gradient(135deg, rgba(38, 48, 26, 0.98) 0%, rgba(14, 26, 18, 0.98) 100%);
  border-color: rgba(230, 178, 76, 0.55);
}

/* Tile Layout Parts */
.emp-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  height: 38px;
  min-height: 38px;
}

.emp-tile-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.22) 0%, rgba(29, 138, 89, 0.32) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emp-tile-icon-hero {
  background: radial-gradient(circle at 30% 30%, rgba(230, 178, 76, 0.35) 0%, rgba(29, 138, 89, 0.25) 100%);
  border-color: rgba(230, 178, 76, 0.65);
}

.svg-icon-gold {
  stroke: #ffe299;
  width: 20px;
  height: 20px;
}

.svg-icon-emerald {
  stroke: #6ee7b7;
  width: 20px;
  height: 20px;
}

.svg-icon-red {
  stroke: #fca5a5;
  width: 20px;
  height: 20px;
}

.svg-inline-brand {
  width: 20px;
  height: 20px;
  stroke: #ffe299;
  display: inline-block;
  vertical-align: middle;
}

.svg-inline-xs {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  display: inline-block;
}

.emp-tile-greet-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.emp-tile-greet-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.emp-tile-greet-name {
  font-size: 15px;
  font-weight: 850;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.emp-tile-greet-sub {
  font-size: 11px;
  color: #c4d9cd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-tile-status-pill {
  flex-shrink: 0;
}

.svg-nav-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 3px;
}

.chip-svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 2px;
}

.emp-tile-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(4px, 0.8vh, 8px);
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 0;
  overflow: hidden;
}

.emp-tile-body-hero {
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  gap: clamp(2px, 0.6vh, 6px);
  padding: 2px 0;
}

.emp-announcement-chip {
  background: rgba(230, 178, 76, 0.12);
  border: 1px solid rgba(230, 178, 76, 0.35);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.announcement-pill {
  background: var(--gold);
  color: #0a1d14;
  font-weight: 850;
  font-size: 8.5px;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.announcement-text {
  font-size: 10.5px;
  color: #e2ece5;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.emp-countdown-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: clamp(12px, 1.4vh, 13px);
  font-weight: 800;
  color: #ffe299;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 0;
}

.countdown-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  display: inline-block;
  flex-shrink: 0;
}

.countdown-badge-dot-holiday {
  background: #ff4d6a;
  box-shadow: 0 0 8px #ff4d6a;
}

.countdown-badge-dot-amber {
  background: #ffd56b;
  box-shadow: 0 0 8px #ffd56b;
}

.emp-tile-meta-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: #e2ece5;
  flex-shrink: 0;
}

.emp-meta-chip {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 1.5px 7px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.emp-meta-chip strong {
  color: #ffe299;
}

.emp-tile-title {
  font-size: clamp(15px, 1.8vh, 17.5px);
  font-weight: 850;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.emp-tile-desc {
  font-size: clamp(11.5px, 1.35vh, 12.5px);
  color: #c4d9cd;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.emp-tile-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}

.emp-tag {
  background: rgba(8, 22, 15, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #ffe299;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.emp-tile-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
}

.emp-tile-cta {
  font-size: 12px;
  font-weight: 750;
  color: #ffe299;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
}

a.emp-tile:hover .emp-tile-cta {
  color: #ffffff;
  transform: translateX(3px);
}

.emp-save-card-btn {
  background: linear-gradient(135deg, rgba(29, 138, 89, 0.35) 0%, rgba(13, 40, 26, 0.7) 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  color: #ffe299 !important;
  font-weight: 750 !important;
  font-size: 11.5px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

.emp-save-card-btn:hover {
  background: linear-gradient(135deg, rgba(29, 138, 89, 0.6) 0%, rgba(20, 56, 38, 0.9) 100%) !important;
  border-color: #ffe299 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3) !important;
}

.emp-tile-sub-note {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Miniature Split-Flap Mechanical Flip Clock - Mathematical Precision Split */
.flip-clock-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.flip-clock-mini .flip-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.flip-clock-mini .flip-card {
  --card-w: clamp(34px, 3.2vw, 42px);
  --card-h: clamp(40px, 4.8vh, 46px);
  --card-fs: clamp(22px, 2.8vh, 26px);
  --card-radius: 6px;
  width: var(--card-w) !important;
  height: var(--card-h) !important;
  font-size: var(--card-fs) !important;
  border-radius: var(--card-radius);
  box-shadow:
    0 2px 0 #07120c,
    0 4px 10px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(230, 178, 76, .35);
}

.flip-clock-mini .flip-card::after {
  height: 1px !important;
  top: calc(50% - 0.5px) !important;
  background: rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  z-index: 6;
}

.flip-clock-mini .flip-hinge {
  height: 6px !important;
  width: 2.5px !important;
  top: calc(50% - 3px) !important;
  z-index: 7;
}
.flip-clock-mini .flip-hinge-l { left: -1px; }
.flip-clock-mini .flip-hinge-r { right: -1px; }

.flip-clock-mini .flip-sep {
  height: clamp(40px, 4.8vh, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 1px;
}

.flip-clock-mini .flip-sep i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 4px rgba(230, 178, 76, 0.6);
}

.flip-clock-mini .flip-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold-ink);
  text-transform: uppercase;
}

/* Mathematical vertical centering across the 50% split */
.flip-clock-mini .flip-top span,
.flip-clock-mini .flip-leaf-front span {
  top: 0 !important;
  bottom: auto !important;
  height: var(--card-h) !important;
  line-height: var(--card-h) !important;
  display: block !important;
  text-align: center !important;
}

.flip-clock-mini .flip-bottom span,
.flip-clock-mini .flip-leaf-back span {
  top: calc(var(--card-h) * -0.5) !important;
  bottom: auto !important;
  height: var(--card-h) !important;
  line-height: var(--card-h) !important;
  display: block !important;
  text-align: center !important;
}

@media (max-width: 480px) {
  .flip-clock-mini .flip-card {
    --card-w: 34px !important;
    --card-h: 42px !important;
    --card-fs: 24px !important;
    --card-radius: 6px !important;
  }
  .flip-clock-mini .flip-sep {
    height: 42px;
    gap: 4px;
  }
  .flip-clock-mini .flip-label {
    font-size: 8.5px;
  }
}

.hub-tile-features {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hub-feature-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.emp-compact-notice {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 12px;
}

/* 2. Subpage Back Bar & Navigation Dock Context Pills (.subpage-back-bar, .subpage-context-pill) */
.subpage-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.subpage-back-bar .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.subpage-back-bar .btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  transform: translateX(-2px);
}
.subpage-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 480px) {
  .subpage-back-bar {
    gap: 6px;
    margin-bottom: 6px;
  }
  .subpage-back-bar .btn {
    padding: 5px 11px;
    font-size: 12px;
  }
  .subpage-context-pill {
    padding: 4px 10px;
    font-size: 11.5px;
  }
}

/* 3. Anonymous Santa Chat Role Switcher Tabs (.chat-role-tabs) */
.chat-role-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chat-role-tabs .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.16s ease;
  text-decoration: none;
}
.chat-role-tabs .btn-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
}
.chat-role-tabs .btn-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.chat-role-tabs .btn-holiday {
  background: linear-gradient(135deg, #c8102e 0%, #a30c25 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 226, 153, 0.45);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
}
.chat-role-tabs .btn-holiday:hover {
  background: linear-gradient(135deg, #d91c3b 0%, #b8102d 100%);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.45);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .chat-role-tabs {
    gap: 8px;
  }
  .chat-role-tabs .btn {
    flex: 1 1 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* 4. Activity Hub Launchpad Grid & High-Density Tiles (.activity-hub-grid, .hub-tile) */
.activity-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1200px) {
  .activity-hub-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .activity-hub-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.hub-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 155px;
  position: relative;
  overflow: hidden;
}
.hub-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.4);
}
.hub-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.hub-tile-icon {
  font-size: 20px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.hub-tile-green .hub-tile-icon {
  background: linear-gradient(135deg, #e7f5ed 0%, #d4eedf 100%);
  border-color: rgba(29, 138, 89, 0.35);
}
.hub-tile-gold .hub-tile-icon {
  background: linear-gradient(135deg, #fff6e2 0%, #faecc7 100%);
  border-color: rgba(230, 178, 76, 0.45);
}
.hub-tile-holiday .hub-tile-icon {
  background: linear-gradient(135deg, #fdecee 0%, #fbd5d9 100%);
  border-color: rgba(200, 16, 46, 0.35);
}
.hub-tile-thumb {
  overflow: hidden;
  padding: 0;
}
.hub-tile-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  background: #0d2318;
}
.hub-tile-badge {
  font-size: 10.5px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 44px);
  flex-shrink: 1;
}
.hub-tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.hub-tile-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-tile-sub,
.hub-tile-desc {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub-tile-footer {
  margin-top: auto;
  padding-top: 2px;
}
.hub-tile-cta {
  font-size: 12px;
  font-weight: 750;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.14s ease, color 0.14s ease;
}
.hub-tile:hover .hub-tile-cta {
  color: var(--green-600);
  transform: translateX(3px);
}
.hub-tile-green {
  border-color: rgba(29, 138, 89, 0.35);
}
.hub-tile-green:hover {
  border-color: var(--green);
}
.hub-tile-gold {
  border-color: rgba(230, 178, 76, 0.4);
}
.hub-tile-gold:hover {
  border-color: var(--gold);
}
.hub-tile-holiday {
  border-color: rgba(200, 16, 46, 0.35);
}
.hub-tile-holiday:hover {
  border-color: var(--red);
}

/* 5. Host Navigation & Tree Refinements */
.host-subnav {
  margin-bottom: 16px;
}
.jump-badge {
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #c8102e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  margin-left: 4px;
  line-height: 1;
}
.card-head-sub {
  font-size: 13.5px;
  margin-top: 2px;
}
.crew-tree-showcase {
  margin-top: 0;
}
@media (max-width: 480px) {
  .crew-ornament-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .crew-ornament-item {
    padding: 10px 8px 10px;
    border-radius: 14px;
  }
  .crew-ornament-img-wrap {
    width: 90px;
    height: 105px;
  }
}

/* ---------------------------------------------------- Christmas Party Info Modal */
.party-info-modal {
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  background: var(--bg-surface, #0f1c15);
  color: var(--text-color, #e8f5e9);
  max-width: 480px;
  width: 92vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  padding: 0;
  overflow: hidden;
}

.party-info-modal::backdrop {
  background: rgba(4, 12, 8, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.party-info-modal .modal-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.party-info-modal .modal-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(135deg, rgba(26, 62, 44, 0.6) 0%, rgba(10, 26, 18, 0.8) 100%);
}

.party-info-modal .modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
}

.party-info-modal .modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.party-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.party-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.party-info-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.party-info-val {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.party-guidelines {
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
}

.party-guidelines h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #ff8a80;
}

.party-guidelines ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.party-guidelines li + li {
  margin-top: 5px;
}

.party-info-modal .modal-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}




