@import url('https://fonts.googleapis.com/css2?family=Gotham+SSm:wght@300;400;500;700&display=swap');

:root {
  --bg-primary: #000;
  --bg-secondary: #111;
  --bg-card: #1c1c1e;
  --bg-card-hover: #2c2c2e;
  --text-primary: #f5f5f7;
  --text-secondary: #8e8e93;
  --text-tertiary: #636366;
  --accent: #3e6ae1;
  --accent-hover: #5a85f0;
  --accent-dim: rgba(62, 106, 225, 0.15);
  --success: #30d158;
  --success-dim: rgba(48, 209, 88, 0.15);
  --error: #ff453a;
  --error-dim: rgba(255, 69, 58, 0.15);
  --warning: #ffd60a;
  --warning-dim: rgba(255, 214, 10, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --tesla-blue: #3e6ae1;
  --battery-green: #30d158;
  --battery-yellow: #ffd60a;
  --battery-red: #ff453a;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  line-height: 1.47;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.app-header {
  display: none;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
  position: relative;
}


.tesla-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 20px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, #000 70%, transparent);
}

.tesla-page-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tesla-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.tesla-back-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.tesla-page-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

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

.tesla-header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.tesla-header-icon-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.tesla-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 20px 8px;
}

.tesla-vehicle-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}


.tesla-battery-section {
  padding: 0 32px 8px;
}

.tesla-battery-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tesla-battery-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.tesla-battery-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--battery-green);
}

.tesla-battery-fill.low {
  background: var(--battery-red);
}

.tesla-battery-fill.medium {
  background: var(--battery-yellow);
}

.tesla-battery-percent {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 36px;
  text-align: right;
}

.tesla-status-text {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 6px 0 16px;
}

.tesla-quick-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 16px 20px;
}

.tesla-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  padding: 12px 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.tesla-quick-action:active {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(0.95);
}

.tesla-quick-action.active {
  color: var(--tesla-blue);
}

.tesla-quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.tesla-quick-action.active .tesla-quick-action-icon {
  background: var(--accent-dim);
  border-color: var(--tesla-blue);
  color: var(--tesla-blue);
}

.tesla-quick-action-icon.loading {
  position: relative;
}

.tesla-quick-action-icon.loading::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  border-top-color: var(--tesla-blue);
  animation: spin 0.8s linear infinite;
}

.tesla-quick-action-icon.success {
  background: var(--success-dim);
  border-color: var(--success);
  color: var(--success);
}

.tesla-quick-action-icon.error {
  background: var(--error-dim);
  border-color: var(--error);
  color: var(--error);
}

.tesla-quick-action-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tesla-menu-list {
  padding: 0 16px;
}

.tesla-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: none;
  width: 100%;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.tesla-menu-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tesla-menu-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tesla-menu-item:only-child {
  border-radius: var(--radius-md);
}

.tesla-menu-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.tesla-menu-item:active {
  background: var(--bg-card-hover);
}

.tesla-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 14px;
  color: var(--text-secondary);
}

.tesla-menu-label {
  flex: 1;
}

.tesla-menu-chevron {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
}

.tesla-footer {
  padding: 24px 20px 40px;
  text-align: center;
}

.tesla-footer-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tesla-footer-info {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.tesla-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 20px 8px;
}

.vin-blur {
  filter: blur(4px);
  transition: filter 0.2s ease;
}

.vin-display:hover .vin-blur {
  filter: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.badge-online {
  background: var(--success-dim);
  color: var(--success);
}

.badge-online .badge-dot {
  background: var(--success);
}

.badge-offline {
  background: var(--error-dim);
  color: var(--error);
}

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

.badge-pending {
  background: var(--warning-dim);
  color: var(--warning);
}

.badge-pending .badge-dot {
  background: var(--warning);
}

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2px;
}

.lang-toggle a {
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--transition-fast);
}

.lang-toggle a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.tesla-controls-overlay-btn {
  background: rgba(62, 106, 225, 0.2);
  border: 1px solid rgba(62, 106, 225, 0.4);
  color: var(--tesla-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
}

.tesla-controls-overlay-btn:active {
  background: rgba(62, 106, 225, 0.35);
  transform: scale(0.95);
}

.tesla-controls-overlay-btn.success {
  background: var(--success-dim);
  border-color: var(--success);
  color: var(--success);
}


.tesla-action-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px 40px;
}

.tesla-action-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex: 1;
  max-width: 90px;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.tesla-action-bar-btn:active {
  background: var(--bg-card-hover);
  transform: scale(0.96);
}

.tesla-action-bar-btn svg {
  width: 22px;
  height: 22px;
}

.tesla-action-bar-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.tesla-toggle-section {
  padding: 0 16px 24px;
}

.tesla-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.tesla-toggle-row-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.tesla-toggle-row-label svg {
  color: var(--text-secondary);
}

.tesla-toggle {
  position: relative;
  width: 50px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition: background var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
}

.tesla-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal);
}

.tesla-toggle.on {
  background: var(--success);
}

.tesla-toggle.on::after {
  transform: translateX(20px);
}

.tesla-climate-temp-display {
  text-align: center;
  padding: 24px 0;
}

.tesla-big-temp {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -3px;
  line-height: 1;
}

.tesla-big-temp-unit {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-secondary);
  vertical-align: super;
}

.tesla-temp-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.tesla-temp-controls {
  padding: 0 16px 16px;
}

.tesla-temp-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.tesla-temp-control-label {
  font-size: 15px;
  color: var(--text-secondary);
}

