@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Source+Serif+4:wght@400;600&display=swap");

:root {
  --bg-1: #0a0f1f;
  --bg-2: #0e1528;
  --accent: #5ddcff;
  --accent-2: #3a9bd9;
  --accent-3: #8af2c8;
  --card: rgba(17, 23, 38, 0.96);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f4f7ff;
  --text-muted: #b9c4d6;
  --text-soft: #93a0b5;
}

body.theater-bg {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(255, 190, 92, 0.08), transparent),
              radial-gradient(1000px 600px at 90% -20%, rgba(196, 69, 54, 0.15), transparent),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.glow {
  position: fixed;
  inset: -40% 0 auto 0;
  height: 60%;
  background: radial-gradient(circle, rgba(246, 196, 83, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main.container,
nav.navbar {
  position: relative;
  z-index: 1;
}

.theater-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: floatIn 0.6s ease both;
}

.email-log {
  background: #f5f7fb;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: floatIn 0.6s ease both;
}

.email-log::backdrop {
  background: rgba(5, 8, 16, 0.6);
}

.hero-panel {
  background: linear-gradient(120deg, rgba(93, 220, 255, 0.2), rgba(138, 242, 200, 0.18));
  border: 1px solid rgba(93, 220, 255, 0.25);
  animation: fadeIn 0.8s ease both;
}

.poster-img {
  object-fit: contain;
  object-position: center;
  height: 280px;
  background: rgba(255, 255, 255, 0.04);
}

.poster-placeholder {
  height: 280px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.movie-thumb {
  width: 52px;
  height: 74px;
  object-fit: cover;
  border-radius: 4px;
}

.movie-poster-lg {
  width: clamp(140px, 18vw, 220px);
  height: clamp(210px, 27vw, 330px);
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.seat-map {
  --seat-size: clamp(38px, 4.4vw, 44px);
  --seat-gap: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
}

.seat-row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}

.seat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--seat-size);
  min-height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  margin-right: var(--seat-gap);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.seat-static {
  cursor: default;
  font-size: 0.78rem;
  color: var(--text-main);
}

.seat-booked {
  background: rgba(255, 255, 255, 0.3);
  color: #0a0f1f;
}

.seat input {
  display: none;
}

.seat span {
  font-size: 0.8rem;
  color: var(--text-main);
}

.seat input:checked + span {
  color: #0b0f1a;
  background: var(--accent-3);
  padding: 4px 6px;
  border-radius: 4px;
}

.seat input:disabled + span {
  color: var(--text-soft);
  opacity: 0.5;
}

.seat-gap {
  border-radius: 6px;
  background: transparent;
  margin-right: var(--seat-gap);
}

.seat-gap-half {
  width: calc(var(--seat-size) / 2);
  min-height: 38px;
}

.seat-gap-full {
  width: var(--seat-size);
  min-height: 38px;
}

.seat-loveseat-left {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.seat-loveseat-right {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}

.seat-row > :last-child {
  margin-right: 0;
}

.owner-viewing-list .list-group-item {
  background: rgba(17, 23, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.owner-viewing-list .list-group-item.active {
  background: rgba(93, 220, 255, 0.2);
  border-color: rgba(93, 220, 255, 0.5);
  color: var(--text-main);
}

.owner-dashboard-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-item {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-dark {
  --bs-table-bg: rgba(18, 24, 38, 0.95);
  --bs-table-color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  color: #0a0f1f;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(93, 220, 255, 0.25);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-main);
}

.btn-outline-light:hover {
  background: rgba(93, 220, 255, 0.2);
  border-color: rgba(93, 220, 255, 0.5);
  color: var(--text-main);
}

.btn-warning {
  background: linear-gradient(120deg, #fbd38d, #f6ad55);
  border: none;
  color: #1a1f2b;
}

.btn-warning:hover {
  background: linear-gradient(120deg, #f6ad55, #ed8936);
  color: #1a1f2b;
}

.btn-outline-light:focus,
.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(93, 220, 255, 0.25);
}

.text-secondary {
  color: var(--text-muted) !important;
}

.card-title,
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-family: "Source Serif 4", "Space Grotesk", sans-serif;
}

.form-label,
.form-check-label {
  color: var(--text-main);
}

.form-control,
.form-select,
textarea {
  background: rgba(248, 250, 255, 0.98);
  color: #0a0f1f;
  border: 1px solid rgba(93, 220, 255, 0.2);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: rgba(93, 220, 255, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(93, 220, 255, 0.25);
}

.navbar .nav-link {
  color: var(--text-main);
}

.navbar .nav-link:hover {
  color: var(--accent);
}

.nav-signin {
  font-weight: 600;
  padding: 6px 14px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(93, 220, 255, 0.35), rgba(58, 155, 217, 0.2));
  border: 1px solid rgba(93, 220, 255, 0.4);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(93, 220, 255, 0.2);
}

.tmdb-results {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.invitee-status {
  cursor: pointer;
  border: none;
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.movie-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.movie-meta {
  max-width: 420px;
}

@media (max-width: 768px) {
  .movie-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-meta {
    max-width: 100%;
  }
}
