:root {
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-subtle: #f3efe9;
  --text-primary: #1f1d1a;
  --text-secondary: #625d56;
  --text-muted: #8c857b;
  --accent-gold: #b88a44;
  --accent-gold-hover: #9e7332;
  --accent-gold-light: #f9f3e8;
  --border-color: #e6e0d6;
  --shadow-sm: 0 2px 8px rgba(31, 29, 26, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 29, 26, 0.09);
  --shadow-lg: 0 18px 42px rgba(31, 29, 26, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #231f1c 0%, #3a322b 100%);
  color: #ffffff;
  padding: 44px 0 40px;
  text-align: center;
  border-bottom: 3px solid var(--accent-gold);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(184, 138, 68, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-admin-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e6c68f;
  background: rgba(184, 138, 68, 0.16);
  border: 1px solid rgba(230, 198, 143, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.hero-title em {
  color: #e6c68f;
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(0.96rem, 2.2vw, 1.1rem);
  color: #ded8cf;
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-lg {
  padding: 15px 22px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(184, 138, 68, 0.35);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--accent-gold);
  color: #ffffff;
}

.btn-gold:hover {
  background: var(--accent-gold-hover);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.btn-text small {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.86;
  margin-top: 2px;
}

/* Main Content Sections */
.main-content {
  padding-top: 28px;
  padding-bottom: 64px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Active Guest Panel */
.active-guest-panel {
  background: var(--bg-surface);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.25s ease;
}

.guest-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.guest-banner-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.guest-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.guest-avatar-lg {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.guest-match-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #1c7c4d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.guest-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-hover);
  margin-bottom: 2px;
}

.guest-banner-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.15;
  margin-bottom: 4px;
}

.guest-banner-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.guest-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Companions Bar ("Quem estava com você") */
.companions-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.companions-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.companions-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.companions-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.companions-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.companion-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.companion-chip:hover,
.companion-chip.active {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
}

.companion-chip img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.companion-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.companion-meta strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.companion-meta span {
  font-size: 0.74rem;
  color: var(--accent-gold-hover);
  font-weight: 600;
}

/* Faces Grid ("Quem é você na festa?") */
.guests-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.faces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px 10px;
}

.face-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-md);
  transition: transform 0.18s ease, background 0.18s ease;
}

.face-card:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.face-card.selected {
  background: var(--accent-gold-light);
  outline: 2px solid var(--accent-gold);
}

.face-avatar-box {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
}

.face-avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background: var(--bg-subtle);
  transition: border-color 0.18s ease;
}

.face-card:hover .face-avatar-box img,
.face-card.selected .face-avatar-box img {
  border-color: var(--accent-gold);
}

.face-count-badge {
  position: absolute;
  bottom: -4px;
  right: -2px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 2px solid var(--bg-surface);
}

.face-card-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.faces-more-wrap {
  margin-top: 18px;
  text-align: center;
}

/* Photos Toolbar & Category Pills */
.photos-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.photos-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.photos-counter-pill {
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
  border: 1px solid rgba(184, 138, 68, 0.35);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pill {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  border-color: var(--accent-gold);
}

.cat-pill.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

@media (max-width: 600px) {
  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.photo-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.photo-card.landscape {
  aspect-ratio: 4 / 3;
}

.photo-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-card:hover > img {
  transform: scale(1.03);
}

.photo-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.photo-people-avatars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 82px);
}

.photo-card .photo-mini-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -6px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}

.photo-card .photo-mini-avatar:hover {
  transform: scale(1.18);
  z-index: 4;
}

.photo-card .photo-mini-avatar:first-child {
  margin-left: 0;
}

.photo-mini-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  flex-shrink: 0;
}

.photo-mini-avatar-wrap:first-child {
  margin-left: 0;
}

.photo-mini-avatar-wrap .photo-mini-avatar {
  margin-left: 0 !important;
}

.btn-mini-avatar-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-mini-avatar-remove:hover {
  background: #991b1b;
  transform: scale(1.2);
}

.btn-quick-save {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-quick-save:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: scale(1.04);
}

.load-more-wrap {
  margin-top: 28px;
  text-align: center;
}

/* Selfie Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.76);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--bg-surface);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.modal-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-icon-close {
  background: var(--bg-subtle);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-body {
  padding: 22px;
}

.selfie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selfie-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-page);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.selfie-option-btn.primary {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
}

.selfie-option-btn:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.opt-icon {
  font-size: 2rem;
}

.opt-info {
  display: flex;
  flex-direction: column;
}

.opt-info strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.opt-info small {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Camera View */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 360px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-oval-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 230px;
  transform: translate(-50%, -50%);
  border: 2.5px dashed rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
}

.camera-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Selfie Processing & Matches */
.selfie-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

#selfiePreviewCanvas {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
  flex-shrink: 0;
}

.selfie-status-box h4 {
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.selfie-status-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 6px;
}

.matches-label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.selfie-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.match-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
}

.match-card.best {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
}

.match-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.match-card img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.match-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1c7c4d;
}

.match-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 11, 10, 0.95);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #fff;
}

.lightbox-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lightbox-close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 12px;
}

