/* Base */
* { box-sizing: border-box; }
html, body { 
  height: 100%; 
  margin: 0; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  background: #1c1c1c; 
  color: #fff;
  position: relative; /* THIS IS THE KEY FIX - makes absolute positioning work relative to document */
}
a { color: #fff; text-decoration: none; }

/* Header */
.site-header { text-align: left; max-width: 1100px; margin: 0 auto 16px; padding: 16px; }
.header-top { display: flex; align-items: center; justify-content: space-between; }
.header-buttons { display: flex; gap: 10px; }
.btn { padding: 8px 12px; border-radius: 8px; border: 1px solid #4a4a4a; background: #3a3a3a; }

/* Search bar */
.search-container {
  max-width: 1100px;
  margin: 0 auto 24px;
  text-align: center;
}

#search {
  display: inline-block;
  margin: 0 0 0 100px; /* slightly more to the right */
  width: 300px;
  max-width: 90%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #0b0101;
  background: #3a3a3a;
  color: #fff;
}

/* === Main layout changes start === */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    align-items: stretch; /* NEW: makes nav stretch to match sections height */
}

.sections-nav {
    width: 200px;
    padding: 8px;
    border-right: 2px solid #4a4a4a; /* vertical line */
    /* REMOVED: position: sticky; top: 16px; align-self: flex-start; */
}

/* KEEP these button styles exactly as they are */
.sections-nav button { display: block; width: 100%; padding: 8px; margin-bottom: 8px; background: #4a4a4a; border: 1px solid #100101; border-radius: 6px; cursor: pointer; color: #fff; text-align: left; }
.sections-nav button.active { background: #232324; }

/* NEW: Extras navigation styling */
.nav-gap {
  height: 0px;
}

.nav-extras-header {
  color: #33cce6;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  padding: 8px 0;
  border-bottom: 1px solid #33cce6;
  text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000;
}

.sections {
    flex: 3; /* UPDATED from flex:1 */
    display: flex;
    flex-direction: column;
    gap: 24px;
}
/* === Main layout changes end === */

/* Cards container */
.cards { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
  width: 100%; /* ADD THIS LINE */
  overflow: hidden; /* ADD THIS LINE */
}

/* Card */
.card { 
  flex: 1 1 calc(50% - 16px); 
  display: flex; 
  gap: 16px; 
  border: 1px solid #0b0101; 
  border-radius: 12px; 
  padding: 12px; 
  background: #4a4a4a;  /* keep original background */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover */
}

.card:hover {
  transform: translateY(-10px); /* lift effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); /* shadow underneath */
}

.card img { 
  width: 150px; 
  height: 150px; 
  object-fit: contain; 
  border-radius: 8px; 
  background: #2e2e2e; 
}

.card-info { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
}

.card-info h3 { 
  margin: 0; 
  font-size: 1.1rem; 
}

.card-info .badge { 
  display: inline-block; 
  padding: 2px 6px; 
  border-radius: 999px; 
  border: 1px solid #090808; 
  background: #070012; 
  font-size: 0.8rem; 
  margin-bottom: 4px; 
}

/* NEW: Crew Logo Card Styling - SMALLER SIZE */
.crew-logo-card {
  flex-direction: column;
  text-align: center;
  justify-content: flex-start;
  max-width: calc(33.33% - 16px); /* CHANGED: from 50% to 33.33% - fits 3 per row */
  overflow: hidden;
  padding: 8px; /* ADDED: smaller padding */
}

.crew-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* CHANGED: from 12px to 8px - smaller gap */
}

.crew-logo-card h3 {
  margin: 0;
  font-size: 0.9rem; /* CHANGED: from 1.1rem to 0.9rem - smaller text */
  text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000;
}

.crew-logo-card img {
  width: 100px; /* CHANGED: from 150px to 100px - smaller images */
  height: 100px; /* CHANGED: from 150px to 100px - smaller images */
  object-fit: contain;
  border-radius: 6px; /* CHANGED: from 8px to 6px - smaller border radius */
  background: #2e2e2e;
}

.crew-id {
  color: #ffde59;
  font-weight: bold;
  font-size: 0.85rem; /* CHANGED: from 1rem to 0.85rem - smaller text */
  text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000;
}

/* Crew ID container with copy button */
.crew-id-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.copy-btn {
  background: #33cce6;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #000;
  transition: background-color 0.3s ease;
  min-width: 30px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: #29b3cc;
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.crew-header {
  color: #33cce6;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin: 30px 0 20px 0;
  padding: 10px 0;
  border-bottom: 2px solid #33cce6;
  text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000;
  width: 100%; /* ADD THIS LINE */
  box-sizing: border-box; /* ADD THIS LINE */
}

/* Scammer Card Styling - matches other cards with red outline */
.scammer-card {
  background: #4a4a4a; /* Same as other cards */
  border: 1px solid #cc4444; /* Red outline instead of default border */
}

.scammer-card:hover {
  transform: translateY(-10px); /* Same hover effect as other cards */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); /* Same shadow as other cards */
}

.scammer-warning {
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Remove scammer icon */
.scammer-icon {
  display: none;
}

/* Scammer card links styling */
.scammer-link {
  color: #4da6ff !important;
  text-decoration: underline !important;
  font-size: 0.9rem;
}

.scammer-link:hover {
  color: #66b3ff !important;
  text-decoration: underline !important;
}

.hidden { 
  display: none !important; 
}

.tax-calculator { 
  width: 240px; 
  padding: 16px; 
  background: #1f2a33; /* dark slate/charcoal background for contrast */ 
  border: 1px solid #33cce6; /* softer cyan border */ 
  border-radius: 12px; 
  position: sticky; 
  top: 16px; 
  height: fit-content; 
} 

.tax-calculator h2, 
.tax-calculator #taxResult, 
.tax-calculator .tax-explanation, 
.tax-calculator label { 
  color: #33cce6; /* softer cyan text */ 
  text-shadow: none; 
} 

.tax-calculator input { 
  width: 100%; 
  padding: 8px; 
  margin-bottom: 8px; 
  border-radius: 6px; 
  border: 1px solid #444; 
  background: #2a3945; /* slightly lighter than calc background */ 
  color: #fff; 
}

/* Dollar sign and number color */
#taxResult .calc-amount {
  color: #ffde59; /* yellow number */
  font-weight: bold;
}

#taxResult .calc-amount::before {
  content: "$";
  color: #00ff7f; /* green dollar sign */
  margin-right: 3px;
}

