/* BASIC RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: linear-gradient(135deg, #1a1a1a, #2c2f33);
  color: #fff;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  transition: background 0.3s ease;
}
body.dark-mode {
  background: linear-gradient(135deg, #000, #1a1a1a);
}
a {
  text-decoration: none;
  color: inherit;
}

/* TOP NAV */
.top-nav {
  background: linear-gradient(90deg, #2c2f33, #40444b);
  padding: 10px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #7289da;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.brand-container {
  display: flex;
  align-items: center;
}
.brand-text {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 2rem;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.brand-dotcom {
  color: #00ccff;
}
.top-nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
  list-style: none;
}
.top-nav-links li a {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.1rem;
  color: #b9bbbe;
  padding: 8px 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.top-nav-links li a:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 5px;
}
.hamburger-btn {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
}

/* SIDE NAV */
.side-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #2c2f33;
  overflow-y: auto;
  transition: left 0.3s;
  z-index: 3000;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}
.side-nav.open {
  left: 0;
}
.side-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 2px solid #7289da;
}
.side-nav-header h2 {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.8rem;
  color: #ffd700;
}
.close-side-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}
.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}
.side-nav-links a {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.1rem;
  color: #b9bbbe;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s;
  cursor: pointer;
}
.side-nav-links a:hover {
  background: #7289da;
  color: #fff;
}

/* AD BANNER */
#ad-banner {
  text-align: center;
  background: #222;
  padding: 10px;
}

/* MAIN CONTAINERS */
.main-container {
  display: none;
  padding: 20px;
  opacity: 0;
  animation: fadeInSection 0.5s ease forwards;
}
@keyframes fadeInSection {
  to { opacity: 1; }
}
.main-container.active {
  display: block;
}
.section-title {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 2.2rem;
  color: #ffd700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.error-msg {
  color: #ff5555;
  margin-bottom: 10px;
  font-size: 1rem;
}
.loading-msg {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* REFRESH TIMER */
.refresh-timer {
  font-family: "Impact", "Bangers", cursive;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 20px;
  color: #ffd700;
  background: linear-gradient(45deg, #40444b, #2c2f33);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 60px;
  z-index: 500;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.modal .modal-content {
  background: linear-gradient(135deg, #2c2f33, #40444b);
  padding: 15px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  font-family: 'Impact', 'Bangers', cursive;
  animation: fadeScaleInModal 0.4s ease forwards;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
@keyframes fadeScaleInModal {
  to { opacity: 1; transform: scale(1); }
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s;
}
.close-btn:hover {
  color: #ff5555;
}
.auth-modal-content {
  max-width: 400px;
  margin: auto;
}
.auth-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}
.auth-tab {
  background: #40444b;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-family: 'Impact', 'Bangers', cursive;
  cursor: pointer;
  transition: all 0.3s;
}
.auth-tab.active {
  background: #ffd700;
  color: #000;
}
.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-form input {
  width: 90%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 5px;
  border: none;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
}
.robot-check {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-form button {
  background: #ffd700;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-family: 'Impact', 'Bangers', cursive;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  font-size: 1rem;
}
.auth-form button:hover {
  background: #ffec80;
  transform: scale(1.05);
}
.forgot-pass {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #bbb;
  text-decoration: underline;
}
.forgot-pass:hover {
  color: #fff;
}

/* ITEM DETAIL MODAL */
.item-detail-modal-content {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #2c2f33, #40444b);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.item-detail-modal-content img,
.item-detail-modal-content video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}
.modal-header {
  margin-bottom: 10px;
}
.modal-header h2 {
  font-size: 1.6rem;
  color: #ffd700;
}
.rarity {
  font-size: 1.1rem;
  color: #ffcc00;
}
.description {
  font-size: 0.9rem;
  color: #ccc;
}
.item-info-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.item-info-row button {
  background: #7289da;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-family: 'Impact', 'Bangers', cursive;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.item-info-row button:hover {
  background: #5a6db3;
  transform: scale(1.05);
}

/* ITEMS GRID */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}
.item-card {
  background: linear-gradient(135deg, #2c2f2c, #3a3a3a);
  border: 2px solid #444;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-family: 'Impact', 'Bangers', cursive;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.item-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 180px;
  margin-bottom: 8px;
  border-radius: 5px;
}
.item-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff;
}
.item-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 5px;
}
.bundle-info {
  font-size: 0.8rem;
  color: #00ff00;
}
.special-offer {
  font-size: 0.8rem;
  color: #ff5555;
}

/* SHOP SECTION */
.shop-section h2 {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.6rem;
  color: #ffd700;
  margin-bottom: 10px;
}

/* NEWS SECTION */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.news-card {
  background: linear-gradient(135deg, #2c2f2c, #3a3a3a);
  border: 2px solid #444;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.news-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 8px;
}
.news-card h3 {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.2rem;
  color: #ffd700;
  margin-bottom: 5px;
}
.news-card .news-date {
  font-size: 0.8rem;
  color: #bbb;
  margin-bottom: 5px;
}
.news-card .news-description {
  font-size: 0.8rem;
  color: #ccc;
}

/* LEAKS SECTION */
.leaks-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
#leaks-search {
  padding: 8px;
  border-radius: 5px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 0.9rem;
  flex: 1;
}
#leaks-sort {
  padding: 8px;
  border-radius: 5px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 0.9rem;
}

/* STATS SECTION */
.stats-container {
  background: linear-gradient(135deg, #2c2f33, #40444b);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.stats-header h2 {
  font-size: 1.8rem;
  color: #ffd700;
}
.stats-header button {
  background: #7289da;
  border: none;
  border-radius: 5px;
  color: #fff;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.stats-header button:hover {
  background: #5a6db3;
  transform: scale(1.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}
.stat-card {
  background: linear-gradient(45deg, #40444b, #5a6db3);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: scale(1.05);
}
.stat-card h3 {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.2rem;
  color: #ffd700;
  margin-bottom: 8px;
}
.stat-card p {
  font-size: 0.9rem;
  color: #fff;
  margin: 3px 0;
}
.stat-card.overall {
  background: linear-gradient(45deg, #ffd700, #ffec80);
  color: #000;
}

/* MAP SECTION */
.map-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}
.map-container {
  position: relative;
}
.map-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
}
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  transition: transform 0.3s;
}
.map-marker.poi {
  background: rgba(255, 0, 0, 0.7);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  text-align: center;
  padding: 2px;
}
.map-marker.quest {
  background: rgba(0, 255, 0, 0.7);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  text-align: center;
  padding: 2px;
}
.map-marker.character {
  width: 25px;
  height: 25px;
}
.map-marker.character img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.map-marker:hover {
  transform: translate(-50%, -120%) scale(1.2);
}

/* BADGES */
.new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff0080;
  color: #fff;
  padding: 3px 8px;
  font-size: 0.8rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #00ff00;
  color: #000;
  padding: 3px 8px;
  font-size: 0.8rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* EMOJI RATING */
.emoji-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}
.emoji-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.4rem;
  padding: 5px 8px;
  transition: transform 0.2s, background 0.2s;
}
.emoji-btn:hover {
  transform: scale(1.2);
}
.emoji-btn.selected {
  background: #72f572;
  color: #000;
  border-radius: 5px;
}

/* CREATIVE SECTION */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}
.creative-card {
  background: linear-gradient(135deg, #2c2f2c, #3a3a3a);
  border: 2px solid #444;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.creative-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.creative-image-wrapper {
  width: 100%;
  height: 120px;
  overflow: hidden;
}
.creative-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 2px solid #7289da;
}
.creative-info {
  padding: 10px;
  text-align: left;
}
.creative-info h3 {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.2rem;
  color: #ffd700;
  margin-bottom: 5px;
}
.creator-name {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 8px;
}
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stats-bar p {
  font-size: 0.8rem;
  color: #ccc;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  border-radius: 3px;
}

