/* ===================================================
   MAIN BROWSING SCREEN
   Netflix-style dark theme + card preview system
   =================================================== */

/* --- Variables --- */
:root {
  --bg-primary: #141414;
  --bg-secondary: #181818;
  --bg-card: #252538;
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.72);
  --text-muted: rgba(255,255,255,0.4);
  --accent: #FF4D6D;
  --accent-light: #FF8FA3;
  --accent-dark: #C9184A;
  --accent-gradient: linear-gradient(135deg, #FF4D6D, #C9184A);
  --card-radius: 6px;
  --pad: 4%;
  --fast: 0.2s ease;
  --medium: 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

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

html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

.hidden { display:none !important; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(20,20,20,0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 45%, #ff2a85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff5c8a;
  cursor: pointer;
  letter-spacing: 5px;
  filter: drop-shadow(0 2px 10px rgba(255, 64, 129, 0.7));
  transition: filter var(--fast), transform var(--fast);
}

.nav-logo:hover {
  filter: brightness(1.2) drop-shadow(0 0 18px rgba(255, 105, 180, 0.95));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 48px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color var(--fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; left: 0; }

/* ===== HERO BILLBOARD ===== */
.hero-billboard {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 520px;
  max-height: 920px;
  overflow: hidden;
}

.billboard-slides { position: relative; width: 100%; height: 100%; }

.billboard-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.billboard-slide.active {
  opacity: 1;
  pointer-events: all;
}

.billboard-bg {
  width: 100%; height: 100%;
  position: relative;
}

.billboard-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.billboard-gradient-bg {
  width: 100%; height: 100%;
}

.billboard-gradient-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(20,20,20,0.6) 40%, transparent 100%);
  pointer-events: none;
}

.billboard-gradient-left {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(to right, rgba(20,20,20,0.85) 0%, rgba(20,20,20,0.35) 50%, transparent 100%);
  pointer-events: none;
}

.billboard-content {
  position: absolute;
  bottom: 25%;
  left: var(--pad);
  max-width: 540px;
  z-index: 2;
}

.billboard-slide.active .billboard-content {
  animation: billboardContentIn 0.9s ease-out both;
}

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

.billboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 105, 180, 0.18);
  border: 1px solid rgba(255, 105, 180, 0.45);
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  color: #ff9ec7;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.25);
}

.billboard-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 6.5vw, 78px);
  letter-spacing: 5px;
  margin-bottom: 14px;
  text-shadow: 2px 4px 24px rgba(0,0,0,0.6);
  line-height: 1;
}

