/* === Global Layout === */
body {
  font-family: "Arial Black", Arial, sans-serif;
  margin: 0;
  background: #0d0d0d;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

#app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Screens === */
#start-screen,
#end-screen {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 500px;
  min-height: 480px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 18px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  padding: 50px 40px;
  text-align: center;
}

/* Stage Indicator - Progress Dots */
.stage-indicator {
  position: fixed;
  top: 30px;
  right: 30px;
  display: none;
  gap: 16px;
  align-items: center;
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 40px;
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.stage-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  position: relative;
  transition: background 0.3s ease;
}

.stage-dot.completed {
  background: #555;
}

.stage-dot.switching {
  animation: switchingDot 0.8s ease-in-out infinite;
}

/* Worst Practice: Ständig durchblinkende Dots */
.stage-dot:nth-child(1) {
  animation: dotBlink 2.1s infinite !important;
}

.stage-dot:nth-child(2) {
  animation: dotBlink 2.1s infinite 0.7s !important;
}

.stage-dot:nth-child(3) {
  animation: dotBlink 2.1s infinite 1.4s !important;
}

@keyframes switchingDot {
  0%, 100% {
    background: #333;
    transform: scale(1);
  }
  50% {
    background: #B20CE9;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(178, 12, 233, 0.6);
  }
}

@keyframes dotBlink {
  0%, 66%, 100% {
    background: #333;
    box-shadow: none;
  }
  33% {
    background: #B20CE9;
    box-shadow: 0 0 12px rgba(178, 12, 233, 0.6);
  }
}

#final-score-container {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 40px 20px;
  margin: 40px 0;
  box-shadow: none;
}

.final-score-label {
  color: #888;
  font-size: 1em;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
}

.final-score-value {
  color: #B20CE9;
  font-size: 4.5em;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: none;
  letter-spacing: 2px;
}

.final-score-info {
  color: #666;
  font-size: 0.95em;
  margin: 30px 0 0 0;
  font-style: normal;
  font-weight: 300;
  line-height: 1.6;
}

/* === Headings === */

h2 {
  color: #ffffff;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 60px;
  letter-spacing: 1.5px;
  text-shadow: none;
  font-size: 2em;
  display: none;
}

h2:not(:empty) {
  display: block;
}

h1 {
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 1.5px;
  text-shadow: none;
}

/* === Description === */
#game-description {
  max-width: 550px;
  margin-bottom: 50px;
  padding: 18px 22px;
  font-size: 1.05em;
  color: #b6b6b6;
  border-radius: 12px;
  line-height: 1.5;
}

/* === Buttons === */
button {
  padding: 12px 28px;
  font-size: 1.2em;
  margin-top: 20px;
  border-radius: 8px;
  border: 3px solid #B20CE9;
  background: #B20CE9;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.25s ease;
  min-height: 48px;
}

@media (max-width: 768px) {
  button {
    padding: 10px 24px;
    font-size: 1.1em;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  button {
    padding: 10px 20px;
    font-size: 1em;
    min-height: 42px;
  }
}



/* === Special “Worst Button” === */
.worst-btn {
  font-size: 1.9em;
  width: 340px;
  height: 100px;
  border-radius: 40px;
  font-weight: 900;
  margin: 20px 0 20px 0;
  text-shadow: 0 0 8px #ffffff30;
}

.worst-btn.ready {
  background: #B20CE9;
  color: #ffffff;
  box-shadow: 0 0 30px #B20CE970;
}

.worst-btn.notready {
  background: #292929;
  color: #B20CE9;
  border: 3px solid #B20CE9;
  box-shadow: inset 0 0 20px #B20CE940;
}

@media (max-width: 768px) {
  .worst-btn {
    font-size: 1.6em;
    width: 300px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .worst-btn {
    font-size: 1.4em;
    width: 280px;
    height: 80px;
  }
}

/* === Fake Hover State Preview inkl. Textwechsel (nur für Start-Screen) === */

/* Gemeinsame Vorbereitung: echten Text unsichtbar machen, wenn Hover aktiv ist */
#start-screen .worst-btn.ready:hover,
#start-screen .worst-btn.notready:hover {
  position: relative;
  color: transparent;
  /* Originaltext ausblenden */
  transition: all 0.3s ease;
  border: none; /* Entferne Border für saubere Ecken */
}

/* Wenn Button 'ready' Klasse hat (zeigt "Nicht bereit") → Hover zeigt 'Bereit' */
#start-screen .worst-btn.ready:hover::after {
  content: "Bereit";
  color: #ffffff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #292929; /* Dunkler Hintergrund */
  border: 3px solid #B20CE9; /* Border für Struktur */
  border-radius: 40px;
  box-shadow: inset 0 0 20px #B20CE940, 0 0 25px #B20CE920;
  box-sizing: border-box; /* Border einrechnen für saubere Ecken */
}

/* Wenn Button 'notready' Klasse hat (zeigt "Nicht bereit") → Hover zeigt 'Bereit' */
#start-screen .worst-btn.notready:hover::after {
  content: "Bereit";
  color: #ffffff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #B20CE9; /* Lila Hintergrund */
  border-radius: 40px;
  box-shadow: 0 0 30px #B20CE970, inset 0 0 10px #ffffff20;
  box-sizing: border-box; /* Border einrechnen für saubere Ecken */
}

/* (Optional) Leichtes visuelles Feedback */
#start-screen .worst-btn.ready:hover::after,
#start-screen .worst-btn.notready:hover::after {
  box-shadow: 0 0 50px #B20CE970, inset 0 0 20px #ffffff20;
}

/* Normaler Hover für End-Screen Restart Button */
#end-screen .worst-btn.ready:hover {
  background: #d17bf4;
  box-shadow: 0 0 50px #B20CE9;
  transform: scale(1.05);
}

