/* ============================================================
   EmojiStonks Website — style.css
   Dark fintech aesthetic matching Figma design
   ============================================================ */

:root {
  --bg: #0d1117;
  --bg2: #111820;
  --bg3: #161e2a;
  --card: #131c27;
  --card-border: rgba(255, 255, 255, 0.07);
  --green: #00ff7f;
  --blurple: #5865f2;
  --gold: #ffd700;
  --text: #e6edf3;
  --muted: #8b949e;
  --red: #ff4d4d;
  --glow-green: rgba(0, 255, 127, 0.15);
  --glow-blurple: rgba(88, 101, 242, 0.2);
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 72px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  margin-right: 2rem;
}

.logo-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover {
  color: var(--text);
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: 0.6;
}

/* ── BUTTONS ── */
.navbar-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ── AUTH ── */
.navbar-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 2rem;
}

.auth-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #3d3325;
  color: #e6a143;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(230, 161, 67, 0.2);
  white-space: nowrap;
  line-height: 1;
}
.btn-premium:hover {
  background: #4a3e2e;
  border-color: #e6a143;
  box-shadow: 0 0 15px rgba(230, 161, 67, 0.15);
}

.premium-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
}

.btn-discord {
  background: var(--blurple);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.user-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.user-profile:hover {
  background: rgba(255, 255, 255, 0.08);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #1a2133;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 180px;
  padding: 8px;
  display: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}
.user-menu.active {
  display: block;
  animation: fadeInDown 0.2s ease forwards;
}
.menu-welcome {
  display: block;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 4px 0;
}
.menu-item {
  display: block;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--blurple);
}

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

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 6rem 3rem;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 60%,
      rgba(0, 255, 127, 0.07) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 80% 40%,
      rgba(88, 101, 242, 0.1) 0%,
      transparent 70%
    ),
    var(--bg);
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.25);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 255, 127, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(90deg, #00ff7f, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── DISCORD MOCKUP ── */
.hero-visual {
  flex: 1;
  max-width: 540px;
  display: flex;
  justify-content: center;
}

.discord-mockup {
  background: #1e2631;
  border-radius: 12px;
  overflow: hidden;
  width: 500px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a2133;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #febc2e;
}
.dot.green {
  background: #28c840;
}

.mockup-title {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 6px;
}

.mockup-body {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blurple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.msg-content {
  flex: 1;
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.msg-bot-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blurple);
}
.msg-bot-badge {
  background: var(--blurple);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}
.msg-time {
  font-size: 0.7rem;
  color: var(--muted);
}

.embed-card {
  display: flex;
  background: #1a2133;
  border-radius: 6px;
  overflow: hidden;
}

.embed-left-bar {
  width: 4px;
  background: var(--green);
  flex-shrink: 0;
}
.embed-inner {
  padding: 12px;
  flex: 1;
}

.embed-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.embed-price {
  color: var(--green);
}

.embed-change {
  font-size: 0.72rem;
  margin-bottom: 10px;
}
.embed-change.positive {
  color: var(--green);
}
.embed-change.negative {
  color: var(--red);
}

.embed-periods {
  display: flex;
  gap: 4px;
  margin: 8px 0 6px;
}

.period-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.period-btn.active,
.period-btn:hover {
  background: var(--blurple);
  color: #fff;
}

.embed-actions {
  display: flex;
  gap: 5px;
}

.buy-btn {
  flex: 1;
  background: var(--blurple);
  border: none;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.buy-btn:hover {
  opacity: 0.85;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 2.5rem 3rem;
  background: var(--bg2);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--card-border);
}

/* ── SECTIONS ── */
.section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
}

/* ── CARDS ── */
.cards-row {
  display: grid;
  gap: 1.2rem;
}
.cards-row.three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cards-row.six {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.glow-card:hover {
  border-color: rgba(0, 255, 127, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 127, 0.06);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-card {
  padding: 1.5rem;
}
.feat-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── MARKET TABLE ── */
.market-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--muted);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--blurple);
  border-color: var(--blurple);
  color: #fff;
}

.market-table-wrap {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
}

.market-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.market-table td {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.market-table tr:last-child td {
  border-bottom: none;
}
.market-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.rank-num {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.85rem;
}
/* ── PREMIUM PAGE ── */
.premium-page {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.premium-hero {
  padding: 140px 2rem 80px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(88, 101, 242, 0.15) 0%,
    transparent 50%
  );
}

.premium-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin: 20px 0;
  letter-spacing: -1px;
}

