
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100%;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Prevent iOS zoom on input focus */
input, select, textarea {
  font-size: 16px !important;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #fe2c55;
  --bg-color: #000000;
  --panel-bg: #121212;
  --card-bg: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-color: rgba(255, 255, 255, 0.12);
  --wolt: #00c2e8;
  --foodora: #e2007a;
  --danger: #ef4444;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-light);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Base Buttons (Wolt-style modern aesthetics) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), opacity 0.2s, background 0.2s;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.98);
}
.btn:active {
  transform: scale(0.95);
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  padding: 1rem;
  border: none;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), opacity 0.2s;
  box-shadow: 0 8px 20px rgba(254, 44, 85, 0.3);
}
.btn-submit:hover { 
  opacity: 0.9; 
  transform: scale(0.98);
}
.btn-submit:active {
  transform: scale(0.95);
}

.btn-wolt { 
  background: var(--wolt); 
  box-shadow: 0 4px 15px rgba(0, 194, 232, 0.2); 
}
.btn-foodora { 
  background: var(--foodora); 
  box-shadow: 0 4px 15px rgba(226, 0, 122, 0.2); 
}

.btn-delete {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s;
}
.btn-delete:hover { 
  background: rgba(239, 68, 68, 0.25); 
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  font-weight: 700;
  transition: transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

/* Layout Shell */
.app-container {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  background: var(--bg-color);
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0.5rem;
  z-index: 10;
}

.brand-header {
  padding: 0 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-item.active {
  color: var(--primary);
}

.sidebar-footer {
  padding: 1rem;
}

.btn-admin {
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 4px;
}

/* Main Content */
.main-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem;
  background: var(--bg-color);
  opacity: 0;
  transform: translateY(15px);
}

.app-screen.active {
  display: flex;
  animation: screenSlideUpFade 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes screenSlideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-modal-overlay {
  backdrop-filter: blur(0px);
  background: rgba(0,0,0,0);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}
.custom-modal-overlay.active {
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.65);
}
.custom-modal-card {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.custom-modal-overlay.active .custom-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.app-screen.active {
  display: flex;
}

.screen-header {
  margin-bottom: 2rem;
}
.screen-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

/* Feed Viewport */
.feed-layout {
  padding: 0;
  background: var(--bg-color);
  width: 100%;
  height: 100%;
}

.feed-layout.active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.feed-stage-wrapper {
  display: flex;
  height: 100dvh;
  width: 100%;
  max-width: 500px; /* Constrain on desktop like a phone */
  position: relative;
  background: #000;
  overflow: hidden;
}

.feed-stage {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
}

.video-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.video-scroll-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.28s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-slide {
  height: 100%;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  background: #000;
}

.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradients for text readability */
.video-overlay-gradient-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}
.video-overlay-gradient-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.swipe-cue {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 50;
  pointer-events: none;
  animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Error message layer */
.video-error-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  z-index: 5;
  width: 80%;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
  display: none;
}

/* Top Transparent Navbar (TikTok style) */
.feed-top-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 15px;
  z-index: 20;
}

