/* Base reset */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #111111;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-shapes .shape,
.bg-shapes .ellipse {
  position: absolute;
}

.bg-shapes .ellipse {
  border-radius: 50%;
}

.shape-a {
  width: 1552px;
  height: 2288px;
  left: 560px;
  top: -223px;
  filter: blur(37.5px);
  background: radial-gradient(50% 50% at 50% 50%, #c5dcf8 0%, rgba(197, 220, 248, 0) 70%);
}

.ellipse-a1 {
  width: 864px;
  height: 1328px;
  left: 593.22px;
  top: -237.57px;
  transform: rotate(-15.46deg);
  background: radial-gradient(50% 50% at 50% 50%, #c5dcf8 0%, rgba(197, 220, 248, 0) 70%);
}

.ellipse-a2 {
  width: 1656px;
  height: 1080px;
  left: 531.22px;
  top: -109.57px;
  transform: rotate(-27.37deg);
  background: radial-gradient(50% 50% at 50% 50%, #c5dcf8 0%, rgba(197, 220, 248, 0) 70%);
}

.shape-b {
  width: 1232px;
  height: 2180px;
  left: -13px;
  top: -216px;
  filter: blur(37.5px);
  background: radial-gradient(50% 50% at 50% 50%, #f4c6dc 0%, rgba(244, 198, 220, 0) 70%);
}

.ellipse-b1 {
  width: 1092px;
  height: 1328px;
  left: -13px;
  top: -216px;
  background: radial-gradient(50% 50% at 50% 50%, #f4c6dc 0%, rgba(244, 198, 220, 0) 70%);
}

.ellipse-b2 {
  width: 680px;
  height: 1328px;
  left: 63.66px;
  top: -97.67px;
  background: radial-gradient(50% 50% at 50% 50%, #f4c6dc 0%, rgba(244, 198, 220, 0) 70%);
}

.site-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  position: relative;
  z-index: 1;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 70px;
  width: auto;
  display: block;
}

.balls {  
  z-index: 2;
  pointer-events: auto;
}

.controller-page .balls {
  position: fixed;
  left: 2%;
  right: 0%;
  top: 120px;     /* below header */
  bottom: -64px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);     /* fill columns left-to-right */
  grid-auto-columns: 1fr;     /* each implicit column shares width */
  grid-template-rows: repeat(8, minmax(0, 1fr)); /* 6 rows */
  column-gap: 32px;
  row-gap: 108px;
}

/* Site header */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 0 24px;
  z-index: 10;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  height: 70px;
  width: auto;
}

.admin-button {
  position: absolute;
  left: 24px;
  top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #ccf631;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.admin-button:hover {
  background: #eaff9e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.admin-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.admin-button--disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
  box-shadow: none;
}

.admin-main {
  padding: 120px 24px 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
  color: #111111;
  position: relative;
  z-index: 2;
}

.admin-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 32px 32px 28px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.admin-title {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 800;
}

.admin-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.admin-section-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #ff551d;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.admin-field-group {
  flex: 1 1 260px;
  min-width: 260px;
}

.admin-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
}

.admin-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-select,
.admin-input {
  flex: 1 1 auto;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 8px 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.admin-select:focus,
.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: #ff551d;
}

.admin-textarea {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 8px 10px;
  font-size: 14px;
  box-sizing: border-box;
  resize: vertical;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin-top: 16px;
}

.admin-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Admin idea mode toggle */
.admin-idea-mode {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-idea-mode-button {
  flex: 0 0 auto;
}

.admin-idea-mode-button--active {
  background: rgba(255, 86, 29, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 86, 29, 0.6);
}

.admin-idea-select-group {
  flex: 1 1 220px;
  max-width: 320px;
}

.admin-idea-select-group .admin-select {
  width: 100%;
}

.admin-idea-import-button {
  margin-left: auto;
}

/* Admin CSV import */
.admin-import-text {
  margin: 4px 0 12px 0;
  font-size: 14px;
  color: #555555;
}

.admin-import-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 4px;
  border-radius: 4px;
}

.admin-import-row {
  align-items: stretch;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-import-file-input {
  display: none;
}

.admin-import-file-label {
  flex: 1 1 auto;
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #f8f8f8;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.admin-import-file-label:hover {
  border-color: #ff551d;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 86, 29, 0.3);
}

.admin-import-file-label::after {
  content: 'Bladeren...';
  font-weight: 600;
  font-size: 13px;
  padding-left: 12px;
  color: #ff551d;
}

.admin-primary-button,
.admin-secondary-button {
  border-radius: 10px;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.admin-primary-button {
  background: rgba(255, 86, 29, 0.8);
  color: #111111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.admin-primary-button:hover {
  background: rgba(255, 86, 29, 1);
  transform: translateY(-1px);
}

.admin-primary-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.admin-secondary-button {
  background: #f0f0f0;
  color: #111111;
}

.admin-secondary-button:hover {
  background: #e2e2e2;
  transform: translateY(-1px);
}

.admin-secondary-button:active {
  transform: translateY(0);
}

.admin-status {
  font-size: 13px;
  color: #555555;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  padding: 24px 24px 20px 24px;
}

.admin-modal-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
}

.admin-modal-text {
  margin: 0 0 14px 0;
  font-size: 14px;
  color: #555555;
}

.admin-modal-buttons {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Admin login specific styling */
#admin-login-modal .admin-modal-content {
  max-width: 520px;
  padding: 40px 36px 28px 36px;
}

#admin-login-modal .admin-modal-title {
  text-align: center;
  margin-bottom: 4px;
}

#admin-login-modal .admin-modal-text {
  text-align: center;
  margin-bottom: 24px;
}

