* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background-color: #000;
  color: #FFD600;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 1.5em 1em 1em 1em;
  background: linear-gradient(180deg, #000 0%, #000 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #FFD600;
}

h1 {
  color: #FFD600;
  font-size: 2.5em;
  margin-bottom: 0.2em;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h2 {
  color: #FFD600;
  font-size: 1.8em;
  margin-top: 1em;
  margin-bottom: 0.6em;
  font-weight: bold;
}

.tagline {
  color: #ccc;
  font-size: 1.1em;
  margin-bottom: 0.5em;
  font-weight: 300;
}

.map-container {
  padding: 1em;
  flex: 1;
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  border: 3px solid #FFD600;
  margin: 0;
  background: #111;
  box-shadow: 0 8px 24px rgba(255, 214, 0, 0.2);
}

.action-section {
  padding: 1.5em;
  background: #000;
}

.btn {
  background: #FFD600;
  color: #000;
  padding: 1.2em 2em;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  display: inline-block;
  margin: 0;
  font-weight: bold;
  font-size: 1.3em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(255, 214, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #ffea00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 214, 0, 0.5);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.btn-large {
  padding: 1.4em 2em;
  font-size: 1.4em;
  width: 100%;
}

input, select {
  width: 100%;
  padding: 1.2em;
  margin: 0.8em 0;
  border-radius: 12px;
  border: 2px solid #333;
  background: #111;
  color: #FFD600;
  font-size: 1.2em;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #FFD600;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.3);
  background: #000;
}

input::placeholder {
  color: #666;
}

select option {
  background: #111;
  color: #FFD600;
  padding: 1em;
}

.reports-section {
  padding: 1.5em;
  background: #000;
}

.report-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 0.5em;
  max-height: 60vh;
  overflow-y: auto;
}

.report-list li {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  margin: 12px 0;
  padding: 1.2em;
  border-radius: 14px;
  border: 2px solid #222;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.report-list li:hover {
  border-color: #FFD600;
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(255, 214, 0, 0.2);
}

.report-list li:active {
  transform: scale(0.98);
}

.report-list li.loading {
  text-align: center;
  color: #888;
  font-style: italic;
  font-size: 1.1em;
}

.report-street {
  color: #FFD600;
  font-weight: bold;
  font-size: 1.3em;
  margin-bottom: 0.4em;
}

.report-details {
  color: #ccc;
  font-size: 1.1em;
  margin: 0.3em 0;
}

.report-time {
  color: #999;
  font-size: 1em;
  margin-top: 0.4em;
}

.form-content {
  padding: 1.5em;
}

a.back-link {
  color: #FFD600;
  display: block;
  margin-top: 1.5em;
  text-decoration: none;
  font-size: 1.2em;
  padding: 1em;
  font-weight: 500;
}

a.back-link:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1.5em;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.8em;
  color: #FFD600;
  font-weight: bold;
  font-size: 1.3em;
}

.form-hint {
  display: block;
  color: #999;
  font-size: 1em;
  margin-top: 0.5em;
}

.status-message {
  margin-top: 1.5em;
  padding: 1.2em;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2em;
  display: none;
}

.status-message.success {
  background: rgba(0, 255, 0, 0.15);
  border: 2px solid #0f0;
  color: #0f0;
  display: block;
}

.status-message.error {
  background: rgba(255, 0, 0, 0.15);
  border: 2px solid #f00;
  color: #f00;
  display: block;
}

.leaflet-popup-content-wrapper {
  background: #111;
  color: #FFD600;
  border: 2px solid #FFD600;
  border-radius: 8px;
}

.leaflet-popup-content {
  color: #FFD600;
  font-family: inherit;
  margin: 10px;
}

.leaflet-popup-tip {
  background: #111;
  border: 2px solid #FFD600;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }
  
  #map {
    height: 400px;
  }
  
  .btn {
    font-size: 1.2em;
    padding: 1.1em 1.8em;
  }
  
  .btn-large {
    font-size: 1.3em;
    padding: 1.3em 1.8em;
  }
}

@media (min-width: 769px) {
  .container {
    max-width: 600px;
  }
  
  .app-header {
    border-radius: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }
  
  .report-list li:hover {
    transform: none;
  }
}

.landing-container {
  justify-content: center;
  align-items: center;
  padding: 1.5em;
}

.landing-content {
  text-align: center;
  max-width: 400px;
}

.logo-section {
  margin-bottom: 1em;
}

.logo-section.compact {
  margin-bottom: 0.5em;
}

.eye-logo {
  margin-bottom: 1.5em;
}

