/* ============================================================
   Interactive Trailer — ActivGate
   Full-screen TikTok-style reel feed for anonymous landing.
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  --trailer-primary: #2E74B8;
  --trailer-primary-hover: #2563eb;
  --trailer-secondary: #1E284A;
  --trailer-accent: #F1C9AE;
  --trailer-accent-strong: #E3C2B5;
  --trailer-gradient: linear-gradient(135deg, #1E284A 0%, #2E74B8 55%, #F1C9AE 100%);
  --trailer-btn-gradient: linear-gradient(145deg, #2563eb, #4f46e5);
  --trailer-font: "Poppins", system-ui, sans-serif;
}

/* ----- Reset (scoped to trailer) ----- */
.trailer-root,
.trailer-root *,
.trailer-root *::before,
.trailer-root *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.trailer-root {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--trailer-font);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ===== FEED ===== */
.trailer-feed {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.trailer-feed::-webkit-scrollbar {
  display: none;
}

/* ===== SLIDE ===== */
.trailer-slide {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.trailer-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.trailer-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.35) 100%);
}

@keyframes trailerSlowZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.trailer-slide-bg.animate {
  animation: trailerSlowZoom 12s ease-in-out alternate infinite;
}

/* ===== TOP BAR ===== */
.trailer-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}
.trailer-top-bar > * {
  pointer-events: all;
}
.trailer-top-logo img {
  height: 30px;
}
.trailer-top-logo span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}
.trailer-top-actions {
  display: flex;
  gap: 8px;
}
.trailer-top-btn {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--trailer-font);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.trailer-top-btn.ghost {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.trailer-top-btn.ghost:hover {
  background: rgba(255,255,255,0.22);
}
.trailer-top-btn.brand {
  background: var(--trailer-gradient);
  border: none;
  color: #fff;
}
.trailer-top-btn.brand:hover {
  filter: brightness(1.1);
}

/* ===== PROGRESS BAR ===== */
.trailer-progress-bar {
  position: fixed;
  top: 56px;
  left: 20px;
  right: 20px;
  z-index: 25;
  display: flex;
  gap: 4px;
  height: 3px;
}
.trailer-progress-segment {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.trailer-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease;
  background: var(--trailer-gradient);
}
.trailer-progress-segment.seen .trailer-progress-fill {
  width: 100%;
}
.trailer-progress-segment.current .trailer-progress-fill {
  width: 100%;
}

/* ===== REEL CONTENT ===== */
.trailer-slide-content {
  position: relative;
  z-index: 5;
  padding: 0 20px 100px;
  width: 100%;
  max-width: 540px;
}
.trailer-creator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.trailer-creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--trailer-accent);
  overflow: hidden;
  flex-shrink: 0;
}
.trailer-creator-avatar .ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.trailer-creator-name {
  font-size: 14px;
  font-weight: 600;
}
.trailer-creator-loc {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.trailer-follow-btn {
  margin-left: auto;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid var(--trailer-accent);
  background: rgba(241,201,174,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--trailer-accent);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--trailer-font);
  transition: all 0.2s;
}
.trailer-follow-btn:hover {
  background: rgba(241,201,174,0.25);
}

