/* ============================================================
   MATCH4JOBS — SWIPER CSS  (cleaned up)
   ============================================================ */

:root {
  --bg0: #070c18;
  --bg1: #0a1430;

  --card: rgba(12, 20, 46, .85);
  --stroke: rgba(255,255,255,.09);

  --text: #eaf0ff;
  --muted: rgba(234,240,255,.65);

  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --radius: 22px;

  --accept:  #2bd576;
  --decline: #ff4d4d;

  --navH:    62px;
  --gap:     8px;
  --pad:     14px;

  --photoMax: 460px;
  --photoVh:  46dvh;
  --btnH:     58px;
  --pillPad:  10px;
  --iconBox:  36px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 18% 8%,  rgba(86,140,255,.16), transparent 60%),
    radial-gradient(800px 500px at 90% 18%, rgba(43,213,118,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  overflow: hidden;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--navH);
  padding: 0 clamp(12px, 2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(7,12,24,.72);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-left  { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(234,240,255,.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .15s, background .15s;
  flex-shrink: 0;
}
.icon-btn:hover  { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.icon-btn:active { transform: translateY(0); }

.hamburger {
  width: 18px;
  height: 13px;
  position: relative;
  display: inline-block;
}
.hamburger::before,
.hamburger::after,
.hamburger span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(234,240,255,.90);
}
.hamburger::before { top: 0; }
.hamburger span    { top: 5.5px; }
.hamburger::after  { bottom: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.brand-dot {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(86,140,255,.95), rgba(43,213,118,.85));
  box-shadow: 0 8px 24px rgba(86,140,255,.22);
  flex-shrink: 0;
}
.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   FILTER TOGGLE + BAR
   ============================================================ */
.filter-toggle-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid rgba(86,140,255,.28);
  background: rgba(86,140,255,.09);
  color: #8ab4ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, transform .15s;
}
.filter-toggle-btn:hover  { background: rgba(86,140,255,.18); transform: translateY(-1px); }
.filter-toggle-btn.active { background: rgba(86,140,255,.22); border-color: rgba(86,140,255,.48); }
.filter-label { font-size: 11px; }

.filter-bar {
  padding: 8px clamp(12px, 2vw, 22px);
  background: rgba(7,12,24,.5);
  border-bottom: 1px solid rgba(255,255,255,.06);
  animation: filterSlide .2s ease;
}
.filter-bar[hidden] { display: none; }

@keyframes filterSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.filter-select {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  color: #eaf0ff;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 32px 8px 12px;
  outline: none;
  appearance: none;
  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 d='M1 1l5 5 5-5' stroke='rgba(234,240,255,.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-select option { background: #0f1828; color: #eaf0ff; }
.filter-select:focus  { border-color: rgba(86,140,255,.5); }

.filter-apply-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: rgba(43,213,118,.18);
  color: #2bd576;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.filter-apply-btn:hover { background: rgba(43,213,118,.28); }

.filter-reset-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,.05);
  color: rgba(234,240,255,.45);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.filter-reset-btn:hover { background: rgba(255,255,255,.08); color: #eaf0ff; }

.filter-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2bd576;
  border: 2px solid #070c18;
}

/* ============================================================
   DRAWER
   ============================================================ */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 60;
}

.drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: min(320px, 86vw);
  z-index: 70;
  transform: translateX(-110%);
  transition: transform .22s ease;
  background: rgba(8,14,36,.94);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 16px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.drawer-title { font-weight: 900; letter-spacing: -.01em; }

.drawer-nav {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  text-decoration: none;
  color: rgba(234,240,255,.90);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .15s, background .15s;
}
.nav-item:hover  { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.nav-item:active { transform: translateY(0); }
.nav-item.active {
  border-color: rgba(86,140,255,.28);
  background: rgba(86,140,255,.14);
}

.drawer-foot {
  margin-top: auto;
  padding: 14px 16px 18px;
  color: rgba(234,240,255,.40);
  font-weight: 700;
  font-size: 11px;
}

/* ============================================================
   PAGE SHELL
   ============================================================ */
.page {
  height: calc(100dvh - var(--navH));
  min-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 10px clamp(10px, 2vw, 20px);
}

.swipe-ui {
  width: min(560px, 100%);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  overflow: hidden;
  position: relative;
}

/* ============================================================
   CARD STACK
   ============================================================ */
.card-stack {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;

  transform-origin: center 80%;
  transition: transform .08s linear, box-shadow .08s linear;
  will-change: transform;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.card::-webkit-scrollbar { display: none; }
.card:active { cursor: grabbing; }

.card.back-1 { transform: scale(0.97) translateY(10px); z-index: 1; pointer-events: none; }
.card.back-2 { transform: scale(0.94) translateY(20px); z-index: 0; pointer-events: none; }
.card.front  { z-index: 2; }

.card.fly-right {
  transition: transform .38s cubic-bezier(.4,0,1,1), opacity .38s ease !important;
  transform: translateX(110%) rotate(18deg) !important;
  opacity: 0;
  pointer-events: none;
}
.card.fly-left {
  transition: transform .38s cubic-bezier(.4,0,1,1), opacity .38s ease !important;
  transform: translateX(-110%) rotate(-18deg) !important;
  opacity: 0;
  pointer-events: none;
}
.card.snap-back {
  transition: transform .32s cubic-bezier(.25,1.4,.5,1) !important;
}

/* ============================================================
   SWIPE OVERLAYS
   ============================================================ */
.swipe-ol {
  position: absolute;
  top: 16px;
  z-index: 10;
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s;
}
.swipe-ol.ol-accept {
  left: 14px;
  background: rgba(43,213,118,.85);
  border: 2px solid var(--accept);
  color: #fff;
}
.swipe-ol.ol-decline {
  right: 14px;
  background: rgba(255,77,77,.85);
  border: 2px solid var(--decline);
  color: #fff;
}


/* ── SPLASH LOADER ──────────────────────────────────────────── */
.splash-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(900px 600px at 18% 8%, rgba(86,140,255,.16), transparent 60%),
    radial-gradient(800px 500px at 90% 18%, rgba(43,213,118,.12), transparent 60%),
    linear-gradient(180deg, #070c18 0%, #0a1430 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity .4s ease, visibility .4s ease;
}

.splash-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86,140,255,.18), transparent 70%);
  animation: splashPulse 2.2s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0.5; }
}