#admin-login-modal .admin-input {
  width: 100%;
  margin-bottom: 10px;
}

#admin-login-error {
  margin-top: 4px;
  min-height: 18px;
  font-size: 13px;
}

#admin-login-modal .admin-modal-buttons {
  margin-top: 20px;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .admin-panel {
    padding: 24px 18px 20px 18px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.branch-selector {
  position: absolute;
  right: 24px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.branch-label {
  font-size: 14px;
  font-weight: 600;
  color: #555555;
}

.branch-select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.branch-select:focus {
  outline: none;
}

.info-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 180px;
  max-width: 1400px;
  width: min(96vw, 1400px);
  text-align: center;
  color: #111111;
  z-index: 1;
  padding: 0 60px;
}

.info-number {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #111111;
}

.info-category {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #ff551d;
}

.info-title {
  font-size: 50px;
  font-weight: 800;
  margin: 0 0 42px 0;
  color: #111111;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.2fr 1.4fr; /* left | slimmer center | right */
  gap: 20px 40px;
  text-align: left;
  justify-items: start;
}

.info-section h3 {
  margin: 0 0 8px 0;
  font-size: 36px;
  font-weight: 800;
}

.info-grid .info-section:nth-of-type(1),
.info-grid .info-section:nth-of-type(3) {
  grid-column: 1; /* left column */
}

.info-grid .info-section:nth-of-type(2),
.info-grid .info-section:nth-of-type(4) {
  grid-column: 3; /* right column */
}

.info-section ul {
  margin: 0;
  padding-left: 18px;
  font-size: 24px;
}

.info-section ul.single-item {
  list-style: none;
  padding-left: 0;
}

.info-section li {
  margin: 4px 0;
}

@media (max-width: 800px) {
  .info-panel {
    bottom: 200px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.ball {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  background: #ff551d;
  color: #ffffff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 600;
  user-select: none;
  touch-action: manipulation;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ball:hover {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.ball.is-selected {
  background: #ccf631;
  color: #111111;
}

/* Auto button explicit states (clarity) */
.auto-ball:hover {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.auto-ball.is-selected {
  background: #ccf631;
  color: #111111;
}

.categories-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 280px;
  max-width: 1800px;
  width: min(96vw, 1800px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 90px;
  padding: 0 60px;
  z-index: 1;
  /* Alleen categorieën scrollen binnen hun eigen veld */
  max-height: calc(100vh - 360px); /* ruimte laten voor header + CTA knop */
  overflow-y: auto;
}

/* Scrollbar verbergen maar wel laten werken */
.categories-container {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge legacy */
}

.categories-container::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.category-btn {
  padding: 24px 20px;
  background: #ffffff00;
  border: 3px solid #ff551d;
  color: #111111;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  text-align: center;
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  word-wrap: break-word;
}

.category-btn:hover {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  transform: translateY(-3px);
  background: #e64a1a;
}

.category-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .categories-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .categories-container {
    grid-template-columns: repeat(2, 1fr);
    top: 120px;
    padding: 0 20px;
  }
  
  .category-btn {
    font-size: 16px;
    padding: 20px 16px;
    height: 90px;
  }
}

@media (max-width: 500px) {
  .categories-container {
    grid-template-columns: 1fr;
  }
}

.first-mover-button-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.first-mover-button {
  background: #ccf631;
  color: #111111;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.first-mover-button:hover {
  background: #eaff9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.first-mover-button:active {
  transform: translateY(0);
}

@media (max-width: 800px) {
  .first-mover-button-container {
    bottom: 20px;
    right: 20px;
  }
  
  .first-mover-button {
    font-size: 18px;
    padding: 12px 24px;
  }
}

.category-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.category-modal[hidden] {
  display: none !important;
}

.category-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.category-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 2px solid #f0f0f0;
}

.category-modal-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #111111;
}

.category-modal-close {
  background: none;
  border: none;
  font-size: 40px;
  color: #666666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
}

.category-modal-close:hover {
  color: #111111;
}

.category-tools-list {
  list-style: none;
  margin: 0;
  padding: 24px 32px;
}

.category-tools-list li {
  padding: 16px 0;
  font-size: 20px;
  color: #111111;
  border-bottom: 1px solid #f0f0f0;
}

.category-tools-list li:last-child {
  border-bottom: none;
}

@media (max-width: 800px) {
  .category-modal-content {
    max-width: 95vw;
  }
  
  .category-modal-header {
    padding: 20px 24px;
  }
  
  .category-modal-title {
    font-size: 24px;
  }
  
  .category-tools-list {
    padding: 20px 24px;
  }
  
  .category-tools-list li {
    font-size: 18px;
    padding: 12px 0;
  }
}

.tool-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.tool-detail-modal[hidden] {
  display: none !important;
}

.tool-detail-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.idea-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 40px 20px;
  box-sizing: border-box;
}

.idea-wrapper .tool-detail-modal-content {
  max-height: none;
  overflow: visible;
}

.tool-detail-modal-header {
  padding: 32px 40px;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.tool-detail-id-link {
  position: absolute;
  top: 32px;
  right: 180px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: #555555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.tool-detail-id-link:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
  transform: translateY(-1px);
}

.tool-detail-admin-edit-button {
  position: absolute;
  top: 32px;
  right: 72px;
  border: none;
  background: transparent;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 120ms ease, color 120ms ease;
}

.tool-detail-admin-edit-button:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.tool-detail-category {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #ff551d;
}

.tool-detail-title {
  font-size: 50px;
  font-weight: 800;
  margin: 0;
  color: #111111;
}

.tool-detail-rating-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.tool-detail-rating-label {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
}

.tool-detail-want-button {
  background: #ccf631;
  color: #111111;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
  white-space: nowrap;
}

.tool-detail-want-button:hover {
  background: #eaff9e;
}

.tool-detail-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tool-detail-stars .star {
  font-size: 32px;
  color: #cccccc;
  cursor: pointer;
  transition: color 120ms ease, transform 120ms ease;
  user-select: none;
}

.tool-detail-stars .star:hover {
  transform: scale(1.1);
}

.tool-detail-stars .star.active {
  color: #ffd700;
}

.tool-detail-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 40px;
  color: #666666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
}

.tool-detail-modal-close:hover {
  color: #111111;
}

.tool-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.2fr 1.4fr;
  gap: 20px 40px;
  text-align: left;
  justify-items: start;
  padding: 40px;
}

.tool-detail-section h3 {
  margin: 0 0 8px 0;
  font-size: 36px;
  font-weight: 800;
}

.tool-detail-grid .tool-detail-section:nth-of-type(1),
.tool-detail-grid .tool-detail-section:nth-of-type(3) {
  grid-column: 1;
}

.tool-detail-grid .tool-detail-section:nth-of-type(2),
.tool-detail-grid .tool-detail-section:nth-of-type(4) {
  grid-column: 3;
}

.tool-detail-section ul {
  margin: 0;
  padding-left: 18px;
  font-size: 24px;
}

.tool-detail-section ul.single-item {
  list-style: none;
  padding-left: 0;
}

.tool-detail-section li {
  margin: 4px 0;
}

.tool-detail-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 40px;
  border-top: 2px solid #f0f0f0;
  gap: 20px;
}

