@media (max-width: 900px) {
  .progression-th,
  .progression-td {
    padding: 8px;
    font-size: 0.95rem;
  }

  .progression-table img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 700px) {
  .progression-th,
  .progression-td {
    padding: 4px;
    font-size: 0.75rem;
  }

  .progression-table {
    border-radius: 6px;
  }
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
}

/* Progression Table Styles */
.progression-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.progression-th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
}
.progression-td {
  padding: 10px;
}
.progression-slot {
  font-weight: 600;
}
.progression-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.progression-input-notes {
  width: 120px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.progression-input-price {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.progression-remove-btn {
  background: #eee;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}
.progression-table thead tr {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.progression-table img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.progression-empty {
  color: #bbb;
}
@media (max-width: 900px) {
  .navbar nav a {
    display: block;
    padding: 22px 0 22px 0;
    font-size: 1.25rem;
    text-align: center;
    border-bottom: 1px solid #444;
    letter-spacing: 0.5px;
  }
  .navbar nav a:last-child {
    border-bottom: none;
  }

  .account-menu {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
  }

  .account-circle-btn {
    width: 44px;
    height: 44px;
  }

  .account-dropdown {
    position: static;
    margin-top: 10px;
    width: 100%;
    max-width: 340px;
  }
}
/* Hamburger menu styles */
.navbar {
  position: relative;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 900px) {
  .navbar nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    background: #333;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    flex-direction: column;
    min-width: 160px;
    padding: 12px 0;
    z-index: 1000;
  }
  .navbar nav.show {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}
/* Responsive padding for guide cards section */
@media (max-width: 900px) {
  .guide-cards {
    flex-direction: column;
    align-items: center;
  }

  .guide-card {
    max-width: 100%;
    width: 100%;
  }

  .guide-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* 📖 Guide Cards */
.guide-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Guide Card Layout for Icon */
.guide-card {
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 220px;
  height: 340px;
  background: linear-gradient(135deg, #f8fafc 0%, #e6f7ff 100%);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
}
.guide-card-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1b2a41;
  text-align: center;
}
.guide-card-icon {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-card-icon img {
  width: 80%;
  max-width: 180px;
  max-height: 220px;
  object-fit: contain;
  margin-top: 10px;
}
.guide-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.guide-card.beginner {
  background: linear-gradient(135deg, rgba(224,234,252,0.92) 0%, rgba(248,250,252,0.92) 100%);
}
.guide-card.warrior {
  background: linear-gradient(135deg, rgba(247,202,201,0.92) 0%, rgba(248,250,252,0.92) 100%);
}
.guide-card.thief {
  background: linear-gradient(135deg, rgba(199,206,234,0.92) 0%, rgba(248,250,252,0.92) 100%); /* purple (was mage) */
}
.guide-card.bowman {
  background: linear-gradient(135deg, rgba(181,234,215,0.92) 0%, rgba(248,250,252,0.92) 100%);
}
.guide-card.mage {
  background: linear-gradient(135deg, rgba(142,202,255,0.92) 0%, rgba(248,250,252,0.92) 100%); /* blue */
}

@media (max-width: 900px) {
  .guide-cards {
    flex-direction: column;
    align-items: center;
  }
  .guide-card {
    max-width: 100%;
    width: 100%;
  }
  .guide-card-icon img {
    max-height: 120px;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(#8fd3ff, #e6f7ff);
  color: #1b2a41;
}

/* 🌤 Navbar */
.navbar {
  background: #333333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 600;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  transition: opacity 0.2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .navbar nav a:hover {
    opacity: 0.75;
  }
}

@media (hover: none) {
  .navbar nav a:active {
    opacity: 0.75;
  }
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 900px) {
  .navbar nav {
    display: none;
  }

  .navbar nav.show {
    display: flex;
  }
}

.navbar nav a {
  margin-left: 0;
}

.nav-login-btn {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 8px 14px;
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-circle-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #60a5fa;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

.account-circle-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.account-circle-btn:hover {
  opacity: 0.9;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 300px;
  background: white;
  color: #1b2a41;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  padding: 12px;
  z-index: 1200;
}

.account-email {
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}

.account-favorite-ost {
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
  margin-bottom: 10px;
}

.account-favorite-ost-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b2a41;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.account-favorite-ost-player {
  width: 100%;
  margin-bottom: 6px;
}

.account-favorite-ost-link {
  font-size: 0.8rem;
  color: #2563eb;
  text-decoration: none;
}

.account-favorite-ost-link:hover {
  text-decoration: underline;
}

.account-favorite-monster {
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.account-favorite-monster-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.account-favorite-monster-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b2a41;
  text-align: center;
  overflow-wrap: anywhere;
}

.account-profile-btn {
  width: 100%;
  border: 1px solid #dbe6f3;
  background: #f8fbff;
  color: #1b2a41;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}

.account-profile-btn:hover {
  background: #eef6ff;
}

.account-logout-btn {
  width: 100%;
  border: 1px solid #dbe6f3;
  background: #f8fbff;
  color: #1b2a41;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.account-logout-btn:hover {
  background: #eef6ff;
}

/* 🔍 Search Section */
.search-section {
  text-align: center;
  padding: 60px 20px 30px;
}

.search-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.search-section p {
  margin-bottom: 25px;
  color: #555;
}

.filters {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.type-filters {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.type-filters label {
  margin-right: 0;
  font-weight: 500;
  padding: 6px 10px;
}

.sub-filters {
  width: min(980px, 100%);
  text-align: left;
}

.sub-filters h4 {
  margin: 10px 0 5px 0;
  font-size: 1rem;
  color: #1b2a41;
}

.sub-filters label {
  margin-right: 0;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe6f3;
  margin-bottom: 6px;
}

.monster-filters,
.item-filters,
#req-level-section,
#equip-type-section,
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.monster-filters h4,
.item-filters h4,
#req-level-section h4,
#equip-type-section h4 {
  flex-basis: 100%;
}

@media (max-width: 900px) {
  .sub-filters {
    padding: 10px;
  }

  .sub-filters label,
  .type-filters label {
    font-size: 0.82rem;
    padding: 5px 9px;
  }
}

.filter-bar {
  width: 90%;
  max-width: 600px;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
  margin-top: 10px;
}

.search-bar {
  width: 90%;
  max-width: 600px;
  padding: 15px 20px;
  font-size: 1.1rem;
  border-radius: 30px;
  border: 2px solid #ff7b00;
  outline: none;
}

/* 🌈 Hero */
.hero {
  background: linear-gradient(to bottom, #6ec1ff 0%, #bde9ff 100%);
  padding: 50px 20px 0px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* floating "cloud" circles for playful feel */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

.hero::before {
  width: 200px;
  height: 200px;
  top: 40px;
  left: -60px;
}

.hero::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  right: -80px;
}

.hero h1 {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 2px 2px 0 #2b6cb0;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: #0f3057;
}

/* 🍄 Buttons */
.btn {
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}

/* 📰 Cards Section */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 80px 40px;
  max-width: 1100px;
  margin: auto;
}

/* Responsive: 2 columns on medium screens */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    padding: 60px 20px;
  }
}

/* Responsive: 1 column on small screens */
@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
    padding: 40px 15px;
  }
}

.card {
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  text-decoration: none;
  color: #1b2a41;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.12);
}

.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.card h2 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
}

.card-red {
  background: linear-gradient(135deg, #ff6b4a, #ff4a3d);
}

.card-orange {
  background: linear-gradient(135deg, #f9a838, #ff9d42);
}

/* Search Results Section */
.search-results {
  max-width: 1200px;
  margin: 10px auto 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f5f5f5;
}

/* Details Styles */
.monster-details, .item-details, .map-details {
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-width: 1200px;
  margin: 20px auto;
}

.item-header {
  text-align: center;
  margin-bottom: 20px;
}

.entity-header {
  text-align: center;
  margin-bottom: 20px;
}

.entity-header img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

.entity-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.entity-stats p {
  margin: 5px 0;
  font-size: 1.5rem;
  text-align: center;
}
.drops-section {
  margin-top: 20px;
}

.drops-section h4 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.drops-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.drop-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  width: 100px;
  transition: transform 0.2s;
}

.drop-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.drop-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 5px;
}

.drop-card p {
  margin: 2px 0;
  font-size: 0.9rem;
}

.dropped-by-section, .drops-section, .map-section, .monsters-section {
  margin-top: 20px;
}

.dropped-by-section h4, .drops-section h4, .map-section h4, .monsters-section h4 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.dropped-by-grid, .drops-grid, .map-grid, .monsters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.drop-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  width: 100px;
  transition: transform 0.2s;
}

.drop-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.drop-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 5px;
}

.drop-card p {
  margin: 2px 0;
  font-size: 0.9rem;
}
.item-header h3 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.item-header img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

.item-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.req-stats, .bonus-stats {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.req-stats h4, .bonus-stats h4 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.req-stats p, .bonus-stats p {
  margin: 5px 0;
  display: block;
  flex-direction: column;
  gap: 10px;
}

.item-stats p {
  margin: 5px 0 10px 0;
  font-size: 1.1rem;
}

.item-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.req-stats, .bonus-stats {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.req-stats h4, .bonus-stats h4 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.req-stats p {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

/* 🍁 Footer */
footer {
  text-align: center;
  padding: 24px;
  background: #333333;
  color: white;
  font-size: 0.9rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin: 4px 0 8px;
  user-select: none;
}

.verified-check {
  font-weight: bold;
  font-size: 0.95rem;
}

.verified-text {
  font-weight: 600;
}

.xp-stat {
  text-align: center;
}

/* VERIFIED */
.verified-badge.verified {
  color: #2ecc71; /* green */
}

/* UNVERIFIED */
.verified-badge.unverified {
  color: #9aa0a6; /* gray */
}