/* LOCKER */
.locker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}
.locker-card {
  background: linear-gradient(135deg, #2c2f33, #40444b);
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  position: relative;
  transition: transform 0.3s;
  cursor: pointer;
}
.locker-card:hover {
  transform: translateY(-5px);
}
.locker-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 8px;
}
.remove-locker-btn {
  background: #ff5555;
  border: none;
  border-radius: 5px;
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.remove-locker-btn:hover {
  background: #ff9999;
}

/* SETTINGS */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-panel label {
  font-family: 'Impact', 'Bangers', cursive;
  font-size: 1.1rem;
  color: #fff;
}
.settings-panel input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

/* FOOTER */
footer {
  background: #2c2f33;
  text-align: center;
  padding: 10px;
  font-family: 'Impact', 'Bangers', cursive;
  color: #ffd700;
  margin-top: 15px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .top-nav-links {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  .brand-text {
    font-size: 1.8rem;
  }
  .main-container {
    padding: 10px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .item-card {
    padding: 8px;
  }
  .item-card h3 {
    font-size: 0.9rem;
  }
  .item-card img {
    max-height: 140px;
  }
  .emoji-btn {
    font-size: 1.2rem;
    padding: 4px;
  }
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .news-card {
    padding: 8px;
  }
  .news-card img {
    height: 80px;
  }
  .news-card h3 {
    font-size: 1rem;
  }
  .news-card .news-date,
  .news-card .news-description {
    font-size: 0.7rem;
  }
  .leaks-controls {
    flex-direction: column;
    gap: 8px;
  }
  #leaks-search,
  #leaks-sort {
    width: 100%;
    font-size: 0.8rem;
    padding: 6px;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .stat-card h3 {
    font-size: 1rem;
  }
  .stat-card p {
    font-size: 0.8rem;
  }
  .map-marker.poi,
  .map-marker.quest {
    width: 10px;
    height: 10px;
    font-size: 0.6rem;
  }
  .map-marker.character {
    width: 20px;
    height: 20px;
  }
  .creative-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .creative-image-wrapper {
    height: 100px;
  }
  .creative-info h3 {
    font-size: 1rem;
  }
  .creator-name {
    font-size: 0.8rem;
  }
  .stats-bar p {
    font-size: 0.7rem;
  }
  .locker-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .locker-card {
    padding: 8px;
  }
  .locker-card h3 {
    font-size: 0.9rem;
  }
  .refresh-timer {
    font-size: 1.2rem;
    padding: 6px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .brand-text {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .item-card img {
    max-height: 120px;
  }
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .news-card img {
    height: 60px;
  }
  .creative-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .creative-image-wrapper {
    height: 80px;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .locker-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}