.splash-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: splashSpin 1.8s ease-in-out infinite;
}

@keyframes splashSpin {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

.splash-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #eaf0ff;
  position: relative;
  z-index: 1;
}

.splash-dots {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.splash-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(86,140,255,.7);
  animation: splashDot 1.2s ease-in-out infinite;
}
.splash-dots span:nth-child(2) { animation-delay: .2s; }
.splash-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes splashDot {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%       { opacity: .2; transform: scale(.7); }
}

/* ============================================================
   PHOTO — hero of the card
   ============================================================ */
.photo-rect {
  position: relative;
  width: 100%;
  height: min(var(--photoMax), var(--photoVh));
  flex-shrink: 0;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  touch-action: pan-y;
  border-radius: var(--radius) var(--radius) 0 0;
}

.photo-rect::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(to top, rgba(12,20,46,.65), transparent);
  pointer-events: none;
  z-index: 2;
}

.photo-track {
  height: 100%;
  display: flex;
  transform: translateX(0%);
  transition: transform .28s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  user-select: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(1.08);
  cursor: pointer;
  pointer-events: all !important;
  position: relative;
  z-index: 50;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.32);
  color: rgba(234,240,255,.95);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  backdrop-filter: blur(10px);
  transition: transform .15s, background .15s;
  z-index: 10;
}
.photo-arrow:hover  { transform: translateY(-50%) scale(1.05); background: rgba(0,0,0,.44); }
.photo-arrow:active { transform: translateY(-50%) scale(.97); }
.photo-arrow.left  { left: 12px; }
.photo-arrow.right { right: 12px; }

