@import url(https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Great+Vibes&family=Allura:wght@400&family=Pacifico:wght@400&family=Satisfy&display=swap);
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure no white borders anywhere - black background */
html {
  background: #000 !important;
  background-color: #000 !important;
}

body {
  background: #000 !important;
  background-color: #000 !important;
}

/* AGGRESSIVE WHITE BORDER REMOVAL */
* {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Force black background on everything */
*:before, *:after {
  background: #000 !important;
  border: none !important;
}

/* Remove any possible white space */
html, body, #root, .home-page, .hero-section {
  background: #000 !important;
  background-color: #000 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: #000 !important;
  background-color: #000 !important;
  width: 100% !important;
  height: 100% !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: #000 !important;
  background-color: #000 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow-x: hidden !important;
}

#root {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: #000 !important;
  background-color: #000 !important;
  width: 100vw !important;
  height: 100vh !important;
  position: relative !important;
  overflow-x: hidden !important;
}

.home-page {
  background: #000 !important;
  background-color: #000 !important;
  border: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  position: relative !important;
  overflow-x: hidden !important;
}

.hero-section {
  background: #000 !important;
  background-color: #000 !important;
  border: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  position: relative !important;
  overflow: hidden !important;
}

#root {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  position: relative;
  overflow-x: hidden;
  background: #000 !important;
  background-color: #000 !important;
}

html, body {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-brown);
  background: transparent !important;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--psychedelic-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--psychedelic-yellow);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  border: 2px solid var(--light-brown);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: var(--cream);
  color: var(--dark-brown);
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--psychedelic-cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: 2px solid var(--psychedelic-cyan);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--psychedelic-cyan);
  border-color: var(--psychedelic-yellow);
}

.btn-secondary {
  background: transparent;
  color: var(--psychedelic-pink);
  border: 2px solid var(--psychedelic-pink);
}

