@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #eef1f6;
  --bg-alt: #ffffff;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-hover: #e9eef5;
  --border: rgba(0, 0, 0, 0.1);
  --text: #1a1a2e;
  --text-dim: #64748b;
--accent: #7c3aed;
  --accent-2: #5b21b6;
  --gold: #d97706;
  --flame1: #7c3aed;
  --flame2: #6d28d9;
  --danger: #e11d48;
  --green: #059669;
  --purple: #9333ea;
  --blue: #0284c7;
  --radius: 16px;
  --font-display: "Bebas Neue", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 6px;
}

/* ---------- Warning banner (file:// or offline) ---------- */

.warn-banner {
  background: linear-gradient(90deg, #1b1033, #2d1b4e);
  border-bottom: 1px solid var(--accent);
  color: #e4d5ff;
  font-size: 0.88rem;
  text-align: center;
  padding: 10px 16px;
  position: relative;
  z-index: 200;
}

.warn-banner code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--accent);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.logo span {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--card);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent-2);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 10;
  margin-left: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.scrim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  align-items: start;
}

.scrim-grid .entity-card {
  margin-bottom: 0;
}

.scrim-item {
  padding: 10px 14px !important;
}

.scrim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.scrim-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.scrim-row-title h4 {
  margin: 0;
  font-size: 0.95rem;
  font-family: inherit;
  letter-spacing: 0;
}

.scrim-row-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.76rem;
  margin-top: 3px;
}

.scrim-expand {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.feed-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.scrim-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.scrim-grid .ttab-btn {
  padding: 5px 9px;
  font-size: 0.72rem;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.scrim-guild-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.scrim-guild-card h3 {
  margin: 0 0 5px;
  font-size: 0.92rem;
}

.scrim-guild-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.74rem;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .scrim-grid,
  .guild-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-auth-link {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Layout ---------- */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  text-align: center;
  padding: 76px 20px 52px;
  background:
    radial-gradient(ellipse 55% 50% at 50% -10%, rgba(139, 92, 246, 0.18), transparent 65%),
    radial-gradient(ellipse 35% 30% at 85% 110%, rgba(139, 92, 246, 0.1), transparent 60%),
    radial-gradient(ellipse 30% 25% at 12% 100%, rgba(139, 92, 246, 0.08), transparent 60%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  border-radius: 2px;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.35));
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin: 14px auto 30px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 34px auto 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.5);
  background: var(--accent-2);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--card-hover);
}