.tool-nav-button {
  background: transparent;
  color: #111111;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 120ms ease;
}

.tool-nav-button[hidden] {
  display: none !important;
}

.tool-nav-button:hover {
  opacity: 0.6;
}

.tool-nav-button:active {
  opacity: 0.4;
}

.tool-nav-prev {
  justify-self: start;
}

.tool-nav-next {
  justify-self: end;
}

.tool-detail-rating-container {
  grid-column: 2;
}

.tool-nav-arrow {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 800px) {
  .tool-detail-modal-content {
    max-width: 95vw;
  }
  
  .tool-detail-modal-header {
    padding: 20px 24px;
  }
  
  .tool-detail-category {
    font-size: 24px;
  }
  
  .tool-detail-title {
    font-size: 32px;
  }
  
  .tool-detail-grid {
    grid-template-columns: 1fr;
    padding: 20px 24px;
  }
  
  .tool-detail-grid .tool-detail-section {
    grid-column: 1 !important;
  }
  
  .tool-detail-section h3 {
    font-size: 28px;
  }
  
  .tool-detail-section ul {
    font-size: 20px;
  }
  
  .tool-detail-navigation {
    flex-direction: column;
    align-items: center;
  }
  
  .tool-nav-prev {
    order: 1;
  }
  
  .tool-nav-next {
    order: 2;
  }
  
  .tool-detail-rating-container {
    order: 3;
    width: 100%;
    margin-top: 20px;
  }
  
  .tool-detail-want-button {
    font-size: 18px;
    padding: 12px 24px;
  }
  
  .tool-detail-stars .star {
    font-size: 28px;
  }
  
  .tool-detail-navigation {
    padding: 20px 24px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .tool-detail-rating-container {
    grid-column: 1;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tool-nav-arrow {
    font-size: 40px;
  }
  
  .tool-nav-prev,
  .tool-nav-next {
    margin: 0;
  }
}

.email-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  padding: 20px;
}

.email-modal[hidden] {
  display: none !important;
}

.email-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.email-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 2px solid #f0f0f0;
}