.premium-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* --- Guild Selector Styles --- */
.guild-selector-container {
  max-width: 600px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  text-align: left;
}

.guild-selector-container h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
}

.guild-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
}

.guild-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.2s;
}

.guild-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blurple);
}

.guild-item.selected {
  background: rgba(88, 101, 242, 0.15);
  border-color: var(--blurple);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
}

.guild-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.guild-name-mini {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--blurple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.premium-badge {
  background: #3d3325;
  color: #e6a143;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: 1px solid rgba(230, 161, 67, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg3);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border: 2px solid #e6a143;
  background: #1e1a15; /* Dark amber tint */
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(230, 161, 67, 0.15);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.best-value {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #e6a143;
  color: #000;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.card-plan {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.card-price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.billing-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
  margin-top: -15px;
}

.card-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.card-features li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-features .check {
  color: var(--green);
  font-weight: bold;
}

.btn-premium-action {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.pricing-card.featured .btn-premium-action {
  background: #e6a143;
  border: none;
  color: #000;
  box-shadow: 0 10px 20px rgba(230, 161, 67, 0.3);
}

.btn-premium-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card.featured .btn-premium-action:hover {
  background: #f0b15e;
  transform: scale(1.02);
}

/* ── COMPARISON TABLE ── */
.premium-comparison {
  padding: 80px 2rem;
  background: var(--bg2);
}

.comparison-container {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-container h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  font-weight: 800;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.comparison-table th,
.comparison-table td {
  padding: 20px 30px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.comparison-table td:nh-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
  text-align: center;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.premium-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #e6a143 !important;
  font-weight: 700 !important;
}

.premium-link:hover {
  filter: brightness(1.2);
}

.premium-link.active {
  background: rgba(230, 161, 67, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
}
.rank-num.gold {
  color: var(--gold);
}
.rank-num.silver {
  color: #c0c0c0;
}
.rank-num.bronze {
  color: #cd7f32;
}

.price-cell {
  font-weight: 700;
  color: var(--green);
}
.emoji-cell-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.emoji-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.market-emoji-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.emoji-text {
  font-size: 1.25rem;
  line-height: 1;
}

.emoji-name {
  color: var(--text);
}

.market-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}
.market-badge.global {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
}
.market-badge.local {
  background: rgba(144, 238, 144, 0.2);
  color: #90ee90;
}

.source-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(88, 101, 242, 0.85); /* Discord Blurple */
  color: white;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.source-btn:hover {
  transform: scale(1.05);
  background: #5865f2;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.loading-cell {
  text-align: center;
  padding: 3rem !important;
  color: var(--muted);
}

/* ── COMMANDS ── */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.cmd-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}
.cmd-card:hover {
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.1);
  transform: translateY(-2px);
}

.cmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.cmd-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blurple);
  font-family: "SF Mono", monospace;
}

.cmd-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 50px;
}

.cmd-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.cmd-card code {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "SF Mono", "Fira Code", monospace;
  display: block;
}

/* ── LEADERBOARD ── */
.leaderboard-wrap {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  transition: all 0.2s;
}
.lb-row:hover {
  border-color: rgba(255, 215, 0, 0.15);
  transform: translateX(4px);
}
.lb-row.top-1 {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.04);
}
.lb-row.top-2 {
  border-color: rgba(192, 192, 192, 0.2);
}
.lb-row.top-3 {
  border-color: rgba(205, 127, 50, 0.2);
}

.lb-rank {
  font-size: 1.2rem;
  font-weight: 900;
  min-width: 36px;
  text-align: center;
}

.lb-user {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-family: monospace;
}

.lb-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.lb-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green);
}

.lb-detail {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── CTA ── */
.cta-section {
  padding: 6rem 3rem;
  text-align: center;
  background:
    radial-gradient(
      ellipse 60% 80% at 50% 50%,
      rgba(88, 101, 242, 0.12) 0%,
      transparent 70%
    ),
    var(--bg2);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.cta-inner p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ── FOOTER ── */
.footer {
  padding: 3rem;
  text-align: center;
  background: var(--bg);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(139, 148, 158, 0.5);
}

/* ── DISCORD SECTION ── */
.discord-section {
  padding: 6rem 6rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.discord-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.discord-content {
  flex: 1;
}

.discord-badge-wrap {
  margin-bottom: 1rem;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.25);
  color: var(--blurple);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
}

.discord-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blurple);
  animation: pulse-blurple 2s infinite;
}

@keyframes pulse-blurple {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(88, 101, 242, 0);
  }
}