.eye-logo-small {
  margin-bottom: 0.5em;
}

.landing-features {
  margin: 2em 0;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em;
  margin: 0.8em 0;
  background: #111;
  border-radius: 12px;
  border: 1px solid #333;
  font-size: 1.1em;
  color: #ccc;
}

.feature-icon {
  font-size: 1.5em;
}

.landing-action {
  margin-top: 2em;
}

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

.header-top h1 {
  font-size: 1.8em;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #FFD600;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #FFD600;
  background: #222;
  color: #FFD600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.logout-btn {
  color: #FFD600;
  text-decoration: none;
  font-size: 0.9em;
  padding: 0.5em 1em;
  border: 1px solid #FFD600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #FFD600;
  color: #000;
}

.action-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0 1em;
}

.action-section .btn-large {
  flex: 1 1 100%;
  min-width: 0;
  padding: 1em 1em;
  font-size: 1.2em;
}

.btn-secondary {
  background: #222;
  color: #FFD600;
  border: 2px solid #FFD600;
  font-size: 0.7em;
  padding: 0.8em 0.6em;
  width: auto;
  flex: 1;
}

.btn-secondary:hover {
  background: #333;
}

.btn-secondary.inactive {
  background: #111;
  color: #666;
  border-color: #444;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  padding: 0.8em 1em;
  background: #111;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9em;
  color: #999;
}

.legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.legend-icon.warden {
  background: #FFD600;
  border-radius: 50%;
}

.legend-icon.parking {
  background: #000;
  color: #FFD600;
  border: 2px solid #FFD600;
}

.legend-icon.free {
  background: #00C853;
  color: #fff;
  border: 2px solid #fff;
}

.auth-form {
  margin-top: 1.5em;
}

.auth-switch {
  margin-top: 1.5em;
  color: #888;
  font-size: 1em;
}

.auth-switch a {
  color: #FFD600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.register-prompt {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid #333;
}

.register-prompt p {
  color: #ccc;
  font-size: 1.1em;
  margin-bottom: 0.8em;
}

.auth-buttons {
  display: flex;
  gap: 0.8em;
  margin-top: 1em;
}

.auth-buttons .btn {
  flex: 1;
  font-size: 1.1em;
  padding: 1em;
}

.btn-outline {
  background: transparent;
  color: #FFD600;
  border: 3px solid #FFD600;
  box-shadow: none;
}

.btn-outline:hover {
  background: #FFD600;
  color: #000;
  box-shadow: 0 6px 20px rgba(255, 214, 0, 0.4);
}

.login-btn {
  color: #000;
  background: #FFD600;
  text-decoration: none;
  font-size: 0.9em;
  padding: 0.5em 1em;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: #ffea00;
}

.town-selector {
  margin-top: 0.5em;
}

.town-selector select {
  width: auto;
  min-width: 200px;
  padding: 0.8em 1.2em;
  margin: 0;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
}

.user-stats {
  padding: 1em;
  text-align: center;
  color: #888;
  font-size: 0.9em;
  border-top: 1px solid #222;
}

.user-stats a {
  color: #FFD600;
  text-decoration: none;
  margin-top: 0.5em;
  display: inline-block;
}

.user-stats a:hover {
  text-decoration: underline;
}

.ad-banner {
  background: linear-gradient(90deg, #FFD600, #FFA500);
  color: #000;
  padding: 0.8em 1em;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 200;
  font-weight: bold;
  font-size: 0.95em;
}

.ad-banner a {
  color: #000;
  text-decoration: none;
  display: block;
}

.ad-banner a:hover {
  text-decoration: underline;
}

.popup-ad {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 2px solid #FFD600;
  border-radius: 12px;
  padding: 1em 1.5em;
  z-index: 300;
  max-width: 90%;
  width: 320px;
  box-shadow: 0 8px 32px rgba(255, 214, 0, 0.3);
}

.popup-ad a {
  text-decoration: none;
  display: block;
}

.popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #FFD600;
  color: #000;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: #ffea00;
}

.popup-business {
  color: #FFD600;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.3em;
}

.popup-text {
  color: #ccc;
  font-size: 0.95em;
}

.btn-alerts.subscribed {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

.btn-alerts.subscribed:hover {
  background: #66BB6A;
  border-color: #66BB6A;
}

.btn-install {
  background: linear-gradient(135deg, #00C853, #00E676);
  color: #000;
  font-weight: bold;
  border: none;
  animation: pulse-install 2s infinite;
}

.btn-install:hover {
  background: linear-gradient(135deg, #00E676, #69F0AE);
}

@keyframes pulse-install {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 200, 83, 0); }
}
