/* ==========================================================================
   KicksFeed - Apple Liquid Glass & Instagram Reels Stylesheet (Pure CSS)
   ========================================================================== */

:root {
  --bg-base: #030712;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-card: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-bright: rgba(255, 255, 255, 0.28);
  --color-primary: #f43f5e;
  --color-primary-hover: #e11d48;
  --color-primary-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #f97316 100%);
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-sub: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(244, 63, 94, 0.25);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
#app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-base);
}

/* Ambient Radial Glow (Liquid Glass Depth) */
.ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Top Navigation Bar */
.top-header {
  height: 52px;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 30;
  flex-shrink: 0;
}
.top-header img {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 30px;
}

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

.brand-flame {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--color-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.brand-flame svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  color: #fda4af;
  margin-left: 4px;
}

.feed-counter {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Instagram Story Brand Bar */
.stories-bar {
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  z-index: 25;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.stories-bar.is-dragging {
  cursor: grabbing;
}

.stories-bar::-webkit-scrollbar {
  display: none;
}

.stories-track {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 2px 4px;
  /* width: 100%;
  justify-content: center; */
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, filter 0.25s ease;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.story-item:hover {
  transform: translateY(-2px);
}

.story-item:active {
  transform: scale(0.92);
}

/* Wenn eine Marke aktiv ist, andere dezent dimmen */
.stories-track.has-selection .story-item:not(.active) {
  opacity: 0.52;
  filter: grayscale(20%);
}

.stories-track.has-selection .story-item:not(.active):hover {
  opacity: 0.95;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--story-gradient, linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-item:hover .story-ring {
  transform: scale(1.04);
}

.story-ring.active,
.story-item.active .story-ring {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 22px rgba(244, 63, 94, 0.6);
  filter: brightness(1.1);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0f172a;
  border: 2.5px solid #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.04em;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.12), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  overflow: hidden;
}

.story-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #f43f5e;
}

/* Kleiner aktiver Indikator-Dot am Ring */
.story-active-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #030712;
  display: none;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}

.story-item.active .story-active-dot,
.story-ring.active .story-active-dot {
  display: block;
  animation: storyDotPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.story-label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s ease;
}

.story-item.active .story-label {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

/* Main Viewport Content */
.main-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SNEAKER REEL FEED */
.reel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

/* Glass Card */
.reel-card {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  max-height: 82vh;
  border-radius: var(--radius-xl);
  background: var(--glass-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}

/* Desktop Expansion */
@media (min-width: 768px) {
  .reel-card {
    max-width: 620px;
  }
}

/* Specular Hairline Highlight */
.card-specular {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 10;
}

/* Card Header Tag */
.card-top-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 15;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Center Image Container */
.card-image-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.card-image-box img {
  max-width: 90%;
  max-height: 85%;
  object-contain: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s ease;
  pointer-events: none;
}

/* Bottom Dark Shadow Gradient */
.card-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Bottom Left Overlay (Marke, Modell, Preis & Anzahl der Shops) */
.card-info-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 80px;
  z-index: 12;
  text-align: left;
}

.info-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fda4af;
  margin-bottom: 2px;
}

.info-model {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 768px) {
  .info-model {
    font-size: 26px;
  }
}

.info-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.info-price {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

/* Anzahl der Shops rechts neben dem Preis */
.info-shops-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.info-shops-count:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.info-shops-count .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
}

/* Right Action Rail (Instagram Reels Style) */
.card-actions-rail {
  position: absolute;
  bottom: 20px;
  right: 14px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Merken / Favorisieren Button: Auf Smartphone oben rechts platziert */
.card-top-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
}

.card-top-fav-btn .action-circle {
  width: 44px;
  height: 44px;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.card-top-fav-btn .action-label {
  display: none;
}

/* Auf Desktop bleibt der Merken-Button in der vertikalen Aktionsleiste oberhalb von Kaufen */
@media (min-width: 768px) {
  .card-top-fav-btn {
    top: auto;
    bottom: 160px;
    right: 14px;
  }
  
  .card-top-fav-btn .action-circle {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
  }

  .card-top-fav-btn .action-label {
    display: block;
  }
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.action-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.action-btn:active .action-circle {
  transform: scale(0.9);
}

.action-circle.favorited {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.6);
  color: #f43f5e;
}

.action-circle.favorited svg {
  fill: #f43f5e;
}

.action-circle.buy-btn {
  background: var(--color-primary-gradient);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
}

.action-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.action-badge-num {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  color: #e11d48;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Desktop Horizontal Arrows */
.desktop-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  cursor: pointer;
  z-index: 20;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.desktop-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.06);
}

.desktop-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.desktop-arrow.arrow-prev {
  left: 20px;
}

.desktop-arrow.arrow-next {
  right: 20px;
}

@media (min-width: 768px) {
  .desktop-arrow {
    display: flex;
  }
}

/* ==========================================================================
   SUCHE-PAGE (3ER KOMPAKT-GRID)
   ========================================================================== */
.view-container {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
}

.view-container.active {
  display: flex;
}

.search-header-box {
  padding: 12px 16px;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input:focus {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-sub);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: transparent;
  font-weight: 700;
}

.grid-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Suche Grid: Mobil genau 2 nebeneinander, ab Tablet/Desktop 3 nebeneinander */
.sneaker-3grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .sneaker-3grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.grid-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.grid-tile:hover {
  border-color: var(--glass-border-bright);
}

.grid-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}

.grid-tile:hover img {
  transform: scale(1.05);
}

/* Button links oben für Favoriten */
.tile-fav-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.tile-fav-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
}

