/* =========================================
   TAPTRACKER - CORE STYLES
   ========================================= */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap");

/* --- RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-app: #f0f2f5;
  --bg-primary: #fff;
  --bg-hover: #f9f9f9;
  --text-primary: #000;
  --text-secondary: #444;
  --border-color: #8e8e8e;
  --border-light: #eee;
  --header-shadow: rgba(0, 0, 0, 0.04);
  /* Default light theme surface/button tokens */
  --bg-surface: #ffffff;
  --bg-card: #f8fafc;
  --border-subtle: #e2e8f0;
  --btn-sec-bg: #f1f5f9;
  --btn-sec-hover: #e2e8f0;
  --btn-sec-text: #0f172a;
  --btn-sec-border: #cbd5e1;
  --icon-btn-bg: #f1f5f9;
  --icon-btn-text: #475569;
  --icon-btn-border: #cbd5e1;
  --thumb-box-bg: #f1f5f9;
}

body.dark-mode,
[data-theme="dark"] {
  --bg-app: #121212;
  --bg-primary: #0f172a;
  --bg-hover: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #aaa;
  --border-color: #333;
  --border-light: #222;
  --header-shadow: rgba(0, 0, 0, 0.5);
  /* Surface/card tokens for dark mode */
  --bg-surface: #0b1329;
  --bg-card: #0f172a;
  --border-subtle: #1e293b;
  --btn-sec-bg: transparent;
  --btn-sec-hover: #1e293b;
  --btn-sec-text: #94a3b8;
  --btn-sec-border: #1e293b;
  --icon-btn-bg: transparent;
  --icon-btn-text: #94a3b8;
  --icon-btn-border: transparent;
  --thumb-box-bg: #1e293b;
}

/* Light Mode Theme Tokens */
[data-theme="light"],
body:not(.dark-mode) {
  --bg-surface: #ffffff;
  --bg-card: #f8fafc;
  --border-subtle: #e2e8f0;
  --btn-sec-bg: #f1f5f9;
  --btn-sec-hover: #e2e8f0;
  --btn-sec-text: #0f172a;
  --btn-sec-border: #cbd5e1;
  --icon-btn-bg: #f1f5f9;
  --icon-btn-text: #475569;
  --icon-btn-border: #cbd5e1;
  --thumb-box-bg: #f1f5f9;
}

/* =========================================
   TOAST NOTIFICATION SYSTEM
   ========================================= */

#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}