.btn-secondary:hover {
  background: var(--psychedelic-pink);
  color: var(--dark-wood);
  box-shadow: 0 0 15px var(--psychedelic-pink);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  color: #333;
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 0 15px var(--psychedelic-purple);
  transform: translateY(-2px);
  border-color: var(--psychedelic-purple);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top: 4px solid var(--psychedelic-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.error {
  color: var(--danger-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success {
  color: var(--success-green);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

:root {
  --primary-brown: #6B4423;
  --dark-brown: #4A2F18;
  --light-brown: #8B5A3C;
  --medium-wood: #6B4423;
  --cream: #F5E6D3;
  --off-white: #FEFEFE;
  --marble-white: #F8F8F8;
  --marble-gray: #E5E5E5;
  --marble-vein: #D0D0D0;
  --bright-yellow: #00ffbb;
  --puple: #6f02d6;
  --beige: #e3d494;
  --red: #fa6c6c;
  --gray: #808080;
  --dark-puple: #37026f;
  --wood-grain: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
  --marble-background:
    /* Subtle organic marble patterns - very light */
    radial-gradient(ellipse 400px 100px at 20% 30%, rgba(220, 220, 220, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 300px 80px at 80% 70%, rgba(210, 210, 210, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 500px 120px at 50% 90%, rgba(215, 215, 215, 0.1) 0%, transparent 70%),

    /* Very subtle cloud-like variations */
    radial-gradient(circle at 30% 40%, rgba(225, 225, 225, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(218, 218, 218, 0.06) 0%, transparent 45%),

    /* Clean white marble base */
    linear-gradient(0deg, #FDFDFD 0%, #FAFAFA 100%);
  --shadow-wood: 0 8px 16px rgba(45, 24, 16, 0.3);
  --psychedelic-purple: #9B59B6;
  --psychedelic-pink: #FF69B4;
  --psychedelic-orange: #FF6347;
  --psychedelic-yellow: #FFD700;
  --psychedelic-green: #00CED1;
  --success-green: #27AE60;
  --danger-red: #E74C3C;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-slideInUp {
  animation: slideInUp 0.6s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* Header Component - Enhanced for All Mobile Devices */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0.75rem 1rem;
  width: 100%;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.75rem;
  color: #FFD700;
  text-decoration: none;
  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.6),
    0 0 20px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 1002;
  white-space: nowrap;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background: #FFD700;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Navigation Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  padding: 5rem 2rem 2rem;
  transition: right 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-mobile-overlay.open {
  display: block;
  opacity: 1;
}

.nav-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: block;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.nav-link:hover,
.nav-link:active {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  transform: translateX(5px);
}

.nav-link.active {
  background: rgba(255, 215, 0, 0.3);
  color: #FFD700;
  font-weight: 600;
}

/* User Menu for Mobile */
.user-menu-mobile {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar-mobile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
  justify-content: center;
}

.user-avatar-mobile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #FFD700;
}

.user-info {
  color: white;
  text-align: center;
}

.user-name {
  font-weight: 600;
  font-size: 1rem;
}

.user-email {
  font-size: 0.85rem;
  opacity: 0.8;
}

.auth-button {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--psychedelic-purple), var(--psychedelic-magenta));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(111, 2, 214, 0.4);
}

/* Tablet and Larger Screens */
@media (min-width: 768px) {
  .header {
    padding: 1rem 2rem;
  }

  .logo {
    font-size: 2rem;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .nav-links-desktop {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: transparent;
  }

  .nav-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.1);
  }

  .nav-mobile,
  .nav-mobile-overlay {
    display: none !important;
  }

  .user-menu-desktop {
    position: relative;
  }

  .user-avatar-desktop {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .user-avatar-desktop:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }

  .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--primary-brown);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
  }

  .dropdown-item:hover {
    background: rgba(74, 1, 98, 0.1);
    color: var(--psychedelic-purple);
  }
}

/* Improved Mobile Responsiveness */
@media (max-width: 767px) {
  .header {
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-mobile {
    padding-top: calc(5rem + env(safe-area-inset-top, 0));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
    width: 90%;
    max-width: none;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
  
  .user-menu-mobile {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .user-avatar-mobile {
    padding: 0.75rem;
  }
  
  .nav-links-mobile {
    gap: 1rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .header {
    padding: 0.5rem 0.75rem;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0));
  }

  .logo {
    font-size: 1.4rem;
  }

  .mobile-nav-toggle {
    width: 26px;
    height: 20px;
  }

  .nav-mobile {
    width: 95%;
    padding: 4rem 1rem 1rem;
    padding-top: calc(4rem + env(safe-area-inset-top, 0));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.75rem 0.8rem;
  }
  
  .user-info {
    font-size: 0.9rem;
  }
  
  .user-email {
    font-size: 0.75rem;
  }
  
  .auth-button {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-mobile {
    padding-top: 3rem;
  }

  .nav-links-mobile {
    gap: 0.75rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}

/* Safe Area Support */
@supports (padding: env(safe-area-inset-top)) {
  .header {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
    padding-left: calc(1rem + env(safe-area-inset-left, 0));
    padding-right: calc(1rem + env(safe-area-inset-right, 0));
  }

  .nav-mobile {
    padding-right: calc(2rem + env(safe-area-inset-right, 0));
  }
}
.footer {
  background: var(--wood-grain);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 3px solid var(--psychedelic-lime);
  color: var(--cream);
  padding: 3rem 0 1rem;
  margin-top: auto;
  box-shadow: var(--shadow-wood);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
}

.footer-section h3 {
  font: bold 1.5rem 'Bebas Neue', cursive;
  color: rgb(255, 248, 189);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section h4 {
  font: bold 1.5rem 'Bebas Neue', cursive;
  color: rgb(255, 248, 189);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgb(255, 248, 189);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(13, 255, 231, 0.92);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--cream);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: rgba(241, 255, 133, 0.8);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: rgb(13, 255, 231, 0.92);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding: 1rem 2rem;
  text-align: center;
  color: rgba(13, 255, 231, 0.92);
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.heart {
  color: var(--psychedelic-pink);
  animation: pulse 2s infinite;
}

@media (max-width: 1024px) { /* Tablet */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  .footer-section h3 {
    font-size: 1.15rem;
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-section p {
    font-size: 0.95rem;
  }
  
  .footer-section ul li a {
    font-size: 0.95rem;
  }
  
  .social-links a {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) { /* iPad and smaller tablets */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-section {
    padding: 1rem 0;
  }
  
  .footer-bottom {
    padding: 0.75rem 1rem;
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) { /* Mobile phones */
  .footer {
    padding: 2rem 0 0.75rem;
  }
  
  .footer-content {
    gap: 1rem;
    padding: 0 0.75rem;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-section p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section ul li {
    margin-bottom: 0.4rem;
  }
  
  .footer-section ul li a {
    font-size: 0.9rem;
  }
  
  .social-links {
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  
  .social-links a {
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
    margin: 0.25rem 0;
  }
}

/* Large mobile devices (iPhone 14 Pro Max and similar) */
@media (min-width: 481px) and (max-width: 550px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  
  .footer-section:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .footer {
    padding: 1.5rem 0 0.5rem;
  }
  
  .footer-content {
    padding: 0 0.5rem;
  }
  
  .footer-bottom {
    padding: 0.5rem;
  }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer-bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  }
  
  @media (max-width: 768px) {
    .footer-bottom {
      padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    }
  }
  
  @media (max-width: 480px) {
    .footer-bottom {
      padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
    }
  }
}

/* HomePage.css - iOS Optimized Styles */

.home-page {
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  background: #000000 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  border: none !important;
  outline: none !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: #000 !important;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero-globe-container {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 3;
}

/* Large Globe Container - Top Left */
.hero-globe-container-large {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
}

/* Interactive Globe */
.globe-link {
  text-decoration: none;
  display: block;
}

.interactive-globe-container {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.globe-sphere {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    #1e40af 0%,
    #3b82f6 25%,
    #60a5fa 50%,
    #93c5fd 75%,
    #dbeafe 100%);
  box-shadow:
    inset -10px -10px 20px rgba(0, 0, 0, 0.3),
    inset 5px 5px 10px rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: rotate 20s linear infinite;
}

.globe-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.continent {
  position: absolute;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0.8;
}

.continent-1 {
  width: 20px;
  height: 15px;
  top: 15px;
  left: 10px;
  border-radius: 60% 40% 30% 70%;
}

.continent-2 {
  width: 15px;
  height: 12px;
  top: 25px;
  right: 8px;
  border-radius: 40% 60% 70% 30%;
}

.continent-3 {
  width: 18px;
  height: 10px;
  bottom: 20px;
  left: 15px;
  border-radius: 50% 50% 80% 20%;
}

.continent-4 {
  width: 12px;
  height: 8px;
  bottom: 15px;
  right: 12px;
  border-radius: 70% 30% 50% 50%;
}

.continent-5 {
  width: 8px;
  height: 6px;
  top: 35px;
  left: 35px;
  border-radius: 50%;
}

.globe-atmosphere {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Large Globe Atmosphere */
.globe-atmosphere-large {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(135, 206, 235, 0.3) 30%,
    rgba(59, 130, 246, 0.2) 50%,
    transparent 70%);
  pointer-events: none;
}

/* Globe Glow Effect */
.globe-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(59, 130, 246, 0.4) 0%,
    rgba(59, 130, 246, 0.2) 50%,
    transparent 70%);
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.globe-label {
  position: absolute;
  bottom: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.globe-text {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #0dffe7;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(13, 255, 231, 0.5);
}

.globe-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(13, 255, 231, 0.5));
}

/* Large Globe Label */
.globe-label-large {
  position: absolute;
  bottom: -80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.globe-title {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0dffe7;
  margin-bottom: 4px;
}

.globe-subtitle {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Features Section */
.features-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #000 0%, #1a0033 50%, #2d0052 100%);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 0, 51, 0.5) 100%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  margin-bottom: 40px;
}

.feature-card {
  background: rgba(147, 51, 234, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(147, 51, 234, 0.15);
  border-color: rgba(13, 255, 231, 0.5);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.5));
}

.feature-card h3 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff; /* Dark purple for headings */
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.feature-card p {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff; /* Dark purple for text */
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #2d0052 0%, #000 100%);
  text-align: center;
}

.cta-content h2 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.cta-content p {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(135deg, #0dffe7 0%, #00a8a3 100%);
  color: #000;
  box-shadow: 0 10px 30px rgba(13, 255, 231, 0.3);
}

.cta-button.primary:hover {
  box-shadow: 0 15px 40px rgba(13, 255, 231, 0.5);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: transparent;
  color: #0dffe7;
  border: 2px solid #0dffe7;
  box-shadow: 0 0 20px rgba(13, 255, 231, 0.2);
}

.cta-button.secondary:hover {
  background: rgba(13, 255, 231, 0.1);
  box-shadow: 0 0 30px rgba(13, 255, 231, 0.4);
}

/* iOS Specific Optimizations */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .feature-card {
    -webkit-tap-highlight-color: transparent;
  }

  .cta-button {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
  }
}

/* Globe styles moved to Globe3D.css */

.globe-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  transform-style: preserve-3d;
  animation: globalRotate 30s linear infinite;
}

.earth-sphere {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    #4a90e2 0%,
    #2e5c8a 30%,
    #1e3a5f 60%,
    #0f1419 100%);
  box-shadow:
    inset -20px -20px 40px rgba(0, 0, 0, 0.6),
    inset 10px 10px 20px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(74, 144, 226, 0.4);
  overflow: hidden;
  transform-style: preserve-3d;
}

.continents-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  animation: continentRotate 40s linear infinite;
}

.continent {
  position: absolute;
  background: linear-gradient(135deg, #2d5a27, #4a7c59, #2d5a27);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.north-america {
  width: 25px;
  height: 30px;
  top: 25%;
  left: 15%;
  border-radius: 60% 40% 70% 30%;
}

.south-america {
  width: 15px;
  height: 35px;
  top: 45%;
  left: 25%;
  border-radius: 30% 70% 60% 40%;
}

.europe {
  width: 12px;
  height: 15px;
  top: 20%;
  left: 45%;
  border-radius: 50% 50% 80% 20%;
}

.africa {
  width: 18px;
  height: 40px;
  top: 30%;
  left: 48%;
  border-radius: 40% 60% 50% 50%;
}

.asia {
  width: 35px;
  height: 25px;
  top: 15%;
  left: 55%;
  border-radius: 70% 30% 60% 40%;
}

.australia {
  width: 12px;
  height: 10px;
  top: 65%;
  left: 70%;
  border-radius: 60% 40% 50% 50%;
}

.antarctica {
  width: 45px;
  height: 8px;
  bottom: 5%;
  left: 25%;
  border-radius: 50% 50% 80% 20%;
}

.ocean-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(74, 144, 226, 0.3) 0%,
    rgba(30, 58, 138, 0.2) 50%,
    transparent 70%);
  animation: oceanWave 8s ease-in-out infinite;
}

.clouds-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  animation: cloudRotate 50s linear infinite;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  opacity: 0.6;
  animation: cloudFloat 15s ease-in-out infinite;
}

.cloud-1 {
  width: 20px;
  height: 8px;
  top: 30%;
  left: 20%;
  animation-delay: 0s;
}

.cloud-2 {
  width: 15px;
  height: 6px;
  top: 50%;
  left: 60%;
  animation-delay: 3s;
}

.cloud-3 {
  width: 18px;
  height: 7px;
  top: 70%;
  left: 40%;
  animation-delay: 6s;
}

.cloud-4 {
  width: 12px;
  height: 5px;
  top: 25%;
  left: 75%;
  animation-delay: 9s;
}

.atmosphere-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(135, 206, 235, 0.3) 0%,
    rgba(74, 144, 226, 0.2) 40%,
    transparent 70%);
  pointer-events: none;
}

.space-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(74, 144, 226, 0.4) 0%,
    rgba(59, 130, 246, 0.2) 30%,
    rgba(147, 197, 253, 0.1) 50%,
    transparent 70%);
  pointer-events: none;
  animation: spaceGlow 4s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 50%;
  animation: orbitPulse 6s ease-in-out infinite;
  pointer-events: none;
}

/* Globe Animations */
@keyframes globalRotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes continentRotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes cloudRotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-360deg); }
}

@keyframes oceanWave {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.02); }
}

@keyframes cloudFloat {
  0%, 100% { opacity: 0.4; transform: translateY(0px); }
  50% { opacity: 0.7; transform: translateY(-2px); }
}

@keyframes spaceGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes orbitPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