.photo-overlay {
  position: absolute;
  left: 0; right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.dots {
  display: flex;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(234,240,255,.28);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.active {
  background: rgba(234,240,255,.95);
  transform: scale(1.2);
}

.invited-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f6a623, #f97316);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 100px;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(249,115,22,.45);
  letter-spacing: .3px;
}
.invited-banner[hidden] { display: none !important; }

/* ============================================================
   JOB HEADER
   ============================================================ */
.job-header {
  padding: 10px var(--pad) 2px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.job-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.poster-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 3px 6px;
  margin: -3px -6px;
  transition: background .15s;
}
.poster-row:hover { background: rgba(255,255,255,.06); }

.poster-av {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.poster-info { display: flex; flex-direction: column; gap: 1px; }

.poster-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   DESCRIPTION
   ============================================================ */
.desc-wrap {
  padding: 2px var(--pad) 0;
  flex-shrink: 0;
}

.section-title {
  margin: 0 0 5px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(234,240,255,.45);
  font-weight: 900;
}

.desc {
  margin: 0;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(20,40,80,.36);
  color: rgba(234,240,255,.88);
  line-height: 1.5;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
    line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ============================================================
   INFO PILLS — single horizontal scrolling row
   ============================================================ */
.info-grid {
  padding: 6px var(--pad) 0;
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
.info-grid::-webkit-scrollbar { display: none; }

.info-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  flex-shrink: 0;
}

.info-pill .icon {
  font-size: 14px;
  line-height: 1;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
}

.meta .label { display: none; }

.meta .value {
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
  color: var(--text);
}

/* ============================================================
   REPORT ROW
   ============================================================ */
.report-row {
  padding: 0 var(--pad);
  margin: 0 0 -20px 0;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.report-btn {
  background: none;
  border: none;
  color: rgba(234,240,255,.22);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  letter-spacing: .04em;
  font-family: inherit;
}
.report-btn:hover {
  color: #ff6b6b;
  background: rgba(255,77,77,.08);
}

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.actions {
  padding: 6px var(--pad) var(--pad);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto;
}

.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--btnH);
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 15px;
  font-family: inherit;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  transition: transform .15s, filter .15s;
}
.btn:hover  { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(.99); }

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  font-size: 20px;
  line-height: 1;
}

.btn.accept {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 55%), var(--accept);
  color: #fff;
}
.btn.decline {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 55%), var(--decline);
  color: #fff;
}

/* ============================================================
   MATCH SCREEN
   ============================================================ */
.match-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: var(--radius);
  background: rgba(7,12,24,.97);
  border: 1px solid rgba(43,213,118,.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 28px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.match-screen.show {
  opacity: 1;
  pointer-events: auto;
  animation: matchPop .5s cubic-bezier(.25,1.4,.5,1) forwards;
}

@keyframes matchPop {
  0%   { transform: scale(.92); box-shadow: 0 0 0 0    rgba(43,213,118,.5); }
  60%  { transform: scale(1.02); box-shadow: 0 0 0 18px rgba(43,213,118,0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0    rgba(43,213,118,0); }
}

.match-glow {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,213,118,.30), transparent 70%);
  display: grid;
  place-items: center;
  font-size: 36px;
}
.match-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--accept);
  margin: 0;
}
.match-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.5;
  margin: 0;
}
.match-job-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  padding: 9px 18px;
}
.match-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.match-btn {
  height: 42px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  padding: 0 20px;
  font-family: inherit;
  transition: transform .15s, filter .15s;
}
.match-btn:hover  { transform: translateY(-1px); filter: brightness(1.06); }
.match-btn:active { transform: translateY(0); }
.match-btn.primary   { background: var(--accept); color: #fff; }
.match-btn.secondary {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  color: var(--text);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.10);
}
.empty-state.show { display: flex; }

.empty-icon  { font-size: 46px; }
.empty-title { font-size: 18px; font-weight: 900; margin: 0; }
.empty-sub   { font-size: 13px; color: var(--muted); max-width: 200px; line-height: 1.5; margin: 0; }

.empty-reload {
  margin-top: 4px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  padding: 0 22px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, background .15s;
}
.empty-reload:hover { transform: translateY(-1px); background: rgba(255,255,255,.10); }

/* ============================================================
   REPORT MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 80;
  backdrop-filter: blur(4px);
}

.report-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  z-index: 90;
  background: #0d1626;
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 22px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp .25s cubic-bezier(.25,1.4,.5,1);
}
.report-modal[hidden] { display: none; }

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(40px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.modal-sub   { margin: 0; font-size: 13px; color: var(--muted); }

.report-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.report-option {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: inherit;
}
.report-option:hover   { background: rgba(255,255,255,.08); }
.report-option.selected {
  border-color: rgba(255,107,53,.48);
  background: rgba(255,107,53,.09);
  color: #ff8c5a;
}
.report-submit {
  height: 48px;
  border-radius: 13px;
  border: none;
  background: #ff4d4d;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s, transform .15s;
}
.report-submit:disabled {
  background: rgba(255,255,255,.07);
  color: rgba(234,240,255,.28);
  cursor: not-allowed;
}
.report-submit:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10001;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10001;
}
.lightbox-arrow:hover  { background: rgba(255,255,255,.22); }
.lightbox-arrow.left  { left: 16px; }
.lightbox-arrow.right { right: 16px; }

.lightbox-counter {
  color: rgba(255,255,255,.50);
  font-size: 12px;
  margin-top: 10px;
  font-weight: 600;
}

/* ============================================================
   GUEST GATE
   ============================================================ */
