/* ==========================================================================
   Schnupf With Me - Modern Mobile First Stylesheet
   ========================================================================== */

:root {
  --bg-app: #0c1017;
  --bg-surface: #141a24;
  --bg-card: #1c2432;
  --bg-card-hover: #242e3f;
  
  --accent-gold: #d4af37;
  --accent-gold-light: #f5d77f;
  --accent-tobacco: #8d5b36;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: #2d3748;
  --border-accent: rgba(212, 175, 55, 0.4);
  
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-btn: 0 4px 14px 0 rgba(212, 175, 55, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --app-max-width: 480px;
}

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

body {
  font-family: var(--font-main);
  background-color: #06090e;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* App Viewport Container (Simulates Phone or Fits Fullscreen) */
.app-viewport {
  width: 100%;
  max-width: var(--app-max-width);
  height: 100vh;
  max-height: 920px;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 500px) {
  .app-viewport {
    max-height: 100vh;
    border: none;
    box-shadow: none;
  }
}

/* App Header */
.app-header {
  height: 64px;
  padding: 0 16px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-indicator {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.profile-chip:active {
  transform: scale(0.97);
}

.user-avatar {
  font-size: 1.1rem;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Views Controller */
.app-main {
  flex: 1;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.view {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  animation: fadeIn 0.25s ease-out;
}

.view.active {
  display: flex;
}

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

/* ==========================================================================
   View 1: Priis / Check-in
   ========================================================================== */

.priis-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.active-sorte-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.btn-change-sorte {
  background: none;
  border: none;
  color: var(--accent-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  padding-left: 6px;
}

/* Dose & Stage */
.dose-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0;
}

.dose-stage {
  position: relative;
  width: 230px;
  height: 270px;
  cursor: pointer;
  user-select: none;
}

.snuff-can-graphic {
  width: 100%;
  height: 100%;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dose-stage:active .snuff-can-graphic {
  transform: scale(0.96) translateY(4px);
}

/* Particle Burst for Snuff pinch */
.particle-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.powder-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #c98c56;
  border-radius: 50%;
  opacity: 1;
  pointer-events: none;
  animation: explode 0.7s forwards cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes explode {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.2); opacity: 0; }
}

/* Level Indicator Bar */
.level-indicator-bar {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.level-dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background-color: var(--border-subtle);
  transition: background-color 0.3s, transform 0.2s;
}

.level-dot.active {
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Big Action Button */
.action-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-priis {
  width: 100%;
  background: linear-gradient(135deg, #d4af37 0%, #b89125 100%);
  color: #0b0e14;
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}

.btn-priis:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.btn-priis:disabled {
  background: var(--bg-card);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.priis-icon {
  font-size: 1.6rem;
}

.priis-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.priis-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.btn-secondary {
  width: 100%;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
}

.hidden {
  display: none !important;
}

/* Spruch & Location Card */
.spruch-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spruch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.spruch-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.35;
}

.location-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   View 2: Map
   ========================================================================== */

.map-view-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-header-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(17, 23, 34, 0.94);
  backdrop-filter: blur(10px);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.map-search-row {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.map-search-input {
  flex: 1;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.map-search-input:focus {
  border-color: var(--accent-gold);
}

.btn-map-search {
  background: var(--accent-gold);
  color: #0b0e14;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s;
}

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

.btn-map-locate {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.btn-map-locate:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
}

.map-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 2px;
}

.map-status-pill {
  color: var(--accent-gold-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-container {
  width: 100%;
  height: calc(100vh - 145px);
  min-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* Custom Leaflet Dark Marker */
.custom-snuff-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-bubble {
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  animation: pulseMarker 2s infinite;
}

@keyframes pulseMarker {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   View 3: Feed / Runde
   ========================================================================== */

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-list-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feed-avatar {
  font-size: 1.8rem;
  line-height: 1;
}

.feed-content {
  flex: 1;
}

.feed-user-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.feed-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.feed-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.feed-sorte-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.feed-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 6px;
}

.feed-location {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.feed-cheers-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-main);
  cursor: pointer;
  align-self: center;
  transition: transform 0.1s, background 0.2s;
}

.feed-cheers-btn:active {
  transform: scale(1.15);
  background: rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
/* ==========================================================================
   View 5: Tabakschrank (Schnupftabak-Vitrine)
   ========================================================================== */

.tabakschrank-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px 24px;
}

.schrank-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.schrank-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schrank-crest-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.schrank-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff3b0 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.schrank-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-add-schrank-sorte {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-schrank-sorte:hover {
  background: var(--accent-gold);
  color: #0b0e14;
  transform: translateY(-1px);
}

.schrank-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2a1608 0%, #170d05 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.schrank-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.schrank-stat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.schrank-stat-text {
  display: flex;
  flex-direction: column;
}

.schrank-stat-text small {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
}

.schrank-stat-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.schrank-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(212, 175, 55, 0.25);
  margin: 0 10px;
}

.schrank-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.schrank-filter-row::-webkit-scrollbar {
  display: none;
}

.schrank-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  border-radius: var(--radius-full);
  padding: 6px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.schrank-filter-btn:hover {
  border-color: var(--border-accent);
}

.schrank-filter-btn.active {
  background: var(--accent-gold);
  color: #0b0e14;
  border-color: var(--accent-gold);
  font-weight: 700;
}

/* Vitrine & Wooden Shelves */
.schrank-vitrine {
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #1c0f05 0%, #120903 100%);
  border: 2px solid #5b3617;
  border-radius: var(--radius-lg);
  padding: 16px 12px 6px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.schrank-shelf {
  display: flex;
  flex-direction: column;
}

.shelf-name-plaque {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-light);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent-gold);
  width: fit-content;
}

.shelf-dosen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.shelf-wood-board {
  height: 12px;
  background: linear-gradient(180deg, #844c23 0%, #573014 45%, #2a1506 100%);
  border-radius: 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-top: 10px;
}

/* Dose Card inside Schrank */
.sorte-card {
  background: rgba(22, 14, 8, 0.9);
  border: 1px solid rgba(139, 90, 43, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.sorte-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.sorte-card.active-sorte {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(35, 18, 8, 0.95) 100%);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.badge-am-mann {
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--accent-gold);
  color: #0b0e14;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sorte-action-hint {
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  font-weight: 700;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sorte-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sorte-info {
  flex: 1;
}

.sorte-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sorte-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.sorte-hersteller {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.sorte-aroma {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0;
}

.sorte-staerke-bar {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: 4px;
}

.staerke-pip {
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
}

.staerke-pip.filled {
  background: var(--accent-gold);
}

/* ==========================================================================
   Navigation Bar (Bottom)
   ========================================================================== */

.app-nav {
  height: 64px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 20;
  flex-shrink: 0;
}

.nav-item {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}

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

.nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */

.app-modal {
  margin: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-main);
  max-width: 90vw;
  width: 380px;
  box-shadow: var(--shadow-lg);
}

.app-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 18px;
}

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

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

.sorte-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.sorte-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid transparent;
}

.sorte-option-item:hover, .sorte-option-item.selected {
  border-color: var(--accent-gold);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-form input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.profile-form input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.profile-dialog {
  max-width: 440px;
  width: 92vw;
}

.avatar-selector-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 8px;
}

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

.avatar-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--accent-gold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--accent-gold-light);
}

.avatar-preview-display {
  font-size: 1.25rem;
  line-height: 1;
}

.avatar-cat-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.avatar-cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.avatar-cat-btn:hover {
  border-color: var(--border-accent);
}

.avatar-cat-btn.active {
  background: var(--accent-gold);
  color: #0b0e14;
  border-color: var(--accent-gold);
  font-weight: 700;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.avatar-opt {
  font-size: 1.5rem;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}

.avatar-opt:hover {
  transform: scale(1.08);
  border-color: var(--border-accent);
}

.avatar-opt.selected {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.avatar-opt.hidden {
  display: none !important;
}

.btn-primary {
  background: var(--accent-gold);
  color: #0b0e14;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.1s, background 0.2s;
}

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

/* Sorte Header with Add Button */
.sorten-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.btn-add-sorte {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-add-sorte:hover {
  background: var(--accent-gold);
  color: #0b0e14;
}

.btn-add-sorte:active {
  transform: scale(0.95);
}

/* Stärke Selector Buttons */
.staerke-selector {
  display: flex;
  gap: 8px;
}

.staerke-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.staerke-btn.active {
  background: var(--accent-gold);
  color: #0b0e14;
  border-color: var(--accent-gold);
}

/* Dose Type Picker */
.dose-type-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dose-type-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.dose-type-opt.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
}

.dose-type-opt span {
  font-size: 1.3rem;
}

.dose-type-opt small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Color Picker Row */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker-row input[type="color"] {
  width: 44px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  padding: 2px;
}

.color-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s;
}

.color-chip:hover {
  transform: scale(1.15);
}

.color-chip.selected {
  border-color: #ffffff;
}

/* Custom Sorte Badge & Image */
.sorte-thumb-img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.can-product-image {
  pointer-events: none;
}

/* ==========================================================================
   View 3: Freunde & QR-Code
   ========================================================================== */

.friends-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.friends-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-qr-action {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-qr-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.btn-qr-primary {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.qr-btn-icon {
  font-size: 1.25rem;
}

.add-friend-bar {
  display: flex;
  gap: 8px;
}

.add-friend-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.add-friend-bar input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.btn-add-friend {
  background: var(--accent-gold);
  color: #0b0e14;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

.friends-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.friends-list-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.friends-count-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border-color 0.2s;
}

.friend-card:hover {
  border-color: var(--border-accent);
}

.friend-avatar-wrap {
  position: relative;
  font-size: 2rem;
  line-height: 1;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.friend-details {
  flex: 1;
}

.friend-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.friend-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.friend-code-badge {
  font-size: 0.68rem;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.friend-sorte-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.friend-fill-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold-light);
}

.friend-spruch {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-dim);
}

.friend-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.btn-friend-cheers {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s;
}

.btn-friend-cheers:active {
  transform: scale(1.1);
}

.btn-remove-friend {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-remove-friend:hover {
  color: #ef4444;
}

/* ==========================================================================
   View 4: Historie (Chronik / Logbuch)
   ========================================================================== */

.history-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.history-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hist-filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.hist-filter-pill.active {
  background: var(--accent-gold);
  color: #0b0e14;
  border-color: var(--accent-gold);
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-date-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-date-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.hist-time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 58px;
}

.hist-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.hist-avatar {
  font-size: 1.4rem;
  margin-top: 4px;
}

.hist-content {
  flex: 1;
}

.hist-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.hist-sorte-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.hist-sorte-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hist-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-main);
  margin: 2px 0;
}

.hist-location {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   QR Modals Styling
   ========================================================================== */

.qr-canvas-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

#myQrCodeContainer img, #myQrCodeContainer canvas {
  display: block;
  max-width: 180px;
  max-height: 180px;
}

.qr-code-pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.qr-code-text {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-gold-light);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.btn-copy-code {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-copy-code:hover {
  background: var(--bg-card-hover);
}

.qr-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.modal-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.qr-scanner-viewport {
  width: 100%;
  min-height: 240px;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-gold);
  margin: 10px 0;
}

.scanner-status {
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
  margin: 4px 0 10px;
}

.scanner-manual-fallback {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 6px;
}

.scanner-manual-fallback label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.manual-input-row {
  display: flex;
  gap: 8px;
}

.manual-input-row input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* ==========================================================================
   Push Notification Card & Header Controls
   ========================================================================== */

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

.btn-notif-header {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-notif-header:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
}

.btn-notif-header.granted {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.25);
}

.notif-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(20, 24, 33, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notif-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.notif-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.3;
}

.notif-btn-row {
  display: flex;
  gap: 8px;
}

.btn-enable-notif {
  flex: 1;
  background: var(--accent-gold);
  color: #0f141c;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-enable-notif.granted {
  background: rgba(46, 213, 115, 0.18);
  color: var(--accent-green);
  border: 1px solid rgba(46, 213, 115, 0.4);
  cursor: default;
}

.btn-test-notif {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-test-notif:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

/* In-App Floating Toasts for Push & Live Events */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 420px;
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  background: rgba(17, 23, 34, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-toast.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}

.toast-avatar {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toast-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.toast-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text-main);
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Header Info Button & App Footer Bar
   ========================================================================== */

.btn-info-header {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-info-header:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
}

/* Real Vector Flag Banners Styling */
.avatar-opt.flag-opt {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  height: 56px !important;
  padding: 4px 2px !important;
}

.flag-banner {
  width: 36px;
  height: 24px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}

.flag-banner svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flag-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1;
}

.avatar-opt.flag-opt:hover .flag-lbl,
.avatar-opt.flag-opt.selected .flag-lbl {
  color: var(--accent-gold-light);
}

.avatar-opt.flag-opt.selected .flag-banner {
  border-color: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
}

/* Flag Badge used in Header, Map, Friends & Logbook */
.flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 26px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}

.flag-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flag-badge.flag-sm {
  width: 22px;
  height: 15px;
}

.flag-badge.flag-lg {
  width: 34px;
  height: 23px;
  border-radius: 3px;
}

.marker-bubble .flag-badge {
  width: 26px;
  height: 18px;
}

.user-avatar .flag-badge {
  width: 22px;
  height: 15px;
}

.friend-avatar-wrap .flag-badge,
.hist-avatar .flag-badge {
  width: 30px;
  height: 20px;
}

.toast-avatar .flag-badge {
  width: 36px;
  height: 24px;
}

.app-info-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 14px 6px 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.app-info-footer:hover {
  color: var(--accent-gold-light);
}

.app-info-footer strong {
  color: var(--accent-gold);
}

/* ==========================================================================
   About / Version Modal
   ========================================================================== */

.about-modal {
  max-width: 500px;
  width: 94vw;
}

.about-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-app-logo {
  font-size: 2rem;
  line-height: 1;
}

.about-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.about-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-val {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-version {
  color: var(--accent-gold);
}

.about-security-section {
  background: rgba(46, 213, 115, 0.06);
  border: 1px solid rgba(46, 213, 115, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.about-security-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.about-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-feature-list strong {
  color: var(--text-main);
}

.about-changelog-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.about-changelog-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 2px;
}

.changelog-item {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.ch-badge {
  background: var(--accent-gold);
  color: #0b0e14;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  height: fit-content;
  white-space: nowrap;
}

.ch-content strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.ch-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}