.toast {
  background: var(--bg-card, #0f172a);
  color: var(--text-primary, #f0f0f0);
  border: 1px solid var(--border-subtle, #1e293b);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  white-space: nowrap;
}

.toast.toast-success { border-color: rgba(52, 211, 153, 0.4); color: #34d399; }
.toast.toast-error   { border-color: rgba(248, 113, 113, 0.4); color: #f87171; }
.toast.toast-info    { border-color: rgba(56, 189, 248, 0.4);  color: #38bdf8; }

.toast.toast-exit {
  animation: toastSlideOut 0.2s ease forwards;
}

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

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateY(0)    scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.96); }
}

body,
html {
  width: 100%;
  height: 100dvh;
  font-family: "Roboto", sans-serif;
  background: var(--bg-app);
  color: var(--text-primary);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- LAYOUT GŁÓWNY --- */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .app-container {
    height: 90vh;
    max-height: 900px;
    width: 90vw;
    max-width: 1400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
  }

  /* Desktop (>= 1025px): Permanently docked sidebar alongside the map */
  .content-area {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
  }

  .content-area .map-section {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    height: 100% !important;
    position: relative;
    display: block !important;
  }

  .content-area .sidebar,
  .content-area .info-panel {
    position: relative !important;
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    flex: 0 0 380px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    border-left: 1px solid var(--border-subtle);
    box-shadow: none !important;
    border-radius: 0 !important;
    z-index: 10;
  }

  /* Prevent sidebar from collapsing or hiding on desktop */
  .content-area.sidebar-hidden .sidebar,
  .content-area.sidebar-hidden .info-panel {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    width: 380px !important;
    min-width: 380px !important;
    flex: 0 0 380px !important;
  }

  .content-area.sidebar-hidden .map-section {
    flex: 1 1 0% !important;
  }

  /* Hide the collapse/toggle arrow button on desktop */
  .sidebar-toggle,
  .sidebar-toggle-btn {
    display: none !important;
  }

  /* When Full List mode is active on desktop */
  .content-area.list-only-mode .map-section {
    display: none !important;
  }

  .content-area.list-only-mode .sidebar,
  .content-area.list-only-mode .info-panel {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    border-left: none;
  }
}

/* Tablets (769px - 1024px): Collapsible side drawer with toggle arrow button */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-area {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
    position: relative;
    overflow: hidden;
  }

  .content-area .map-section {
    flex: 1 1 100% !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
  }

  .sidebar,
  .content-area .sidebar,
  .content-area .info-panel {
    position: fixed !important;
    right: 0 !important;
    top: 41px !important;
    bottom: 0 !important;
    height: calc(100% - 41px) !important;
    max-height: calc(100% - 41px) !important;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    flex: 0 0 360px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-surface) !important;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
    z-index: 1005 !important;
    overflow: visible !important;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  }

  /* When .sidebar.is-collapsed is applied (translating sidebar X by 100%), the toggle button must stay visible on the right edge of the screen, moving in tandem with the sidebar */
  .sidebar.is-collapsed,
  .content-area.sidebar-hidden .sidebar,
  .content-area.sidebar-hidden .info-panel {
    transform: translateX(100%) !important;
    visibility: visible !important;
    display: flex !important;
    margin-right: 0 !important;
  }

  /* Anchor .sidebar-toggle-btn strictly to the outer-left edge of .sidebar */
  .sidebar-toggle-btn,
  .sidebar-toggle {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translate(-100%, -50%) !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border-radius: 8px 0 0 8px !important;
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-right: none !important;
    box-shadow: -4px 2px 10px rgba(0, 0, 0, 0.15) !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    user-select: none !important;
    z-index: 1010 !important;
    padding: 0 !important;
    margin: 0 !important;
    right: auto !important;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .sidebar-toggle-btn:hover,
  .sidebar-toggle:hover {
    background: var(--bg-card) !important;
    color: #38bdf8 !important;
  }

  /* When Full List mode is active on tablet */
  .content-area.list-only-mode .map-section {
    display: none !important;
  }

  .content-area.list-only-mode .sidebar,
  .content-area.list-only-mode .info-panel {
    position: relative !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    top: 0 !important;
    transform: none !important;
    border-left: none;
    box-shadow: none;
  }

  .content-area.list-only-mode .sidebar-toggle,
  .content-area.list-only-mode .sidebar-toggle-btn {
    display: none !important;
  }
}

.content-area {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
  height: calc(100% - 41px);
  overflow: hidden;
  position: relative;
}

.content-area.sidebar-hidden {
  display: flex;
}

.content-area.list-only-mode {
  display: flex;
}

.map-section {
  width: 100%;
  height: 100%;
  border-right: 1px solid #ddd;
}

#map {
  width: 100%;
  height: 100%;
}

.map-section {
  position: relative;
}

/* =========================================
   LEAFLET MAP CONTROLS - UNIFIED DARK THEME
   ========================================= */

.leaflet-top.leaflet-left .leaflet-control {
  margin-left: 10px;
  margin-top: 10px;
}

.leaflet-control-locate {
  margin-top: 8px !important;
}

.leaflet-bar {
  background-color: #0b1329 !important;
  border: 1px solid #1e293b !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: #0b1329 !important;
  border: none !important;
  border-bottom: 1px solid #1e293b !important;
  color: #94a3b8 !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.leaflet-bar a:last-child {
  border-bottom: none !important;
}

.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

.leaflet-bar a:active {
  background-color: #243450 !important;
  color: #f8fafc !important;
}

.leaflet-bar a svg {
  display: block;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

.leaflet-bar a:hover svg {
  stroke: #38bdf8 !important;
}

.leaflet-bar a:active svg {
  stroke: #f8fafc !important;
}

/* Map legend desktop & wrapper */
.map-legend-wrapper {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  pointer-events: auto;
}

.legend-toggle-btn {
  display: none;
  width: 34px;
  height: 34px;
  background-color: #0b1329;
  border: 1px solid #1e293b;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #94a3b8;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.legend-toggle-btn svg {
  display: block;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

.legend-toggle-btn:hover {
  background-color: #1e293b;
  color: #38bdf8;
}

.legend-toggle-btn:active {
  background-color: #243450;
  color: #f8fafc;
  transform: scale(0.95);
}

.map-legend-wrapper.is-open .legend-toggle-btn {
  background-color: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
}

.legend-card,
.map-legend {
  background: #0b1329;
  border: 1px solid #1e293b;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}
.map-legend div,
.legend-card div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.legend-pin {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  border: 1px solid #fff;
}
.legend-pin i {
  transform: rotate(45deg);
}
.legend-badge {
  font-size: 14px;
}

.info-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  height: 100%;
  overflow: hidden;
  min-width: 300px;
}

/* Tryby widoku (Ukryty panel / Tylko lista) */
.content-area.sidebar-hidden,
.content-area.list-only-mode {
  grid-template-columns: 1fr;
}
.content-area.sidebar-hidden .info-panel,
.content-area.list-only-mode .map-section {
  display: none;
}
.content-area.sidebar-hidden .map-section {
  border-right: none;
}

/* --- NAGŁÓWEK (HEADER) --- */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  z-index: 1010;
  height: 41px;
  box-sizing: border-box;
}

.header-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
}

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

/* --- ELEMENTY INTERFEJSU (PRZYCISKI I INPUTY) --- */
.filters-container {
  padding: 8px 12px;
  display: flex;
  gap: 4px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.segmented-control-bg {
  display: flex;
  background: var(--bg-app);
  padding: 4px;
  border-radius: 8px;
  width: 100%;
  gap: 2px;
}

.filter-btn {
  flex: 1;
  text-align: center;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(0,0,0,0.05);
}
body.dark-mode .filter-btn:hover {
  background: rgba(255,255,255,0.05);
}

.filter-btn.active {
  background: var(--bg-primary);
  color: #2196f3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pub-status-btn,
.login-btn {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.pub-status-btn.status-visited,
.login-btn {
  background: #444;
  border-color: var(--text-secondary);
  color: #fff;
}

.icon-btn {
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.search-container {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-color);
}

#search-input,
.login-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  outline: none;
  background: var(--bg-app);
  color: var(--text-primary);
}

/* --- MENU UŻYTKOWNIKA (DROPDOWN) --- */
.user-menu-container {
  position: relative;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: var(--bg-primary);
  min-width: 200px;
  z-index: 1050;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.user-dropdown.show {
  display: block;
}

.friend-code-section {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-light);
}

.friend-code-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

#friend-code-input {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  cursor: default;
  user-select: all;
  min-width: 0;
}

#friend-code-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.15);
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.fc-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: #38bdf8;
}

.fc-btn svg {
  display: block;
  stroke: currentColor;
}

.dropdown-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-secondary);
}

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