/* iPhone X and newer Safe Areas */
@supports (padding-top: env(safe-area-inset-top)) {
  .hero-section {
    padding-top: env(safe-area-inset-top);
  }
  
  .cta-section {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

/* Responsive Design for All Mobile Devices */
@media (max-width: 1024px) { /* Tablet */
  .section-title {
    font-size: 40px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .feature-card {
    padding: 25px;
  }
  
  .cta-content h2 {
    font-size: 36px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 768px) { /* iPad and smaller tablets */
  .section-title {
    font-size: 36px;
    margin-bottom: 40px;
  }
  
  .features-section {
    padding: 60px 15px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-card h3 {
    font-size: 22px;
  }
  
  .feature-card p {
    font-size: 15px;
  }
  
  .cta-section {
    padding: 80px 15px;
  }
  
  .cta-content h2 {
    font-size: 32px;
  }
  
  .cta-content p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .cta-buttons {
    gap: 12px;
  }
  
  .cta-button {
    padding: 14px 30px;
    font-size: 16px;
  }
}

/* iPhone and small mobile devices */
@media (max-width: 480px) {
  .section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .features-section {
    padding: 50px 10px;
  }
  
  .features-grid {
    gap: 15px;
  }
  
  .feature-card {
    padding: 20px 15px;
  }
  
  .feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }
  
  .feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .feature-card p {
    font-size: 14px;
  }
  
  .cta-section {
    padding: 60px 10px;
  }
  
  .cta-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .cta-content p {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 15px;
    max-width: 280px;
  }
}

/* iPhone SE and smaller */
@media (max-width: 375px) {
  .section-title {
    font-size: 28px;
  }
  
  .features-section {
    padding: 40px 10px;
  }
  
  .feature-card {
    padding: 15px 10px;
  }
  
  .feature-card h3 {
    font-size: 18px;
  }
  
  .feature-card p {
    font-size: 13px;
  }
  
  .cta-content h2 {
    font-size: 24px;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    max-width: 250px;
  }
}

/* Large mobile devices (iPhone 14 Pro Max and similar) */
@media (min-width: 429px) and (max-width: 500px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .feature-card {
    padding: 25px;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    height: 80vh;
  }
  
  .features-section {
    padding: 40px 15px;
  }
  
  .cta-section {
    padding: 50px 15px;
  }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .hero-section {
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  
  .features-section {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  
  .cta-section {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
  }
}
.globe-3d-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}

.globe-3d-mount {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%,
    rgba(74, 144, 226, 0.1) 0%,
    rgba(30, 58, 138, 0.05) 50%,
    transparent 70%);
}

.globe-3d-mount canvas {
  border-radius: 50%;
  width: 120px !important;
  height: 120px !important;
  display: block;
}

.globe-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(74, 144, 226, 0.3);
  border-top: 3px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fixed positioning for hero section */
.fixed-globe-container {
  position: fixed;
  top: 4rem;
  left: 2rem;
  z-index: 1000;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Globe label for home page */
.globe-label-home {
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  text-align: center;
  pointer-events: none;
}

/* Responsive adjustments for all devices */
@media (max-width: 1024px) { /* Tablet */
  .globe-3d-container {
    width: 110px;
    height: 110px;
  }

  .globe-3d-mount {
    width: 110px;
    height: 110px;
  }

  .globe-3d-mount canvas {
    width: 110px !important;
    height: 110px !important;
  }

  .fixed-globe-container {
    top: 3.5rem;
    left: 1.75rem;
  }
  
  .globe-label-home {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) { /* iPad and smaller tablets */
  .globe-3d-container {
    width: 100px;
    height: 100px;
  }

  .globe-3d-mount {
    width: 100px;
    height: 100px;
  }

  .globe-3d-mount canvas {
    width: 100px !important;
    height: 100px !important;
  }

  .fixed-globe-container {
    top: 3rem;
    left: 1.5rem;
  }
  
  .globe-label-home {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) { /* Mobile phones */
  .globe-3d-container {
    width: 80px;
    height: 80px;
  }

  .globe-3d-mount {
    width: 80px;
    height: 80px;
  }

  .globe-3d-mount canvas {
    width: 80px !important;
    height: 80px !important;
  }

  .fixed-globe-container {
    top: 2.5rem;
    left: 1rem;
  }
  
  .globe-label-home {
    font-size: 0.8rem;
  }
}

/* Large mobile devices (iPhone 14 Pro Max and similar) */
@media (min-width: 481px) and (max-width: 550px) {
  .globe-3d-container {
    width: 90px;
    height: 90px;
  }

  .globe-3d-mount {
    width: 90px;
    height: 90px;
  }

  .globe-3d-mount canvas {
    width: 90px !important;
    height: 90px !important;
  }

  .fixed-globe-container {
    top: 3rem;
    left: 1.25rem;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .globe-3d-container {
    width: 70px;
    height: 70px;
  }

  .globe-3d-mount {
    width: 70px;
    height: 70px;
  }

  .globe-3d-mount canvas {
    width: 70px !important;
    height: 70px !important;
  }

  .fixed-globe-container {
    top: 2rem;
    left: 0.75rem;
  }
  
  .globe-label-home {
    font-size: 0.75rem;
  }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .fixed-globe-container {
    top: calc(4rem + env(safe-area-inset-top, 0));
  }
  
  @media (max-width: 768px) {
    .fixed-globe-container {
      top: calc(3rem + env(safe-area-inset-top, 0));
    }
  }
  
  @media (max-width: 480px) {
    .fixed-globe-container {
      top: calc(2.5rem + env(safe-area-inset-top, 0));
    }
  }
}

/* Map Page - Consistent with HomePage Theme */

.map-page {
  min-height: 100vh;
  background: transparent;
  background-attachment: fixed;
  color: var(--cream);
  font-family: 'Bebas Neue', cursive;
  position: relative;
  overflow: hidden;
}

/* Floating Globe Styles for Map Page */
.map-page .hero-globe-container {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.map-page .interactive-globe {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    #4a90e2 0%,     /* Ocean blue */
    #2e7d32 25%,    /* Forest green */
    #8bc34a 35%,    /* Land green */
    #4a90e2 50%,    /* Ocean blue */
    #2e7d32 65%,    /* Forest green */
    #d4af37 75%,    /* Desert gold */
    #4a90e2 100%    /* Ocean blue */
  );
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 20px rgba(74, 144, 226, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: globeRotate 10s linear infinite;
}

.map-page .interactive-globe::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.map-page .interactive-globe svg {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.map-page .globe-pulse {
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 2px solid rgba(74, 144, 226, 0.4);
  animation: pulse 3s infinite;
  top: -10%;
  left: -10%;
}

.map-page .globe-text {
  color: white;
  font-size: 0.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* Psychedelic background animations - REMOVED */

/* Map Content */
.map-content {
  position: relative;
  width: 100%;
  height: 100vh;
}

.map-container {
  position: relative;
  z-index: 1;
}

/* Modern Control Panel - Top Right */
.search-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--wood-grain);
  background-image: url(/static/media/wood5.d10dd5daabddfabbbac0.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(102, 126, 234, 0.2);
  z-index: 100;
  min-width: 320px;
  max-width: 400px;
}

/* Modern Search Section */
.search-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  display: none;
}

.search-input {
  width: 100%;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1rem 1rem 3rem;
  color: #2d3748;
  font-size: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-input:focus + .search-icon {
  color: #667eea;
}

/* Search Button */
.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--psychedelic-purple);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.search-button:hover:not(:disabled) {
  background: var(--psychedelic-magenta);
  transform: translateY(-50%) scale(1.05);
}

.search-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modern Button Styles */
.control-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.add-restroom-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.add-restroom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.add-restroom-btn.active {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  animation: pulse-glow 2s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 1);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.4), 0 0 20px rgba(78, 205, 196, 0.3);
  }
  50% {
    box-shadow: 0 12px 32px rgba(78, 205, 196, 0.6), 0 0 30px rgba(78, 205, 196, 0.5);
  }
}

/* Modern Refresh Button */
.refresh-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e2e8f0;
  color: #4a5568;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.refresh-btn:hover {
  background: white;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

/* Location Button Styles */
.location-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--psychedelic-purple);
}

.status-icon {
  font-size: 0.9rem;
}

.status-icon.realtime,
.status-icon.locating {
  color: var(--psychedelic-lime);
  animation: pulse 2s infinite;
}

.status-icon.connected {
  color: var(--psychedelic-lime);
}

.status-icon.connecting {
  color: var(--psychedelic-pink);
  animation: pulse 1s infinite;
}

.status-icon.disconnected {
  color: orange;
}

.status-icon.error {
  color: #ff4444;
}

.status-text {
  font-family: 'Bebas Neue', cursive;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--cream);
}

/* Stats Panel - Bottom Left */
.stats-panel {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #2d3748;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 250px;
  z-index: 1000;
}

/* Filters */
.filters-panel {
  margin: 10px 14px 12px 14px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(139, 69, 19, 0.6);
  background: var(--wood-grain, rgba(139, 69, 19, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.filters-header {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.filters-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.25);
  padding: 6px 10px;
  border-radius: 10px;
}
.filter-checkbox input {
  accent-color: #ffb6b6;
}
.filters-clear-btn {
  margin-left: auto;
  background: transparent;
  color: #ffdede;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.filters-clear-btn:hover {
  background: rgba(0,0,0,0.25);
}


.stats-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.stats-icon {
  color: #667eea;
  font-size: 1rem;
}

.stats-header span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
  transform: translateX(5px);
}

.stat-item svg {
  color: #667eea;
  font-size: 0.9rem;
}

.stat-number {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #667eea;
  min-width: 30px;
}

.stat-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  color: #4a5568;
  font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.modal-content,
.rating-modal-content,
.add-restroom-modal-content {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 30px rgba(102, 126, 234, 0.2);
  color: #2d3748;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  width: 90vw;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
}

.rating-modal-content {
  max-width: 600px;
}

.add-restroom-modal-content {
  max-width: 700px;
  max-height: 85vh;
}

/* Rating Section in Add Restroom Modal */
.rating-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid var(--psychedelic-purple);
  border-radius: 15px;
}

.rating-section h3 {
  color: var(--psychedelic-lime);
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 10px var(--psychedelic-lime);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 2px solid var(--psychedelic-purple);
  background: rgba(0, 0, 0, 0.3);
}

.modal-icon {
  color: rgb(255, 248, 45);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.modal-header span {
  flex: 1 1;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #FFFFFF !important; /* white text for dark header */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: bold !important;
}

.close-btn {
  background: none;
  border: none;
  color: var(--psychedelic-pink);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgb(255, 244, 31);
  transform: scale(1.1);
}

.modal-body,
.rating-modal-body {
  padding: 2rem;
}

.modal-instruction {
  color: rgb(255, 235, 88);
  margin-bottom: 1rem;
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
}

.location-confirmation {
  color: var(--psychedelic-lime);
  margin-bottom: 1rem;
  font-weight: bold;
}

.restroom-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--psychedelic-purple);
  border-radius: 8px;
  padding: 0.75rem;
  color: #FFFFFF;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  resize: vertical;
  min-height: 45px;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
  outline: none;
  border-color: var(--psychedelic-lime);
  box-shadow: 0 0 10px var(--psychedelic-lime);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--psychedelic-lime);
}

.form-submit {
  background: var(--psychedelic-purple);
  border: 2px solid var(--psychedelic-pink);
  color: #FFFFFF !important;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-wood);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.form-submit.enabled {
  background: var(--psychedelic-lime) !important;
  color: #000000 !important;
  border-color: var(--psychedelic-purple) !important;
  text-shadow: none !important;
  font-weight: bold !important;
}

.form-submit.enabled:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-wood), 0 0 15px var(--psychedelic-lime);
  color: #000000 !important;
}