.trailer-caption {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
  max-width: 420px;
}
.trailer-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.trailer-tag {
  font-size: 11px;
  color: var(--trailer-accent);
  background: rgba(241,201,174,0.1);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(241,201,174,0.15);
}
.trailer-music-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* Booking teaser */
.trailer-booking-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(46,116,184,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(46,116,184,0.2);
  border-radius: 14px;
  padding: 10px 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.trailer-booking-link:hover {
  background: rgba(46,116,184,0.22);
}
.trailer-booking-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.trailer-booking-info h4 {
  font-size: 12px;
  font-weight: 600;
}
.trailer-booking-info span {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* ===== RIGHT ACTIONS ===== */
.trailer-actions {
  position: fixed;
  right: 16px;
  bottom: 140px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.trailer-action {
  text-align: center;
  cursor: pointer;
}
.trailer-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(30,40,74,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 3px;
  transition: all 0.2s;
  border: 1px solid rgba(46,116,184,0.15);
}
.trailer-action-icon:hover {
  background: rgba(46,116,184,0.25);
  transform: scale(1.08);
  border-color: rgba(46,116,184,0.35);
}
.trailer-action-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

/* ===== SCROLL HINT ===== */
.trailer-scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: trailerBounce 2.5s ease-in-out infinite;
  opacity: 0.5;
  transition: opacity 0.5s;
}
.trailer-scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}
.trailer-scroll-hint span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

@keyframes trailerBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* ===== LIVE TICKER ===== */
.trailer-ticker {
  position: fixed;
  bottom: 16px;
  left: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,40,74,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(46,116,184,0.12);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  animation: trailerFadeInUp 0.5s ease 1.5s both;
}

[dir="rtl"] .trailer-ticker {
  left: auto;
  right: 20px;
}

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

.trailer-ticker .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--trailer-accent);
  animation: trailerPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes trailerPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ===== AUTH TOOLTIP ===== */
.trailer-auth-tip {
  position: fixed;
  z-index: 40;
  background: var(--trailer-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(46,116,184,0.15);
  border-radius: 16px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  width: 260px;
  right: 72px;
  bottom: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateX(8px);
}

[dir="rtl"] .trailer-auth-tip {
  right: auto;
  left: 72px;
  transform: translateX(-8px);
}

.trailer-auth-tip.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.trailer-auth-tip p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  line-height: 1.4;
}
.trailer-auth-tip .tip-btn {
  display: block;
  width: 100%;
  padding: 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--trailer-font);
  margin-bottom: 6px;
}
.trailer-auth-tip .tip-btn.primary {
  background: var(--trailer-btn-gradient);
  color: #fff;
  border: none;
}
.trailer-auth-tip .tip-btn.text {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
}

/* ===== FEATURE SHOWCASE SLIDES ===== */
.trailer-showcase {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 80px 32px 40px;
  overflow-y: auto;
}
.trailer-showcase::-webkit-scrollbar {
  display: none;
}
.trailer-showcase-header {
  text-align: center;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.trailer-showcase-header .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--trailer-accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.trailer-showcase-header h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.trailer-showcase-header h2 .grad {
  background: linear-gradient(135deg, var(--trailer-primary), var(--trailer-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trailer-showcase-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 400px;
  margin: 0 auto;
}

/* Feature row (horizontal scrollable) */
.trailer-feature-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  flex-shrink: 0;
  margin-bottom: 20px;
  scroll-snap-type: x mandatory;
}
.trailer-feature-row::-webkit-scrollbar {
  display: none;
}

.trailer-feature-card {
  flex-shrink: 0;
  width: 260px;
  scroll-snap-align: start;
  background: rgba(30,40,74,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(46,116,184,0.12);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s;
}
.trailer-feature-card:hover {
  transform: translateY(-3px);
}

.trailer-fc-preview {
  height: 150px;
  position: relative;
  overflow: hidden;
}
.trailer-fc-body {
  padding: 16px;
}
.trailer-fc-body h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trailer-fc-body p {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.trailer-fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(46,116,184,0.15);
  color: var(--trailer-primary);
  font-weight: 600;
  margin-top: 8px;
  border: 1px solid rgba(46,116,184,0.15);
}
.trailer-fc-badge.ai {
  background: rgba(241,201,174,0.12);
  color: var(--trailer-accent);
  border-color: rgba(241,201,174,0.15);
}

/* Mini chat mockup inside card */
.trailer-chat-preview {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.trailer-chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.4;
}
.trailer-chat-bubble.incoming {
  background: rgba(46,116,184,0.2);
  border: 1px solid rgba(46,116,184,0.15);
  align-self: flex-start;
  color: rgba(255,255,255,0.8);
  border-bottom-left-radius: 4px;
}
.trailer-chat-bubble.outgoing {
  background: rgba(241,201,174,0.15);
  border: 1px solid rgba(241,201,174,0.12);
  align-self: flex-end;
  color: rgba(255,255,255,0.8);
  border-bottom-right-radius: 4px;
}
.trailer-chat-bubble.ai {
  background: linear-gradient(135deg, rgba(30,40,74,0.6), rgba(46,116,184,0.2));
  border: 1px solid rgba(46,116,184,0.2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.trailer-chat-bubble .ai-label {
  font-size: 9px;
  color: var(--trailer-accent);
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Community preview card */
.trailer-comm-preview {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}
.trailer-comm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 8px 10px;
}
.trailer-comm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.trailer-comm-item h5 {
  font-size: 11px;
  font-weight: 600;
}
.trailer-comm-item span {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
}

/* Story/photo preview */
.trailer-story-preview {
  display: flex;
  gap: 6px;
  padding: 12px;
  align-items: flex-end;
  height: 100%;
}
.trailer-story-thumb {
  flex: 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}
.trailer-story-thumb .st-user {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Globe preview */
.trailer-globe-preview {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 45% 45%, #0c4a6e 0%, #0c2d48 40%, #0a1628 100%);
}
.trailer-globe-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(46,116,184,0.3);
  position: relative;
}
.trailer-globe-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: trailerGlobePulse 2s infinite;
}

@keyframes trailerGlobePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.trailer-globe-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

/* CTA section */
.trailer-showcase-cta {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
  flex-shrink: 0;
}
.trailer-cta-btn {
  padding: 14px 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: var(--trailer-btn-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--trailer-font);
  box-shadow: 0 8px 28px rgba(37,99,235,0.4);
  transition: all 0.2s;
}
.trailer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37,99,235,0.5);
}
.trailer-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
}
.trailer-cta-sub a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  cursor: pointer;
}