.dropdown-item:hover {
  background: var(--bg-hover);
}

.dropdown-item.logout-btn,
#stop-compare-btn {
  color: red;
}

/* --- LISTA PUBÓW --- */
#pub-info {
  padding: 6px 12px;
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-app);
  color: var(--text-primary);
}

#pub-list-container {
  overflow-y: auto;
  flex: 1;
  background: var(--bg-primary);
  container-type: inline-size;
}

.sheet-handle-zone {
  display: none;
}

.sheet-content-list {
  flex: 1;
  overflow-y: auto;
}

.pub-list-item {
  background: var(--bg-primary);
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 12px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pub-list-item:hover {
  background: var(--bg-hover);
  border-radius: 6px;
  border-bottom-color: transparent;
  z-index: 10;
  position: relative;
}

.pub-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
}

/* --- PRZYCISK ZWIJANIA PANELU (SIDEBAR TOGGLE) --- */
.sidebar-toggle,
.sidebar-toggle-btn {
  display: none;
}

/* --- MAPA I MARKERY (LEAFLET) --- */
.pub-icon-container {
  width: 32px;
  height: 32px;
  background: #34495e;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.3s;
}

.pub-icon-container:hover {
  transform: rotate(-45deg) scale(1.1);
  z-index: 1000 !important;
}