.email-modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #111111;
}

.email-modal-close {
  background: none;
  border: none;
  font-size: 40px;
  color: #666666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
}

.email-modal-close:hover {
  color: #111111;
}

.email-modal-body {
  padding: 32px;
}

.email-modal-text {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #111111;
}

.email-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: border-color 120ms ease;
}

.email-input:focus {
  outline: none;
  border-color: #ff551d;
}

.email-submit-button {
  width: 100%;
  background: rgba(255, 86, 29, 0.4);
  color: #111111;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}

.email-submit-button:hover {
  background: rgba(255, 86, 29, 0.6);
}

@media (max-width: 800px) {
  .email-modal-content {
    max-width: 95vw;
  }
  
  .email-modal-header {
    padding: 20px 24px;
  }
  
  .email-modal-body {
    padding: 24px;
  }
  
  .email-modal-title {
    font-size: 20px;
  }
}

.rating-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  padding: 20px;
}

.rating-modal[hidden] {
  display: none !important;
}

.rating-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.rating-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 2px solid #f0f0f0;
}

.rating-modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #111111;
}

.rating-modal-close {
  background: none;
  border: none;
  font-size: 40px;
  color: #666666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
}

.rating-modal-close:hover {
  color: #111111;
}

.rating-modal-body {
  padding: 24px 32px 32px 32px;
}

.rating-modal-text {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #111111;
}

.rating-modal-stars {
  margin-bottom: 16px;
}

.rating-comment-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: border-color 120ms ease;
}

.rating-comment-input:focus {
  outline: none;
  border-color: #ff551d;
}

.rating-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.rating-modal-button {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.rating-modal-button.rating-modal-cancel {
  background: #f0f0f0;
  color: #111111;
}

.rating-modal-button.rating-modal-cancel:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.rating-modal-button.rating-modal-save {
  background: rgba(255, 86, 29, 0.4);
  color: #111111;
}

.rating-modal-button.rating-modal-save:hover {
  background: rgba(255, 86, 29, 0.6);
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .rating-modal-content {
    max-width: 95vw;
  }

  .rating-modal-header {
    padding: 20px 20px 16px 20px;
  }

  .rating-modal-body {
    padding: 16px 20px 24px 20px;
  }
}

.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  padding: 20px;
}

