.w-webflow-badge {
  position: fixed !important;
  display: none !important;
  visibility: hidden !important;
}

.hidden{
  display: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* TLDR Modal Styles */
.tldr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Sites Modal (reuses TLDR modal patterns, CRT/pixel styling) */
.sites-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sites-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sites-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 999999;
}

@supports not (backdrop-filter: blur(5px)) {
  .sites-modal-backdrop { background: rgba(0, 0, 0, 0.9); }
}

.sites-modal-content {
  position: relative;
  width: 92%;
  max-width: 820px;
  max-height: 88vh;
  background: #0f140f;
  border: 2px solid rgba(168,255,81,0.4);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0,0,0,0.35) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1000000;
  animation: modalSlideIn 0.28s ease-out;
}

.sites-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, #0b0f0b, #151d14);
  border-bottom: 1px solid rgba(168,255,81,0.25);
}

.sites-modal-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: #A8FF51;
  text-shadow: 0 0 10px rgba(168,255,81,0.35);
  margin: 0;
}

.sites-modal-close {
  background: none;
  border: 1px solid rgba(168,255,81,0.35);
  color: #A8FF51;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sites-modal-close:hover {
  background: rgba(168,255,81,0.08);
  box-shadow: 0 0 12px rgba(168,255,81,0.25);
}

.sites-modal-body {
  padding: 1.25rem;
  flex: 1 1 auto;
  overflow-y: auto;
  color: #e9f9ea;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.site-card {
  display: block;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(10,18,14,0.85) 100%),
    repeating-linear-gradient(90deg, rgba(168,255,81,0.14) 0 1px, transparent 1px 3px);
  border: 2px solid rgba(168,255,81,0.5);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: #d8ffd9;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.site-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(168,255,81,0.08), transparent 60%);
  pointer-events: none;
}

.site-card:hover {
  transform: translateY(-3px);
  border-color: #A8FF51;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 2px rgba(0,0,0,0.35) inset, 0 0 18px rgba(168,255,81,0.25);
}

.site-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.site-card__url {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: rgba(168,255,81,0.9);
}

@media (max-width: 768px) {
  .sites-grid { grid-template-columns: 1fr; }
}

.tldr-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tldr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 999999;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(5px)) {
  .tldr-modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
  }
}

.tldr-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  z-index: 1000000;
}

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

.tldr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #333;
  background: linear-gradient(135deg, #131313, #1f1f1f);
  flex-shrink: 0;
}

.tldr-modal-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #efeeec;
  margin: 0;
  text-align: left;
}

.tldr-modal-close {
  background: none;
  border: none;
  color: #efeeec;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tldr-modal-close:hover {
  background: #ff4c24;
  transform: scale(1.1);
}

.tldr-modal-close svg {
  width: 20px;
  height: 20px;
}

.tldr-modal-body {
  padding: 2rem;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  color: #efeeec;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 0;
  max-height: calc(90vh - 120px);
}

.tldr-modal-body::-webkit-scrollbar {
  width: 8px;
}

.tldr-modal-body::-webkit-scrollbar-track {
  background: #131313;
  border-radius: 4px;
}

.tldr-modal-body::-webkit-scrollbar-thumb {
  background: #ff4c24;
  border-radius: 4px;
}

.tldr-modal-body::-webkit-scrollbar-thumb:hover {
  background: #e63d1a;
}

/* Firefox scrollbar */
.tldr-modal-body {
  scrollbar-width: thin;
  scrollbar-color: #ff4c24 #131313;
}

.tldr-section {
  margin-bottom: 2rem;
}

.tldr-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #ff4c24;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.tldr-section p {
  margin-bottom: 1rem;
  color: #e3e1de;
}

.tldr-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.tldr-section li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #e3e1de;
}

.tldr-section li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ff4c24;
  font-weight: bold;
}

.tldr-section a {
  color: #ff4c24;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.tldr-section a:hover {
  color: #e63d1a;
  border-bottom-color: #e63d1a;
}

.tldr-section em {
  color: #0ba954;
  font-style: italic;
}

.tldr-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tldr-link-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #131313;
  border-radius: 8px;
  border-left: 3px solid #ff4c24;
}

.tldr-link-item a {
  font-weight: 600;
  font-size: 1.1rem;
}

.tldr-link-item span {
  color: #cbc8c5;
  font-size: 0.9rem;
  font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tldr-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .tldr-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .tldr-modal-title {
    font-size: 1.5rem;
  }
  
  .tldr-modal-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .tldr-modal-content {
    width: 98%;
    max-height: 98vh;
  }
  
  .tldr-modal-header {
    padding: 1rem 1rem 0.8rem;
  }
  
  .tldr-modal-title {
    font-size: 1.3rem;
  }
  
  .tldr-modal-body {
    padding: 1rem;
  }
}