/* ===== AUTH WALL ===== */
.trailer-wall-slide {
  background: radial-gradient(ellipse at 50% 30%, rgba(30,40,74,0.95) 0%, rgba(0,0,0,0.97) 70%);
}
.trailer-wall-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 20px;
  transform: rotate(-5deg) scale(1.2);
}
.trailer-wall-bg-grid div {
  aspect-ratio: 9/16;
  border-radius: 8px;
}
.trailer-wall-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 40px 32px;
  text-align: center;
}
.trailer-wall-logo {
  height: 36px;
  margin-bottom: 32px;
}
.trailer-wall-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 32px;
}
.trailer-wall-features {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  justify-content: center;
}
.trailer-wall-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.trailer-wall-feature i {
  color: var(--trailer-accent);
  font-size: 14px;
}
.trailer-wall-content h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.trailer-wall-content h2 .grad {
  background: linear-gradient(135deg, var(--trailer-primary), var(--trailer-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trailer-wall-content > p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.5;
}
.trailer-wall-btn {
  display: block;
  width: 320px;
  max-width: 100%;
  padding: 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--trailer-font);
  margin-bottom: 10px;
  transition: all 0.2s;
}
.trailer-wall-btn.primary {
  background: var(--trailer-btn-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(37,99,235,0.4);
}
.trailer-wall-btn.primary:hover {
  transform: translateY(-2px);
}
.trailer-wall-btn.secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.trailer-wall-btn.secondary:hover {
  background: rgba(255,255,255,0.12);
}
.trailer-wall-terms {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin-top: 20px;
}
.trailer-wall-terms a {
  color: rgba(255,255,255,0.35);
}

/* ===== AUTH MODAL ===== */
.trailer-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
}
.trailer-auth-overlay.open {
  display: flex;
}

.trailer-modal-card {
  background: var(--trailer-secondary);
  border: 1px solid rgba(46,116,184,0.15);
  border-radius: 24px;
  padding: 36px 32px;
  width: 380px;
  max-width: 92vw;
  max-height: 85dvh;
  max-height: 85vh; /* fallback for browsers without dvh */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: trailerModalIn 0.3s ease;
}
@supports (max-height: 1dvh) {
  .trailer-modal-card { max-height: 85dvh; }
}

/* Mobile: scrollable overlay, compact form */
@media (max-width: 480px) {
  .trailer-auth-overlay {
    padding: 0;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .trailer-modal-card {
    padding: 20px 16px;
    padding-top: env(safe-area-inset-top, 16px);
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: none;
    animation: none;
  }
  .trailer-modal-card h3 {
    font-size: 20px;
  }
  .trailer-social-btn {
    padding: 10px;
  }
  .trailer-modal-divider {
    margin: 12px 0;
  }
  .trailer-form-group {
    margin-bottom: 2px;
  }
  .trailer-terms-group {
    margin-top: 4px;
  }
}

@keyframes trailerModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.trailer-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

[dir="rtl"] .trailer-modal-close {
  right: auto;
  left: 16px;
}

.trailer-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.trailer-modal-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}
.trailer-modal-card .modal-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 24px;
}