.discord-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.discord-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.discord-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.discord-feat-item {
  display: flex;
  gap: 1rem;
}

.feat-icon-diamond {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  transform: rotate(45deg);
}

.feat-icon-diamond > * {
  transform: rotate(-45deg);
}

.feat-text h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feat-text p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.discord-banner-cta {
  display: inline-flex;
  background: linear-gradient(90deg, #5865f2, #4752c4);
  padding: 18px 32px;
  gap: 12px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.discord-banner-cta:hover {
  transform: translateY(-3px);
}

.banner-content {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

/* Discord Widget Mockup */
.discord-widget-mockup {
  width: 420px;
  background: #313338;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-header {
  background: #5865f2;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.widget-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
}

.widget-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #23a55a;
  border-radius: 50%;
}

.widget-body {
  display: flex;
  height: 380px;
}

.widget-channels {
  width: 160px;
  background: #2b2d31;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.widget-channels::-webkit-scrollbar {
  width: 4px;
}
.widget-channels::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.channel-item {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #949ba4;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-item.active {
  background: #404249;
  color: #fff;
}

.channel-hash {
  font-size: 1.1rem;
  opacity: 0.5;
}

.widget-members {
  flex: 1;
  background: #1e1f22;
  padding: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.widget-members::-webkit-scrollbar {
  width: 4px;
}
.widget-members::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.member-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #949ba4;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #949ba4;
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}

.widget-footer {
  padding: 16px 20px;
  background: #2b2d31;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.btn-discord-join {
  background: #248046;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-discord-join:hover {
  background: #1a6334;
}

.widget-fishing-bot {
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 2.5rem;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
  animation: floating 3s ease-in-out infinite;
}

/* Decorative Islands */
.island {
  position: absolute;
  z-index: 1;
  font-size: 4rem;
  opacity: 0.4;
  filter: blur(1px);
}

.island-left {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: floating-top 4s ease-in-out infinite;
}

@keyframes floating-top {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(15px);
  }
}

.island-logo {
  height: auto;
  opacity: 0.4;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.island-left:hover .island-logo {
  opacity: 0.7;
  transform: scale(1.05);
}

.island-right {
  bottom: 15%;
  right: 5%;
  animation: floating 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ── MOBILE MENU TOGGLE ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 2rem 4rem;
  }
  .hero-visual {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 11, 14, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .navbar-end {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero {
    flex-direction: column;
    padding: 100px 1.5rem 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .hero-sub {
    font-size: 1.1rem;
    margin: 1.5rem auto 2.5rem;
  }

  .hero-cta {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
  }

  .hero-visual {
    display: none;
  }

  .stats-bar {
    flex-wrap: wrap;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .stat-divider {
    display: none;
  }

  .cards-row.three,
  .cards-row.six {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .commands-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .discord-section {
    padding: 5rem 1.5rem;
  }

  .discord-container {
    flex-direction: column;
    gap: 3.5rem;
  }

  .discord-widget-mockup {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .island {
    display: none;
  }

  .footer {
    padding: 4rem 1.5rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .stat-item {
    flex: 1 1 100%;
  }

  .discord-title {
    font-size: 1.8rem;
  }

  .market-table-wrap {
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ── DASHBOARD PAGE ── */
.dashboard-page {
  background: var(--bg);
}

.dashboard-hero {
  padding: 140px 2rem 60px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(0, 255, 127, 0.05) 0%,
    transparent 50%
  );
  text-align: center;
}

.dashboard-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 15px 0;
}

.dashboard-hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.dashboard-content {
  padding: 40px 2rem 100px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dash-card {
  background: var(--bg3);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.2s;
}

.dash-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.dash-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-guild-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.dash-guild-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dash-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.dash-status-badge.active {
  background: rgba(0, 255, 127, 0.1);
  color: var(--green);
}

.dash-status-badge.expired {
  background: rgba(255, 77, 77, 0.1);
  color: var(--red);
}

.dash-status-badge.standard {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.dash-card-body {
  flex-grow: 1;
}

.dash-detail {
  font-size: 0.85rem;
  color: var(--muted);
}

.dash-detail strong {
  color: var(--text);
}

.dash-card-footer {
  display: flex;
  gap: 12px;
}

.btn-dash {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-dash-primary {
  background: var(--blurple);
  color: #fff;
}

.btn-dash-primary:hover {
  filter: brightness(1.1);
}

.btn-dash-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

.btn-dash-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dash-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px dashed var(--card-border);
}

.dash-empty p {
  color: var(--muted);
  font-size: 1.1rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text);
}