.feed-nav-toggles {
  display: flex;
  gap: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.feed-nav-item {
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
}
.feed-nav-item.active {
  color: #fff;
}

.feed-nav-search {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.video-overlay {
  position: absolute;
  bottom: 175px; /* Fixed spacing above order card */
  left: 0;
  right: 70px; /* leave space for right actions */
  padding: 0 1rem;
  color: #fff;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.video-overlay * {
  pointer-events: auto;
}

.video-restaurant {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.distance-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  width: max-content;
}

.video-dish {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Floating Glassmorphism Order Card */
.order-card-container {
  position: absolute;
  bottom: 75px; /* Pinned exactly 15px above the 60px bottom-nav */
  left: 1rem;
  right: 1rem;
  z-index: 20;
}

.order-glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.order-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.order-delivery-fee {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.btn-neon-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border-radius: 9999px; /* Pill-shape */
  padding: 0.75rem 1.5rem;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-neon-cta:hover {
  transform: scale(0.95);
}


/* Sidebar Actions (Right side of video like TikTok) */
.feed-actions-desktop {
  position: absolute;
  right: 15px;
  bottom: 165px; /* Lifted up by 55px so Zvuk sound icon never overlaps the bottom order card pill */
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  z-index: 20;
}

.action-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #222;
  margin-bottom: 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.action-avatar-plus {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  z-index: 2;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  background: none;
  border: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
}
.action-btn:active {
  transform: scale(0.85);
}

.action-btn svg {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  transition: transform 0.2s;
}
.action-btn:active svg {
  transform: scale(0.85);
}

.action-btn span {
  font-size: 0.8rem;
  font-weight: 700;
}

.action-btn.active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

/* Reviews Drawer */
.reviews-drawer {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--panel-bg);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 45;
  transition: bottom 0.3s ease;
  display: flex;
  flex-direction: column;
}

.reviews-drawer.open {
  bottom: 0;
}

.reviews-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.reviews-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  display: flex;
  flex-direction: column;
}

.review-user {
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.review-form {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.review-form input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 0.75rem;
  border-radius: 20px;
  color: #fff;
  outline: none;
}

.review-form button {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 0 1rem;
  font-weight: 600;
}

/* Mobile Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 40;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  gap: 4px;
}
.nav-item.active {
  color: #fff;
}
.nav-item svg {
  width: 24px;
  height: 24px;
}

@media(max-width: 991px) {
  .sidebar { display: none; }
  .bottom-nav { display: flex; }
  .feed-layout.active {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    height: 100dvh !important;
    padding: 0 !important;
  }
  .feed-stage-wrapper {
    height: 100dvh !important;
    margin-top: 0;
  }
  .app-screen { padding: 1rem 1rem 120px 1rem; }
}

/* Auth Walls */
.auth-wall, .admin-auth-wall {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-wall.active, .admin-auth-wall.active {
  display: flex !important;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
}

.auth-form input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.85rem;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.auth-form input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}

/* Admin Dashboard */
.admin-page-body {
  overflow-y: auto !important;
}

.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-title {
  margin-bottom: 1.5rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width: 768px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
}

.admin-panel-left, .admin-panel-right {
  background: var(--panel-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem;
  border-radius: 4px;
  color: #fff;
}

.drag-drop-zone {
  border: 1px dashed rgba(255,255,255,0.2);
  padding: 2rem;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
}

.uploaded-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
}

.uploaded-item {
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  align-items: center;
}

.uploaded-thumb {
  width: 60px;
  height: 80px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.uploaded-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uploaded-info {
  flex: 1;
  overflow: hidden;
}
.uploaded-restaurant {
  font-weight: 700;
  font-size: 0.95rem;
}
.uploaded-dish {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Grids for Discover/Saved */
.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.food-card {
  position: relative;
  aspect-ratio: 3/4;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.food-card-thumb {
  width: 100%;
  height: 100%;
}

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

.food-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.food-card-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.food-card-rest {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.category-slider {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 5px;
}
.category-slider::-webkit-scrollbar { display: none; }

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.category-card:active {
  transform: scale(0.95);
}

.cat-image {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.category-card.active .cat-image {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.4);
  transform: scale(1.05);
}

.category-card span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.25s;
}

.category-card.active span {
  color: #fff;
}

/* Autocomplete list */
.autocomplete-wrapper {
  position: relative;
}
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
  border-radius: 4px;
  z-index: 1000;
}
.autocomplete-suggestions li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.autocomplete-suggestions li:hover {
  background: rgba(255,255,255,0.05);
}

/* Profile Card */
.profile-card {
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1rem auto;
}

.profile-address {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Premium Onboarding Flow */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.onboarding-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboarding-slides {
  width: 100%;
  position: relative;
  min-height: 220px;
}

.onboarding-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.onboarding-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.onboarding-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(255, 90, 31, 0.3));
  animation: bounce 2s infinite;
}

.onboarding-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.onboarding-card p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
  margin: 2rem 0;
}

.onboarding-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.onboarding-dots .dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 99px;
}

.btn-onboarding-next {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
  transition: transform 0.2s;
}

.btn-onboarding-next:active {
  transform: scale(0.98);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Custom UI Toast Notifications */
#toastContainer {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10005;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}
.toast-msg {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.toast-msg.error {
  background: rgba(254, 44, 85, 0.92);
  border-color: rgba(255, 100, 100, 0.3);
}
.toast-msg.success {
  background: rgba(16, 185, 129, 0.92);
  border-color: rgba(100, 255, 180, 0.3);
}
.toast-msg.info {
  background: rgba(0, 194, 232, 0.92);
  border-color: rgba(100, 220, 255, 0.3);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Custom Glass Modals */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.custom-modal-card {
  background: #18181f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.custom-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.close-modal-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Saved Sub-Tabs */
.saved-tab-btn {
  flex: 1;
  padding: 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-tab-btn.active {
  background: rgba(254, 44, 85, 0.15);
  color: var(--primary);
  border-color: rgba(254, 44, 85, 0.3);
}



/* Leaflet Map & Dark Theme Styles */
#map {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
  z-index: 1;
}
.leaflet-container {
  background: #111 !important;
  font-family: inherit !important;
}
.leaflet-bar a {
  background: #222 !important;
  color: #fff !important;
  border-bottom: 1px solid #333 !important;
  border-color: #333 !important;
}
.leaflet-popup-content-wrapper {
  background: #222 !important;
  color: #fff !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  padding: 4px !important;
}
.leaflet-popup-tip {
  background: #222 !important;
}
.leaflet-popup-content button {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  cursor: pointer !important;
  margin-top: 6px !important;
  width: 100% !important;
  outline: none;
}

/* Video Placeholder Fallback Styling */
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  color: #ffffff !important;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(254, 44, 85, 0.15), rgba(0, 0, 0, 0.9));
}
.video-placeholder svg {
  width: 54px;
  height: 54px;
  color: var(--primary);
  margin-bottom: 1rem;
}
.video-placeholder h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.5rem;
}
.video-placeholder p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7) !important;
  max-width: 300px;
}

/* Chrome & Safari Autofill Override Fix */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #181818 inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  font-family: inherit !important;
}

.auth-input-group {
  position: relative;
  margin-bottom: 0.85rem;
  width: 100%;
}

.auth-input-group icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.auth-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 0.9rem 1rem 0.9rem 2.6rem !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  outline: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3) !important;
}

.auth-form input:focus {
  border-color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 20px rgba(254, 44, 85, 0.3), inset 0 1px 2px rgba(0,0,0,0.2) !important;
}