.tile-fav-btn.active svg {
  fill: #f43f5e;
}

/* Button rechts oben für Shop */
.tile-shop-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

/* Position absolute links unten: Marke, Modell, Preis */
.tile-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 8px 6px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  pointer-events: none;
  text-align: left;
}

.tile-brand {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fda4af;
  letter-spacing: 0.05em;
  line-height: 1;
}

.tile-model {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  margin-top: 1px;
}

.tile-price {
  font-size: 10px;
  font-weight: 800;
  color: #e2e8f0;
  margin-top: 1px;
}

/* ==========================================================================
   FAVORITEN-PAGE
   ========================================================================== */
.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  text-align: center;
  padding: 24px;
}

.empty-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-text-sub);
}

/* ==========================================================================
   BOTTOM APP BAR (Startseite, Suche, Favoriten, Einstellungen)
   ========================================================================== */
.bottom-bar {
  height: 58px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  z-index: 30;
  flex-shrink: 0;
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  position: relative;
}

.nav-tab-btn:hover {
  color: #ffffff;
}

.nav-tab-btn.active {
  color: #f43f5e;
  font-weight: 700;
}

.nav-tab-btn.active svg {
  color: #f43f5e;
}

.nav-tab-label {
  font-size: 10px;
  letter-spacing: -0.01em;
}

.fav-badge-count {
  position: absolute;
  top: 2px;
  right: 8px;
  background: #f43f5e;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  display: none;
}

.fav-badge-count:empty {
  display: none !important;
}

#clearAllFavoritesBtn:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #ffffff !important;
  border-color: rgba(239, 68, 68, 0.8) !important;
}

/* ==========================================================================
   MODALS (Shop Auswahl & Einstellungen)
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-backdrop.open {
  display: flex;
}

.glass-modal {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  border-radius: 28px 28px 0 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@media (min-width: 640px) {
  .glass-modal {
    border-radius: 28px;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-sub);
}

/* Shop Card in Modal */
.shop-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.shop-card.best-price {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.35);
}

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

.shop-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.shop-price-big {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.shop-btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--color-primary-gradient);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
  transition: transform 0.15s ease;
}

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

/* Toast */
.kicks-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-bright);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

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