/* ===== GOOGLE FONTS ===== */
/* Rajdhani: sleek, refined display — used for headings & nav brand */
/* DM Sans: clean, modern body font — replaces Inter */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap");

/* ===== GLOBAL STYLES ===== */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #e5e7eb;
  margin: 0;
  padding-top: 60px;
  text-align: center;
}

/* ===== HEADERS ===== */
h1, h2 {
  font-family: 'Rajdhani', sans-serif;
}

h1 {
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  margin: 6px auto 0;
  border-radius: 3px;
}

/* ===== LINKS ===== */
a {
  text-decoration: none;
  color: #0077cc;
  display: inline-block;
  margin-top: 20px;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #111827, #1b1f2d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid #334155;
  z-index: 3000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border-radius: 0 0 12px 12px;
}

.nav-left {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #f1f5f9;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.1s;
  margin-top: 0;
}

.nav-links a:hover {
  color: #6366f1;
  transform: translateY(-2px);
}

.nav-links a.active {
  color: #22d3ee;
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #22d3ee;
}

/* ===== PANELS / CARDS ===== */
.panel {
  background: linear-gradient(180deg, #1e293b, #1b1f2d);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: relative;
  text-align: left;
}

/* ===== CONTROLS / INPUTS ===== */
.controls,
.sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.controls > * {
  flex: 1 1 200px;
}

input,
button {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

input {
  cursor: text;
}

button:hover {
  background-color: #273449;
}

button.active {
  border-color: #3b82f6;
  color: #3b82f6;
}

/* ===== DROPDOWN ===== */
.dropdown {
  position: relative;
}

.dropdown-btn {
  width: 100%;
  text-align: left;
  padding-right: 32px;
  position: relative;
}

.dropdown-btn::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.dropdown.open .dropdown-btn::after {
  transform: translateY(-40%) rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

.dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-menu label:hover {
  background: #273449;
}

/* ===== LISTS ===== */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 6px;
  background: #1e293b;
  transition: transform 0.1s, box-shadow 0.15s;
}

.list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 8px #6366f1;
}

.list-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
}