/* === Link Dynamics === */
.fake-link {
  color: #B20CE9;
  text-decoration: none;
  cursor: default;
  transition: all 0.2s ease;
}

.active-link {
  background: #B20CE9;
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline solid #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 0 14px #B20CE970;
  cursor: pointer;
}

/* === Highlight Text === */
.highlight {
  background-color: #B20CE9;
  color: #ffffff;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: none;
}

/* === Start Instructions === */
.start-instructions {
  margin: 14px 0 4px 0;
  font-size: 0.95em;
}

/* === Error Message === */
#error-msg,
.error {
  color: #B20CE9;
  font-weight: bold;
  margin-top: 10px;
  font-size: 1.1em;
  text-shadow: none;
}

/* New classes moved from inline styles */
.price {
  color: #ffffff;
  margin: 0.25rem 0;
  font-weight: 600;
}

small.soldout, .soldout {
  color: #B20CE9;
  font-size: 0.9em;
  display: block;
  margin-top: 6px;
}

/* Checkout screen base layout (moved from inline styles in script.js) */
#checkout-screen {
  display: none; /* visibility controlled by JS showScreen() */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0d0d0d;
}

#checkout-inner h2 {
  color: #B20CE9;
}

#checkout-inner p {
  color: #b6b6b6;
}

/* Button used in checkout - sizing moved from inline */
.buy-final-btn {
  width: 260px;
  height: 70px;
  margin-top: 30px;
}

.checkout-error {
  color: #B20CE9;
  margin-top: 10px;
  font-weight: bold;
}

/* Generic screen helper (replaces inline display settings in Index.html) */
.screen {
  display: none; /* JS toggles to 'flex' via showScreen() */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* .start-screen-visible intentionally omitted; visibility is controlled by JS */

/* === Inputs === */
input,
select {
  background: #0d0d0d;
  border: 1px solid #333;
  color: #ffffff;
  padding: 12px 12px;
  margin: 6px;
  border-radius: 8px;
  font-size: 1.1em;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

/* === Timer & Score === */
#timer {
  font-weight: bold;
  font-size: 1.3em;
  color: #ffffff;
  margin: 0;
  padding: 8px 18px;
  border-radius: 14px;
  display: inline-block;
  backdrop-filter: blur(10px);
  background: rgba(178, 12, 233, 0.15);
  box-shadow: 0 0 25px rgba(178, 12, 233, 0.4);
  animation: glowPulse 3s infinite;
  transition: all 0.3s ease;
}



/* Timer nach 1 Minute - bleibt lila, wird nur intensiver */
#timer.timer-overtime {
  background: rgba(178, 12, 233, 0.35);
  box-shadow: 0 0 35px rgba(178, 12, 233, 0.7);
  animation: glowPulsePurple 2s infinite;
}

@keyframes glowPulsePurple {
  0% {
    box-shadow: 0 0 15px rgba(178, 12, 233, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(178, 12, 233, 0.9);
  }
  100% {
    box-shadow: 0 0 15px rgba(178, 12, 233, 0.5);
  }
}

#score {
  color: #ffffff;
  font-size: 1.6em;
  font-weight: bold;
  text-shadow: 0 0 12px #B20CE9;
}

/* === Subtle Animations === */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 6px #B20CE930;
  }

  50% {
    box-shadow: 0 0 22px #B20CE980;
  }

  100% {
    box-shadow: 0 0 6px #B20CE930;
  }
}

.worst-btn.notready {
  animation: glowPulse 2.5s infinite;
}

/* ---------- SHOP-STAGE ---------- */
.stage-1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px;
}

/* Verstecke Weiter-Button bei Stage 0 (Webshop) */
#stages[data-stage="0"] .stage-submit-btn {
  display: none;
}

/* Shop Header Styling - aligned with filter bar */
.shop-top-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 30px;
  width: 100%;
}

.shop-branding {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
}

.shop-subtitle {
  color: #666;
  font-size: 0.7em;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.shop-task {
  color: #ffffff;
  font-size: 2em;
  font-weight: 900;
  margin: 0;
  letter-spacing: 0.5px;
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 0;
  align-self: flex-start;
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.shop-search:focus-within {
  border-color: #555;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.shop-search input {
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #fff;
  width: 380px;
  transition: all 0.2s ease;
  font-size: 1em;
  outline: none;
  margin: 0;
}

.shop-search input::placeholder {
  color: #666;
}

.shop-search button {
  background: transparent;
  border: none;
  border-left: 1px solid #333;
  border-radius: 0;
  color: #666;
  font-size: 1em;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
}

.shop-search button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.shop-search button svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* ---------- SHOP CONTAINER ---------- */
.shop-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 10px 0;
}

@media (max-width: 768px) {
  .shop-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stage-1 {
    width: 100%;
    padding: 0 10px 100px 10px;
  }
}

/* ---------- FILTER LEISTE ---------- */
.filters {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #ccc;
  font-size: 0.85em;
  align-items: flex-start;
  text-align: left;
  margin-top: 0;
  background: #111;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid #222;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  max-height: 600px;
  overflow-y: auto;
}

.filters h4 {
  color: #ffffff;
  margin-bottom: 16px;
  margin-top: 0;
  font-size: 1.05em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: none;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
  width: 100%;
}

/* Filter Scrollbar Styling */
.filters::-webkit-scrollbar {
  width: 8px;
}

.filters::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 10px;
}

.filters::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.filters::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.filters {
  scrollbar-width: thin;
  scrollbar-color: #333 #0d0d0d;
}

/* Custom Checkbox Style */
.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  user-select: none;
  padding: 3px 0;
  transition: all 0.2s ease;
  width: 100%;
}