.card-stack.gated #frontCard {
  pointer-events: none;
  user-select: none;
}
.card-stack.gated #frontCard > *:not(.guest-gate) {
  filter: blur(4px);
  opacity: 0.45;
}
.card-stack.gated #frontCard .guest-gate {
  pointer-events: all;
  user-select: auto;
}

/* ============================================================
   SWIPE HINT ARROWS
   ============================================================ */
.swipe-hint {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.swipe-hint.visible { opacity: 1; }
.swipe-hint.hiding  { opacity: 0; }

.hint-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 100%;
  position: relative;
}

.hint-shadow.left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(34,197,94,.20) 0%, transparent 100%);
  pointer-events: none;
}
.hint-shadow.right {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(255,59,59,.20) 0%, transparent 100%);
  pointer-events: none;
}

.hint-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 13px;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}
.hint-arrow.left {
  background: rgba(34,197,94,.11);
  border: 1px solid rgba(34,197,94,.26);
  box-shadow: 0 0 24px rgba(34,197,94,.16), inset 0 0 12px rgba(34,197,94,.06);
  animation: hintPulseLeft 1.3s ease-in-out infinite;
}
.hint-arrow.right {
  background: rgba(255,59,59,.11);
  border: 1px solid rgba(255,59,59,.26);
  box-shadow: 0 0 24px rgba(255,59,59,.16), inset 0 0 12px rgba(255,59,59,.06);
  animation: hintPulseRight 1.3s ease-in-out infinite;
}

.hint-arrow span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hint-arrow.left  span { color: #22c55e; }
.hint-arrow.right span { color: #ff4d4d; }

.hint-arrow.left svg {
  filter: drop-shadow(0 0 6px rgba(34,197,94,.9)) drop-shadow(0 0 14px rgba(34,197,94,.5));
}
.hint-arrow.right svg {
  filter: drop-shadow(0 0 6px rgba(255,59,59,.9)) drop-shadow(0 0 14px rgba(255,59,59,.5));
}

@keyframes hintPulseLeft {
  0%, 100% { transform: translateX(0);    box-shadow: 0 0 24px rgba(34,197,94,.16); }
  50%       { transform: translateX(-8px); box-shadow: 0 0 36px rgba(34,197,94,.36); }
}
@keyframes hintPulseRight {
  0%, 100% { transform: translateX(0);   box-shadow: 0 0 24px rgba(255,59,59,.16); }
  50%       { transform: translateX(8px); box-shadow: 0 0 36px rgba(255,59,59,.36); }
}

/* ============================================================
   TOAST
   ============================================================ */
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 430px), (max-height: 750px) {
  :root {
    --navH:     56px;
    --gap:      6px;
    --pad:      12px;
    --photoMax: 280px;
    --photoVh:  38dvh;
    --btnH:     50px;
    --pillPad:  8px;
    --iconBox:  32px;
  }

  .brand-sub   { display: none; }
  .brand-title { font-size: 14px; }
  .job-title   { font-size: 15px; }
  .poster-name { font-size: 11px; max-width: 90px; }
  .poster-av   { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
  .section-title { font-size: 9px; margin-bottom: 4px; }
  .desc { font-size: 13.5px; line-height: 1.45; padding: 8px 10px; }
  .info-pill { padding: 6px 9px; border-radius: 10px; }
  .meta .value { font-size: 11px; }
  .btn { font-size: 14px; border-radius: 14px; gap: 7px; }
  .btn-icon { width: 30px; height: 30px; font-size: 18px; }
  .report-btn { font-size: 11px; }
  .photo-arrow { display: none; }
  .page { padding: 8px 10px; }
}

/* ============================================================
   LARGE SCREENS
   ============================================================ */
@media (min-width: 768px) {
  :root { --photoMax: 500px; --photoVh: 52dvh; }
  .swipe-ui { width: min(520px, 100%); }
}

@media (min-width: 1200px) {
  :root { --photoMax: 540px; --photoVh: 54dvh; }
  .swipe-ui { width: min(540px, 100%); }
}