.pub-icon-container .icon-inner {
  transform: rotate(45deg);
  color: white;
  font-size: 14px;
}

.pub-icon-container .favorite-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 14px;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
  z-index: 10;
}

.pub-icon-container.is-visited {
  background: #27ae60;
}
.pub-icon-container.is-friend-visited {
  background: #3498db;
}
.pub-icon-container.is-both-visited {
  background: #f39c12;
}

/* --- Active Marker Highlight and Pulse Animation --- */
.leaflet-marker-icon.marker-active {
  z-index: 10000 !important;
  animation: markerGlowPulse 1.6s infinite ease-in-out;
}

.leaflet-marker-icon.marker-active .pub-icon-container {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 14px 4px #0284c7, -2px 2px 8px rgba(0, 0, 0, 0.5) !important;
  animation: markerScalePulse 1.6s infinite ease-in-out;
}

@keyframes markerGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 1)) drop-shadow(0 0 20px rgba(2, 132, 199, 0.8));
  }
}

@keyframes markerScalePulse {
  0%, 100% {
    transform: rotate(-45deg) scale(1.08);
  }
  50% {
    transform: rotate(-45deg) scale(1.24);
  }
}

/* Klastry na mapie */
.marker-cluster {
  background: transparent !important;
}

.marker-cluster div {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #444 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  margin: 1px !important;
}

.marker-cluster span {
  line-height: 1 !important;
}

.marker-cluster:hover div {
  background: #f4f6f8 !important;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* =========================================
   TAPTRACKER - LOGIN SCREEN
   ========================================= */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg-app);
}

.login-container {
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.login-title {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.toggle-mode-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: underline;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  margin-top: 5px;
  transition: color 0.2s;
}

.toggle-mode-btn:hover {
  color: var(--text-primary);
}

#error-msg {
  color: #d32f2f;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  min-height: 14px;
}

/* --- MANUAL PASSWORD RESET RECOVERY NOTICE --- */
.auth-recovery-notice {
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-subtle, #1e293b);
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--btn-sec-text, #94a3b8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.auth-recovery-notice .recovery-prompt {
  margin: 0;
  line-height: 1.5;
}

.auth-recovery-notice .recovery-email-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.15s ease;
  word-break: break-all;
}

.auth-recovery-notice .recovery-email-link:hover {
  color: #7dd3fc;
}

.auth-recovery-notice .recovery-security-condition {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle, #1e293b);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--btn-sec-text, #94a3b8);
}

@media (max-width: 360px) {
  .login-container {
    width: 100%;
    max-width: calc(100vw - 20px);
    padding: 16px 12px;
    margin: 0 auto;
  }

  .auth-recovery-notice {
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.45;
  }

  .auth-recovery-notice .recovery-security-condition {
    font-size: 10px;
    line-height: 1.4;
  }
}
/* --- GEOLOKALIZACJA - MINI DYMEK --- */
.mini-location-popup .leaflet-popup-content-wrapper {
  padding: 3px;
  border-radius: 6px;
}

.mini-location-popup .leaflet-popup-content {
  margin: 6px 10px; /* To jest klucz! Nadpisujemy domyślne, wielkie marginesy Leafleta */
  font-size: 12px;
  line-height: 1;
}
/* Podświetlenie aktywnego pubu na liście */
.pub-list-item.active-sidebar-item {
  background-color: rgba(33, 150, 243, 0.15); /* Jasnoniebieskie tło */
  border-left: 4px solid #2196f3; /* Niebieski pasek z boku */
}


