/* #style.css */
/* Basis reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #fcb69f 0%, #ffecd2 100%);
    color: #333;
    min-height: 100vh;
  }
  
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Logo */
  .logo-top {
    font-style: italic;
    font-weight: bold;
    font-size: 1.5em;
    color: #e63946;
    text-decoration: none;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: center;
  }
  
  /* Container */
  .app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-align: center;
    max-width: 500px;
    width: 100%;
        height: calc(100vh - 72px); /* 72px is bijvoorbeeld de hoogte van je mobiele nav */

  }
  
  /* Kaart */
  .card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    width: 100%;
  }
  
  /* Vraag */
  .question-header {
    margin-bottom: 12px;
  }
  
  .category-badge {
    background: #fcd56d;
    padding: 5px 5px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: inline-block;
  }
  
  .spice-icons {
    font-size: 1.3rem;
    margin-bottom: 10px;
    opacity: 0.85;
  }
  
  .question-body p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
  }
  
  /* Mobiele navigatie */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  .nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Knoppen */
  .btn, .btn-modern {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .btn:hover, .btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .round-btn {
    width: 44px;
    height: 44px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .round-btn:hover {
    background: #e0e0e0;
  }
  
  /* Counter animatie */
  @keyframes counterIncrease {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
  }
  
  .counter {
    font-size: 0.9rem;
    color: #666;
  }
  
  .counter.increase {
    animation: counterIncrease 0.5s ease-in-out;
  }
  
  /* Settings modal */
  .settings-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }
  
  .settings-popup.show {
    display: flex;
  }
  
  .settings-form {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .settings-form h3 {
    margin-top: 0;
    text-align: center;
    color: #e63946;
    font-size: 1.5rem;
  }
  
  .settings-form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
  }
  
  .settings-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .popup-actions {
    margin-top:15px;
  }
  
  /* Spice-levels */
  .spice-levels {
    display: flex;
    gap: 10px;
    justify-content: left;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  
  .spice-levels label {
    background: #f1f1f1;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: left;
  }
  
  .spice-levels label:hover {
    background: #e4e4e4;
  }
  
  .spice-levels label.active {
    border: 2px solid green;
    background: #f2f2f2; /* zelfde als de basisachtergrond */
    color: #e63946;
    font-weight: bold;
  }

  h3 {color: #e63946;
margin-bottom:15px;
text-align:left;}
  
  .spice-levels label.active:hover {
    background: #eaeaea;
  }

  .spice-levels input {
    display: none;
  }
  
  /* Categoriekaarten */
  .category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 8px;
    margin-top: 8px;
  }
  
  .category-card {
    background: #eee;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
  }

  .category-card.active {
    background: #eee; /* zelfde als standaard */
    color: #e63946;
    border: 2px solid green;
    font-weight:bold;
  }

  .category-card.active:hover {
    background: #e0e0e0;
    font-weight:bold;
  }

  .player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .remove-player {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
  }
  
  .remove-player:hover {
    color: #e63946;
  }

  .light-btn {
    background: #f4f4f4;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    transition: background 0.2s ease;
    margin-top: 10px;
  }
  
  .light-btn:hover {
    background: #e0e0e0;
  }

  .btn-cancel {
    background: #f4f4f4;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .section{
    margin-top:15px;
  }
  .btn-cancel:hover {
    background: #e0e0e0;
  }
  
  .btn-confirm {
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .btn-confirm:hover {
    background: #c92c3b;
  }

  /* Uniforme invoervelden voor spelers */
.player-row input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    transition: border 0.2s ease;
  }
  
  .player-row input[type="text"]:focus {
    outline: none;
    border-color: #e63946;
  }
  
  /* Nettere verwijderknop naast speler */
  .remove-player {
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s ease;
  }
  
  .remove-player:hover {
    color: #e63946;
  }
  
  /* Betere knop voor speler toevoegen */
  .btn-add-player {
    background: #f4f4f4;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    transition: background 0.2s ease;
    margin-top: 10px;
  }
  
  .btn-add-player:hover {
    background: #e0e0e0;
  }

  .vote-bar {
    margin: 16px auto 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  
  .vote-btn {
    font-size: 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    opacity: 0.6;
  }
  
  .vote-btn.active {
    transform: scale(1.2);
    opacity: 1;
  }

  .text-link {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin: 0 0 4px 0;
  }
  .text-link:hover {
    color: #e63946;
  }

  .sortable {
  cursor: pointer;
  user-select: none;
}

.sortable::after {
  content: " ⬍";
  font-size: 0.8em;
  color: #999;
}

.sortable.sorted-asc::after {
  content: " 🔼";
}

.sortable.sorted-desc::after {
  content: " 🔽";
}

.floating-add-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
  }
  
  .floating-add-btn:hover {
    background-color: #218838;
  }
  body {
    font-family: 'Segoe UI', sans-serif;
    background: #fff5f4;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
  }

  .error-container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 400px;
  }

  .error-container h1 {
    font-size: 1.5rem;
    color: #e63946;
    margin-bottom: 10px;
  }

  .error-container p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
  }

  .error-container a {
    text-decoration: none;
    background: #e63946;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
  }

  .error-container a:hover {
    background: #c9303a;
  }

  .navbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }
  
  .navbar .logo {
    font-weight: bold;
    font-size: 1.3em;
    color: #e63946;
    text-decoration: none;
  }
  .navbar ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
  }
  .navbar ul li a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
  }
  .navbar ul li a.current {
    background-color: #fcebea;
    color: #e63946;
  }
  .navbar .dashboard-icon {
    background: #fcebea;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e63946;
    font-size: 1.1em;
  }
  @media (max-width: 600px) {
    .navbar ul {
      flex-direction: column;
      gap: 10px;
    }
  }

  .navbar {
    background: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .nav-left {
    font-weight: bold;
    font-size: 1.2em;
  }
  
  .nav-logo {
    text-decoration: none;
    color: #333;
  }
  
  .nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
  }
  
  .nav-link:hover {
    background: #f5f5f5;
  }
  
  .nav-link.active {
    background: #ba979d;
    color: white;
  }
  
  .nav-icon-link {
    text-decoration: none;
  }
  
  .dashboard-icon {
    background: #eee;
    padding: 8px;
    border-radius: 50%;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
  }
  
  /* Mobiel */
  @media (max-width: 768px) {
    .nav-menu {
      display: none;
      flex-direction: column;
      background: white;
      position: absolute;
      top: 60px;
      right: 20px;
      border: 1px solid #ddd;
      box-shadow: 0 4px 8px rgba(0,0,0,0.05);
      padding: 10px;
      border-radius: 12px;
    }
  
    .nav-menu.show {
      display: flex;
    }
  
    .nav-toggle {
      display: block;
    }
  }

  .cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
  }
  .cat-toggle span {
    font-weight: 500;
  }
  .cat-toggle small {
    color: #666;
    margin-left: 8px;
    flex: 1;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    text-align:right;
    width: 36px;
    height: 20px;
    margin-right: 10px;
    right:0px;
  }
  .switch input {
    opacity: 0;
    width: 0; 
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: .4s;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 3px; top: 3px;
    background: white;
    border-radius: 50%;
    transition: .4s;
  }
  input:checked + .slider {
    background: #4caf50;
  }
  input:checked + .slider:before {
    transform: translateX(16px);
  }
  
  .spice-chooser {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .spice-opt {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
  }
  .spice-opt input {
    margin-right: 4px;
  }
  .spice-opt:hover {
    background: #f0f0f0;
  }
  
  .grey-btn {
    background: #ccc;
    color: #333;
  }

/* Verberg standaard de instellingenpopup */
.hidden {
  display: none !important;
}

/* Voor de modal */
.settings-popup.hidden {
  display: none;
}
.settings-popup.show {
  display: flex;
}

.cat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.cat-card-left {
  text-align: left;
  flex: 1;
}

.cat-title {
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

.cat-desc {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

.cat-card-right {
  margin-left: 12px;
  display: flex;
  align-items: center;
}

/* Zorg dat switch netjes gecentreerd is */
.cat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.cat-card-left {
  flex: 1;
  text-align: left;
}

.cat-title {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.cat-desc {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.cat-card-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Maak de switch wat groter en moderner */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

.switch input:checked + .slider {
  background-color: #4caf50;
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}
.settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: #f9f9f9;
  border-radius: 0.375rem; /* afgeronde hoeken */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.settings-btn:hover {
  background-color: rgba(0, 0, 0, 0.05); /* subtiele hover */
}

.settings-btn i {
  width: 1.25rem;  /* 20px */
  height: 1.25rem;
  color: #4B5563;  /* Tailwind: text-gray-600 */
}

.question-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 20px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  gap: 12px;
}

.footer-buttons {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.footer-btn i {
  width: 16px;
  height: 16px;
}

.next-btn {
  background: #e63946;
  color: white;
}

.grey-btn {
  background: #eee;
  color: #333;
}

.spicy-text {
  margin-bottom:8px;
  text-align: left;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.player-row input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border 0.2s ease;
}

.player-row input[type="text"]:focus {
  outline: none;
  border-color: #e63946;
}

.remove-player {
  background: transparent;
  border: none;
  color: #bbb;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  transition: color 0.2s ease;
}

.remove-player:hover {
  color: #e63946;
}

.section {
  margin-top: 15px;
}

.light-btn {
  background: #f4f4f4;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  transition: background 0.2s ease;
  margin-top: 10px;
}

.light-btn:hover {
  background: #e0e0e0;
}

body.index-page .app-container {
  padding-bottom: 80px;
}

/* Vaste onderbalk zoals in play.php */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

/* Rechts uitgelijnde startknop */
.next-btn {
  display: inline-flex;
  align-items: center;
  background: #e63946;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.next-btn:hover {
  background: #c92c3b;
}

.next-btn .icon {
  width: 18px;
  height: 18px;
}

.spice-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.spice-card-left {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  text-align: left;
}

.spice-icon {
  width: 42px;
  height: 42px;
  background: #fcebea;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4em;
  color: #e63946;
  flex-shrink: 0;
}

.spice-title {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.spice-card {
  cursor: pointer;
}


.spice-desc {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.spice-card-right {
  margin-left: 12px;
  right:0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-close {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f4f4f4;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.settings-close:hover {
  background: #e0e0e0;
}

.spice-card.active {
  border: 1.5px solid green;
}

.spice-card {
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  width: 100%;
}

.spice-card:hover {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.tab-header {
  display: flex;
  justify-content: space-around;
  margin-bottom: 18px;
  border-bottom: 1px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #e63946;
}

.tab-btn.active {
  color: #e63946;
  border-color: #e63946;
  font-weight: bold;
}

.tab-content.hidden {
  display: none;
}


.tab-nav-arrows {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tab-nav-arrows button {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #e63946;
  cursor: pointer;
}


    /* Spicyness uitleg tabel */
    .spice-table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      margin-top: 10px;
    }
    
    .spice-table th {
      background: #f7f7f7;
      color: #444;
      padding: 10px;
      font-size: 0.95rem;
      border-bottom: 1px solid #ddd;
    }
    
    .spice-table td {
      padding: 10px;
      font-size: 0.95rem;
      color: #555;
      border-bottom: 1px solid #f0f0f0;
    }
    
    .spice-table tr:last-child td {
      border-bottom: none;
    }
    
    .spice-table td:first-child {
      width: 60px;
      text-align: center;
      font-size: 1.1rem;
    }
    
    .example-link a {
      color: #888;
      text-decoration: underline;
      font-size: 0.9rem;
      margin-left: 6px;
      cursor: pointer;
    }
    
    .example-link a:hover {
      color: #e63946;
    }
        .form-card {
          background: #fff;
          border-radius: 20px;
          box-shadow: 0 6px 18px rgba(0,0,0,0.1);
          padding: 24px;
          max-width: 500px;
          width: 100%;
          text-align: center;
        }
        .form-card h2 {
          font-size: 1.5rem;
          margin-bottom: 16px;
          color: #e63946;
        }
        textarea {
          width: 100%;
          padding: 14px;
          border-radius: 12px;
          border: 1px solid #ccc;
          font-size: 1rem;
          margin-bottom: 10px;
          resize: none;
          height: 100px;
        }
        .example-link {
          font-size: 0.9rem;
          color: #777;
          margin-top: 4px;
          display: block;
          margin-bottom: 10px;
        }
        .category-grid, .spice-levels {
          display: flex;
          justify-content: center;
          gap: 10px;
          flex-wrap: wrap;
          margin-bottom: 20px;
        }
        .category-card, .spice-btn {
          background: #eee;
          padding: 10px 16px;
          border-radius: 12px;
          cursor: pointer;
          transition: all 0.2s ease;
          border: 2px solid transparent;
          font-weight: bold;
        }
        .category-card.active, .spice-btn.active {
          background: #e63946;
          color: white;
          border-color: #c92c3b;
        }
        .category-card input, .spice-btn input {
          display: none;
        }
        .btn-confirm {
          background: #e63946;
          color: white;
          border: none;
          padding: 12px 24px;
          font-size: 1rem;
          border-radius: 12px;
          cursor: pointer;
          margin-top: 10px;
        }
        .btn-confirm:hover {
          background: #c92c3b;
        }
        .btn-secondary {
          background: #f4f4f4;
          color: #444;
          border: 1px solid #ccc;
          padding: 10px 16px;
          border-radius: 10px;
          font-size: 0.95rem;
          margin-top: 12px;
          display: inline-block;
          text-decoration: none;
        }
        .btn-secondary:hover {
          background: #e9e9e9;
        }
        .success-message {
          color: green;
          font-weight: bold;
          margin-bottom: 16px;
        }
        .error-message {
          color: #e63946;
          font-weight: bold;
          margin-bottom: 16px;
        }
    
        .expand-link {
      font-size: 0.95rem;
      color: #555;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      text-align: left;
      display: inline-block;
      font-weight: 500;
      transition: color 0.2s ease;
    }
    
    .expand-link:hover {
      color: #e63946;
      text-decoration: none;
    }

    .spice-card {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      border: 1px solid #eee;
      border-radius: 12px;
      background: #fff;
      margin-bottom: 6px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .spice-card-left {
      display: flex;
      gap: 14px;
      align-items: center;
      flex: 1;
    }
    .spice-card-right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
    

    .nav-profile {
      margin-left: 16px;
    }
    
    .avatar-img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #eee;
    }
    
    .upsell-container {
      max-width: 400px;
      margin: 40px auto;
      padding: 30px;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      text-align: center;
      font-family: 'Inter', sans-serif;
    }
    
    .upsell-container h2 {
      font-size: 24px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    
    .upsell-container p {
      font-size: 16px;
      color: #444;
      margin-bottom: 20px;
    }
    
    .upsell-container input[type="text"],
    .upsell-container input[type="email"],
    .upsell-container input[type="password"] {
      width: 100%;
      padding: 12px;
      margin: 8px 0;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 14px;
    }
    
    .upsell-container button {
      background-color: #e63946;
      color: #fff;
      border: none;
      padding: 12px 18px;
      border-radius: 8px;
      font-weight: 600;
      margin-top: 10px;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    
    .upsell-container button:hover {
      background-color: #d62839;
    }
    
    .upsell-container .login-link {
      margin-top: 16px;
      font-size: 14px;
      color: #555;
    }
    
    .upsell-container .login-link a {
      color: #e63946;
      text-decoration: none;
      font-weight: 600;
    }
    
    .upsell-features {
      margin-top: 30px;
      border-top: 1px solid #eee;
      padding-top: 20px;
      text-align: left;
    }
    
    .upsell-features li {
      list-style: none;
      padding: 8px 0;
      font-size: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .upsell-features li::before {
      content: '✅';
      font-size: 16px;
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
    }
    
    .modal-card {
      background: #fff;
      padding: 2rem;
      border-radius: 16px;
      max-width: 400px;
      width: 100%;
      text-align: center;
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    
    .modal-card h2 {
      font-size: 1.5rem;
      margin-bottom: 0.75rem;
    }
    
    .modal-card p {
      font-size: 1rem;
      margin-bottom: 1rem;
    }
    
    .modal-card input {
      width: 100%;
      margin: 0.5rem 0;
      padding: 0.75rem;
      border: 1px solid #ccc;
      border-radius: 8px;
    }
    
    .modal-card button {
      width: 100%;
      padding: 0.75rem;
      background: #e73c7e;
      color: white;
      border: none;
      border-radius: 8px;
      font-weight: bold;
      margin-top: 1rem;
      cursor: pointer;
      transition: 0.2s ease;
    }
    
    .modal-card button:hover {
      background: #d93271;
    }
    
    .switch-login {
      margin-top: 0.5rem;
    }
    
    .usp-list {
      text-align: left;
      margin-top: 1.5rem;
      padding-left: 0;
      list-style: none;
    }
    
    .usp-list li {
      margin: 0.5rem 0;
      font-size: 0.95rem;
    }
    