.section {
  margin-top: 52px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section h2::before {
  content: "";
  flex: 0 0 auto;
  width: 44px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform: translateY(-4px);
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 22px;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.card .tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Lists ---------- */

.info-list {
  list-style: none;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.info-list li::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}

.info-list strong {
  color: var(--text);
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 560px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ---------- Tables ---------- */

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

tr:hover td {
  background: rgba(139, 92, 246, 0.06);
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

/* ---------- Difficulty ---------- */

.difficulty {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.difficulty.beginner {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

.difficulty.intermediate {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue);
}

.difficulty.pro {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
}

/* ---------- Badges / chips ---------- */

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin: 2px 4px 2px 0;
}

/* ---------- Result ---------- */

.result-box {
  margin-top: 20px;
  display: none;
}

.result-box.show {
  display: block;
}

.result-summary {
  background: rgba(139, 92, 246, 0.08);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: var(--text-dim);
}

.result-summary strong {
  color: var(--text);
}

.rating-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.rating-row .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.saved-config {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Notice ---------- */

.notice {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 40px;
}

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

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  background: #eef0f5;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

footer .disclaimer {
  margin-top: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Academy techniques ---------- */

.technique-card {
  cursor: pointer;
}

.technique-card:hover {
  cursor: pointer;
}

.technique-pct-small {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 700;
}

.technique-card .learn-btn {
  margin-top: 14px;
  width: 100%;
  text-align: center;
}

.stage-card {
  grid-column: 1 / -1;
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stage-head .back-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s;
}

.stage-head .back-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.stage-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}

.stage-progress .progress-track {
  flex: 1;
  margin-bottom: 0;
}

.stage-pct {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.technique-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.technique-pct {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 1px;
  color: var(--accent-2);
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
  flex: 0 0 auto;
}

.technique-sub {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.technique-sub strong {
  color: var(--text);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.15s, opacity 0.15s;
}

.step-row:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.step-row.step-done {
  border-color: rgba(52, 211, 153, 0.35);
}

.step-row.step-locked {
  opacity: 0.55;
}

.step-check {
  flex: 0 0 auto;
  margin-top: 3px;
  cursor: pointer;
}

.step-check input {
  display: none;
}

.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--border);
  color: transparent;
  font-size: 0.8rem;
  font-weight: 900;
  transition: all 0.15s;
  background: var(--card);
}

.step-check input:checked + .check-box {
  background: var(--green);
  border-color: var(--green);
  color: #04120b;
}

.step-check input:disabled + .check-box {
  opacity: 0.45;
  cursor: not-allowed;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  margin-right: 8px;
}

.step-row.step-done .step-num {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--green);
  color: var(--green);
}

.step-body {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.step-body strong {
  color: var(--text);
}

.technique-done {
  margin-top: 14px;
  text-align: center;
}

/* ---------- Progress bars ---------- */

.progress-track {
  height: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  transition: width 0.3s;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.progress-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-align: right;
}

/* ---------- Demo arena ---------- */

.demo {
  margin: 18px 0;
}

.demo img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
background: #e5e7eb;
}

.demo-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 8px;
}

.arena {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    var(--bg-alt);
  background-size: 28px 28px;
  overflow: hidden;
}

.arena .enemy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.6);
  animation: enemyPulse 1.4s ease-in-out infinite;
}

.arena .player {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
}

@keyframes enemyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.orbit {
  position: absolute;
  inset: 0;
}

.orbit .player {
  margin-top: -8px;
  margin-left: -8px;
}

.anim-circle .orbit { animation: spin360 2.8s linear infinite; }
.anim-insane .orbit { animation: spin360 1.1s linear infinite; }
.anim-circle .orbit .player, .anim-insane .orbit .player { top: 6%; left: 50%; }

@keyframes spin360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.anim-arc .player { animation: arcJump 1.7s ease-in-out infinite; }

@keyframes arcJump {
  0% { transform: translate(-110px, 40px); }
  45% { transform: translate(-20px, -50px); }
  100% { transform: translate(70px, 40px); }
}

.anim-drag .player { animation: dragShot 2.2s ease-in-out infinite; }

@keyframes dragShot {
  0% { transform: translate(75px, -75px); }
  55% { transform: translate(-8px, 5px); }
  70% { transform: translate(-2px, 2px); }
  85% { transform: translate(0, 0); }
  100% { transform: translate(75px, -75px); }
}

.anim-jump .player { animation: jumpFire 1.5s ease-in-out infinite; }

@keyframes jumpFire {
  0% { transform: translate(-60px, 45px); }
  35% { transform: translate(0, -45px); }
  60% { transform: translate(45px, -25px); }
  100% { transform: translate(-60px, 45px); }
}

.anim-combo .player { animation: comboPath 6s ease-in-out infinite; }

@keyframes comboPath {
  0% { transform: translate(-70px, -30px); }
  15% { transform: translate(-20px, -75px); }
  30% { transform: translate(40px, -40px); }
  45% { transform: translate(70px, 5px); }
  60% { transform: translate(35px, 55px); }
  75% { transform: translate(-35px, 60px); }
  100% { transform: translate(-70px, -30px); }
}

.wpn {
  position: absolute;
  top: 50%;
  margin-top: -18px;
  width: 64px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

.wpn.wpn-a {
  left: 12%;
  background: var(--accent);
  animation: swapA 2s ease-in-out infinite;
}

.wpn.wpn-b {
  right: 12%;
  background: var(--blue);
  animation: swapB 2s ease-in-out infinite;
}

@keyframes swapA {
  0%, 45% { transform: translateX(0); }
  55%, 100% { transform: translateX(155px); }
}

@keyframes swapB {
  0%, 45% { transform: translateX(0); }
  55%, 100% { transform: translateX(-155px); }
}

.anim-static .player { left: 50%; top: 50%; }

/* ---------- Name generator ---------- */

.name-results {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.name-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.name-result:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.copy-btn {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}

.copy-btn:hover {
  background: var(--accent);
  color: #fff;
}

.style-label {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 8px;
  vertical-align: 2px;
}

/* ---------- Champions ---------- */

.champ-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.champ-card {
  text-align: left;
}

.champ-first {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), var(--card));
  border-color: rgba(251, 191, 36, 0.35);
}

/* ---------- Build generator ---------- */

.role-pick {
  text-align: left;
  cursor: pointer;
}

.role-pick h3 {
  margin-bottom: 6px;
}

.role-pick .pick-btn {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

.build-output {
  margin-top: 24px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.build-main {
  border: 1px solid rgba(139, 92, 246, 0.6);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), var(--card));
}

.build-main h3 {
  color: var(--accent-2);
  font-size: 1.3rem;
}

.build-passive {
  border-left: 3px solid var(--green);
}

.build-passive h4 {
  color: var(--green);
}

.build-weapon {
  border-left: 3px solid var(--purple);
}

.build-weapon h4 {
  color: var(--purple);
}

.build-why {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 18px;
  color: var(--text-dim);
}

.build-why strong {
  color: var(--text);
}

.build-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------- Auth / nav ---------- */

.nav-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 8px;
  font-family: var(--font-body);
}

.nav-logout:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
}

.auth-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--green); }

/* ---------- Feed / posts ---------- */