.billboard-desc {
  font-size: clamp(13px, 1.3vw, 16px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
}

.billboard-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: none;
  border-radius: 6px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  letter-spacing: 0.02em;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 18px rgba(255,77,109,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 32px rgba(255,77,109,0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
}

/* Billboard indicators */
.billboard-indicators {
  position: absolute;
  bottom: 25%;
  right: var(--pad);
  display: flex;
  gap: 4px;
  z-index: 5;
}

.billboard-dot {
  width: 14px; height: 3px;
  background: rgba(255,255,255,0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.billboard-dot.active {
  width: 28px;
  background: var(--accent);
}

.billboard-dot:hover { background: rgba(255,255,255,0.6); }

/* Billboard progress bar (hidden to prevent red line overlay on TOP 10) */
.billboard-progress {
  display: none !important;
}

.billboard-progress-bar {
  display: none !important;
}

/* ===== CATEGORIES ===== */
.categories-container {
  position: relative;
  margin-top: -100px;
  padding-bottom: 60px;
  z-index: 3;
}

.category-row {
  margin-bottom: 50px;
  position: relative;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.category-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.category-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.btn-slideshow {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-slideshow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.category-row.category-highlight {
  animation: rowHighlightGlow 2s ease forwards;
}

@keyframes rowHighlightGlow {
  0% { background: rgba(229, 9, 20, 0.25); border-radius: 8px; box-shadow: 0 0 25px rgba(229, 9, 20, 0.5); }
  100% { background: transparent; box-shadow: none; }
}

.category-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.category-explore {
  font-size: 12px;
  color: var(--accent-light);
  opacity: 0;
  transition: opacity var(--fast), transform var(--fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.category-row:hover .category-explore { opacity: 1; transform: translateX(4px); }

/* --- Slider --- */
.slider-wrapper { position: relative; }

.slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.slider-viewport::-webkit-scrollbar {
  display: none;
}

.slider-track {
  display: flex;
  gap: 8px;
  padding: 0 var(--pad);
  width: max-content;
  transition: transform 0.4s ease;
}

/* --- Slider Arrows --- */
.slider-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,20,20,0.7);
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}

.slider-wrapper:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(20,20,20,0.95); }
.slider-arrow.left { left: 0; border-radius: 0 4px 4px 0; }
.slider-arrow.right { right: 0; border-radius: 4px 0 0 4px; }
.slider-arrow:disabled { opacity: 0.2 !important; cursor: default; }

/* ===== CARDS ===== */
.card {
  flex: 0 0 auto;
  width: 260px;
  height: 146px;
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

/* Subtle scale on hover (the real expansion happens via card-preview) */
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 5;
}

.card-image {
  width: 100%; height: 100%;
  object-fit: cover;
}

.card-gradient {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-gradient.g1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.card-gradient.g2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.card-gradient.g3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.card-gradient.g4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.card-gradient.g5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.card-gradient.g6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.card-gradient.g7 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.card-gradient.g8 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.card-gradient.g9 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.card-gradient.g10 { background: linear-gradient(135deg, #fddb92, #d1fdff); }
.card-gradient.g11 { background: linear-gradient(135deg, #c471f5, #fa71cd); }
.card-gradient.g12 { background: linear-gradient(135deg, #48c6ef, #6f86d6); }

.card-emoji {
  font-size: 48px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.card:hover .card-emoji {
  transform: scale(1.15);
}

.card-badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 2px 8px;
  background: var(--accent);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 2;
}

/* Card title overlay */
.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  pointer-events: none;
  z-index: 1;
}

.card-overlay-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

.card-overlay-title {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}

.card-overlay-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}

.card-video-icon {
  position: absolute;
  top: 8px; left: 8px;
  width: 24px; height: 24px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(4px);
  padding-left: 2px;
}

.category-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* ===== TOP 10 NETFLIX SPECIAL ROW ===== */
.category-row[data-category-id="top10"] .slider-track {
  padding-left: 28px;
}

.category-row[data-category-id="top10"] .card {
  margin-left: 52px;
  overflow: visible;
}

.category-row[data-category-id="top10"] .card:first-child {
  margin-left: 36px;
}

.card-top-number {
  position: absolute;
  left: -54px;
  bottom: -6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 136px;
  line-height: 0.78;
  font-weight: 900;
  color: #111;
  -webkit-text-stroke: 4px #555;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.95);
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.card:hover .card-top-number {
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.9);
  color: #111;
  transform: scale(1.08) translateY(-4px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* ===== CARD PREVIEW (Netflix-style floating) ===== */
.card-preview {
  position: fixed;
  z-index: 500;
  border-radius: 8px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.35s cubic-bezier(0.2,0,0.2,1),
              opacity 0.2s ease,
              box-shadow 0.35s ease;
  will-change: transform, opacity;
}

.card-preview.active {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 16px 44px -8px rgba(0,0,0,0.85),
              0 0 0 1px rgba(255,255,255,0.08);
}

.card-preview.expanded {
  box-shadow: 0 24px 60px -8px rgba(0,0,0,0.9),
              0 0 0 1px rgba(255,255,255,0.1),
              0 0 40px rgba(0,0,0,0.5);
}

.preview-media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
}

.preview-media-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-media-inner .card-emoji {
  font-size: 56px;
}

.preview-info {
  background: var(--bg-secondary);
  padding: 14px 16px 16px;
  border-radius: 0 0 8px 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1),
              opacity 0.3s 0.05s ease,
              transform 0.3s 0.05s ease;
}

.card-preview.expanded .preview-info {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/* Preview action buttons */
.preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.preview-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.preview-btn:hover {
  border-color: white;
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}

.preview-btn.preview-play {
  background: white;
  border-color: white;
  color: #141414;
}

.preview-btn.preview-play:hover {
  background: #e0e0e0;
  transform: scale(1.15);
}

.preview-spacer { flex: 1; }

/* Preview meta */
.preview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.preview-match {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
}

.preview-date {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer {
  padding: 50px var(--pad) 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-text .heart {
  color: var(--accent);
  display: inline-block;
  animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
  0%,100% { transform:scale(1); }
  50% { transform:scale(1.2); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .card { width:200px; height:112px; }
}

@media (max-width:768px) {
  :root { --pad: 16px; }
  .navbar { height:56px; }
  .nav-logo { font-size:32px; }
  .nav-links { display:none; }
  .hero-billboard { height:65vh; min-height:360px; }
  .billboard-content { bottom:18%; max-width:85%; }
  .billboard-buttons { flex-direction:column; }
  .btn { justify-content:center; }
  .billboard-indicators { bottom:18%; }
  .categories-container { margin-top:-60px; }
  .category-title { font-size:17px; }
  .slider-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 12px 0 !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain;
  }
  .slider-track {
    display: flex !important;
    width: max-content !important;
    transform: none !important;
    gap: 8px !important;
    padding: 0 16px !important;
  }
  /* 모바일 메인 화면은 넷플릭스식 세로형 카드 (세로 사진이 잘리지 않고 크게 보인다) */
  .card { width:150px; height:225px; flex: 0 0 auto !important; }
  .card-emoji { font-size:36px; }
  /* 카드가 길어졌으니 제목을 두 줄까지 보여준다 */
  .card-overlay { padding: 28px 10px 10px !important; }
  .card-overlay-title {
    font-size: 12px !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
  }
  .card-overlay-desc { display: none !important; }
  .slider-arrow {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 56px !important;
    background: rgba(14, 14, 14, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-size: 24px !important;
    opacity: 0.92 !important;
    border-radius: 4px !important;
    z-index: 20 !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .slider-arrow.left { left: 4px !important; }
  .slider-arrow.right { right: 4px !important; }
  .slider-arrow:disabled { opacity: 0 !important; pointer-events: none !important; }
  .card-preview { display:none !important; }
}

@media (max-width:480px) {
  .card { width:142px; height:213px; flex: 0 0 auto !important; }
  .slider-track { gap:8px !important; }
}

/* =============================================
   SITE ACCESS GATE – Fullscreen PIN Lock
   ============================================= */
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.site-gate.gate-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 77, 109, 0.18) 0%, rgba(10, 10, 10, 0.95) 70%);
  pointer-events: none;
}

.gate-card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  padding: 44px 32px;
  background: rgba(22, 22, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 77, 109, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  animation: gateCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gate-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 54px;
  letter-spacing: 7px;
  background: var(--accent-gradient, linear-gradient(135deg, #FF4D6D 0%, #FF8FA3 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 15px rgba(255, 77, 109, 0.4));
}

.gate-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.gate-title {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.gate-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  line-height: 1.5;
}

.gate-input-wrapper {
  margin-bottom: 12px;
}

.gate-pw-input {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 77, 109, 0.4);
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.gate-pw-input:focus {
  border-color: var(--accent, #FF4D6D);
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.4);
}

.gate-error-msg {
  font-size: 13px;
  color: #ff6b81;
  min-height: 20px;
  margin-bottom: 12px;
  font-weight: 500;
}

.btn-gate-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent, #FF4D6D);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 77, 109, 0.35);
}

.btn-gate-submit:hover {
  background: #ff2a51;
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(255, 77, 109, 0.5);
}

.shake {
  animation: shakeAnim 0.4s ease-in-out;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* =============================================
   NAVBAR RIGHT – Settings Button & Admin Badge
   ============================================= */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-settings-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 109, 0.16);
  border: 1px solid rgba(255, 77, 109, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #ff8fa3;
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.25);
  animation: adminBadgeGlow 2s infinite ease-in-out alternate;
}

@keyframes adminBadgeGlow {
  from { border-color: rgba(255, 77, 109, 0.4); }
  to { border-color: rgba(255, 77, 109, 0.85); box-shadow: 0 0 16px rgba(255, 77, 109, 0.4); }
}

.admin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ed573;
  box-shadow: 0 0 8px #2ed573;
}

.btn-admin-logout {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-logout:hover {
  background: rgba(255, 77, 109, 0.6);
}

/* =============================================
   ADMIN MODAL DIALOG
   ============================================= */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 440px;
  padding: 36px 30px;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 77, 109, 0.2);
  text-align: center;
  animation: gateCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.15s;
}

.admin-modal-close:hover {
  color: #fff;
}

.admin-icon-glow {
  font-size: 40px;
  margin-bottom: 12px;
}

.admin-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.admin-modal-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 20px;
}

.admin-pw-input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 77, 109, 0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.admin-pw-input:focus {
  border-color: var(--accent, #FF4D6D);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.35);
}

.admin-error-msg {
  font-size: 13px;
  color: #ff6b81;
  min-height: 20px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.admin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-admin-primary,
.btn-admin-secondary,
.btn-admin-danger {
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-admin-primary {
  background: var(--accent, #FF4D6D);
  color: #fff;
  flex: 1;
}

.btn-admin-primary:hover {
  background: #ff2a51;
  transform: translateY(-1px);
}

.btn-admin-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.btn-admin-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-admin-danger {
  background: #eb3b5a;
  color: #fff;
  flex: 1;
}

.btn-admin-danger:hover {
  background: #d62846;
}

.admin-status-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 13px;
}

.admin-status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.admin-status-row:last-child {
  margin-bottom: 0;
}

.admin-status-row .status-active {
  color: #2ed573;
  font-weight: 600;
}