.filters label:hover {
  color: #fff;
}

.filters input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #555;
  border-radius: 4px;
  background: #0d0d0d;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filters input[type="checkbox"]:hover {
  border-color: #777;
  box-shadow: none;
}

.filters input[type="checkbox"]:checked {
  background: #555;
  border-color: #555;
  box-shadow: none;
}

.filters input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.filters input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* ---------- PRODUKT GRID ---------- */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-btn {
  background: #1a1a1a;
  border: 1px solid #2b2b2b;
  color: #eee;
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85em;
}
.category-btn:hover {
  background: #2b2b2b;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: stretch;
  margin-top: 40px;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (min-width: 1101px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* ---------- PRODUKTKARTEN ---------- */
.product-card {
  background: transparent;
  border-radius: 20px;
  padding: 0 0 12px 0;
  text-align: left;
  width: 100%;
  max-width: 100%;
  min-height: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: none;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: none;
}

.product-card img {
  border-radius: 20px 20px 0 0;
  margin: 0;
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  background: #2a2a2a;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
}

.product-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.product-tag {
  background: rgba(128, 128, 128, 0.7);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex-grow: 1;
  width: 100%;
  padding: 25px 12px 0 12px;
  box-sizing: border-box;
}

.product-card-actions {
  margin-top: 0px;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card:hover {
  transform: translateY(-25px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card p {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}
.product-card p:first-of-type {
  color: #fff;
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1.4;
  min-height: 2.8em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 0px;
  min-height: 24px;
}

.product-card .price {
  color: #bbb !important;
  font-size: 1em;
  font-weight: 700;
  margin: 0;
}

.product-card small.soldout {
  font-size: 0.75em;
  color: #666;
  margin: 0;
  line-height: 1;
}

.buy-btn {
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 0.8em;
  cursor: default;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: auto;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.buy-btn:hover {
  background: #2e2e2e;
}

.buy-btn span {
  cursor: pointer;
  padding: 4px 8px;
  display: inline-block;
  pointer-events: auto;
  font-size: 1em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .buy-btn {
    padding: 10px 14px;
    font-size: 0.95em;
    min-height: 44px;
    width: 70%;
  }

  .product-card {
    max-width: 100%;
  }

  .product-card img {
    height: 180px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .product-card {
    min-height: 300px;
  }

  .product-card img {
    height: 160px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 30px;
  }

  .buy-btn {
    padding: 10px 12px;
    font-size: 0.85em;
    min-height: 42px;
    width: 80%;
  }
}

/* ---------- CHECKOUT SCREEN ---------- */
#checkout-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 40px 50px;
  width: 100%;
  max-width: 500px;
  gap: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

/* ---------- SHITSTAGRAM (STAGE 2) ---------- */
.stage-2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 100px;
}

/* Verstecke Weiter-Button bei Stage 1 (Shitstagram) und Stage 2 (Klick-Challenge) */
#stages[data-stage="1"] .stage-submit-btn,
#stages[data-stage="2"] .stage-submit-btn {
  display: none;
}

.shitstagram-header {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
  padding: 40px 20px 20px 20px;
}

.shitstagram-branding {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shitstagram-subtitle {
  color: #666;
  font-size: 0.7em;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.shitstagram-task {
  color: #ffffff;
  font-size: 1.6em;
  font-weight: 900;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.shitstagram-top-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.shitstagram-icon-btn {
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
}

.shitstagram-icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #555;
}

/* Feed */
.shitstagram-feed {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 20px;
}

.shitstagram-post {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
}

.shitstagram-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.shitstagram-post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shitstagram-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B20CE9, #6a0dad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9em;
}

.shitstagram-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shitstagram-username {
  color: #fff;
  font-size: 0.9em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shitstagram-verified {
  color: #B20CE9;
  font-size: 0.8em;
  background: rgba(178, 12, 233, 0.15);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shitstagram-timestamp {
  color: #666;
  font-size: 0.75em;
}

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

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

.shitstagram-post-menu {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.5em;
  padding: 4px 8px;
  cursor: pointer;
  margin: 0;
  position: relative;
}

.shitstagram-menu-dropdown {
  position: fixed;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10003;
  min-width: 160px;
  padding: 4px 0;
  animation: dropdownFade 0.2s ease;
}

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

.shitstagram-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.shitstagram-menu-item:hover {
  background: #2a2a2a;
}

.shitstagram-menu-item svg {
  flex-shrink: 0;
}

.shitstagram-menu-item .menu-arrow {
  margin-left: auto;
  font-size: 1.2em;
  opacity: 0.5;
}

.shitstagram-submenu {
  position: fixed;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10004;
  min-width: 200px;
  padding: 4px 0;
  animation: submenuSlide 0.2s ease;
}

@keyframes submenuSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.shitstagram-post-image {
  width: 100%;
  aspect-ratio: 1;
  background: #0d0d0d;
  position: relative;
  cursor: crosshair;
}

.shitstagram-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shitstagram-draw-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: crosshair;
  touch-action: none;
}

.shitstagram-draw-info {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65em;
  font-weight: 400;
  pointer-events: none;
  z-index: 5;
  letter-spacing: 0;
  backdrop-filter: blur(2px);
}

.shitstagram-post-actions {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
}

/* Unlike button (heart icon after successfully drawing) */
.shitstagram-unlike-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shitstagram-unlike-btn:hover {
  transform: scale(1.1);
}

.shitstagram-unlike-btn:active {
  animation: likeButtonPulse 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.shitstagram-unlike-btn svg {
  filter: drop-shadow(0 0 8px rgba(178, 12, 233, 0.4));
}

.shitstagram-action-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shitstagram-action-btn:hover {
  color: #B20CE9;
  transform: scale(1.1);
}

/* Microinteraction: Like Button Click Feedback */
.shitstagram-like-btn:active,
.shitstagram-detail-like-btn:active {
  animation: likeButtonPulse 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes likeButtonPulse {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.85) rotate(-8deg);
  }
  50% {
    transform: scale(1.2) rotate(8deg);
  }
  75% {
    transform: scale(0.95) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.shitstagram-like-btn.liked svg,
.shitstagram-detail-like-btn.liked svg {
  filter: drop-shadow(0 0 8px rgba(178, 12, 233, 0.4));
  animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Smooth transition for like/unlike */
.shitstagram-like-btn svg path,
.shitstagram-detail-like-btn svg path {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.shitstagram-like-btn svg,
.shitstagram-detail-like-btn svg {
  transition: filter 0.2s ease;
}

/* Unlike animation */
.shitstagram-like-btn:not(.liked):active,
.shitstagram-detail-like-btn:not(.liked):active {
  animation: unlikeButtonShrink 0.3s ease;
}

@keyframes unlikeButtonShrink {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

.shitstagram-bookmark {
  margin-left: auto;
}

.shitstagram-post-info {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shitstagram-likes {
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
}

.shitstagram-caption {
  color: #fff;
  font-size: 0.85em;
  line-height: 1.4;
}

.shitstagram-caption strong {
  font-weight: 700;
  margin-right: 4px;
}

.shitstagram-view-comments {
  color: #666;
  font-size: 0.85em;
  cursor: pointer;
  margin-top: 4px;
}

.shitstagram-view-comments:hover {
  color: #888;
}

/* Search Popup */
.shitstagram-search-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  padding-top: 60px;
}

.shitstagram-search-content {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shitstagram-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #2a2a2a;
}

#shitstagram-search-input {
  flex: 1;
  background: #0d0d0d;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95em;
  outline: none;
  margin: 0;
}

#shitstagram-search-input:focus {
  border-color: #555;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.shitstagram-autocorrect {
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  color: #ccc;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 20px;
}

.shitstagram-autocorrect strong {
  color: #B20CE9;
}

.shitstagram-autocorrect button {
  margin-left: auto;
  padding: 6px 12px;
  background: transparent;
  color: #888;
  border: 1px solid #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 500;
  transition: all 0.2s;
}

.shitstagram-autocorrect button:hover {
  background: rgba(178, 12, 233, 0.1);
  border-color: #B20CE9;
  color: #B20CE9;
}

.shitstagram-close-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.5em;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.shitstagram-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.shitstagram-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.shitstagram-search-results::-webkit-scrollbar {
  width: 8px;
}

.shitstagram-search-results::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 10px;
}

.shitstagram-search-results::-webkit-scrollbar-thumb {
  background: #B20CE9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(178, 12, 233, 0.4);
}

.shitstagram-search-results::-webkit-scrollbar-thumb:hover {
  background: #d17bf4;
  box-shadow: 0 0 15px rgba(178, 12, 233, 0.6);
}

.shitstagram-search-results {
  scrollbar-width: thin;
  scrollbar-color: #B20CE9 #0d0d0d;
}

.shitstagram-search-placeholder {
  color: #666;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9em;
}

.shitstagram-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.shitstagram-search-result:hover {
  background: rgba(255, 255, 255, 0.05);
}

.shitstagram-search-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shitstagram-search-username {
  color: #fff;
  font-size: 0.9em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shitstagram-search-meta {
  color: #666;
  font-size: 0.8em;
}

/* Profile Popup */
.shitstagram-profile-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0d0d0d;
  z-index: 10000;
  overflow-y: auto;
}

.shitstagram-profile-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.shitstagram-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.shitstagram-profile-header .shitstagram-post-menu {
  margin-left: auto;
}

.shitstagram-back-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  padding: 4px 8px;
  margin: 0;
}

.shitstagram-profile-username {
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
}

.shitstagram-profile-info {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shitstagram-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B20CE9, #6a0dad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 2em;
  margin: 0 auto;
}

.shitstagram-profile-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.shitstagram-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shitstagram-stat strong {
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
}

.shitstagram-stat span {
  color: #888;
  font-size: 0.85em;
}

.shitstagram-profile-name {
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.shitstagram-profile-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
}

.shitstagram-profile-post {
  aspect-ratio: 1;
  background: #1a1a1a;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.shitstagram-profile-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shitstagram-profile-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 0.9em;
  font-weight: 700;
}

.shitstagram-profile-post:hover .shitstagram-profile-post-overlay {
  opacity: 1;
}

.shitstagram-profile-post .shitstagram-profile-post-menu {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  font-size: 1.2em;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.shitstagram-profile-post .shitstagram-profile-post-menu:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Fade-in animation for lazy loaded posts */
.shitstagram-profile-post-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 4s ease, transform 4s ease;
}

.shitstagram-profile-post-fade.shitstagram-post-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Load More Button */
.shitstagram-load-more-container {
  padding: 20px;
  text-align: center;
}

.shitstagram-load-more-btn {
  background: #2a2a2a;
  color: #aaa;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shitstagram-load-more-btn:hover:not(:disabled) {
  background: #333;
  color: #ccc;
}

.shitstagram-load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #1a1a1a;
  color: #555;
}

/* Post Detail Popup */
.shitstagram-post-detail-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shitstagram-post-detail-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
}

.shitstagram-post-detail-content .shitstagram-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  font-size: 1.5em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.shitstagram-post-detail-content .shitstagram-close-btn-left {
  left: 16px;
  right: auto;
}

.shitstagram-post-detail-content .shitstagram-post-menu-top-right {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: none;
  color: #fff;
  border-radius: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shitstagram-post-detail-content .shitstagram-post-menu-top-right:hover {
  color: #B20CE9;
  transform: scale(1.1);
}

.shitstagram-post-detail-content .shitstagram-close-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: scale(1.1);
}

.shitstagram-post-detail {
  display: flex;
  height: 600px;
  max-height: 90vh;
}

.shitstagram-post-detail-image {
  flex: 1.2;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: crosshair;
}

.shitstagram-post-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shitstagram-post-detail-sidebar {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #2a2a2a;
  background: #1a1a1a;
}

.shitstagram-post-caption-section {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid #2a2a2a;
  color: #fff;
  font-size: 0.9em;
  line-height: 1.4;
  align-items: flex-start;
}

.shitstagram-post-timestamp {
  color: #888;
  font-size: 0.85em;
  margin-top: 4px;
}

.shitstagram-comments-section {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shitstagram-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.shitstagram-comment-content {
  color: #aaa;
  font-size: 0.9em;
  line-height: 1.4;
  word-wrap: break-word;
}

.shitstagram-comment-content strong {
  font-weight: 600;
  margin-right: 6px;
  color: #fff;
  font-size: 1.05em;
}

.shitstagram-mention {
  color: #B20CE9;
  font-weight: 500;
  cursor: pointer;
}

.shitstagram-mention:hover {
  text-decoration: underline;
}

.shitstagram-post-detail-actions {
  padding: 12px 16px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  gap: 16px;
  align-items: center;
}

.shitstagram-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shitstagram-count {
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Share Popup */
.shitstagram-share-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 20px;
}

.shitstagram-share-content {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shitstagram-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.shitstagram-share-header h3 {
  color: #fff;
  font-size: 1.1em;
  margin: 0;
  font-weight: 700;
}

.shitstagram-share-search {
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2a;
}

.shitstagram-share-search input {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  outline: none;
  margin: 0;
  box-sizing: border-box;
}

.shitstagram-share-users {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scroll-behavior: smooth;
}

/* Hide scrollbar completely */
.shitstagram-share-users::-webkit-scrollbar {
  display: none;
}

.shitstagram-share-users {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.shitstagram-share-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.shitstagram-share-user.selected {
  border-color: #B20CE9;
  background: rgba(178, 12, 233, 0.1);
}

.shitstagram-share-user-name {
  flex: 1;
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
}

/* ---------- YOUPOOP (STAGE 3) ---------- */
.youpoop-header {
  position: sticky;
  top: 0;
  background: #0f0f0f;
  border-bottom: 1px solid #303030;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.youpoop-branding {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.youpoop-subtitle {
  font-size: 1.4em;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.youpoop-task {
  color: #ccc;
  font-size: 0.95em;
  font-weight: 500;
}

.youpoop-stage-indicator {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 40px;
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#checkout-inner h2 {
  color: #ffffff;
  margin: 0 0 10px 0;
  text-align: center;
}

.checkout-subtitle {
  color: #b6b6b6;
  margin: 0 0 20px 0;
  font-size: 0.95em;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.input-group label {
  color: #999;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #444;
  background: #0d0d0d;
  color: #888;
  font-size: 1em;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.checkout-input.active {
  border-color: #666;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

.checkout-input:focus {
  border-color: #666;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

.checkout-input.shake-error {
  animation: shakeInput 0.5s ease-in-out;
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(136, 136, 136, 0.3);
}

@keyframes shakeInput {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-8px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(8px);
  }
}

.checkout-buy-btn {
  width: 100%;
  padding: 16px 20px;
  margin-top: 10px;
  font-size: 1.4em;
  font-weight: 900;
  background: #7a0a9a;
  color: #ffffff;
  border: 3px solid #B20CE9;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.1s ease-out, filter 0.1s ease-out;
  box-shadow: none;
  min-height: 60px;
  position: relative;
  filter: brightness(0.8);
}

.checkout-buy-btn:hover {
  background: #9a0bb8;
  box-shadow: none;
}

.checkout-buy-btn.cps-pulse {
  animation: cpsPulse 0.2s ease-out;
}

.checkout-buy-btn.cps-reset {
  animation: cpsReset 0.3s ease-out forwards;
}

@keyframes cpsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(178, 12, 233, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(178, 12, 233, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(178, 12, 233, 0);
  }
}

@keyframes cpsReset {
  0% {
    transform: scale(var(--current-scale, 1));
  }
  50% {
    transform: scale(calc(var(--current-scale, 1) * 0.95));
  }
  100% {
    transform: scale(1);
    background: #7a0a9a;
    filter: brightness(0.8);
  }
}

@media (max-width: 768px) {
  .checkout-buy-btn {
    padding: 14px 18px;
    font-size: 1.2em;
    min-height: 56px;
  }
}

@media (max-width: 480px) {
  .checkout-buy-btn {
    padding: 12px 16px;
    font-size: 1.1em;
    min-height: 52px;
  }
}

.password-requirements {
  margin-top: 8px;
}

.password-requirements ul {
  list-style-type: disc;
}

.password-requirements li {
  margin: 4px 0;
}



/* === Bottom UI Element === */
/* Stage Progress Indicator */
.stage-progress {
  position: fixed;
  top: 30px;
  right: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 30px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  transition: all 0.3s ease;
  position: relative;
}

.progress-dot.active {
  background: #B20CE9;
  box-shadow: 0 0 12px rgba(178, 12, 233, 0.6);
}

.progress-dot.completed {
  background: #555;
}

/* Worst Practice: Ständig durchblinkende Dots */
.progress-dot:nth-child(1) {
  animation: dotBlink 2.1s infinite;
}

.progress-dot:nth-child(2) {
  animation: dotBlink 2.1s infinite 0.7s;
}

.progress-dot:nth-child(3) {
  animation: dotBlink 2.1s infinite 1.4s;
}

@keyframes dotBlink {
  0%, 66%, 100% {
    background: #333;
    box-shadow: none;
  }
  33% {
    background: #B20CE9;
    box-shadow: 0 0 12px rgba(178, 12, 233, 0.6);
  }
}

.bottom-ui {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-width: 180px;
  z-index: 999999;
}

#timer {
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
}

.bottom-ui button {
  margin: 0;
  margin-top: 4px;
  width: 100%;
  padding: 11px 18px;
  font-size: 1em;
}

/* === PRODUKTKONFIGURATION POPUP === */
.config-popup-content {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Scrollbar Styling */
.config-popup-content::-webkit-scrollbar {
  width: 12px;
}

.config-popup-content::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 10px;
}

.config-popup-content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
  border: 2px solid #0d0d0d;
}

.config-popup-content::-webkit-scrollbar-thumb:hover {
  background: #B20CE9;
}

.config-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #333;
  color: #fff;
  border: 2px solid #555;
  width: 50px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  padding: 0;
  flex-shrink: 0;
}

.config-close-btn:hover {
  background: #444;
  border-color: #B20CE9;
  transform: scale(1.1);
}

.config-section {
  margin-bottom: 30px;
}

.config-label {
  display: block;
  color: #ccc;
  font-size: 1.1em;
  margin-bottom: 15px;
  font-weight: bold;
}

.config-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.config-option-btn {
  padding: 15px 20px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95em;
  cursor: not-allowed;
  transition: all 0.3s ease;
  text-align: center;
  user-select: none;
  pointer-events: auto;
}

.config-option-btn:hover:not(:disabled):not(.selected) {
  background: #353535;
  border-color: #B20CE9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 12, 233, 0.3);
}

.config-option-btn.selected {
  background: #B20CE9;
  border-color: #B20CE9;
  box-shadow: 0 0 20px #B20CE970;
}

.config-option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.config-option-btn.unavailable {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #555;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: line-through;
}

.config-option-btn.unavailable:hover {
  background: #1a1a1a;
  border-color: #2a2a2a;
  transform: none;
  box-shadow: none;
}

.config-summary {
  background: rgba(178, 12, 233, 0.1);
  border: 1px solid #B20CE9;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.config-confirm-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(to right, #B20CE9 0%, #333 0%);
  background-size: 200% 100%;
  background-position: 100% 0;
  border: 3px solid #B20CE9;
  border-radius: 8px;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: not-allowed;
  transition: box-shadow 0.2s ease-out, filter 0.2s ease-out, border-color 0.2s ease-out;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0px rgba(178, 12, 233, 0);
  filter: brightness(0.7);
}

.config-confirm-btn.charging {
  background-position: 0% 0;
  box-shadow: 0 0 40px rgba(178, 12, 233, 0.8);
  filter: brightness(1.3);
  border-color: #d17bf4;
  transition: background-position 5s linear, box-shadow 5s linear, filter 5s linear, border-color 5s linear;
}

.config-confirm-btn.charged {
  background: #B20CE9;
  cursor: pointer;
  box-shadow: 0 5px 40px #B20CE9, 0 0 60px rgba(178, 12, 233, 0.9);
  filter: brightness(1.5);
  border-color: #e090ff;
}

.config-confirm-btn.charged:hover {
  background: #d17bf4;
  transform: translateY(-2px);
  box-shadow: 0 5px 50px #B20CE9, 0 0 80px rgba(178, 12, 233, 1);
}

.config-confirm-btn:disabled {
  background: #333;
  border-color: #555;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

/* === ERROR POPUP (Worst Practice) === */
.error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: popupFadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.error-popup.closing {
  animation: popupFadeOut 4s ease forwards;
  pointer-events: none;
}

@keyframes popupFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

.error-popup-content {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.error-popup-content p {
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
}

.error-popup-close {
  position: absolute;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: #B20CE9;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  line-height: 1;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.error-popup-close:hover {
  background: #d17bf4;
  transform: scale(1.1);
}

/* Ecken für wanderndes X */
.error-popup-close.top-left {
  top: -15px;
  left: -15px;
}

.error-popup-close.top-right {
  top: -15px;
  right: -15px;
}

.error-popup-close.bottom-right {
  bottom: -15px;
  right: -15px;
}

.error-popup-close.bottom-left {
  bottom: -15px;
  left: -15px;
}

/* === PURCHASE NOTIFICATION POPUPS (Worst Practice) === */
.purchase-notification {
  position: fixed;
  bottom: 100px;
  left: 20px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 8888;
  animation: slideInLeft 0.5s ease;
  max-width: 320px;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.purchase-notification.hiding {
  animation: slideOutLeft 0.5s ease forwards;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-400px);
    opacity: 0;
  }
}

.purchase-notification-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.purchase-icon {
  font-size: 2em;
  filter: none;
}

.purchase-text {
  color: #fff;
  font-size: 0.9em;
  line-height: 1.4;
  text-align: left;
}

.purchase-text strong {
  color: #ffffff;
  font-weight: 700;
}

.purchase-product {
  color: #999;
  font-size: 0.85em;
  font-style: italic;
}

/* === NEWSLETTER POPUP (Worst Practice) === */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
  animation: popupFadeIn 0.8s ease;
  transition: opacity 3s ease, transform 3s ease;
}

.newsletter-popup.closing {
  animation: popupFadeOut 3s ease forwards;
}

.newsletter-popup-content {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.newsletter-popup-content h3 {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 1.8em;
  text-shadow: none;
}

.newsletter-popup-content p {
  color: #ccc;
  margin: 0 0 25px 0;
  font-size: 1.1em;
}

.newsletter-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Umgekehrte Psychologie: Nein-Button sieht aus wie Ja */
.newsletter-btn-yes {
  padding: 12px 24px;
  font-size: 1em;
  background: #2a2a2a;
  color: #ccc;
  border: 2px solid #444;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-btn-yes:hover {
  background: #333;
  border-color: #B20CE9;
  color: #fff;
}

.newsletter-btn-no {
  padding: 12px 24px;
  font-size: 1em;
  background: #2a2a2a;
  color: #ccc;
  border: 2px solid #444;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-btn-no:hover {
  background: #333;
  border-color: #B20CE9;
  color: #fff;
  box-shadow: 0 0 15px rgba(178, 12, 233, 0.3);
}

/* Long scrollable text popup */
.long-text-popup-content {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.long-text-popup-content h3 {
  color: #ffffff;
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 1.6em;
}

.long-text-scroll {
  overflow-y: auto;
  max-height: 400px;
  padding: 20px 30px 20px 20px;
  background: #0d0d0d;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #ccc;
  line-height: 1.8;
  scroll-behavior: auto;
}

/* Worst Practice: Scrollbar komplett verstecken */
.long-text-scroll::-webkit-scrollbar {
  display: none;
}

/* Firefox scrollbar verstecken */
.long-text-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.long-text-scroll h4 {
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 10px;
}

.long-text-scroll p {
  margin: 8px 0;
}

.long-text-close {
  padding: 14px 28px;
  font-size: 1.1em;
  background: #333;
  color: #666;
  border: 2px solid #444;
  border-radius: 10px;
  cursor: not-allowed;
  font-weight: 700;
  transition: all 0.3s ease;
}

.long-text-close.enabled {
  background: #B20CE9;
  color: #fff;
  border-color: #B20CE9;
  cursor: pointer;
  box-shadow: none;
}

.long-text-close.enabled:hover {
  background: #d17bf4;
  box-shadow: none;
}

/* Support Popup */
.support-popup-content {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.support-popup-content h3 {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 1.8em;
  text-shadow: none;
}

.support-close-btn {
  transition: all 0.3s ease;
}

.support-close-btn:hover:not(:disabled) {
  background: #d17bf4 !important;
  box-shadow: 0 0 20px #B20CE9;
}

/* === SUCCESS OVERLAY (Stage Completion Feedback) === */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: successFadeIn 0.3s ease-out;
}

.success-overlay.hiding {
  animation: successFadeOut 0.3s ease-out forwards;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes successFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.success-content {
  text-align: center;
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-checkmark {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  position: relative;
}

.success-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #B20CE9;
  box-shadow: 0 0 40px #B20CE9, 0 0 80px #B20CE970;
  position: relative;
  animation: successCirclePulse 1.5s ease-in-out infinite;
}

@keyframes successCirclePulse {
  0%, 100% {
    box-shadow: 0 0 40px #B20CE9, 0 0 80px #B20CE970;
  }
  50% {
    box-shadow: 0 0 60px #B20CE9, 0 0 120px #B20CE990;
  }
}

.success-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
}

.success-check svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: drawCheck 0.6s ease-out 0.2s forwards;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-text {
  color: #ffffff;
  font-size: 2em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px #B20CE9;
  margin: 0;
  animation: successTextGlow 1.5s ease-in-out infinite;
}

@keyframes successTextGlow {
  0%, 100% {
    text-shadow: 0 0 20px #B20CE9;
  }
  50% {
    text-shadow: 0 0 30px #B20CE9, 0 0 50px #B20CE970;
  }
}

/* === HEARTS OVERLAY (Like Spam) === */
.hearts-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10001;
  pointer-events: all;
  overflow: hidden;
  opacity: 0;
  animation: heartsOverlayFadeIn 0.5s ease-out 0.3s forwards;
}

.hearts-overlay.hiding {
  animation: heartsOverlayFadeOut 0.5s ease-out forwards;
}

@keyframes heartsOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heartsOverlayFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.floating-heart {
  position: absolute;
  font-size: 40px;
  color: #B20CE9;
  animation: floatHeart 4s ease-in-out forwards;
  pointer-events: none;
  filter: drop-shadow(0 0 15px #B20CE9);
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes floatHeart {
  0% {
    transform: translateY(100vh) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(50vh) scale(1.2) rotate(180deg);
    opacity: 0.7;
  }
  70% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(0.8) rotate(360deg);
    opacity: 0;
  }
}

/* Confusing Popup Styles */
.shitstagram-confusing-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
  padding: 20px;
}

.shitstagram-confusing-content {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.shitstagram-confusing-content h3 {
  color: #fff;
  font-size: 1.2em;
  margin: 0 0 16px 0;
  font-weight: 700;
}

.shitstagram-confusing-content p {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.shitstagram-confusing-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.shitstagram-confusing-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-width: 100px;
}

/* Worst Practice: Psychologically confusing colors */
/* "Nein" button in popup 1 - purple (looks like confirm) */
.shitstagram-confusing-yes {
  background: #B20CE9;
  color: white;
}

.shitstagram-confusing-yes:hover {
  background: #9c0bc7;
  transform: scale(1.05);
}

/* "Ja" button in popup 1 - gray (looks like cancel) */
.shitstagram-confusing-no {
  background: #555;
  color: white;
}

.shitstagram-confusing-no:hover {
  background: #444;
  transform: scale(1.05);
}

/* "Abbrechen" button (now says "Bestätigen") - gray but actually continues */
.shitstagram-confusing-cancel {
  background: #555;
  color: white;
}

.shitstagram-confusing-cancel:hover {
  background: #444;
  transform: scale(1.05);
}

/* "Bestätigen" button (now says "Abbrechen") - purple but actually cancels */
.shitstagram-confusing-confirm {
  background: #B20CE9;
  color: white;
}

.shitstagram-confusing-confirm:hover {
  background: #9c0bc7;
  transform: scale(1.05);
}

/* Second confirmation */
.shitstagram-confusing-final-yes {
  background: #555;
  color: white;
}

.shitstagram-confusing-final-yes:hover {
  background: #444;
  transform: scale(1.05);
}

.shitstagram-confusing-final-no {
  background: #B20CE9;
  color: white;
}

.shitstagram-confusing-final-no:hover {
  background: #9c0bc7;
  transform: scale(1.05);
}

/* Confusing Filter Menu */
.shitstagram-profile-filter-container {
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2a;
}

.shitstagram-filter-btn {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 50%;
  font-size: 1.3em;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shitstagram-filter-btn:hover {
  background: #2a2a2a;
}

.shitstagram-filter-dropdown {
  position: absolute;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-top: 8px;
  z-index: 1000;
  min-width: 320px;
  max-height: 500px;
  overflow-y: auto;
}

.shitstagram-filter-dropdown::-webkit-scrollbar {
  width: 8px;
}

.shitstagram-filter-dropdown::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 4px;
}

.shitstagram-filter-dropdown::-webkit-scrollbar-thumb {
  background: #B20CE9;
  border-radius: 4px;
}

.shitstagram-filter-dropdown::-webkit-scrollbar-thumb:hover {
  background: #9c0bc7;
}

.shitstagram-filter-menu {
  padding: 8px;
}

.shitstagram-filter-option {
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.shitstagram-filter-option:hover {
  background: #2a2a2a;
}

.shitstagram-filter-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  min-width: 220px;
  padding: 8px;
  margin-left: 8px;
  z-index: 1001;
  max-height: 300px;
  overflow-y: auto;
}

.shitstagram-filter-submenu::-webkit-scrollbar {
  width: 6px;
}

.shitstagram-filter-submenu::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 3px;
}

.shitstagram-filter-submenu::-webkit-scrollbar-thumb {
  background: #B20CE9;
  border-radius: 3px;
}

.shitstagram-filter-submenu::-webkit-scrollbar-thumb:hover {
  background: #B20CE9;
}

.shitstagram-filter-suboption {
  padding: 8px 10px;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  font-size: 0.9em;
}

.shitstagram-filter-suboption:hover {
  background: #2a2a2a;
}

.shitstagram-filter-nested {
  position: absolute;
  left: 100%;
  top: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  min-width: 200px;
  padding: 8px;
  margin-left: 8px;
  z-index: 1002;
  max-height: 250px;
  overflow-y: auto;
}

.shitstagram-filter-nested::-webkit-scrollbar {
  width: 6px;
}

.shitstagram-filter-nested::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 3px;
}

.shitstagram-filter-nested::-webkit-scrollbar-thumb {
  background: #B20CE9;
  border-radius: 3px;
}

.shitstagram-filter-nested::-webkit-scrollbar-thumb:hover {
  background: #B20CE9;
}

.shitstagram-filter-nestedoption {
  padding: 8px 10px;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  font-size: 0.85em;
}

.shitstagram-filter-nestedoption:hover {
  background: #2a2a2a;
}

.shitstagram-filter-deep {
  position: absolute;
  left: 100%;
  top: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  min-width: 180px;
  padding: 8px;
  margin-left: 8px;
  z-index: 1003;
  max-height: 200px;
  overflow-y: auto;
}

.shitstagram-filter-deep::-webkit-scrollbar {
  width: 6px;
}

.shitstagram-filter-deep::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 3px;
}

.shitstagram-filter-deep::-webkit-scrollbar-thumb {
  background: #B20CE9;
  border-radius: 3px;
}

.shitstagram-filter-deep::-webkit-scrollbar-thumb:hover {
  background: #B20CE9;
}

.shitstagram-filter-deepoption {
  padding: 6px 8px;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.8em;
}

.shitstagram-filter-deepoption:hover {
  background: #B20CE9;
}

/* === STAGE 2 PAUSE POPUP === */
.stage2-pause-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.stage2-pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stage2-pause-content {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 50px 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: popupSlideIn 0.4s ease-out;
  max-width: 450px;
}

.stage2-pause-continue-btn {
  background: #444;
  color: #fff;
  border: 1px solid #555;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.stage2-pause-continue-btn:hover {
  background: #555;
  border-color: #666;
  transform: translateY(-1px);
}

.stage2-pause-continue-btn:active {
  transform: translateY(0);
}

.stage2-pause-lock-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  cursor: pointer;
  user-select: none;
}

.stage2-pause-lock-toggle svg {
  color: #b20ce9;
  transition: color 0.3s ease;
}

.stage2-pause-lock-toggle.unlocked svg {
  color: #7f8082;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: #b20ce9;
  border-radius: 13px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.toggle-switch.active {
  background: #7f8082;
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
  transform: translateX(24px);
}

.stage2-pause-continue-btn {
  margin: 0 auto;
  display: block;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === STAGE 2 NOTIFICATIONS (linke Seite) === */
.stage2-notification {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: slideInLeft 0.4s ease-out;
}

.stage2-notification + .stage2-notification {
  bottom: auto;
  top: 20px;
}

.stage2-notification-icon {
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage2-notification-content {
  flex: 1;
  min-width: 0;
}

.stage2-notification-title {
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 4px;
}

.stage2-notification-text {
  color: #999;
  font-size: 0.85em;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage2-notification-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.stage2-notification-close:hover {
  background: #333;
  color: #fff;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}