/* EcoVoltWay EV Charging PWA - Dark Electric theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Dark Electric theme */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: rgba(30, 30, 30, 0.6);
  --primary-green: #00E676;
  --primary-green-hover: #00C853;
  --primary-green-dark: #00A844;
  --accent-blue: #2196F3;
  --accent-blue-hover: #1976D2;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --muted: rgba(255, 255, 255, 0.6);
  --border-glass: 1px solid rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(0, 230, 118, 0.25);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-input: 15px;
  --radius-btn: 12px;
  --danger: #ff5252;
  --danger-hover: #ff1744;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.page-ready {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

body.page-exit {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

/* ----- Layout (mobile-first, centered) ----- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-shell main {
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 768px) {
  .app-shell main {
    padding: 24px;
  }
}

/* ----- Glassmorphism cards ----- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

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

.card-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0;
}

.card-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.card__title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* ----- Top bar ----- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-glass);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo,
.logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.35);
  flex-shrink: 0;
}

.brand-text-main,
.brand__name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-text-sub,
.brand__tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--primary-green);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.status-pill[data-net-status].offline,
.status-pill.error {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
  border-color: rgba(255, 82, 82, 0.35);
}

/* ----- Navigation ----- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-glass);
  flex-wrap: wrap;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  cursor: pointer;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: var(--border-glass);
  transition: background 0.2s, border-color 0.2s;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: var(--border-glass);
  transition: background 0.2s, border-color 0.2s;
}

.btn-home:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ----- Buttons (full-width primary, gradient, shadow) ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  color: var(--bg-primary);
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.35);
  transition: transform 0.05s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: var(--border-glass);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: var(--border-glass);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #d32f2f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.35);
}

.btn-danger:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-row .btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* Emergency Stop: full-width, gradient, shadow */
.btn-emergency {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 16px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--danger), #c62828);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 82, 82, 0.4);
  transition: transform 0.05s, box-shadow 0.2s, filter 0.2s;
}

.btn-emergency:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(255, 82, 82, 0.5);
}

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

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  margin: 24px auto 0;
  min-height: 48px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  cursor: pointer;
  background: linear-gradient(135deg, var(--danger), #c62828);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.35);
  transition: filter 0.2s;
}

.btn-logout:hover {
  filter: brightness(1.1);
}

/* ----- Forms: modern inputs (rounded 15px, dark bg, green glow on focus) ----- */
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 8px;
  color: var(--text-secondary);
}

.label:first-child {
  margin-top: 0;
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: var(--border-glass);
  border-radius: var(--radius-input);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.25);
}

.input::placeholder {
  color: var(--muted);
}

.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.6)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Phone input wrap (dark, rounded) */
.phone-input-wrap {
  display: flex;
  align-items: center;
  border: var(--border-glass);
  border-radius: var(--radius-input);
  background: var(--bg-secondary);
  overflow: hidden;
}

.phone-input-wrap:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.25);
}

.phone-prefix {
  padding: 12px 10px 12px 14px;
  font-weight: 700;
  color: var(--muted);
  font-size: 15px;
}

.phone-input-wrap .input {
  border: 0;
  border-radius: 0;
  padding-left: 8px;
  min-height: 48px;
}

/* ----- Key-value rows ----- */
.kv-row,
.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: var(--border-glass);
}

.kv-row:last-child,
.kv:last-child {
  border-bottom: 0;
}

.kv-label,
.kv__k {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.kv-value,
.kv__v {
  font-weight: 700;
  color: var(--text-primary);
}

/* Bonus wallet: Accent Blue */
.kv-row.wallet-bonus-row .kv-value,
.kv-value.wallet-bonus {
  color: var(--accent-blue);
  font-weight: 800;
}

.kv--total .kv__v {
  color: var(--primary-green);
  font-weight: 800;
}

/* ----- Typography ----- */
.text-muted-small {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.mono {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-weight: 600;
  font-size: 13px;
}

.link {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
}

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

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* ----- Unit counter (no decimal, very large, bold - Tesla style) ----- */
.unit-counter,
.charging-energy-value {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(0, 230, 118, 0.4);
  letter-spacing: -0.02em;
}

@media (min-width: 480px) {
  .unit-counter,
  .charging-energy-value {
    font-size: 5.5rem;
  }
}

.charging-energy-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

/* ----- Charging page ----- */
.charging-hero {
  text-align: center;
  padding: 24px 0;
}

.charging-hero .hero-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 800;
  font-size: 24px;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
}

.charging-hero .hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.charging-hero .hero-sub {
  font-size: 14px;
  color: var(--muted);
}

.charging-session-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.charging-active {
  text-align: center;
  padding: 24px 16px;
}

.charging-active .charging-status {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 20px;
  animation: charge-status-pulse 2s ease-in-out infinite;
}

@keyframes charge-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.charging-indicator-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
}

