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

:root {
  --primary: #7CB342;
  --primary-dark: #689F38;
  --primary-light: #9CCC65;
  --success: #4CAF50;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --bottom-nav-height: 56px;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header - Clean & Minimal */
.header {
  background: white;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  position: relative;
  flex-shrink: 0;
  min-height: 48px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo {
  height: 30px;
  width: auto;
  max-width: 120px;
}

.dual-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-divider {
  width: 1px;
  height: 22px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.logo-inova {
  height: 24px;
  max-width: 100px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Connection dot in header */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dot.online {
  background: var(--success);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
  animation: pulse-dot 2s infinite;
}

.dot.offline {
  background: var(--danger);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Search Bar */
.search-bar {
  position: absolute;
  top: 58px;
  left: 12px;
  right: 12px;
  z-index: 999;
  max-width: 400px;
}

.search-bar input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  background: white;
  box-shadow: var(--shadow-lg);
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  -webkit-appearance: none;
}

.search-bar input:focus {
  box-shadow: var(--shadow-xl), 0 0 0 2px var(--primary);
}

.search-results {
  background: white;
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
  min-height: 44px;
}

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

.search-result-item:hover,
.search-result-item:active {
  background: var(--gray-100);
}

.search-result-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-900);
}

.search-result-address {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.search-result-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Map */
#map {
  flex: 1;
  z-index: 1;
  min-height: 0;
}

/* Custom map markers */
.custom-marker-wrapper {
  display: block;
}

.custom-marker {
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-marker:hover {
  transform: scale(1.15);
}

.custom-marker.available {
  border-color: var(--success);
  animation: pulse-available 3s infinite;
}

.custom-marker.charging {
  border-color: var(--primary);
  animation: pulse-charging 2s infinite;
}

.custom-marker.offline {
  border-color: var(--gray-300);
  opacity: 0.6;
}

@keyframes pulse-available {
  0%, 100% { box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5), 0 0 0 6px rgba(76, 175, 80, 0.1); }
}

@keyframes pulse-charging {
  0%, 100% { box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(124, 179, 66, 0.6), 0 0 0 8px rgba(124, 179, 66, 0.2); }
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1002;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s;
  min-width: 64px;
  min-height: 44px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  transition: color 0.2s;
}

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

.nav-item:active {
  opacity: 0.7;
}

/* Station Panel */
.panel {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  padding: 0 16px 20px;
  transform: translateY(calc(100% + var(--bottom-nav-height)));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  max-height: calc(80vh - var(--bottom-nav-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel.open {
  transform: translateY(0);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0 8px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

.panel-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.panel-handle:hover {
  background: var(--gray-500);
}

.panel-close-btn {
  position: absolute;
  right: 0;
  top: 6px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.panel-close-btn:active {
  background: var(--gray-200);
}

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.station-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  flex: 1;
  word-break: break-word;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge.available,
.status-badge.preparing {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.status-badge.charging {
  background: linear-gradient(135deg, #d1f4e0 0%, #a8e6a1 100%);
  color: #1b5e20;
  box-shadow: 0 2px 6px rgba(124, 179, 66, 0.3);
  animation: pulse-badge 2s infinite;
}

.status-badge.offline {
  background: var(--gray-200);
  color: var(--gray-600);
}

.status-badge.suspended,
.status-badge.finishing {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.status-badge.reserved {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.status-badge.faulted {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.station-details {
  margin-bottom: 16px;
  background: var(--gray-100);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
}

.detail-row .value {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.9rem;
}

/* Charging Display */
.charging-display {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.charging-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.battery-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.battery-icon {
  width: 52px;
  height: 28px;
  border: 2px solid white;
  border-radius: 5px;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.battery-icon::after {
  content: '';
  position: absolute;
  top: 7px;
  right: -5px;
  width: 3px;
  height: 10px;
  background: white;
  border-radius: 0 2px 2px 0;
}

.battery-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
  transition: width 0.8s ease;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
}

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

.battery-percent {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.battery-label {
  font-size: 0.7rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Charging Stats 2x2 Card Grid */
.charging-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 10px 10px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s;
}

.stat-card-icon {
  font-size: 1rem;
  margin-bottom: 4px;
  opacity: 0.9;
}

.stat-card .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card.primary .stat-value {
  font-size: 1.6rem;
}

.stat-card.cost .stat-value {
  color: #fbbf24;
  font-size: 1.3rem;
}

.stat-card .stat-unit {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-left: 2px;
}

.stat-card .stat-label {
  font-size: 0.6rem;
  opacity: 0.75;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* Technical Data Panel */
.technical-data {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-header {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  min-height: 44px;
}

.tech-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tech-header span {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.95;
}

.toggle-icon {
  font-size: 0.65rem;
  transition: transform 0.3s;
}

.tech-content {
  padding: 0 14px 10px;
  animation: slide-down 0.3s ease;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-row:last-child {
  border-bottom: none;
}

.tech-label {
  font-size: 0.75rem;
  opacity: 0.85;
}

.tech-value {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Courier New', monospace;
  transition: color 0.3s;
}

.charging-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.pulse {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

/* Buttons */
.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  flex: 1;
  min-width: 120px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  min-height: 48px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(124, 179, 66, 0.3);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(124, 179, 66, 0.4);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-300);
}

.btn-full {
  width: 100%;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1005;
  animation: fade-in 0.3s ease;
  padding: 0;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  animation: slide-up 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.close-btn {
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.close-btn:hover {
  background: var(--gray-200);
}

.demo-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 500;
  border: 1px solid #fcd34d;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
  -webkit-appearance: none;
  min-height: 48px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

/* Session Summary Modal */
.summary-content {
  text-align: center;
  padding: 10px 0;
}

.summary-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: scale-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scale-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.summary-subtitle {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.summary-stats {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.summary-stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-stat:last-child {
  border-bottom: none;
}

.summary-stat-label {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.summary-stat-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
}

.summary-stat-value.highlight {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1010;
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90%;
  white-space: nowrap;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.toast.success {
  background: linear-gradient(135deg, var(--success) 0%, #388E3C 100%);
}

.toast.error {
  background: linear-gradient(135deg, var(--danger) 0%, #c62828 100%);
}

.toast-icon {
  font-size: 1.1rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Scrollbar styling */
.panel::-webkit-scrollbar {
  width: 4px;
}

.panel::-webkit-scrollbar-track {
  background: transparent;
}

.panel::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 2px;
}

.panel::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Leaflet overrides */
.leaflet-control-attribution {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.8) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  border: none;
  padding: 5px 10px 5px 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
}

.user-menu-btn:hover,
.user-menu-btn:active {
  background: var(--gray-200);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-icon {
  font-size: 9px;
  color: var(--gray-500);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  overflow: hidden;
  z-index: 1001;
  animation: fade-in 0.15s ease;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}

.dropdown-item:hover,
.dropdown-item:active {
  background: var(--gray-100);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 36px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(124, 179, 66, 0.3);
}

.btn-login:active {
  transform: scale(0.96);
}

/* Toggle buttons (for dropdown) */
.toggle-btn {
  padding: 4px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  background: white;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.2s;
  min-height: 28px;
}

.toggle-btn:hover,
.toggle-btn:active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Reservation Slots */
.reservation-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.slot-btn:hover,
.slot-btn:active {
  border-color: var(--primary);
  background: #f1f8e9;
}

.slot-time {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.slot-date {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

.slot-duration {
  font-size: 10px;
  color: var(--primary);
  margin-top: 3px;
  background: #f1f8e9;
  padding: 2px 6px;
  border-radius: 8px;
}

/* Tablet/Desktop Responsive */
@media (min-width: 640px) {
  .header {
    padding: 12px 20px;
  }

  .logo {
    height: 34px;
  }

  .logo-inova {
    height: 28px;
    max-width: 140px;
  }

  .custom-marker {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .panel {
    left: auto;
    right: 20px;
    bottom: calc(var(--bottom-nav-height) + 10px);
    max-width: 420px;
    border-radius: 20px;
    max-height: calc(100vh - 120px);
  }

  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }

  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    border-radius: 20px;
    max-width: 440px;
    max-height: 85vh;
  }

  .reservation-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .panel {
    right: 30px;
    max-width: 460px;
  }

  .header {
    padding: 14px 30px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 380px) {
  .station-header h2 {
    font-size: 1.1rem;
  }

  .status-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .battery-percent {
    font-size: 1.3rem;
  }

  .stat-card .stat-value {
    font-size: 1.2rem;
  }

  .stat-card.primary .stat-value {
    font-size: 1.3rem;
  }

  .nav-item {
    padding: 6px 10px;
    min-width: 54px;
  }

  .dual-logo {
    gap: 5px;
  }

  .logo {
    height: 24px;
    max-width: 90px;
  }

  .logo-inova {
    height: 18px;
    max-width: 70px;
  }

  .logo-divider {
    height: 18px;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .panel {
    max-height: 70vh;
  }

  .charging-display {
    padding: 14px;
  }

  .battery-indicator {
    margin-bottom: 12px;
  }

  .bottom-nav {
    height: 44px;
  }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .header {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  }

  .panel {
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
  }
}

/* ==========================================
   Connection Phase Overlay
   ========================================== */
.connection-phase-overlay {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 16px;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.connection-phase-content {
  position: relative;
  z-index: 1;
}

.connection-phase-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.connection-phase-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0 0 16px;
}

/* Signal Rings Animation (real charger connecting) */
.signal-rings {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.signal-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(124, 179, 66, 0.4);
  border-radius: 50%;
  animation: signal-expand 2s infinite;
}

.signal-ring:nth-child(2) { animation-delay: 0.4s; }
.signal-ring:nth-child(3) { animation-delay: 0.8s; }

@keyframes signal-expand {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.connection-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  animation: icon-pulse 1.5s infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Progress Bar (real charger timeout indicator) */
.connection-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}

.connection-progress-bar {
  height: 100%;
  background: #7cb342;
  border-radius: 2px;
  animation: progress-fill 10s linear forwards;
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Plug Waiting Animation (demo/fake chargers) */
.plug-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.plug-icon {
  font-size: 2.5rem;
  animation: plug-bounce 1.5s infinite;
}

.plug-arrow {
  font-size: 1.2rem;
  opacity: 0.6;
  animation: arrow-blink 1s infinite;
}

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

@keyframes arrow-blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

/* Checkmark animation (plug detected / started) */
.checkmark-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 179, 66, 0.2);
  border: 3px solid #7cb342;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: scale-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkmark-circle.success {
  background: #7cb342;
}

.checkmark {
  font-size: 1.8rem;
  animation: scale-in 0.3s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes scale-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Fade-out transition for connection overlay */
.connection-phase-overlay.fade-out {
  animation: fade-out 0.5s ease forwards;
}

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