/* Section spacing */
.section { 
  margin-bottom: 40px; 
  overflow: hidden; /* ADD THIS LINE */
  position: relative; /* ADD THIS LINE */
}

/* Responsive */
@media (max-width: 900px) {
  .main-container { flex-direction: column; }
  .sections-nav, .tax-calculator { width: 100%; position: relative; }
  .card { flex-direction: column; width: 100%; }
  .card img { width: 100%; height: auto; }
  .card-info { text-align: center; }
  .crew-logo-card { width: 100%; }
}

/* Floating texts, header, neon effects, outlines etc. remain untouched */
#floating-text { position: fixed; bottom: 10px; right: 10px; color: rgb(26, 216, 26); font-weight: bold; z-index: 1000; }
.card-info label, .card-info .section-label, .tax-calculator label { text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000; }
#floating-text-left { position: fixed; bottom: 6px; left: 10px; color: white; font-weight: 500; font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.85rem; line-height: 1.25; z-index: 1000; text-align: left; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
#floating-text-left .discord-line { font-weight: bold; font-size: 0.9rem; margin-top: 3px; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }

/* Entire header text and animations remain untouched */
.blockspin-header { font-size: 4rem; font-weight: bold; text-align: center; color: white; text-shadow: 4px 0 0 #000, -4px 0 0 #000, 0 4px 0 #000, 0 -4px 0 #000, 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 0 0 6px #fff, 0 0 12px #fff, 0 0 18px #ccc; }
.blockspin-header .spin-word { color: #ff1a1a; text-shadow: 4px 0 0 #000, -4px 0 0 #000, 0 4px 0 #000, 0 -4px 0 #000, 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 0 0 10px #ff1a1a, 0 0 20px #ff3333, 0 0 30px #ff4d4d, 0 0 40px #ff6666, 0 0 55px #ff8080; animation: redNeonPulse 4s ease-in-out infinite alternate, redFlicker 10s infinite; }
@keyframes redNeonPulse { 0% { color: #e60000; text-shadow: 4px 0 0 #000, -4px 0 0 #000, 0 4px 0 #000, 0 -4px 0 #000, 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 0 0 8px #ff1a1a, 0 0 14px #ff3333, 0 0 20px #ff4d4d; } 100% { color: #ff1a1a; text-shadow: 4px 0 0 #000, -4px 0 0 #000, 0 4px 0 #000, 0 -4px 0 #000, 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 0 0 12px #ff3333, 0 0 22px #ff4d4d, 0 0 34px #ff6666, 0 0 46px #ff8080; } }
@keyframes redFlicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.7; } 95% { opacity: 0.3; } 97% { opacity: 0.9; } 98% { opacity: 0.6; } 99% { opacity: 1; } }

/* Site Bio text and all remaining effects unchanged */
.site-header p { text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000; }
.sections-nav button { text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000; }
#floating-text { text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000; }
.tax-calculator h2, .tax-calculator #taxResult, .tax-calculator .tax-explanation, .tax-calculator label { text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000; }
.card-info h3, .card-info .badge, .card-info div:not(.discord-line):not(.demand):not(.demand-number) { text-shadow: 1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000; }

/* === MOBILE ONLY: Center search bar, calculator, and hide floating texts === */
@media (max-width: 767px) {
  /* Center search bar */
  .search-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto !important;
    width: 100% !important;
  }

  .search-container input {
    width: 90% !important;
    max-width: 320px !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Center calculator */
  .tax-calculator {
    display: block !important;
    margin: 20px auto !important;
    max-width: 320px !important;
    text-align: center !important;
    float: none !important;
    position: relative !important; /* override sticky */
    top: auto !important;
  }

  /* Hide floating green & white texts */
  #floating-text,
  #floating-text-left {
    display: none !important;
  }

    /* Mobile-only: Much smaller ID text and copy button */
  .crew-id {
    font-size: 0.6rem !important; /* Even smaller on mobile */
  }
  
  .copy-btn {
    font-size: 0.7rem;
    padding: 2px 4px;
    min-width: 20px;
    height: 16px;
  }
  
  .crew-id-container {
  flex-direction: column !important; /* Stack vertically instead of horizontally */
  align-items: center !important;    /* Center both elements */
  justify-content: center !important; /* Center the container content */
  gap: 6px !important;               /* Space between ID and button */
  margin-top: 4px !important;        /* Less margin */
}

.crew-id {
  text-align: center !important;     /* Center the ID text */
}

.copy-btn {
  align-self: center !important;     /* Ensure button stays centered */
}
}

/* Hide banners on mobile + tablets */
@media (max-width: 1024px) {
  #section-banner {
    display: none !important;
  }
}

html, body {
  overflow-x: hidden !important;
}

/* === FIXED Section Banner (absolute positioning relative to document) === */
#section-banner {
  position: absolute !important;  /* FIXED: Changed from fixed to absolute */
  z-index: 999;           
  pointer-events: none;   
}

#banner-img {
  position: absolute;     
  display: block;         
  width: auto;
  height: auto;
  max-width: 100%;
  opacity: 0;             
  transform: scale(0.95); 
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#banner-img.show {
  opacity: 1;
  transform: scale(1);
}

/* Hide banners on mobile + tablets */
@media (max-width: 1024px) {
  #section-banner {
    display: none !important;
  }
}

/* Hide vertical scrollbar but allow scrolling */
html, body {
  overflow-x: hidden !important;  /* prevent horizontal scroll */
  overflow-y: scroll;             /* allow vertical scrolling */
}

/* Hide vertical scrollbar for Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Hide vertical scrollbar for Firefox */
html, body {
  scrollbar-width: none;
}

.scammer-field {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #666;
}