/* Social auth buttons */
.trailer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--trailer-font);
  transition: all 0.2s;
  margin-bottom: 10px;
  border: none;
}
.trailer-social-btn.google {
  background: #fff;
  color: #333;
}
.trailer-social-btn.google:hover {
  background: #f5f5f5;
}
.trailer-social-btn.apple {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.trailer-social-btn.apple:hover {
  background: rgba(255,255,255,0.14);
}
.trailer-social-btn svg,
.trailer-social-btn img {
  width: 20px;
  height: 20px;
}

/* Divider */
.trailer-modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.trailer-modal-divider::before,
.trailer-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.trailer-modal-divider span {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form fields */
.trailer-form-group {
  margin-bottom: 14px;
}
.trailer-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.trailer-form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 14px;
  font-family: var(--trailer-font);
  outline: none;
  transition: border-color 0.2s;
}
.trailer-form-group input:focus {
  border-color: var(--trailer-primary);
}
.trailer-form-group input::placeholder {
  color: rgba(255,255,255,0.25);
}

.trailer-form-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: var(--trailer-btn-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--trailer-font);
  transition: all 0.2s;
  margin-top: 8px;
}
.trailer-form-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.trailer-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.trailer-form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
}

/* Toggle link at bottom */
.trailer-modal-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.trailer-modal-toggle a {
  color: var(--trailer-primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.trailer-modal-toggle a:hover {
  text-decoration: underline;
}

/* OTP step (shown when 2FA required) */
.trailer-otp-step {
  display: none;
  text-align: center;
}
.trailer-otp-step.active {
  display: block;
}
.trailer-otp-step p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

/* Notification previews inside feature cards */
.trailer-notif-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px;
}
.trailer-notif-row b {
  color: #fff;
}

/* Profile preview items */
.trailer-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px;
}
.trailer-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.trailer-profile-item .username {
  font-size: 12px;
  font-weight: 600;
}
.trailer-profile-item .meta {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
}

/* Event preview */
.trailer-event-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  width: 100%;
}
.trailer-event-card + .trailer-event-card {
  margin-top: 8px;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
.trailer-event-label {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
}
.trailer-event-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.trailer-event-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.trailer-event-attendees {
  display: flex;
  align-items: center;
}
.trailer-event-attendee {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(30,40,74,1);
}
.trailer-event-attendee + .trailer-event-attendee {
  margin-left: -6px;
}
.trailer-event-attendees span {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-left: 6px;
}

/* Booking category row */
.trailer-booking-category {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px;
}
.trailer-booking-category .emoji {
  font-size: 18px;
}
.trailer-booking-category h5 {
  font-size: 11px;
  font-weight: 600;
}
.trailer-booking-category span {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 420px) {
  .trailer-slide-content {
    padding: 0 16px 90px;
  }
  .trailer-showcase {
    padding: 70px 20px 30px;
  }
  .trailer-feature-card {
    width: 230px;
  }
  .trailer-showcase-header h2 {
    font-size: 20px;
  }
  .trailer-wall-content h2 {
    font-size: 24px;
  }
  .trailer-wall-features {
    gap: 12px;
  }
  .trailer-actions {
    right: 10px;
    bottom: 120px;
    gap: 14px;
  }
  .trailer-action-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