/* ===== TABLE ===== */
.table-wrapper {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 12px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

thead th {
  position: sticky;
  top: 60px;
  z-index: 10;
  background: #334155;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

tbody tr {
  background: #1e293b;
  transition: background 0.2s ease;
}

tbody tr:nth-child(even) {
  background: #273449;
}

tbody tr:hover {
  background: #334155;
}

td {
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

td:first-child {
  width: 80px;
  padding: 0;
}

.item-image {
  width: 100%;
  height: 56px;
  object-fit: contain;
}

.item-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== BOTTOM ROW ===== */
.bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.galleon-box input {
  width: 140px;
  padding: 10px;
  font-size: 1em;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #e5e7eb;
  text-align: center;
}

.galleon-box input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

/* ===== BADGES ===== */
.badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

.Common    { background: #475569; }
.Uncommon  { background: #eab308; color: #0f172a; }
.Rare      { background: #6366f1; }
.Limited   { background: #a855f7; }
.Mystic    { background: #f43f5e; }
.Legendary { background: #22c55e; color: #0f172a; }

/* ===== BOOKMARKS ===== */
.bookmark-panel {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}

.bookmark-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #273449;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.bookmark-item:hover {
  background: #334155;
}

.bookmark-name-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.bookmark-name-pill.Common    { background: #475569; }
.bookmark-name-pill.Uncommon  { background: #eab308; color: #0f172a; }
.bookmark-name-pill.Rare      { background: #6366f1; }
.bookmark-name-pill.Limited   { background: #a855f7; }
.bookmark-name-pill.Mystic    { background: #f43f5e; }
.bookmark-name-pill.Legendary { background: #22c55e; color: #0f172a; }

/* ===== MODAL ===== */
#chartModal {
  backdrop-filter: blur(6px);
  transition: opacity .25s ease;
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
}

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-top: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f1f5f9;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-logo     { width: 80px; }
  .discord-inner { padding: 40px 28px; }
  .hero h1       { font-size: 34px; }
  .table-section { grid-template-columns: 1fr; }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #111827, #1b1f2d);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid #334155;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 2999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
    border-bottom: 1px solid #1e293b;
    font-size: 15px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a.active::after {
    display: none;
  }
}

/* ===== BOOKMARK BUTTON ===== */
.bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.bookmark-btn.active {
  color: #399bbe;
}

.bookmark-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== SORT BUTTONS ===== */
.sort-btn {
  position: relative;
  padding-right: 24px;
  transition: color 0.2s ease;
  color: #94a3b8;
}

.sort-btn::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #64748b;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease, border-color 0.2s ease;
  pointer-events: none;
}

.sort-btn.active::after {
  border-bottom-color: #506bc7;
}

.sort-btn.desc::after {
  transform: translateY(-50%) rotate(180deg);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("banner.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #f1f5f9;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.15),
    rgba(15,23,42,0.35)
  );
  z-index: 0;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-sub {
  font-size: 20px;
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  font-family: 'DM Sans', sans-serif;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  background: #6366f1;
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  transition: all 0.25s ease;
  margin-top: 0;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

.hero-btn.secondary {
  background: #1e293b;
  border: 1px solid #334155;
}

.hero-btn.secondary:hover {
  background: #273449;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #111827, #0f172a);
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
}

.services-section h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  max-width: 1100px;
  margin: auto;
}

/* ===== SERVICE CARD ===== */
.service-item {
  background: linear-gradient(145deg, #1e293b, #162133);
  border: 1px solid #2a3648;
  border-radius: 16px;
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  text-align: center;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.service-item.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item.card-visible:hover {
  transform: translateY(-6px);
  border-color: #5865F2;
  box-shadow: 0 12px 28px rgba(88,101,242,0.25);
}

.service-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.service-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #5865F2, #22d3ee);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item span {
  position: relative;
  z-index: 1;
}

.service-item.card-visible:hover::before {
  opacity: 0.08;
}

/* ===== DISCORD CTA SECTION ===== */
.discord-section {
  position: relative;
  padding: 100px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #080f1e;
}

.discord-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  background: linear-gradient(160deg, #0f172a, #131c2e);
  border: 1px solid rgba(88,101,242,0.35);
  border-radius: 24px;
  padding: 52px 44px;
  box-shadow: 0 0 60px rgba(88,101,242,0.12), 0 20px 40px rgba(0,0,0,0.5);
  text-align: center;
}

.discord-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(88,101,242,0.6), transparent 40%, rgba(34,211,238,0.4) 80%, transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.discord-inner:hover::before {
  opacity: 0;
}

.discord-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 0 28px rgba(88,101,242,0.5);
  animation: discord-icon-float 3s ease-in-out infinite;
}

@keyframes discord-icon-float {
  0%, 100% { transform: translateY(0);    box-shadow: 0 0 28px rgba(88,101,242,0.5); }
  50%       { transform: translateY(-6px); box-shadow: 0 10px 32px rgba(88,101,242,0.7); }
}

.discord-logo-svg {
  width: 36px;
  height: 36px;
  fill: white;
}

.discord-heading {
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}

.discord-heading::after {
  display: none;
}

.discord-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 32px;
}

.discord-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(88,101,242,0.45);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.discord-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.discord-cta-btn:hover::after {
  left: 140%;
}

.discord-cta-btn:hover {
  background: #4752c4;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(88,101,242,0.65);
}

.btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.discord-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.discord-member-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #64748b;
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: pulse-green 2s ease-out infinite;
}

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ===== MIDDLEMAN PAGE ===== */
.page-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.page-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  margin: 8px auto 0;
  border-radius: 3px;
}

.page-header p {
  font-size: 16px;
  color: #94a3b8;
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ===== FILTER / RANGE BUTTONS ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 40px;
}

.filter-btn,
.range-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 7px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.range-btn:hover {
  border-color: #6366f1;
  color: #f1f5f9;
  background: #1e293b;
}

.filter-btn.active,
.range-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

/* ===== MIDDLEMAN GRID ===== */
.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== MIDDLEMAN CARD ===== */
.mm-card {
  background: linear-gradient(160deg, #1e293b, #131c2e);
  border: 1px solid #2a3648;
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}

.mm-card.card-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mm-card.card-visible:hover {
  transform: translateY(-5px);
  border-color: #6366f1;
  box-shadow: 0 16px 40px rgba(99,102,241,0.2);
}

.mm-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #334155;
  background: #0f172a;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #131c2e;
}

.status-dot.online  { background: #22c55e; }
.status-dot.busy    { background: #f59e0b; }
.status-dot.offline { background: #64748b; }

.card-identity {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #6366f1;
  border-radius: 50%;
  flex-shrink: 0;
}

.verified-badge svg {
  width: 11px;
  height: 11px;
  fill: white;
}

.discord-tag {
  font-size: 13px;
  color: #7c8fa8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.discord-tag svg {
  width: 13px;
  height: 13px;
  fill: #5865F2;
  flex-shrink: 0;
}

.copy-btn {
  cursor: pointer;
  color: #475569;
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  transition: color 0.2s ease;
}

.copy-btn:hover { color: #6366f1; }
.copy-btn svg   { width: 12px; height: 12px; }
.copy-btn.copied { color: #22c55e; }

.card-bio {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 18px;
  min-height: 42px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  background: #1e3a5f;
  color: #7dd3fc;
  border: 1px solid #1e4976;
}

.tag.specialty {
  background: #2d1b69;
  color: #a78bfa;
  border-color: #3d2080;
}

.card-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  background: #1e293b;
  align-self: stretch;
}

.status-label {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-label.online  { color: #22c55e; }
.status-label.busy    { color: #f59e0b; }
.status-label.offline { color: #64748b; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.hiw-step {
  background: linear-gradient(145deg, #1e293b, #162133);
  border: 1px solid #2a3648;
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
}

.hiw-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #6366f1;
  line-height: 1;
  margin-bottom: 8px;
}

.hiw-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.hiw-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

/* ===== WARNING MODAL ===== */
#warningModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.warning-box {
  background: linear-gradient(160deg, #1e293b, #131c2e);
  border: 1px solid #ef4444;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 0 60px rgba(239,68,68,0.2);
}

.warning-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.warning-box h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  color: #ef4444;
  margin: 0 0 12px;
}

.warning-box h2::after { display: none; }

.warning-box p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 16px;
}

.warning-box p strong { color: #f1f5f9; }

.warning-note {
  font-size: 13px !important;
  color: #64748b !important;
}

.warning-confirm-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.warning-confirm-btn:hover { background: #dc2626; }

/* ===== LOADING STATES ===== */
.state-msg {
  text-align: center;
  padding: 80px 20px;
  color: #475569;
  font-size: 16px;
  grid-column: 1 / -1;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #1e293b;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== INFLATION / CHART PAGE ===== */
.stat-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.stat-card {
  background: linear-gradient(145deg, #1e293b, #162133);
  border: 1px solid #2a3648;
  border-radius: 14px;
  padding: 20px 28px;
  text-align: center;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-value.positive { color: #22c55e; }
.stat-card-value.negative { color: #ef4444; }

.stat-card-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.chart-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 0 24px;
}

.chart-wrap {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.chart-box {
  background: linear-gradient(160deg, #1e293b, #131c2e);
  border: 1px solid #2a3648;
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.chart-box canvas { max-height: 420px; }

.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.85);
  border-radius: 20px;
  z-index: 10;
  gap: 14px;
}

.loading-text {
  font-size: 14px;
  color: #64748b;
}

.table-section {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.table-box {
  background: linear-gradient(160deg, #1e293b, #131c2e);
  border: 1px solid #2a3648;
  border-radius: 20px;
  padding: 24px;
}

.table-box h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 16px;
}

.table-box h3::after { display: none; }

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
  font-size: 14px;
}

.item-row:last-child { border-bottom: none; }

.item-row-name {
  color: #e5e7eb;
  font-weight: 500;
}

.item-row-change {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.item-row-change.up   { color: #22c55e; }
.item-row-change.down { color: #ef4444; }

.no-data {
  color: #475569;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

/* ===== GLOBAL BG ===== */
html, body {
  min-height: 100%;
  background: linear-gradient(135deg, #0f172a, #1b1f2d);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ===== HERO LOGO ===== */
.hero-logo {
  width: 100px;
  max-width: 25%;
  height: auto;
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-logo       { width: 80px; }
  .discord-inner   { padding: 40px 28px; }
  .hero h1         { font-size: 34px; }
  .table-section   { grid-template-columns: 1fr; }
}

.loading-text {
  font-size: 14px;
  color: #64748b;
}