.form-submit.disabled {
  background: #666 !important;
  color: #999 !important;
  cursor: not-allowed;
  border-color: #555 !important;
  text-shadow: none !important;
}

/* Toilet Rating Selector Styles */
.toilet-rating-selector {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--psychedelic-purple);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.toilet-rating-selector:hover {
  border-color: var(--psychedelic-lime);
  background: rgba(255, 255, 255, 0.15);
}

.toilet-rating-selector label {
  display: block;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.toilet-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toilet-icon {
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.toilet-icon:hover {
  transform: scale(1.2) rotate(5deg);
}

.toilet-icon.active {
  animation: toilet-bounce 0.3s ease;
}

@keyframes toilet-bounce {
  0%, 100% { transform: scale(1.1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(-5deg); }
}

/* Rating Comment Section */
.rating-comment-section {
  margin-top: 1.5rem;
}

.rating-comment-section label {
  display: block;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--psychedelic-lime);
  margin-bottom: 0.5rem;
}

/* Rating Summary */
.rating-summary {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(13, 255, 231, 0.1);
  border: 2px solid var(--psychedelic-lime);
  border-radius: 10px;
  text-align: center;
}

.average-display {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: 1px;
}

.average-display strong {
  color: var(--psychedelic-lime);
  font-size: 1.4rem;
  margin-left: 0.5rem;
  text-shadow: 0 0 10px var(--psychedelic-lime);
}

/* Animations */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive Design for All Devices */
@media (max-width: 1024px) { /* Tablet */
  .search-panel {
    min-width: 280px;
    padding: 1.5rem;
  }
  
  .stats-panel {
    max-width: 220px;
    padding: 1rem;
  }
  
  .rating-modal-content {
    width: 90vw;
    max-width: 600px;
  }
  
  .add-restroom-modal-content {
    max-width: 600px;
  }
}

@media (max-width: 768px) { /* iPad and smaller tablets */
  /* Mobile Globe Styles */
  .map-page .hero-globe-container {
    top: 0.5rem;
    left: 0.5rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .map-page .interactive-globe {
    width: 60px;
    height: 60px;
  }

  .map-page .interactive-globe svg {
    font-size: 1.5rem;
  }

  .map-page .globe-text {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .search-panel {
    top: 0.5rem;
    right: 0.5rem;
    min-width: 250px;
    padding: 1rem;
  }

  .stats-panel {
    bottom: 0.5rem;
    left: 0.5rem;
    max-width: 200px;
    padding: 0.75rem;
  }

  .stats-content {
    gap: 0.25rem;
  }

  .stat-item {
    padding: 0.25rem;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
  
  .rating-modal-content {
    width: 95vw;
    max-width: none;
  }
  
  .toilet-icons {
    flex-wrap: wrap;
  }
  
  .add-restroom-modal-content {
    max-width: 95vw;
  }
  
  .filters-panel {
    margin: 8px 10px 10px 10px;
    padding: 8px;
  }
  
  .filters-controls {
    gap: 8px;
  }
  
  .filter-checkbox {
    padding: 5px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) { /* Mobile phones */
  .search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 15px 15px;
    border-top: none;
    min-width: auto;
    padding: 0.75rem;
  }
  
  .search-content {
    gap: 0.75rem;
  }
  
  .search-input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 0.9rem;
  }
  
  .search-button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .stats-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    max-width: none;
    padding: 0.5rem;
  }

  .stats-content {
    flex-direction: row;
    justify-content: space-around;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    min-width: 60px;
    padding: 0.15rem;
  }
  
  .stat-number {
    font-size: 0.9rem;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
  
  .toilet-rating-selector {
    padding: 0.75rem;
  }
  
  .toilet-icon {
    font-size: 24px;
  }
  
  .control-buttons {
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .add-restroom-btn,
  .refresh-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .filters-panel {
    margin: 6px 8px 8px 8px;
    padding: 6px;
  }
  
  .filters-header {
    font-size: 0.8rem;
  }
  
  .filter-checkbox {
    padding: 4px 6px;
    font-size: 0.8rem;
  }
  
  .filters-clear-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

/* Large mobile devices (iPhone 14 Pro Max and similar) */
@media (min-width: 481px) and (max-width: 550px) {
  .search-panel {
    min-width: 300px;
  }
  
  .stats-panel {
    max-width: 250px;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .search-panel {
    top: 0.25rem;
    right: 0.25rem;
    padding: 0.75rem;
  }
  
  .stats-panel {
    bottom: 0.25rem;
    left: 0.25rem;
    padding: 0.5rem;
  }
  
  .stat-item {
    padding: 0.15rem;
  }
  
  .control-buttons {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .search-panel {
    padding-top: calc(1rem + env(safe-area-inset-top, 0));
    padding-right: calc(1rem + env(safe-area-inset-right, 0));
  }
  
  .stats-panel {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    padding-left: calc(0.5rem + env(safe-area-inset-left, 0));
  }
  
  @media (max-width: 480px) {
    .search-panel {
      padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
      padding-right: calc(0.75rem + env(safe-area-inset-right, 0));
    }
    
    .stats-panel {
      padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
      padding-left: calc(0.25rem + env(safe-area-inset-left, 0));
    }
  }
}

/* Instructions Toast - appears when entering add mode */
.instructions-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3500;
  pointer-events: none;
}

.instructions-content-toast {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  animation: pulse-glow-toast 2s ease-in-out infinite;
}

@keyframes pulse-glow-toast {
  0%, 100% {
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.3),
      0 0 40px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(102, 126, 234, 0.6);
  }
}

.instructions-icon {
  font-size: 1.5rem;
  animation: bounce-icon 1s ease-in-out infinite;
}

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

/* Cursor styles for add mode */
.map-container.add-mode {
  cursor: crosshair !important;
}

/* Clickable map cursor */
.map-container:not(.add-mode) {
  cursor: pointer;
}

.map-container:not(.add-mode):hover::after {
  content: '🚽 Click to add restroom';
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--psychedelic-lime);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  pointer-events: none;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.loading-content {
  text-align: center;
  color: var(--cream);
}

.holographic-loader {
  margin-bottom: 2rem;
}

.spinning-globe {
  font-size: 4rem;
  color: var(--psychedelic-lime);
  animation: spinning-globe 2s linear infinite;
  filter: drop-shadow(0 0 20px var(--psychedelic-lime));
}

.loading-text {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--psychedelic-lime);
  text-shadow: 0 0 10px var(--psychedelic-lime);
}

@keyframes spinning-globe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes globeRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
  to { transform: rotate(360deg); }
}

/* Custom Scrollbar for Modals */
.modal-content::-webkit-scrollbar,
.rating-modal-content::-webkit-scrollbar,
.add-restroom-modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.rating-modal-content::-webkit-scrollbar-track,
.add-restroom-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
.rating-modal-content::-webkit-scrollbar-thumb,
.add-restroom-modal-content::-webkit-scrollbar-thumb {
  background: var(--psychedelic-lime);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.rating-modal-content::-webkit-scrollbar-thumb:hover,
.add-restroom-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--psychedelic-purple);
}

/* Mobile Adjustments for Add Restroom Modal */
@media (max-width: 768px) {
  .add-restroom-modal-content {
    width: 95vw;
    max-width: none;
    max-height: 90vh;
  }
  
  .rating-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .add-restroom-modal-content {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  
  .rating-section {
    padding: 0.75rem;
    margin: 1rem 0;
  }
  
  .rating-section h3 {
    font-size: 1.1rem;
  }
}

/* Gender selector styles */
.gender-selector {
  margin: 1.5rem 0;
  padding: 0.5rem 0;
  border: 2px solid rgba(0, 0, 0, 0.134); /* Debug border */
  min-height: 80px; /* Ensure minimum height */
}

.gender-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  border: 1px solid rgb(107, 211, 255); /* Debug border */
  min-height: 50px; /* Ensure minimum height */
}

.gender-option {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border: 2px solid #02d2d6 !important; /* Use actual color instead of variable */
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  outline: none;
  white-space: nowrap;
  min-width: 120px; /* Ensure minimum width */
  min-height: 40px; /* Ensure minimum height */
  position: relative;
  z-index: 1000;
  background-color: rgba(255, 182, 182, 0.8) !important; /* Light red background */
}

.gender-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 253, 253, 0.206);
}

.gender-option.active {
  background: var(rgb(251, 146, 146))!important;
  color: #000000 !important;
  border-color: rgba(rgb(109, 206, 255)) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(111, 2, 214, 0.6);
}

.gender-emoji {
  font-size: 1.2rem;
}

.gender-label {
  font-weight: bold;
}

@media (max-width: 768px) {
  .gender-options {
    flex-direction: column;
    align-items: center;
  }
  
  .gender-option {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* Critical overrides - must be at bottom */
.rating-modal-body .form-submit {
  display: block;
  margin: 1rem auto 0;
}

.rating-modal-body .form-submit.enabled,
.rating-modal-body .form-submit:disabled {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
}

.add-restroom-modal-content .form-submit.enabled {
  background: #009860 !important;
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: bold !important;
  border-color: #6f02d6 !important;
  font-size: 1.1rem !important;
}

.add-restroom-modal-content .form-submit.enabled:hover {
  background: #03a0ac !important;
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

.add-restroom-modal-content .modal-header {
  background: rgba(0, 0, 0, 0.3) !important;
}

.add-restroom-modal-content .modal-header span {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: bold !important;
}
/* Profile Page Styles */
.profile-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Header */
.profile-header {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.back-button {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  color: #667eea;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.back-button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(-2px);
}

.settings-button {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  color: #667eea;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.settings-button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

.profile-info {
  flex: 1 1;
}

.profile-info h1 {
  color: #2d3748;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.profile-info p {
  color: #718096;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
}

.bio {
  color: #4a5568;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.edit-button {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-button:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

/* Edit Form */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-input,
.edit-textarea {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.edit-input:focus,
.edit-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-actions {
  display: flex;
  gap: 1rem;
}

.save-btn {
  background: #48bb78;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-btn:hover {
  background: #38a169;
}

.cancel-btn {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #c53030;
}

/* Stats Cards */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.stat-icon {
  color: #667eea;
  font-size: 1.5rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  color: #718096;
  font-size: 0.9rem;
}

/* Progress Bar */
.level-progress {
  margin-bottom: 2rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Tabs */
.profile-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tab {
  flex: 1 1;
  background: none;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab:hover:not(.active) {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

/* Content */
.profile-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.overview-section h3,
.activity-section h3,
.badges-section h3 {
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.stat-item svg {
  color: #667eea;
  font-size: 1.5rem;
}

.stat-value {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  color: #718096;
  font-size: 0.9rem;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.activity-icon {
  color: #667eea;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.activity-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-text {
  color: #2d3748;
  font-weight: 600;
}

.activity-time {
  color: #718096;
  font-size: 0.9rem;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.badge-card {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.badge-icon {
  font-size: 1.5rem;
  width: 24px;
  text-align: center;
}

.badge-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.badge-name {
  color: #2d3748;
  font-weight: 600;
}

.badge-date {
  color: #718096;
  font-size: 0.9rem;
}

/* Responsive Design for All Devices */
@media (max-width: 1024px) { /* Tablet */
  .container {
    padding: 0 1rem;
  }
  
  .profile-header {
    padding: 1.5rem;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  .level-progress {
    margin-bottom: 1.5rem;
  }
  
  .profile-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) { /* iPad and smaller tablets */
  .container {
    padding: 0 0.5rem;
  }
  
  .profile-header {
    padding: 1rem;
  }
  
  .profile-main {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .profile-info h1 {
    font-size: 2rem;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-tabs {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .badges-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-content {
    gap: 0.25rem;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .level-progress {
    margin-bottom: 1.25rem;
  }
  
  .progress-info {
    font-size: 0.9rem;
  }
  
  .profile-content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) { /* Mobile phones */
  .profile-page {
    padding: 1rem 0;
  }
  
  .profile-header {
    padding: 0.75rem;
  }
  
  .header-top {
    margin-bottom: 1rem;
  }
  
  .back-button,
  .settings-button {
    padding: 0.5rem;
    font-size: 1rem;
  }
  
  .profile-main {
    gap: 0.75rem;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .profile-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }
  
  .profile-info p {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .bio {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .edit-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .stat-icon {
    font-size: 1.25rem;
  }
  
  .stat-number {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .level-progress {
    margin-bottom: 1rem;
  }
  
  .progress-info {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .progress-bar {
    height: 6px;
  }
  
  .profile-tabs {
    padding: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .tab {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .profile-content {
    padding: 1rem;
  }
  
  .overview-section h3,
  .activity-section h3,
  .badges-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .stats-grid {
    gap: 0.75rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-item svg {
    font-size: 1.25rem;
  }
  
  .stat-value {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .activity-item {
    padding: 1rem;
  }
  
  .activity-icon {
    font-size: 1rem;
  }
  
  .activity-text {
    font-size: 0.95rem;
  }
  
  .activity-time {
    font-size: 0.8rem;
  }
  
  .badges-grid {
    gap: 0.75rem;
  }
  
  .badge-card {
    padding: 1rem;
  }
  
  .badge-icon {
    font-size: 1.25rem;
  }
  
  .badge-name {
    font-size: 0.95rem;
  }
  
  .badge-date {
    font-size: 0.8rem;
  }
}

/* Large mobile devices (iPhone 14 Pro Max and similar) */
@media (min-width: 481px) and (max-width: 550px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card {
    padding: 1rem;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .profile-header {
    padding: 0.5rem;
  }
  
  .profile-main {
    gap: 0.5rem;
  }
  
  .profile-content {
    padding: 0.75rem;
  }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .profile-header {
    padding-top: calc(2rem + env(safe-area-inset-top, 0));
  }
  
  @media (max-width: 768px) {
    .profile-header {
      padding-top: calc(1rem + env(safe-area-inset-top, 0));
    }
  }
  
  @media (max-width: 480px) {
    .profile-header {
      padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
    }
  }
}
.toilet-rating-selector {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.toilet-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toilet-button:not(.read-only):hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

.toilet-button.read-only {
  cursor: default;
}

.toilet-emoji {
  display: block;
  transition: all 0.3s ease;
  filter: grayscale(0.3);
}

.toilet-button.active .toilet-emoji {
  filter: grayscale(0);
  transform: scale(1.1);
}

.toilet-emoji.half {
  opacity: 0.7;
}

/* Size variants */
.toilet-small .toilet-emoji {
  font-size: 1rem;
}

.toilet-medium .toilet-emoji {
  font-size: 1.25rem;
}

.toilet-large .toilet-emoji {
  font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .toilet-small .toilet-emoji {
    font-size: 0.9rem;
  }
  
  .toilet-medium .toilet-emoji {
    font-size: 1.1rem;
  }
  
  .toilet-large .toilet-emoji {
    font-size: 1.3rem;
  }
}

.photo-upload {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.photo-upload-header {
  margin-bottom: 1.5rem;
}

.photo-upload-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.photo-upload-header p {
  color: #718096;
  margin: 0;
  font-size: 0.9rem;
}

.upload-area {
  border: 2px dashed rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(102, 126, 234, 0.05);
  margin-bottom: 1.5rem;
}

.upload-area:hover {
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.upload-area.drag-active {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.15);
  transform: scale(1.02);
}

.upload-area.uploading {
  border-color: #38b2ac;
  background: rgba(56, 178, 172, 0.1);
  cursor: not-allowed;
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.upload-hint {
  font-size: 0.9rem;
  color: #718096;
  margin: 0;
}

.upload-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.photo-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-4px);
}

.photo-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
  transform: scale(1.05);
}

.remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.remove-photo:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: scale(1.1);
}

.photo-info {
  padding: 0.75rem;
}

.photo-filename {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-date {
  font-size: 0.7rem;
  color: #718096;
  margin: 0;
}

.upload-guidelines {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.upload-guidelines h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.75rem 0;
}

.upload-guidelines ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upload-guidelines li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.4;
}

.guideline-icon {
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: #38b2ac;
  flex-shrink: 0;
}

.guideline-icon.warning {
  color: #ed8936;
}

/* Responsive Design */
@media (max-width: 768px) {
  .photo-upload {
    padding: 1rem;
  }
  
  .upload-area {
    padding: 1.5rem;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
  
  .upload-text {
    font-size: 1rem;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .photo-info {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .upload-area {
    padding: 1rem;
  }
  
  .upload-icon {
    font-size: 1.75rem;
  }
}

.rating-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.rating-modal {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(102, 126, 234, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  margin-bottom: 1.5rem;
}

.restroom-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.restroom-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #718096;
  font-size: 0.9rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.close-button {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  color: #667eea;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.close-button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.rating-form {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert.error {
  background: rgba(245, 101, 101, 0.1);
  color: #e53e3e;
  border: 1px solid rgba(245, 101, 101, 0.2);
}

.alert.success {
  background: rgba(56, 178, 172, 0.1);
  color: #38b2ac;
  border: 1px solid rgba(56, 178, 172, 0.2);
}

.rating-section {
  margin-bottom: 2rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.section-label svg {
  color: #667eea;
}

.star-rating {
  display: flex;
  gap: 0.5rem;
}

.star {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.25rem;
}

.star:hover,
.star.active {
  color: #fbbf24;
  transform: scale(1.1);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.amenity-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

.amenity-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.amenity-label {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
}

.wait-time-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: #2d3748;
  transition: all 0.3s ease;
  font-family: inherit;
}

.wait-time-select:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: #2d3748;
  transition: all 0.3s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.comment-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-textarea::placeholder {
  color: #a0aec0;
}

.character-count {
  text-align: right;
  font-size: 0.8rem;
  color: #718096;
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.cancel-button {
  flex: 1 1;
  padding: 14px 24px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-button:hover:not(:disabled) {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.cancel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-button {
  flex: 2 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .rating-modal {
    margin: 1rem;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 1rem 1rem 0 1rem;
  }
  
  .rating-form {
    padding: 0 1rem 1rem 1rem;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .cancel-button,
  .submit-button {
    flex: 1 1;
  }
}

@media (max-width: 480px) {
  .rating-modal-overlay {
    padding: 0.5rem;
  }
  
  .rating-modal {
    margin: 0.5rem;
  }
  
  .restroom-info h2 {
    font-size: 1.25rem;
  }
  
  .section-label {
    font-size: 1rem;
  }
  
  .star {
    font-size: 1.25rem;
  }
}

.restroom-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.restroom-card:hover {
  border-color: rgb(5, 22, 96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.restroom-info {
  flex: 1 1;
  min-width: 0;
}

.restroom-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.restroom-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #718096;
  font-size: 0.9rem;
}

.location-icon {
  color: #667eea;
  font-size: 0.8rem;
}

.address {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.distance-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.rating-section {
  margin-bottom: 1rem;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rating-text {
  font-size: 1rem;
  font-weight: 700;
  color: #667eea;
}

.review-count {
  font-size: 0.85rem;
  color: #718096;
}

.amenities-section {
  margin-bottom: 1rem;
}

.amenities-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  margin: 0 0 0.75rem 0;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #4a5568;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.amenity-icon {
  font-size: 0.9rem;
}

.amenity-name {
  font-weight: 500;
}

.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #718096;
}

.info-icon {
  color: #667eea;
  font-size: 0.8rem;
}

.photos-section {
  margin-bottom: 1rem;
}

.photos-preview {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.photo-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-photos {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.1);
  border: 2px dashed rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #667eea;
  font-weight: 600;
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.rate-button,
.navigate-button {
  flex: 1 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
}

.rate-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.rate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.navigate-button {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.navigate-button:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .restroom-card {
    padding: 1.25rem;
  }
  
  .card-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .distance-badge {
    align-self: flex-start;
  }
  
  .rating-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .amenities-list {
    gap: 0.4rem;
  }
  
  .amenity-item {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  .info-section {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .rate-button,
  .navigate-button {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .restroom-card {
    padding: 1rem;
  }
  
  .restroom-name {
    font-size: 1.1rem;
  }
  
  .address {
    max-width: 150px;
  }
  
  .photos-preview {
    gap: 0.4rem;
  }
  
  .photo-thumbnail,
  .more-photos {
    width: 50px;
    height: 50px;
  }
}

.ranking-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ranking-header {
  background: white;
  color: #2d3748;
  padding: 2rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.header-top h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #2d3748;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-button, .filter-button {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  color: #667eea;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.back-button:hover, .filter-button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.location-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: rgba(102, 126, 234, 0.1);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  color: #4a5568;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.location-container svg {
  margin-right: 8px;
  color: #667eea;
}

.refresh-button {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  color: #667eea;
  margin-left: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.refresh-button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stats-container {
  display: flex;
  justify-content: space-between;
  background: white;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1;
  padding: 0.5rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
  text-align: center;
}

.stat-divider {
  width: 1px;
  background-color: rgba(102, 126, 234, 0.3);
  margin: 0 10px;
}

.content-container {
  flex: 1 1;
  overflow-y: auto;
  padding: 0 2rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.restrooms-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.restroom-card {
  background: white;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.restroom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(102, 126, 234, 0.4);
}

.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  border-bottom-right-radius: 8px;
  z-index: 1;
}

.rank-number {
  font-size: 0.9rem;
}

.card-content {
  display: flex;
  margin-top: 5px;
}

.card-left {
  margin-right: 15px;
}

.restroom-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.card-middle {
  flex: 1 1;
}

.restroom-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #2d3748;
}

.restroom-address {
  font-size: 0.9rem;
  color: #718096;
  margin: 0 0 12px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.rating-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.toilet-rating {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.toilet-full, .toilet-half, .toilet-empty {
  font-size: 16px;
  margin-right: 2px;
}

.toilet-full {
  color: #4A90E2;
}

.toilet-half {
  color: #4A90E2;
  opacity: 0.6;
}

.toilet-empty {
  color: #D3D3D3;
}

.rating-text {
  font-weight: 700;
  color: #667eea;
  margin-right: 8px;
  font-size: 1rem;
}

.review-count {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 500;
}

.info-row {
  display: flex;
  gap: 10px;
}

.info-badge {
  display: flex;
  align-items: center;
  background: #f0f4f8;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #555;
}

.info-badge svg {
  margin-right: 4px;
  font-size: 0.7rem;
}

.card-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 10px;
}

.action-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.navigate-btn {
  background: #4A90E2;
  color: white;
}

.navigate-btn:hover {
  background: #357ABD;
}

.favorite-btn {
  background: #f0f4f8;
  color: #666;
}

.favorite-btn:hover {
  background: #e0e4e8;
  color: #ff6b6b;
}

.amenities-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f4f8;
}

.amenity-badge {
  background: #f0f4f8;
  color: #555;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4A90E2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #555;
}

.empty-state p {
  color: #888;
  max-width: 300px;
}

/* Responsive adjustments for all devices */
@media (max-width: 1024px) { /* Tablet */
  .ranking-header {
    padding: 1.5rem;
  }
  
  .stats-container {
    padding: 1rem;
  }
  
  .stat-item {
    padding: 0.4rem;
  }
  
  .content-container {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}

@media (max-width: 768px) { /* iPad and smaller tablets */
  .restroom-address {
    max-width: 200px;
  }
  
  .ranking-header {
    padding: 1.25rem;
    border-radius: 0 0 15px 15px;
  }
  
  .header-top h1 {
    font-size: 1.75rem;
  }
  
  .location-container {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .stats-container {
    padding: 1rem;
    margin-top: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .content-container {
    padding: 0 1rem 1rem 1rem;
  }
  
  .restroom-card {
    padding: 1.25rem;
  }
  
  .restroom-name {
    font-size: 1.1rem;
  }
  
  .restroom-address {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) { /* Mobile phones */
  .restroom-address {
    max-width: 150px;
  }
  
  .ranking-header {
    padding: 1rem;
  }
  
  .header-top {
    margin-bottom: 10px;
  }
  
  .header-top h1 {
    font-size: 1.5rem;
  }
  
  .back-button, .filter-button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .location-container {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .refresh-button {
    padding: 6px;
  }
  
  .stats-container {
    padding: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .stat-item {
    padding: 0.25rem;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .content-container {
    padding: 0 0.75rem 0.75rem 0.75rem;
  }
  
  .restroom-card {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .card-left {
    margin-right: 10px;
  }
  
  .restroom-image {
    width: 60px;
    height: 60px;
  }
  
  .restroom-name {
    font-size: 1rem;
  }
  
  .restroom-address {
    font-size: 0.8rem;
    max-width: 120px;
  }
  
  .action-button {
    width: 32px;
    height: 32px;
  }
  
  .toilet-full, .toilet-half, .toilet-empty {
    font-size: 14px;
  }
  
  .rating-text {
    font-size: 0.9rem;
  }
  
  .review-count {
    font-size: 0.8rem;
  }
  
  .info-badge {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
  
  .amenities-container {
    margin-top: 8px;
    padding-top: 8px;
  }
  
  .amenity-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

/* Large mobile devices (iPhone 14 Pro Max and similar) */
@media (min-width: 481px) and (max-width: 550px) {
  .restroom-address {
    max-width: 180px;
  }
  
  .restroom-card {
    padding: 1.25rem;
  }
  
  .restroom-name {
    font-size: 1.1rem;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .ranking-header {
    padding: 0.75rem;
  }
  
  .stats-container {
    padding: 0.5rem;
  }
  
  .content-container {
    padding: 0 0.5rem 0.5rem 0.5rem;
  }
  
  .restroom-card {
    padding: 0.75rem;
  }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .ranking-header {
    padding-top: calc(2rem + env(safe-area-inset-top, 0));
  }
  
  @media (max-width: 768px) {
    .ranking-header {
      padding-top: calc(1rem + env(safe-area-inset-top, 0));
    }
  }
  
  @media (max-width: 480px) {
    .ranking-header {
      padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
    }
  }
}
/* Settings Page Styles */
.settings-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.back-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

.settings-header h1 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.save-button {
  background: linear-gradient(135deg, #00FF88, #00DDFF);
  border: none;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.save-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 255, 136, 0.4);
}

/* Settings Content */
.settings-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  margin-bottom: 2rem;
}

/* Setting Sections */
.setting-section {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.setting-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.section-header:hover {
  background: rgba(102, 126, 234, 0.05);
  padding-left: 0.5rem;
}

.section-icon {
  color: #667eea;
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 24px;
}

.section-header h3 {
  flex: 1 1;
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.section-arrow {
  color: #a0aec0;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.section-content {
  padding: 1rem 0 1.5rem 0;
  animation: slideDown 0.3s ease;
}

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

/* Setting Items */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #f7fafc;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1 1;
  margin-right: 1rem;
}

.setting-label {
  display: block;
  color: #2d3748;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.setting-description {
  color: #718096;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Form Controls */
.setting-input,
.setting-select,
.setting-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.setting-input:focus,
.setting-select:focus,
.setting-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background-color: #667eea;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Buttons */
.password-button,
.location-button {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-button:hover,
.location-button:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.password-form {
  margin-top: 1rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.password-form .setting-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.password-form .setting-item:last-child {
  border-bottom: none;
}

/* Footer Actions */
.settings-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.danger-button {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.danger-button:hover {
  background: #c53030;
  transform: translateY(-1px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Responsive Design for All Devices */
@media (max-width: 1024px) { /* Tablet */
  .settings-container {
    padding: 0 1rem;
  }
  
  .settings-header {
    padding: 1rem 0;
  }
  
  .settings-content {
    padding: 1.5rem;
  }
  
  .setting-item {
    padding: 0.85rem 0;
  }
  
  .setting-label {
    font-size: 1.1rem;
  }
  
  .setting-description {
    font-size: 0.95rem;
  }
  
  .setting-input,
  .setting-select,
  .setting-textarea {
    padding: 0.85rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) { /* iPad and smaller tablets */
  .settings-container {
    padding: 0 0.5rem;
  }
  
  .settings-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0.75rem 0;
  }
  
  .settings-content {
    padding: 1rem;
  }
  
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
  }
  
  .setting-info {
    margin-right: 0;
  }
  
  .settings-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .settings-footer button {
    width: 100%;
    max-width: 300px;
  }
  
  .section-header {
    padding: 0.85rem 0;
  }
  
  .section-header h3 {
    font-size: 1.25rem;
  }
  
  .setting-label {
    font-size: 1rem;
  }
  
  .setting-description {
    font-size: 0.9rem;
  }
  
  .setting-input,
  .setting-select,
  .setting-textarea {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) { /* Mobile phones */
  .settings-page {
    padding: 1rem 0;
  }
  
  .settings-container {
    padding: 0 0.25rem;
  }
  
  .settings-header {
    padding: 0.5rem 0;
    gap: 0.75rem;
  }
  
  .back-button,
  .save-button {
    padding: 0.5rem;
    font-size: 1rem;
  }
  
  .settings-header h1 {
    font-size: 1.5rem;
  }
  
  .settings-content {
    padding: 0.75rem;
  }
  
  .setting-section {
    margin-bottom: 1rem;
  }
  
  .section-header {
    padding: 0.75rem 0;
  }
  
  .section-header h3 {
    font-size: 1.1rem;
  }
  
  .section-icon {
    font-size: 1rem;
  }
  
  .setting-item {
    padding: 0.5rem 0;
    gap: 0.75rem;
  }
  
  .setting-label {
    font-size: 0.95rem;
  }
  
  .setting-description {
    font-size: 0.85rem;
  }
  
  .setting-input,
  .setting-select,
  .setting-textarea {
    padding: 0.65rem;
    font-size: 0.95rem;
  }
  
  .toggle-switch {
    width: 45px;
    height: 22px;
  }
  
  .toggle-slider:before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(23px);
  }
  
  .password-button,
  .location-button {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
  
  .settings-footer {
    gap: 0.5rem;
  }
  
  .danger-button,
  .secondary-button {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
}

/* Large mobile devices (iPhone 14 Pro Max and similar) */
@media (min-width: 481px) and (max-width: 550px) {
  .settings-content {
    padding: 1rem;
  }
  
  .setting-item {
    padding: 0.75rem 0;
  }
  
  .setting-input,
  .setting-select,
  .setting-textarea {
    padding: 0.75rem;
  }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .settings-header {
    padding: 0.5rem 0;
    gap: 0.5rem;
  }
  
  .settings-content {
    padding: 0.5rem;
  }
  
  .setting-item {
    padding: 0.5rem 0;
  }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .settings-header {
    padding-top: calc(1rem + env(safe-area-inset-top, 0));
  }
  
  @media (max-width: 768px) {
    .settings-header {
      padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
    }
  }
  
  @media (max-width: 480px) {
    .settings-header {
      padding-top: calc(0.5rem + env(safe-area-inset-top, 0));
    }
  }
}


.signin-page {
  min-height: 100vh;
  background: var(--wood-grain);
  background-image: url(/static/media/wood5.d10dd5daabddfabbbac0.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: 'Bebas Neue', cursive;
}

.signin-container {
  width: 100%;
  max-width: 450px;
}

.signin-card {
  background: var(--wood-grain);
  background-image: url(/static/media/wood5.d10dd5daabddfabbbac0.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--psychedelic-lime);
}

.signin-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.back-button {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(102, 126, 234, 0.1);
  border: none;
  color: #667eea;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.2rem;
}

.back-button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.signin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--psychedelic-lime);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
}

.signin-header p {
  color: var(--cream);
  margin: 0;
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert.error {
  background: rgba(245, 101, 101, 0.1);
  color: #e53e3e;
  border: 1px solid rgba(245, 101, 101, 0.2);
}

.alert.success {
  background: rgba(56, 178, 172, 0.1);
  color: #38b2ac;
  border: 1px solid rgba(56, 178, 172, 0.2);
}

.signin-form {
  margin-bottom: 1.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #667eea;
  font-size: 1rem;
  z-index: 1;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: #2d3748;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-textarea {
  padding: 16px;
  resize: vertical;
  min-height: 80px;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #a0aec0;
}

.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #667eea;
}

.submit-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.forgot-password {
  background: none;
  border: none;
  color: #667eea;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
  margin-bottom: 1.5rem;
}

.forgot-password:hover:not(:disabled) {
  color: #764ba2;
}

.forgot-password:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(102, 126, 234, 0.2);
}

.divider span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 16px;
  color: #718096;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.google-button {
  width: 100%;
  padding: 16px;
  background: white;
  color: #2d3748;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.google-button:hover:not(:disabled) {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.google-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.google-button svg {
  font-size: 1.2rem;
  color: #db4437;
}

.signin-footer {
  text-align: center;
}

.signin-footer p {
  color: #718096;
  margin: 0;
  font-size: 0.9rem;
}

.toggle-mode {
  background: none;
  border: none;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
  transition: color 0.3s ease;
}

.toggle-mode:hover {
  color: #764ba2;
}

/* Responsive Design */
@media (max-width: 480px) {
  .signin-page {
    padding: 1rem;
  }
  
  .signin-card {
    padding: 2rem 1.5rem;
  }
  
  .signin-header h1 {
    font-size: 1.75rem;
  }
  
  .form-input, .form-textarea {
    padding: 14px 14px 14px 44px;
  }
  
  .form-textarea {
    padding: 14px;
  }
  
  .submit-button, .google-button {
    padding: 14px;
  }
}

.connection-test {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--marble-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-brown);
}

.connection-test h2 {
  font-family: 'Bebas Neue', cursive;
  color: var(--primary-brown);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.connection-test p {
  text-align: center;
  color: var(--dark-purple);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.test-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.test-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
}

.test-item.testing {
  border-color: var(--psychedelic-cyan);
  background: rgba(0, 255, 187, 0.1);
}

.test-item.success {
  border-color: var(--psychedelic-lime);
  background: rgba(0, 255, 0, 0.1);
}

.test-item.error {
  border-color: var(--red);
  background: rgba(255, 0, 0, 0.1);
}

.test-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.test-icon {
  font-size: 1.5rem;
}

.test-header h3 {
  font-family: 'Bebas Neue', cursive;
  color: var(--primary-brown);
  margin: 0;
  font-size: 1.5rem;
}

.test-message {
  margin: 0;
  color: var(--dark-purple);
  font-weight: 500;
}

.test-data {
  margin-top: 1rem;
}

.test-data summary {
  cursor: pointer;
  color: var(--psychedelic-purple);
  font-weight: bold;
  padding: 0.5rem;
  background: rgba(111, 2, 214, 0.1);
  border-radius: var(--radius);
  border: 1px solid var(--psychedelic-purple);
}

.test-data summary:hover {
  background: rgba(111, 2, 214, 0.2);
}

.test-data pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  border: 1px solid #ddd;
}

.test-actions {
  text-align: center;
  margin-bottom: 2rem;
}

.retry-button {
  background: linear-gradient(135deg, var(--primary-brown), var(--psychedelic-purple));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--psychedelic-purple), var(--primary-brown));
}

.environment-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--psychedelic-cyan);
}

.environment-info h3 {
  font-family: 'Bebas Neue', cursive;
  color: var(--primary-brown);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.env-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.env-item:last-child {
  border-bottom: none;
}

.env-item strong {
  color: var(--dark-purple);
}

@media (max-width: 768px) {
  .connection-test {
    margin: 1rem;
    padding: 1rem;
  }
  
  .connection-test h2 {
    font-size: 2rem;
  }
  
  .test-item {
    padding: 1rem;
  }
}

.geospatial-test {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--marble-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-brown);
}

.geospatial-test h2 {
  font-family: 'Bebas Neue', cursive;
  color: var(--primary-brown);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-banner {
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-banner p {
  margin: 0;
  color: var(--red);
  font-weight: bold;
}

.error-banner button {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.error-banner button:hover {
  background: darkred;
}

.test-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  gap: 2rem;
  margin-bottom: 2rem;
}

.location-controls,
.search-controls {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--psychedelic-cyan);
}

.location-controls h3,
.search-controls h3 {
  font-family: 'Bebas Neue', cursive;
  color: var(--primary-brown);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  color: var(--dark-purple);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--primary-brown);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.input-group input:focus {
  outline: none;
  border-color: var(--psychedelic-purple);
  box-shadow: 0 0 0 3px rgba(111, 2, 214, 0.1);
}

.location-btn {
  background: linear-gradient(135deg, var(--psychedelic-cyan), var(--psychedelic-purple));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 1rem;
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.test-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.test-btn {
  background: linear-gradient(135deg, var(--primary-brown), var(--psychedelic-purple));
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.test-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--psychedelic-purple), var(--primary-brown));
}

.test-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading {
  text-align: center;
  padding: 2rem;
  background: rgba(111, 2, 214, 0.1);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(111, 2, 214, 0.3);
  border-top: 4px solid var(--psychedelic-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.results h3 {
  font-family: 'Bebas Neue', cursive;
  color: var(--primary-brown);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.no-results {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
}

.restroom-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.restroom-card {
  background: white;
  border: 2px solid var(--psychedelic-cyan);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.restroom-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--psychedelic-purple);
}

.restroom-card h4 {
  color: var(--primary-brown);
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.restroom-card .description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.restroom-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--dark-purple);
}

.features {
  margin-top: 1rem;
  padding: 0.5rem;
  background: rgba(111, 2, 214, 0.1);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .geospatial-test {
    margin: 1rem;
    padding: 1rem;
  }

  .test-controls {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .test-buttons {
    grid-template-columns: 1fr;
  }

  .restroom-list {
    grid-template-columns: 1fr;
  }

  .geospatial-test h2 {
    font-size: 2rem;
  }
}

.App {
  min-height: 100vh;
  background: var(--marble-background);
  background-attachment: fixed;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

/* Psychedelic background removed for clean iOS app */

.main-content {
  flex: 1 1;
  padding: 0;
  max-width: none;
  margin: 0;
  width: 100%;
}

.main-content.map-fullscreen {
  padding: 0;
  max-width: none;
  margin: 0;
  height: 100vh;
  width: 100vw;
}