@media (min-width: 480px) {
  .charging-indicator-wrap {
    width: 240px;
    height: 240px;
  }
}

.liquid-progress-circle {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.liquid-progress-circle .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 12;
}

.liquid-progress-circle .fill {
  fill: none;
  stroke: url(#liquidGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 0.5s ease-out;
}

.liquid-progress-circle .fill.wave {
  filter: url(#liquidShadow);
}

.charging-energy-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.charging-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.charging-stats .stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  border-radius: var(--radius);
  padding: 14px;
}

.charging-stats .stat-box .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.charging-stats .stat-box .stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

.charging-stats .stat-box .stat-value.cost-pending {
  color: var(--muted);
}

.charging-summary {
  text-align: center;
  padding: 24px 16px;
}

.charging-summary .summary-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.charging-summary .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: var(--border-glass);
}

.charging-summary .summary-row:last-of-type {
  border-bottom: 0;
}

.charging-summary .summary-label {
  font-weight: 600;
  color: var(--muted);
}

.charging-summary .summary-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.charging-summary .btn-done {
  margin-top: 24px;
  width: 100%;
}

/* ----- Dashboard / session stats ----- */
.session-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.session-stat {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  border-radius: var(--radius);
  padding: 14px;
}

.session-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.session-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ----- Chips ----- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.chip {
  min-height: 44px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-input);
  border: var(--border-glass);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.chip:hover,
.chip.chip-primary {
  background: rgba(0, 230, 118, 0.12);
  border-color: var(--primary-green);
  color: var(--primary-green);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

/* ----- Port list ----- */
.port-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.port-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: var(--border-glass);
}

.port-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.port-status.available {
  background: rgba(0, 230, 118, 0.2);
  color: var(--primary-green);
}

.port-status.charging {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.port-status.faulted,
.port-status.unavailable {
  background: rgba(255, 82, 82, 0.2);
  color: var(--danger);
}

/* ----- Table ----- */
.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: var(--radius);
  border: var(--border-glass);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: var(--border-glass);
  color: var(--text-primary);
}

.dashboard-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.dashboard-table tbody tr:hover {
  background: rgba(0, 230, 118, 0.06);
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ----- Footer ----- */
.footer {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--border-glass);
  background: rgba(18, 18, 18, 0.9);
  margin-top: auto;
}

/* ----- Hero (home / legacy) ----- */
.hero {
  padding: 20px 0;
  text-align: center;
}

.hero__logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
}

.hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ----- Container ----- */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.row {
  display: flex;
  align-items: center;
}

.gap {
  gap: 10px;
}

.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 16px 0;
}

/* ----- Map page ----- */
.map-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.map-page .topbar {
  flex-shrink: 0;
}

.map-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  border: var(--border-glass);
}

.map-legend span {
  margin-right: 14px;
}

.map-legend .avail {
  color: var(--primary-green);
}

.map-legend .busy {
  color: #ffc107;
}

.map-legend .off {
  color: var(--muted);
}

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 10;
  font-weight: 600;
  color: var(--text-primary);
}

.map-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 8px;
}

/* ----- QR sticker ----- */
.qr-sticker-preview {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  max-width: 360px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

.qr-sticker-preview .logo-block {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 22px;
}

.qr-sticker-preview .qr-block {
  margin: 20px auto;
  padding: 14px;
  background: var(--bg-secondary);
  display: inline-block;
  border-radius: var(--radius);
}

.qr-sticker-preview .charger-id {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 12px 0 4px;
  color: var(--text-primary);
}

.qr-sticker-preview .scan-text {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.qr-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ----- PWA install banner ----- */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  border-top: var(--border-glass);
}

.pwa-install-banner.show {
  display: flex;
}

.pwa-install-banner .pwa-text {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 180px;
}

.pwa-install-banner .pwa-actions {
  display: flex;
  gap: 10px;
}

.pwa-install-banner .btn-install {
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
}

.pwa-install-banner .btn-dismiss {
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  border: var(--border-glass);
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-weight: 600;
}

.pwa-install-banner .btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ----- Error / danger text ----- */
[role="alert"].text-muted-small,
.text-danger {
  color: var(--danger) !important;
}