/* --- WERSJA MOBILNA (< 768px): Przekształcenie w dolny panel (Bottom Sheet) --- */
@media (max-width: 768px) {
  .app-container {
    height: 100dvh;
    width: 100vw;
    border-radius: 0;
    border: none;
    max-height: none;
  }

  .content-area {
    display: block;
    position: relative;
    width: 100%;
    height: calc(100% - 41px);
    overflow: hidden;
  }

  .map-section {
    width: 100%;
    height: 100%;
    border-right: none;
  }

  /* Rozmiar kontrolek mapy na urządzeniach mobilnych (36x36px) */
  .leaflet-bar a,
  .legend-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
  }

  /* Składana pływająca legenda mapy na urządzeniach mobilnych - wyrównana dokładnie pod przyciskiem lokalizacji */
  .map-legend-wrapper {
    position: absolute;
    top: 138px;
    left: 10px;
    bottom: auto;
    z-index: 1001;
    pointer-events: auto;
  }

  .legend-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #0b1329;
    color: #94a3b8;
    border: 1px solid #1e293b;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .legend-toggle-btn:hover {
    background-color: #1e293b;
    color: #38bdf8;
  }

  .legend-toggle-btn:active {
    background-color: #243450;
    color: #f8fafc;
    transform: scale(0.92);
  }

  .map-legend-wrapper.is-open .legend-toggle-btn {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
  }

  .map-legend-wrapper .legend-card {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 145px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
    background: #0b1329;
    border: 1px solid #1e293b;
    border-radius: 8px;
    z-index: 1002;
  }

  .map-legend-wrapper.is-open .legend-card,
  .legend-card.is-open {
    display: flex !important;
    animation: legendFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes legendFadeIn {
    from {
      opacity: 0;
      transform: translateY(-6px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* List A: Adaptacja mobilna sidebaru jako interaktywny dolny panel (Draggable Bottom Sheet) */
  .sidebar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0;
    height: 55dvh;
    min-height: 80px;
    max-height: 92dvh;
    background-color: var(--bg-surface) !important;
    border-left: none;
    border-top: 2px solid var(--border-subtle);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
    z-index: 9999 !important;
    flex-direction: column;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: height 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
    touch-action: auto !important;
  }

  /* Strefa uchwytu do przeciągania (drag handle zone) - wyłącznie tutaj touch-action: none */
  .sheet-handle-zone {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 32px;
    min-height: 32px;
    touch-action: none !important;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
  }

  .sheet-handle-bar {
    display: block !important;
    width: 50px;
    height: 6px;
    background: #94a3b8;
    border-radius: 3px;
    pointer-events: none;
  }

  .filters-container,
  .search-container,
  #pub-info {
    flex-shrink: 0;
  }

  /* Przewijalna lista kart pubów wewnątrz panelu - pełne odblokowanie płynnego przewijania */
  .sheet-content-list,
  #pub-list-container {
    flex: 1 1 0px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    padding: 0 10px;
  }

  /* ===== CRITICAL: override global sidebar-hidden rules on mobile =====
     Desktop: .content-area.sidebar-hidden .info-panel { display: none }
     Mobile:  The sidebar is a fixed bottom sheet — it's NEVER display:none.
             Instead we slide it off-screen with translateY. */
  .content-area.sidebar-hidden .info-panel,
  .content-area.sidebar-hidden .sidebar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* When explicitly hidden on mobile, slide off-screen rather than display:none */
  .content-area.sidebar-hidden .sidebar {
    transform: translateY(100%) !important;
    pointer-events: none;
  }

  .sidebar-toggle {
    display: none !important;
  }

  /* Tryb pełnej listy (Full List mode) */
  .content-area.list-only-mode .map-section {
    display: none !important;
  }
  .content-area.list-only-mode .sidebar {
    position: relative !important;
    height: 100% !important;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
    transform: none !important;
    pointer-events: auto;
    transition: none;
  }
  .content-area.list-only-mode .sheet-handle-zone {
    display: none !important;
  }
  .content-area.list-only-mode .sidebar-toggle {
    display: none !important;
  }

  .filters-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    flex: 0 0 auto;
  }
  .header-top {
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
  }
}