.tesla-temp-control-value {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tesla-temp-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.tesla-temp-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.92);
}

.tesla-temp-display {
  font-size: 17px;
  font-weight: 500;
  min-width: 48px;
  text-align: center;
}

.tesla-seat-heaters {
  padding: 0 16px 24px;
}

.tesla-seat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tesla-seat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

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

.tesla-seat-btn.active {
  border-color: rgba(255, 149, 0, 0.4);
  color: #ff9500;
}

.tesla-seat-level {
  display: flex;
  gap: 3px;
}

.tesla-seat-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
}

.tesla-seat-dot.filled {
  background: #ff9500;
}

.tesla-seat-label {
  font-size: 11px;
  font-weight: 500;
}

.tesla-charge-big-number {
  text-align: center;
  padding: 30px 0 10px;
}

.tesla-charge-percent {
  font-size: 80px;
  font-weight: 200;
  letter-spacing: -4px;
  line-height: 1;
}

.tesla-charge-percent-sign {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-secondary);
}

.tesla-charge-state-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.tesla-charge-bar-section {
  padding: 16px 24px 24px;
}

.tesla-charge-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.tesla-charge-bar-track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: visible;
}

.tesla-charge-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--tesla-blue);
  transition: width 0.5s ease;
  position: relative;
}

.tesla-charge-bar-limit {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 20px;
  background: var(--text-primary);
  border-radius: 1.5px;
  transform: translateX(-50%);
  cursor: ew-resize;
  transition: left 0.3s ease;
}

.tesla-charge-controls {
  padding: 0 16px 24px;
}

.tesla-charge-amps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.tesla-charge-amps-label {
  font-size: 15px;
}

.tesla-charge-amps-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tesla-charge-amps-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  font-size: 16px;
}

.tesla-charge-amps-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.92);
}

.tesla-charge-amps-value {
  font-size: 17px;
  font-weight: 500;
  min-width: 36px;
  text-align: center;
}

.tesla-charge-btn-row {
  padding: 0 16px 16px;
}

.tesla-map-container {
  padding: 0 16px 16px;
  height: calc(100vh - 200px);
  min-height: 400px;
}

.tesla-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

.tesla-map-info {
  padding: 12px 20px 40px;
  text-align: center;
}

.tesla-map-coords {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.tesla-media-artwork {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.tesla-media-artwork-placeholder {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.tesla-media-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
}

.tesla-media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  padding: 8px;
}

.tesla-media-btn:active {
  transform: scale(0.9);
  opacity: 0.7;
}

.tesla-media-btn.main {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: var(--bg-primary);
}

.tesla-media-btn.main:active {
  transform: scale(0.92);
}

.tesla-media-volume {
  padding: 24px 32px;
}

.tesla-media-volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tesla-media-volume-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.tesla-media-volume-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.tesla-media-volume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.tesla-history-list {
  padding: 0 16px;
}

.tesla-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  transition: background var(--transition-fast);
}

.tesla-history-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tesla-history-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tesla-history-item:only-child {
  border-radius: var(--radius-md);
}

.tesla-history-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.tesla-history-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tesla-history-item-type {
  font-size: 15px;
  font-weight: 500;
}

.tesla-history-item-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.tesla-history-item-error {
  font-size: 11px;
  color: var(--error);
  margin-top: 2px;
}

.tesla-login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.tesla-login-logo {
  color: var(--text-primary);
  margin-bottom: 48px;
  opacity: 0;
  animation: loginFadeIn 0.6s ease 0.1s forwards;
}

.tesla-login-card {
  width: 100%;
  max-width: 340px;
  opacity: 0;
  animation: loginFadeIn 0.6s ease 0.3s forwards;
}

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

.tesla-login-error {
  background: var(--error-dim);
  color: var(--error);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.tesla-login-error.visible {
  display: block;
}

.tesla-form-group {
  margin-bottom: 14px;
}

.tesla-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}

.tesla-form-input::placeholder {
  color: var(--text-tertiary);
}

.tesla-form-input:focus {
  border-color: var(--tesla-blue);
}

.tesla-form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.tesla-login-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--tesla-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  margin-top: 8px;
}

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

.tesla-login-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tesla-login-lang {
  margin-top: 24px;
  text-align: center;
}

.tesla-section-header {
  padding: 20px 20px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active {
  opacity: 0.8;
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--tesla-blue);
  color: #fff;
}

.btn-danger {
  background-color: var(--error);
  color: #fff;
}

.btn-success {
  background-color: var(--success);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--tesla-blue);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background: rgba(48, 209, 88, 0.9);
}

.toast-error {
  background: rgba(255, 69, 58, 0.9);
}

.toast-info {
  background: rgba(62, 106, 225, 0.9);
}

.text-secondary {
  color: var(--text-secondary);
}

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

.tesla-skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tesla-skeleton-car {
  width: 160px;
  height: 320px;
  margin: 0 auto;
  border-radius: 40px;
}

.tesla-skeleton-bar {
  height: 6px;
  border-radius: 3px;
}

.tesla-skeleton-circle {
  border-radius: var(--radius-full);
}

.tesla-skeleton-text {
  height: 14px;
  border-radius: 7px;
}

.tesla-loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.tesla-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
  font-size: 15px;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 20px 20px 10px;
}

.nav-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.nav-bar .btn {
  flex: 1;
}

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

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--tesla-blue);
}

.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

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

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }

@media (min-width: 768px) {
  #app {
    max-width: 480px;
  }
}