.success-modal[hidden] {
  display: none !important;
}

.success-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 48px 40px;
  text-align: center;
  position: relative;
}

.success-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ccf631;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  margin: 0 auto 24px;
  line-height: 1;
}

.success-modal-title {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 800;
  color: #111111;
}

.success-modal-message {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #111111;
  line-height: 1.5;
}

.success-modal-instruction {
  margin: 0 0 32px 0;
  font-size: 16px;
  color: #666666;
  line-height: 1.5;
}

.success-modal-button {
  width: 100%;
  background: rgba(255, 86, 29, 0.4);
  color: #111111;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.success-modal-button:hover {
  background: rgba(255, 86, 29, 0.6);
  transform: translateY(-2px);
}

.success-modal-button:active {
  transform: translateY(0);
}

@media (max-width: 800px) {
  .success-modal-content {
    max-width: 95vw;
    padding: 40px 24px;
  }
  
  .success-modal-icon {
    width: 64px;
    height: 64px;
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .success-modal-title {
    font-size: 24px;
  }
  
  .success-modal-message {
    font-size: 18px;
  }
  
  .success-modal-instruction {
    font-size: 14px;
  }
  
  .success-modal-button {
    font-size: 16px;
    padding: 14px 20px;
  }
}

.confirm-change-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1004;
  padding: 20px;
}

.confirm-change-modal[hidden] {
  display: none !important;
}

.confirm-change-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  text-align: center;
  position: relative;
}

.confirm-change-modal-title {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 800;
  color: #111111;
}

.confirm-change-modal-message {
  margin: 0 0 32px 0;
  font-size: 18px;
  color: #111111;
  line-height: 1.5;
}

.confirm-change-modal-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.confirm-change-button {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.confirm-change-button.confirm-yes {
  background: rgba(255, 86, 29, 0.4);
  color: #111111;
}

.confirm-change-button.confirm-yes:hover {
  background: rgba(255, 86, 29, 0.6);
  transform: translateY(-2px);
}

.confirm-change-button.confirm-no {
  background: #f0f0f0;
  color: #111111;
}

.confirm-change-button.confirm-no:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.confirm-change-button:active {
  transform: translateY(0);
}

@media (max-width: 800px) {
  .confirm-change-modal-content {
    max-width: 95vw;
    padding: 32px 24px;
  }
  
  .confirm-change-modal-title {
    font-size: 24px;
  }
  
  .confirm-change-modal-message {
    font-size: 16px;
  }
  
  .confirm-change-button {
    font-size: 16px;
    padding: 12px 20px;
  }
}

.cancelled-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1005;
  padding: 20px;
}

.cancelled-modal[hidden] {
  display: none !important;
}

.cancelled-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 48px 40px;
  text-align: center;
  position: relative;
}

.cancelled-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ff551d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  margin: 0 auto 24px;
  line-height: 1;
}

.cancelled-modal-title {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 800;
  color: #111111;
}

.cancelled-modal-message {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #111111;
  line-height: 1.5;
}

.cancelled-modal-instruction {
  margin: 0 0 32px 0;
  font-size: 16px;
  color: #666666;
  line-height: 1.5;
}

.cancelled-modal-button {
  width: 100%;
  background: rgba(255, 86, 29, 0.4);
  color: #111111;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.cancelled-modal-button:hover {
  background: rgba(255, 86, 29, 0.6);
  transform: translateY(-2px);
}

.cancelled-modal-button:active {
  transform: translateY(0);
}

@media (max-width: 800px) {
  .cancelled-modal-content {
    max-width: 95vw;
    padding: 40px 24px;
  }
  
  .cancelled-modal-icon {
    width: 64px;
    height: 64px;
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .cancelled-modal-title {
    font-size: 24px;
  }
  
  .cancelled-modal-message {
    font-size: 18px;
  }
  
  .cancelled-modal-instruction {
    font-size: 14px;
  }
  
  .cancelled-modal-button {
    font-size: 16px;
    padding: 14px 20px;
  }
}