/* =========================================
   SHARED DESIGN TOKENS & BUTTONS
   ========================================= */

:root {
  --pub-bg: var(--bg-surface, #0b1329);
  --pub-bg-hover: var(--bg-card, #121e3d);
  --pub-border: var(--border-subtle, #1e293b);
  --pub-text: var(--text-primary, #f8fafc);
  --pub-subtext: var(--text-secondary, #94a3b8);
  --pub-primary: #0284c7;
  --pub-primary-hover: #0369a1;
  --pub-radius: 8px;
}

.btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--pub-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--pub-primary-hover);
}

.btn-secondary,
.pub-card .btn-secondary,
.pub-actions .btn-secondary,
.pub-sidebar-actions .btn-secondary,
.pub-full-actions .btn-secondary {
  background-color: var(--btn-sec-bg);
  border: 1px solid var(--btn-sec-border);
  color: var(--btn-sec-text);
}

.btn-secondary:hover,
.pub-card .btn-secondary:hover,
.pub-actions .btn-secondary:hover,
.pub-sidebar-actions .btn-secondary:hover,
.pub-full-actions .btn-secondary:hover {
  background-color: var(--btn-sec-hover);
  color: var(--btn-sec-text);
  border-color: var(--btn-sec-border);
}

body.dark-mode .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:hover {
  color: var(--pub-text);
}

.btn-icon,
.pub-card .btn-icon,
.pub-actions .btn-icon,
.pub-sidebar-actions .btn-icon,
.pub-full-actions .btn-icon {
  background-color: var(--icon-btn-bg);
  border: 1px solid var(--icon-btn-border);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-btn-text);
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.btn-icon:hover,
.pub-card .btn-icon:hover,
.pub-actions .btn-icon:hover,
.pub-sidebar-actions .btn-icon:hover,
.pub-full-actions .btn-icon:hover {
  background-color: var(--btn-sec-hover);
  color: var(--btn-sec-text);
  border-color: var(--btn-sec-border);
}

body.dark-mode .btn-icon:hover,
[data-theme="dark"] .btn-icon:hover {
  color: var(--pub-text);
}

.btn-favorite.is-favorite {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background-color: rgba(239, 68, 68, 0.15);
}

.pub-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-to-visit {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-visited {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.meta-separator {
  opacity: 0.4;
}

/* =========================================
   LIST A: MAP VIEW SIDEBAR & MOBILE SHEET
   ========================================= */

.pub-sidebar-card,
.sidebar .pub-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background-color: var(--pub-bg);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: 8px 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pub-sidebar-card:hover,
.sidebar .pub-card:hover {
  background-color: var(--pub-bg-hover);
  border-color: var(--border-color);
}

.pub-card.is-selected,
.pub-sidebar-card.is-selected,
.pub-full-row.is-selected,
.pub-card.active-sidebar-item,
.pub-sidebar-card.active-sidebar-item,
.pub-full-row.active-sidebar-item {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.35), 0 4px 16px rgba(2, 132, 199, 0.2) !important;
  background-color: rgba(2, 132, 199, 0.08) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.dark-mode .pub-card.is-selected,
body.dark-mode .pub-sidebar-card.is-selected,
body.dark-mode .pub-full-row.is-selected,
body.dark-mode .pub-card.active-sidebar-item,
body.dark-mode .pub-sidebar-card.active-sidebar-item,
body.dark-mode .pub-full-row.active-sidebar-item,
[data-theme="dark"] .pub-card.is-selected,
[data-theme="dark"] .pub-sidebar-card.is-selected,
[data-theme="dark"] .pub-full-row.is-selected,
[data-theme="dark"] .pub-card.active-sidebar-item,
[data-theme="dark"] .pub-sidebar-card.active-sidebar-item,
[data-theme="dark"] .pub-full-row.active-sidebar-item {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45), 0 4px 18px rgba(0, 0, 0, 0.5) !important;
  background-color: rgba(2, 132, 199, 0.16) !important;
}

.pub-sidebar-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.pub-sidebar-thumb-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--thumb-box-bg, #1e293b);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-sidebar-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-sidebar-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--pub-subtext);
}

.pub-sidebar-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pub-sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.pub-sidebar-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pub-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.pub-sidebar-address {
  margin: 0;
  font-size: 0.75rem;
  color: var(--pub-subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pub-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--pub-subtext);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.pub-sidebar-actions,
.sidebar .pub-card .pub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.pub-sidebar-actions .btn,
.sidebar .pub-card .pub-actions .btn {
  flex: 1;
  padding: 4px 10px;
  min-height: 30px;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
}

.pub-sidebar-actions .btn-icon,
.sidebar .pub-card .pub-actions .btn-icon {
  flex: 0 0 auto;
  padding: 4px 8px;
  min-height: 30px;
  min-width: 30px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .pub-sidebar-actions .btn,
  .pub-sidebar-actions .btn-icon,
  .sidebar .pub-card .pub-actions .btn,
  .sidebar .pub-card .pub-actions .btn-icon {
    min-height: 44px;
    min-width: 44px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================================
   LIST B: FULL LIST VIEW (WIDE HORIZONTAL ROW)
   ========================================= */

.pub-full-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--pub-bg);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: 12px 20px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pub-full-row:hover {
  background-color: var(--pub-bg-hover);
  border-color: var(--border-color);
}


.pub-full-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.pub-full-thumb-box {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--thumb-box-bg, #1e293b);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-full-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-full-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pub-subtext);
}

.pub-full-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-full-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pub-full-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pub-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-full-address {
  margin: 0;
  font-size: 0.8rem;
  color: var(--pub-subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-full-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--pub-subtext);
  flex-wrap: wrap;
}

.pub-full-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.pub-full-actions .btn {
  flex: initial;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pub-full-actions .btn-icon {
  flex: initial;
  padding: 8px;
  font-size: 1rem;
}

@media (max-width: 680px) {
  .pub-full-row {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }

  .pub-full-actions {
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--pub-border);
    justify-content: flex-end;
  }
}

/* Fallback dla wstecznej kompatybilności */
.pub-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--pub-bg);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: 10px 16px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

/* =========================================
   PWA INSTALLATION & IOS SAFARI MODAL
   ========================================= */

.pwa-install-btn {
  display: none;
}

.dropdown-item.pwa-install-btn {
  color: #38bdf8;
  display: none;
  align-items: center;
}

.dropdown-item.pwa-install-btn:hover {
  background: var(--bg-hover);
  color: #0284c7;
}

[data-theme="dark"] .dropdown-item.pwa-install-btn {
  color: #38bdf8;
}

.header-install-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--btn-sec-bg, transparent);
  border: 1px solid var(--border-subtle, var(--border-color));
  color: var(--btn-sec-text, var(--text-primary));
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-install-btn:hover {
  background: var(--btn-sec-hover, var(--bg-hover));
  border-color: #38bdf8;
  color: #38bdf8;
}

.header-install-btn svg,
.dropdown-item.pwa-install-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}

@media (max-width: 480px) {
  .header-install-btn {
    display: none !important;
  }
}

/* iOS Safari PWA Install Modal */
.ios-install-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ios-install-overlay.show {
  opacity: 1;
}

.ios-install-card {
  background: var(--bg-surface, #0b1329);
  color: var(--text-primary, #f0f0f0);
  border: 1px solid var(--border-subtle, #1e293b);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 380px;
  padding: 20px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ios-install-overlay.show .ios-install-card {
  transform: translateY(0) scale(1);
}

.ios-install-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ios-install-title {
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  margin: 0;
}

.ios-install-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ios-install-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.ios-install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 18px 0;
}

.ios-install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.ios-step-icon-box {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-subtle, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-weight: bold;
}

.ios-step-text {
  flex: 1;
}

.ios-step-text strong {
  color: var(--text-primary);
}

.ios-install-btn-action {
  width: 100%;
  padding: 10px;
  background: #0284c7;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ios-install-btn-action:hover {
  background: #0369a1;
}