.feed-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.feed-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.feed-item .feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.feed-item .feed-author {
  color: var(--accent-2);
  font-weight: 700;
  cursor: pointer;
}

.feed-item .feed-author:hover {
  text-decoration: underline;
}

.feed-item .feed-time {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.feed-item .feed-text {
  color: var(--text);
  margin-bottom: 10px;
}

.feed-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 0 0 12px;
background: #e5e7eb;
}

.like-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}

.like-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.like-btn.liked {
  background: rgba(251, 191, 36, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Avatar / stats ---------- */

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 44px;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}

.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  flex-basis: 32px;
  box-shadow: none;
}

.profile-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-head .avatar {
  width: 72px;
  height: 72px;
  font-size: 2rem;
  flex-basis: 72px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: border-color 0.15s;
}

.stat-box:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.stat-box .stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--accent-2);
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.stat-box .stat-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---------- Home stats strip ---------- */

.stats-strip {
  margin-top: -8px;
  padding: 28px 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- News ---------- */

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}

.news-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.news-card .news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 1px;
}

.news-card .news-body {
  color: var(--text-dim);
}

/* ---------- Guilds / tournaments ---------- */

.entity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}

.entity-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.entity-card .entity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.entity-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.entity-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 6px 0;
}

.team-code {
  display: inline-block;
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.team-code code {
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 1px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.member-row:last-child {
  border-bottom: none;
}

.member-row .member-name {
  font-weight: 600;
  cursor: pointer;
}

.member-row .member-name:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* ---------- Leaderboard ---------- */

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.85rem;
}

.rank-1 {
  background: rgba(251, 191, 36, 0.18);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.rank-2 {
  background: rgba(107, 114, 128, 0.08);
  border-color: #4b5563;
  color: #4b5563;
}

.rank-3 {
  background: rgba(205, 127, 50, 0.1);
  border-color: #b87333;
  color: #b87333;
}

/* ---------- Feature Card Image Previews ---------- */

.feature-card {
  display: flex;
  flex-direction: column;
}

.card-thumb-wrap {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  position: relative;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .card-thumb-img {
  transform: scale(1.06);
}

/* ---------- Interactive 60FPS Movement Simulator ---------- */

.simulator-wrapper {
  margin: 18px 0;
  background: #f0f1f6;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 0 20px rgba(139, 92, 246, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-canvas {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 10px;
border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
  background: #e8eaf0;
}

.sim-controls-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.speed-toggle-group {
  display: flex;
  gap: 4px;
  align-items: center;
background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.speed-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.technique-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tech-weapon-tag {
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------- In-Game Player Card Preview ---------- */

.ff-card-preview-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

.ff-profile-card {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(135deg, #f0eafa, #f8f6fd 60%, #ede5fb);
  border: 2px solid rgba(139, 92, 246, 0.6);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(139, 92, 246, 0.1);
}

.card-glow-bg {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%);
  pointer-events: none;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.card-rank-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

.rank-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.rank-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.card-char-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.card-char-badge.valid {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid var(--green);
  color: var(--green);
}

.card-char-badge.invalid {
  background: rgba(251, 113, 133, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.card-main-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card-avatar-box {
  position: relative;
  flex: 0 0 auto;
}

.card-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #a78bfa;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
}

.card-lvl-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #fbbf24;
  color: #000;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.card-info-box {
  flex: 1;
  min-width: 0;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-ign {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-v-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  font-weight: 900;
  font-size: 0.8rem;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.card-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 0.72rem;
background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-dim);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 18px 0 14px;
  text-align: center;
}

.c-stat-v {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.c-stat-l {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

/* Killfeed Bar Mockup */
.killfeed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  overflow-x: auto;
}

.kf-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
}

.kf-killer {
  color: var(--gold);
}

.kf-weapon {
  color: var(--text-dim);
  font-family: monospace;
}

.kf-headshot {
  color: #ef4444;
  font-size: 0.72rem;
}

.kf-victim {
  color: var(--text-dim);
}

/* ---------- Pro Name Generator & Customizer UI ---------- */

.name-controls-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.name-cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.name-cat-btn {
background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}

.name-cat-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.name-cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.name-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.name-card-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.name-card-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.name-card-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.name-val {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.5px;
  word-break: break-all;
}

.char-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.valid-len {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.warn-len {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.name-card-btns {
  display: flex;
  gap: 6px;
}

/* Customizer Card */
.customizer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.quick-decor-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.decor-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: 4px;
}

.decor-btn {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-2);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}

.decor-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Symbol Palette Keyboard */
.symbol-palette-wrapper {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}

.palette-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.symbol-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sym-chip {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.sym-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

/* Invisible Space Tool */
.space-tool-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 16px 0;
  gap: 12px;
  flex-wrap: wrap;
}

/* Font Cards Grid */
.font-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.font-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;
}

.font-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.font-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.font-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.font-output {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
  min-height: 28px;
}

.font-card-actions {
  display: flex;
  gap: 6px;
}

/* Favorites Drawer */
.favorites-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
}

.fav-name {
  font-weight: 800;
  color: var(--gold);
  font-size: 1rem;
}

.fav-actions {
  display: flex;
  gap: 6px;
}

.empty-hint {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
}

/* Floating Feedback Toast */
.ff-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.ff-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Role Cards & Icons */
.role-card {
  position: relative;
  padding-top: 24px;
}

.role-icon-box {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ---------- Compact Professional Gaming Profile Card ---------- */

.pro-gaming-card {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(145deg, #f0eafa, #f6f5fa 70%, #ede5fb);
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08), 0 0 25px rgba(139, 92, 246, 0.08);
  position: relative;
  overflow: hidden;
}

.pro-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.pro-user-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pro-avatar-box {
  position: relative;
  flex: 0 0 auto;
}

.pro-avatar {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4c1d95);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}

.pro-username-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-username {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}

.pro-badge.admin {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.pro-rank-tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.pro-uid-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 4px;
}

.pro-copy-uid {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  color: var(--accent-2);
}

.pro-stats-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pro-stat-tile {
background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.pro-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.pro-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.ff-verified-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.ff-verified-head {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}

.ff-v-lbl {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.ff-v-val {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.pro-bio-quote {
background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 16px;
}

.pro-tabs-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
}

.pro-tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}

.pro-tab-btn:hover {
  color: var(--text);
background: rgba(0, 0, 0, 0.03);
}

.pro-tab-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent);
  color: var(--accent-2);
}

.pro-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.pro-info-tile {
background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.pro-info-tile h4 {
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pro-info-tile p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.pro-info-tile strong {
  color: var(--text);
}

.pro-weapons-grid, .pro-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.pro-weapon-chip, .pro-trophy-badge {
background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-w-stat {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 700;
}

.pro-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-players-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto;
}

.pro-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.pro-p-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pro-p-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
}

.pro-p-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pro-p-stat {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Tactical Strategy eBooks Hub & Reader Modal ---------- */

.ebook-search-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.ebook-search-bar input {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.ebook-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.eb-filter {
  cursor: pointer;
  transition: all 0.15s;
}

.eb-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.ebook-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ebook-reader-modal {
  margin-top: 24px;
  background: #f7f6fa;
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s;
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.reader-body {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.reader-footer {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Community Introduction Lounge ---------- */

.community-intro-card {
  background: linear-gradient(135deg, #f0eafa, #f6f5fa);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.intro-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.18);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 14px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.intro-main {
  flex: 1;
  min-width: 280px;
}

.intro-main h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.intro-main p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.intro-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

/* ---------- Weapon Arsenal & Meta Tier List ---------- */

.meta-arsenal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.tier-card {
  border-radius: 14px;
  padding: 18px;
}

.tier-card.tier-s {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), var(--card));
  border-color: rgba(239, 68, 68, 0.4);
}

.tier-card.tier-a {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), var(--card));
  border-color: rgba(139, 92, 246, 0.4);
}

.tier-card.tier-b {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), var(--card));
  border-color: rgba(56, 189, 248, 0.4);
}

.tier-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.tier-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.tier-tag.s { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
.tier-tag.a { color: var(--accent-2); text-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
.tier-tag.b { color: var(--blue); }

.tier-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
}

.weapon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.w-info {
  display: flex;
  flex-direction: column;
}

.w-info strong {
  font-size: 0.92rem;
  color: var(--text);
}

.w-info span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.w-stats {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.w-dmg {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.w-rate {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Character & Pet Synergy Matrix ---------- */

.skill-matrix-card {
  padding: 20px;
}

.skill-build-header {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.skill-build-header h3 {
  font-size: 1.25rem;
  margin-top: 4px;
}

.skill-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-slot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-slot.active-slot {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.08);
}

.skill-slot.pet-slot {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.05);
}

.s-type {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--accent-2);
background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
}

.skill-slot.pet-slot .s-type {
  color: var(--gold);
}

/* ---------- Guild Connect & Recruitment Hub ---------- */

.guild-filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.guild-filter-bar input {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.guild-region-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.g-filter {
  cursor: pointer;
  transition: all 0.15s;
}

.g-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.guild-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.guild-card-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guild-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.guild-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.pro-guild-lvl {
  font-size: 0.65rem;
  font-weight: 900;
  color: #000;
  background: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.guild-leader-lbl {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

.guild-reqs-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.g-req-pill {
  font-size: 0.72rem;
background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-dim);
  font-weight: 700;
}

.guild-code-box {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.g-code {
  color: var(--accent-2);
  font-weight: 800;
}

.copy-g-code {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-g-code:hover {
  background: var(--accent);
  color: #fff;
}

.guild-desc-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.4;
}

.guild-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guild-date {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ---------- News & Patch Updates ---------- */

.news-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.n-filter {
  cursor: pointer;
  transition: all 0.15s;
}

.n-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card-item {
  transition: transform 0.15s, border-color 0.15s;
}

.news-card-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
}

.nav-more-toggle {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}

.nav-more-toggle:hover {
  color: var(--text);
  background: var(--card);
}

.dd-caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

.nav-dropdown-parent {
  position: relative;
}

.nav-dropdown-parent .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-parent.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 10px;
  min-width: 200px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 6px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
  animation: ddFadeIn 0.15s ease-out;
}

.nav-dropdown-parent.align-right .nav-dropdown-menu {
  left: auto;
  right: 0;
}

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-account {
  position: relative;
  list-style: none;
}

.nav-login-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-login-btn:hover {
  color: #fff !important;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
}

.nav-account.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 10px;
  min-width: 200px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 6px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
  animation: ddFadeIn 0.15s ease-out;
}

.nav-user-pill {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 14px;
  color: var(--accent-2) !important;
  font-weight: 800;
  white-space: nowrap;
}

.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  margin-right: 4px;
}

.nav-dropdown-menu a {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--text) !important;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-2) !important;
}

/* ---------- Mobile Slide-In Drawer ---------- */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-logo {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--text);
  font-size: 0.95rem;
}

.drawer-logo b {
  color: var(--accent-2);
}

.drawer-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.drawer-body {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 18px 20px;
}

.drawer-section {
  margin: 16px 0;
}

.drawer-section h4 {
  color: var(--accent-2);
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.drawer-section a {
  display: block;
  color: var(--text);
  padding: 10px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-section a:hover {
  color: var(--accent-2);
  text-decoration: none;
}

.drawer-foot {
  padding: 14px 18px calc(22px + env(safe-area-inset-bottom, 0px));
border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ---------- Site Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px 20px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.footer-col h4 {
  color: var(--accent-2);
  font-family: var(--font-display);
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  padding: 4px 0;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: var(--accent-2);
  text-decoration: none;
}

.footer-tag {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 4px 0 12px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  transition: color 0.15s, border-color 0.15s;
}

.footer-social a:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 18px;
}

/* ---------- Redeem Codes Ticker ---------- */

.nav-dropdown-menu a {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--text) !important;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-2) !important;
}

/* ---------- Redeem Codes Ticker ---------- */

.redeem-strip {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.redeem-code-tag {
  background: var(--bg-alt);
  border: 1px dashed var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--gold);
  cursor: pointer;
  transition: transform 0.15s;
}

.redeem-code-tag:hover {
  transform: scale(1.03);
}

/* ---------- Daily Challenge Card ---------- */

.home-chal-card {
  background: linear-gradient(135deg, #f0eafa, #f6f5fa);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.home-chal-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-chal-icon {
  font-size: 2.2rem;
}

.home-chal-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* ---------- Compact Home Sections ---------- */

.home-tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.home-chal-compact {
  background: linear-gradient(135deg, #f0eafa, #f6f5fa);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 760px;
  margin: 0 auto;
}

.home-chal-compact .home-chal-head {
  justify-content: space-between;
}

.home-chal-compact .home-chal-reward {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: 1rem;
  white-space: nowrap;
}

.chal-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chal-progress-row .progress-track {
  flex: 1;
  margin-bottom: 0;
}

.home-chal-foot {
  margin-top: 12px;
  text-align: right;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}

.guide-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.post-preview-card {
  display: flex;
  flex-direction: column;
}

.empty-state-card {
  background: linear-gradient(135deg, #f0eafa, #f6f5fa);
  border: 1px dashed rgba(139, 92, 246, 0.5);
  border-radius: 14px;
}

/* ---------- Spotlight Card ---------- */

.spotlight-card {
  background: linear-gradient(135deg, #fdf6e3, #f6f5f9);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 14px;
  padding: 18px;
  height: 100%;
}

.spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.spotlight-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
background: rgba(0, 0, 0, 0.03);
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.sp-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}

.sp-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---------- Leaderboard Podium Card ---------- */

.home-podium-card {
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  position: relative;
}

.home-podium-card.podium-1 {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

/* ---------- Weapons Hub & Comparison Matrix ---------- */

.weapon-filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.weapon-filter-bar input {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.weapon-category-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.w-filter {
  cursor: pointer;
  transition: all 0.15s;
}

.w-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.weapons-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.weapon-detail-card {
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.w-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.w-stats-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.w-stat-item label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.w-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w-stat-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  min-width: 26px;
}

.w-stat-track {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.w-stat-fill {
  height: 100%;
  border-radius: 3px;
}

.w-pro-tips-strip {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.w-tip-tile strong {
  color: var(--accent-2);
}

/* Comparison Tool */

.comparison-box {
  padding: 20px;
  max-width: 780px;
  margin: 0 auto;
}

.comparison-selectors {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.comparison-selectors .form-group {
  flex: 1;
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #ef4444;
  font-weight: 900;
}

.comp-table-wrap {
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.comp-table th, .comp-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.comp-table th:first-child, .comp-table td:first-child {
  text-align: left;
}

.comp-win {
  color: var(--green);
  font-weight: 800;
}

/* ---------- Rewards System ---------- */

.rewards-user-card {
  background: linear-gradient(145deg, #f0eafa, #f6f5fa);
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 24px;
}

.rew-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rew-metric-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
}

.rew-metric-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
}

.rew-metric-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.tier-reward-item {
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.tier-reward-item.tier-unlocked {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.tier-reward-item.tier-locked {
  opacity: 0.65;
}

.t-rew-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-rew-icon {
  font-size: 2.2rem;
}

.t-rew-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Leaderboards Tabs ---------- */

.leaderboard-tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lb-tab {
  cursor: pointer;
  transition: all 0.15s;
}

.lb-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

/* ---------- Settings Page ---------- */

.settings-card {
  padding: 20px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.settings-toggle-row {
  margin-top: 10px;
  font-size: 0.9rem;
}

.settings-toggle-row input {
  margin-right: 8px;
}

/* ---------- Interactive Map Containers & Drawer ---------- */

.map-container-card {
  border-radius: 16px;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  background: linear-gradient(145deg, #ece6f9, #f6f5fa);
  display: flex;
  flex-direction: column;
}

.map-container-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

.map-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.map-icon-box {
  font-size: 2.5rem;
}

.map-guide-drawer {
  margin-top: 24px;
  background: #f5f4fa;
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 30px rgba(139, 92, 246, 0.08);
  animation: fadeIn 0.3s;
}

.map-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

/* ---------- Social Quests & Challenge Items ---------- */

.quest-card {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quest-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.quest-icon {
  font-size: 2rem;
}

.quest-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

.quest-xp {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green);
  font-weight: 800;
}

.chal-item-card {
  border-radius: 14px;
  padding: 16px;
}

/* ---------- Admin CMS Panel ---------- */

.admin-cms-card {
  background: linear-gradient(145deg, #ece4fc, #f5f3fa);
border: 1.5px solid #fbbf24;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .mobile-auth-link {
    display: inline-flex;
  }

  .nav-links {
    display: none !important;
  }

  .navbar {
    padding: 0 12px;
  }

  .navbar .nav-toggle {
    order: 0;
    margin-left: 0;
    margin-right: 8px;
  }

  .navbar .logo {
    order: 1;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 1px;
    gap: 8px;
  }

  .navbar .mobile-auth-link {
    order: 2;
  }

  .nav-logo-img {
    width: 28px;
    height: 28px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 52px 16px 36px;
  }

  main {
    padding: 24px 16px 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section h2::before {
    width: 32px;
  }

  .step-row {
    flex-direction: column;
  }
}

/* ===== BLOG (NEWS & GUIDES) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.blog-card.featured .blog-thumb {
  aspect-ratio: auto;
  min-height: 260px;
}

.blog-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.blog-card.featured .blog-thumb { border-bottom: none; border-right: 1px solid var(--border); }
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }

.blog-thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.25));
  font-size: 1rem;
}
.blog-thumb-fallback.big {
  font-size: 1.6rem;
  letter-spacing: 4px;
}

.blog-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.blog-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}
.blog-body h3 a { color: var(--text); }
.blog-body h3 a:hover { color: var(--accent-2); }

.blog-excerpt {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.blog-meta {
  color: var(--text-dim);
  font-size: 0.76rem;
}

.blog-readmore { align-self: flex-start; }

.cat-tile:hover { border-color: var(--accent); }

.article-content h2 { font-size: 1.35rem; margin: 26px 0 10px; color: var(--text); }
.article-content h3 { font-size: 1.12rem; margin: 20px 0 8px; color: var(--accent-2); }
.article-content p { margin: 0 0 14px; }
.article-content a { color: var(--accent-2); text-decoration: underline; }
.article-content ul, .article-content ol { margin: 0 0 16px 22px; line-height: 1.9; }

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-template-columns: 1fr; }
  .blog-card.featured .blog-thumb {
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .blog-readmore,
  .cat-tile { min-height: 44px; }
}

/* Community feed menu */
.feed-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.85rem;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
}
.feed-menu-item:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

/* ---------- Academy lessons ---------- */
.progress-card { text-align: left; }
.lesson-card { display: flex; flex-direction: column; gap: 8px; }
.lesson-card.lesson-locked { opacity: 0.55; }
.lesson-head { display: flex; justify-content: space-between; align-items: center; }
.lesson-icon { font-size: 1.8rem; }
.lesson-short { color: var(--text-dim); font-size: 0.88rem; margin: 0; flex: 1; }
.lesson-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lesson-progress { color: var(--gold); font-size: 0.78rem; font-weight: 700; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 760px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 28px 24px;
  -webkit-overflow-scrolling: touch;
}
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--text-dim); font-size: 2rem; line-height: 1;
  cursor: pointer; min-width: 44px; min-height: 44px;
}
.modal-close:hover { color: #fff; }

.lesson-step {
  border-left: 3px solid var(--accent);
  padding: 8px 12px; margin: 10px 0;
  background: var(--card); border-radius: 0 8px 8px 0;
}
.lesson-step p { margin: 4px 0 0; color: var(--text-dim); font-size: 0.9rem; }
.lesson-media {
  width: 100%; max-height: 320px; object-fit: contain;
  border-radius: 10px; margin: 12px 0; background: #e5e7eb;
  border: 1px solid rgba(0,0,0,.08);
}
.lesson-media-empty {
  display: flex; align-items: center; justify-content: center;
  height: 90px; color: var(--text-dim); font-size: .85rem;
}
#lessonBody h3 { margin-top: 20px; font-size: 1.05rem; }
#lessonBody ul { color: var(--text-dim); font-size: 0.9rem; padding-left: 20px; }
#lessonBody ul li { margin: 5px 0; }

.quiz-question { margin: 14px 0; }
.quiz-options { display: grid; gap: 8px; margin-top: 8px; }
.quiz-option {
  text-align: left; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  cursor: pointer; font-size: 0.9rem; min-height: 44px;
}
.quiz-option:hover { border-color: var(--accent); }
.quiz-option.quiz-picked { border-color: var(--accent); background: rgba(139, 92, 246, 0.15); }
.quiz-option.quiz-right { border-color: var(--green); background: rgba(34, 197, 94, 0.12); }
.quiz-option.quiz-wrong { border-color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.quiz-result { border-radius: 10px; padding: 14px; margin: 12px 0; }
.quiz-pass { background: rgba(34, 197, 94, 0.1); border: 1px solid var(--green); }
.quiz-fail { background: rgba(239, 68, 68, 0.08); border: 1px solid #ef4444; }
.quiz-gate { text-align: center; padding: 18px; border: 1px dashed var(--border); border-radius: 10px; margin-top: 18px; }
.quiz-gate p { color: var(--text-dim); }

.role-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.82rem; color: var(--text-dim); }
.role-list li { margin: 6px 0; }
.guide-link-card { display: block; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.guide-link-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.guide-link-card p { color: var(--text-dim); font-size: 0.85rem; margin: 6px 0 0; }

@media (max-width: 600px) {
  .modal-overlay { padding: 10px; align-items: flex-end; }
  .modal-card { max-height: 92vh; padding: 22px 16px; }
  .quiz-option { font-size: 0.85rem; }
}

/* ===== Mobile Bottom App-Bar (Eagle-style) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.bn-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 2px; min-height: 48px; border-radius: 10px;
  color: var(--text-dim); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none; transition: color 0.15s, background 0.15s;
}
.bn-icon { font-size: 1.25rem; line-height: 1; }
.bn-item.active { color: var(--accent-2); background: rgba(139, 92, 246, 0.12); }
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Hero stat counters ===== */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 720px; margin: 22px auto 0;
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(0, 0, 0, 0.03); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 8px;
}
.hero-stat-val {
  font-size: clamp(1.15rem, 3vw, 1.7rem); font-weight: 900; color: var(--gold);
  letter-spacing: 0.5px; text-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
}
.hero-stat-lbl { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* ===== Live Action ===== */
.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444; margin-right: 8px; vertical-align: middle;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); opacity: 0.75; }
}
.live-chip { color: #ef4444 !important; border-color: #ef4444 !important; font-weight: 800; animation: chipBlink 1.6s ease-in-out infinite; }
@keyframes chipBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.live-card { display: block; text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.live-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.live-card h3 { margin: 8px 0 2px; }
.live-card-head { display: flex; gap: 6px; flex-wrap: wrap; }
.live-host { color: var(--text-dim); font-size: 0.82rem; margin: 2px 0 6px; }
.live-host strong { color: var(--text); }
.live-countdown { color: var(--accent-2); font-size: 0.85rem; font-weight: 700; margin: 0 0 8px; }
.slot-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.slot-row .progress-track { flex: 1; }
.slot-txt { font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.live-join-btn { width: 100%; text-align: center; pointer-events: none; }

/* ===== Why Pro Hub ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.why-card { text-align: center; padding: 24px 18px; transition: transform 0.15s, border-color 0.15s; }
.why-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.why-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.why-card h3 { margin-bottom: 6px; }
.why-card p { color: var(--text-dim); font-size: 0.85rem; margin: 0; line-height: 1.5; }

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Hall of Fame ===== */
.hof-card { text-align: center; padding: 22px 16px; transition: transform 0.15s, border-color 0.15s; }
.hof-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.hof-rank { font-size: 1.9rem; margin-bottom: 8px; }
.hof-card h3 { font-size: 1rem; margin-bottom: 6px; }
.hof-champ { color: var(--text-dim); font-size: 0.85rem; margin: 0 0 4px; }
.hof-champ a { color: var(--gold); }
.hof-champ strong { color: var(--gold); }
.hof-meta { color: var(--text-dim); font-size: 0.75rem; margin: 0; }

/* ===== Result cards (recent results) ===== */
.result-card { display: block; text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.result-card:hover { transform: translateY(-3px); border-color: var(--green); text-decoration: none; }
.result-card h3 { margin: 6px 0 6px; }
.result-champ { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 4px; }
.result-champ strong { color: var(--gold); }

/* ===== Tournament card tabs ===== */
.ttabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 12px 0 12px; }
.ttab-btn { background: transparent; border: none; color: var(--text-dim); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 1px; padding: 8px 12px; cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.ttab-btn:hover { color: var(--text); }
.ttab-btn.active { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; overflow-y: auto; }
.modal-card { background: var(--bg-card, #ffffff); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }

/* ===== Bottom nav: Play action sheet ===== */
.bn-play { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
.play-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(2px);
  z-index: 1900; display: flex; align-items: flex-end; justify-content: center; }
.play-sheet { width: 100%; max-width: 480px; background: var(--bg-card, #ffffff); border: 1px solid var(--border);
  border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px; animation: sheetUp 0.2s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.play-sheet h4 { margin: 4px 0 8px; letter-spacing: 2px; color: var(--accent-2); text-align: center; }
.play-sheet a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.play-sheet a:hover { background: rgba(0,0,0,0.04); }
.play-sheet-handle { width: 44px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 8px; }

/* ===== Pro desktop nav ===== */
@media (min-width: 981px) {
  .nav-links { gap: 4px; }
  .nav-links > li > a {
    text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.8rem; font-weight: 700;
    padding: 10px 14px; border-radius: 8px; position: relative;
  }
  .nav-links > li > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease;
  }
  .nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
  .nav-more-toggle { text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.8rem; font-weight: 700; padding: 10px 12px; border-radius: 8px; position: relative; }
  .nav-more-toggle::after {
    content: ""; position: absolute; left: 12px; right: 24px; bottom: 4px; height: 2px;
    background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease;
  }
  .nav-dropdown-parent:hover .nav-more-toggle::after,
  .nav-dropdown-parent.active .nav-more-toggle::after,
  .nav-dropdown-parent.open .nav-more-toggle::after { transform: scaleX(1); }
}

/* ===== Tournament state filter chips ===== */
.tstate-chip { cursor: pointer; font-weight: 700; opacity: 0.65; transition: opacity 0.15s, border-color 0.15s, color 0.15s; }
.tstate-chip:hover { opacity: 1; }
.tstate-chip.active { opacity: 1; color: var(--accent-2) !important; border-color: var(--accent-2) !important; box-shadow: 0 0 0 1px var(--accent-2) inset; }

/* ===== Play hub cards ===== */
.play-action-card { text-align: center; padding: 16px 12px; text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.play-action-card:hover { transform: translateY(-4px); border-color: var(--accent-2); text-decoration: none; }
.play-action-card h3 { margin-top: 4px; letter-spacing: 1px; font-size: 0.85rem; }
.play-t-card { display: block; text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.play-t-card:hover { transform: translateY(-2px); border-color: var(--accent-2); text-decoration: none; }

/* ===== REAL WEAPON RENDERS & SHOWCASES ===== */
.w-image-showcase {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(16, 16, 19, 0) 70%);
  border-radius: 12px;
  margin: 10px 0;
  overflow: hidden;
  padding: 10px;
}
.weapon-img-render {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 12px rgba(139, 92, 246, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.weapon-detail-card:hover .weapon-img-render {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
}

/* ===== REAL TACTICAL MAP CONTAINERS & VIEWER ===== */
.map-container-card {
  overflow: hidden;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
.map-thumb-preview {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f6fa;
}
.map-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.map-container-card:hover .map-img-cover {
  transform: scale(1.08);
}
.map-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.1) 0%, rgba(9, 9, 11, 0.85) 100%);
}
.map-tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.map-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.map-big-view-box {
  background: #eef0f4;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.map-big-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.map-img-frame {
  width: 100%;
  max-height: 520px;
  border-radius: 12px;
  overflow: hidden;
background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-full-render {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* ===== OFFICIAL RANK BADGES ===== */
.rank-badge-img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}
.rank-badge-lg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* ===== FOOTER GARENA & OFFICIAL BRANDING ===== */
.footer-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.garena-footer-logo {
  height: 32px;
  object-fit: contain;
  filter: grayscale(20%) brightness(0.9);
  transition: filter 0.2s ease;
}
.garena-footer-logo:hover {
  filter: grayscale(0%) brightness(1.1);
}