.lightbox-img-container {
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

.lightbox-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: #ccc;
  font-size: 0.82rem;
  gap: 12px;
}

.lightbox-people {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.lightbox-person-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 10px 3px 3px;
  font-size: 0.75rem;
  cursor: pointer;
}

.lightbox-person-btn img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* Footer & Toast */
.site-footer {
  text-align: center;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--accent-gold-hover);
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1d1a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
}

/* Admin Panel Styles */
.guests-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-panel {
  background: #fdfaf3;
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 22px;
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-header strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.admin-panel-header p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.admin-selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.admin-sel-count {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-sel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-sel-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.face-card.admin-checked {
  background: #e6f6ed;
  outline: 2.5px solid #1c7c4d;
}

.face-admin-check {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 24px;
  height: 24px;
  background: #1c7c4d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.admin-suggestions-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-suggestions-title small {
  font-weight: 400;
  color: var(--text-secondary);
}

.admin-suggestions-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.suggestion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  flex-shrink: 0;
  min-width: 215px;
}

.suggestion-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.suggestion-person img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.suggestion-person span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 3px;
}

.suggestion-actions {
  display: flex;
  gap: 6px;
  width: 100%;
}

.suggestion-actions button {
  flex: 1;
  padding: 5px 8px;
  font-size: 0.75rem;
}

.btn-admin-remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(185, 28, 28, 0.92);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-admin-remove-photo:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.btn-admin-add-person {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-admin-add-person:hover {
  background: var(--accent-gold-hover);
  transform: scale(1.12);
}

.modal-card-lg {
  max-width: 720px;
}

.modal-card-studio {
  max-width: 1120px;
  width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.add-person-studio {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 1fr);
  gap: 20px;
  overflow: hidden;
  padding: 18px 22px;
  flex: 1;
  min-height: 0;
}

.add-person-preview-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.add-person-photo-frame {
  position: relative;
  background: #14110f;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44vh;
  min-height: 220px;
}

.studio-photo-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(20, 17, 15, 0.78);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.studio-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 17, 15, 0.72);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.studio-nav-btn:hover:not(:disabled) {
  background: var(--accent-gold);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.studio-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.studio-nav-btn.prev {
  left: 10px;
}

.studio-nav-btn.next {
  right: 10px;
}

.add-person-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.add-person-selected-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  max-height: 150px;
  overflow-y: auto;
}

.add-person-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold);
  border-radius: 999px;
  padding: 3px 8px 3px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.studio-selected-chip:hover {
  background: #fff2f0;
  border-color: #d93829;
}

.studio-selected-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.studio-selected-chip-x {
  color: #b42318;
  font-weight: 700;
  margin-left: 2px;
}

.add-person-save-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.add-person-save-bar .btn-gold {
  flex: 1;
}

.add-person-picker-col {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 76vh;
}

.picker-face-btn {
  position: relative;
}

.picker-face-btn.is-picked {
  border: 2px solid var(--accent-gold);
  background: var(--accent-gold-light);
}

.picker-check-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 820px) {
  .add-person-studio {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .add-person-photo-frame {
    height: 30vh;
    min-height: 180px;
  }

  .add-person-picker-col {
    max-height: none;
    overflow-y: visible;
  }
}

.add-person-body {
  max-height: 75vh;
  overflow-y: auto;
}

.admin-search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.guest-search-bar {
  margin-bottom: 14px;
}

.guest-search-input {
  margin-bottom: 0;
  background: var(--bg-page);
}

.guest-search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.create-person-from-photo-box {
  background: #fdfaf3;
  border: 1.5px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.create-person-from-photo-box > button {
  width: 100%;
  border-color: var(--accent-gold);
  color: var(--accent-gold-hover);
}

.detected-new-faces-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.picker-section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.add-person-suggested {
  background: var(--accent-gold-light);
  border: 1px solid rgba(184, 138, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
}

.picker-faces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px 8px;
}

.picker-face-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.picker-face-btn:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.picker-face-btn img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 5px;
}

.picker-face-btn span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.15;
}

.admin-hidden-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.admin-hidden-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.hidden-person-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  flex-shrink: 0;
}

.hidden-person-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.hidden-person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hidden-person-info span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.admin-avatar-picker {
  background: var(--bg-surface);
  border: 1.5px solid rgba(184, 138, 68, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 12px;
}

.admin-avatar-picker-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-avatar-picker-header strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.admin-avatar-picker-header small {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.admin-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.avatar-suggestion-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.avatar-suggestion-btn:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.avatar-suggestion-btn.top-pick {
  border-color: var(--accent-gold);
  background: #fdf9f1;
}

.avatar-suggestion-btn img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.avatar-suggestion-btn.top-pick img {
  border-color: var(--accent-gold);
}

.avatar-suggestion-tag {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--accent-gold-hover);
}

.avatar-picker-status {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 8px 2px;
}

.tag-all-photo-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-all-photo-box > button {
  flex: 1 1 220px;
}

.photo-all-guests-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 17, 15, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.lightbox-all-guests-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 138, 68, 0.25);
  color: #f8e7c4;
  border: 1px solid rgba(184, 138, 68, 0.55);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
