/**
 * Tamriel Forge — Sister Site to Tamriel Tactics (tamrielforge.com)
 * Deep Elder Scrolls Dark/Warm Stone & Parchment Aesthetic
 */

:root {
  color-scheme: dark light;

  --bg: #14120f;
  --surface: #1c1a15;
  --surface-2: #232019;
  --surface-3: #2d2920;
  --fg: #ece6da;
  --muted: #a49a88;
  --border: #332e25;
  --border-strong: #433c30;
  --accent: #d4a24e;
  --accent-soft: rgba(212, 162, 78, 0.12);
  --accent-fg: #17140f;

  /* ESO Role Badges */
  --role-tank: #77a3d6;
  --role-tank-bg: rgba(119, 163, 214, 0.12);
  --role-healer: #74cf92;
  --role-healer-bg: rgba(116, 207, 146, 0.12);
  --role-dps: #dd8570;
  --role-dps-bg: rgba(221, 133, 112, 0.12);
  --role-solo: #c288d9;
  --role-solo-bg: rgba(194, 136, 217, 0.12);

  /* ESO Item Rarities */
  --rarity-legendary: #eeac00;
  --rarity-epic: #a02ef7;
  --rarity-superior: #3a92ff;
  --rarity-fine: #2dc50e;
  --rarity-normal: #ece6da;
  --rarity-mythic: #ffaa00;

  /* Attributes */
  --attr-health: #e63946;
  --attr-magicka: #3a86ff;
  --attr-stamina: #2a9d8f;

  /* Constellations */
  --cp-warfare: #3a86ff;
  --cp-fitness: #e63946;
  --cp-craft: #52b788;

  --font-display: "Cinzel", Georgia, "PT Serif", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  --bg: #f3eede;
  --surface: #fcf9f0;
  --surface-2: #f1e9d6;
  --surface-3: #e8dfc7;
  --fg: #2b2620;
  --muted: #6c6353;
  --border: #ddd1b8;
  --border-strong: #ccbe9f;
  --accent: #9a6a1e;
  --accent-soft: rgba(154, 106, 30, 0.12);
  --accent-fg: #ffffff;

  --role-tank: #2f6aa8;
  --role-tank-bg: rgba(47, 106, 168, 0.12);
  --role-healer: #2f8a55;
  --role-healer-bg: rgba(47, 138, 85, 0.12);
  --role-dps: #b24a37;
  --role-dps-bg: rgba(178, 74, 55, 0.12);
  --role-solo: #7b4299;
  --role-solo-bg: rgba(123, 66, 153, 0.12);

  --shadow: 0 1px 2px rgba(60, 50, 30, 0.12), 0 10px 28px rgba(60, 50, 30, 0.12);
}

html[data-theme="dark"] {
  --bg: #14120f;
  --surface: #1c1a15;
  --surface-2: #232019;
  --surface-3: #2d2920;
  --fg: #ece6da;
  --muted: #a49a88;
  --border: #332e25;
  --border-strong: #433c30;
  --accent: #d4a24e;
  --accent-soft: rgba(212, 162, 78, 0.12);
  --accent-fg: #17140f;

  --role-tank: #77a3d6;
  --role-tank-bg: rgba(119, 163, 214, 0.12);
  --role-healer: #74cf92;
  --role-healer-bg: rgba(116, 207, 146, 0.12);
  --role-dps: #dd8570;
  --role-dps-bg: rgba(221, 133, 112, 0.12);
  --role-solo: #c288d9;
  --role-solo-bg: rgba(194, 136, 217, 0.12);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 0;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
   Topbar & Brand
   ========================================================= */
.topbar {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(var(--surface), var(--bg));
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--accent); }

.brand-emblem {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sister-tag {
  font-size: 0.68rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.nav-link {
  color: var(--muted);
  font: 600 0.86rem var(--font-body);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--fg);
  background: var(--surface-2);
  text-decoration: none;
}

.topbar .spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover {
  filter: brightness(1.1);
  color: var(--accent-fg);
}
.btn-sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  padding: 2.25rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 680px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* =========================================================
   Filter & Controls Row
   ========================================================= */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem 0;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}
.filter-chip.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  min-width: 240px;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* =========================================================
   Character Selector Strip
   ========================================================= */
.char-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.char-card-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  min-width: 170px;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
  color: inherit;
  flex-shrink: 0;
}
.char-card-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.char-card-btn.active {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent);
}

.char-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-card-meta {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* =========================================================
   Build Card Sheet (Main Display)
   ========================================================= */
.build-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.build-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.build-title-group h2 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.build-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-badge.tank { color: var(--role-tank); background: var(--role-tank-bg); border: 1px solid var(--role-tank); }
.role-badge.healer { color: var(--role-healer); background: var(--role-healer-bg); border: 1px solid var(--role-healer); }
.role-badge.dps { color: var(--role-dps); background: var(--role-dps-bg); border: 1px solid var(--role-dps); }
.role-badge.solo { color: var(--role-solo); background: var(--role-solo-bg); border: 1px solid var(--role-solo); }

/* Armory Tabs */
.armory-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.armory-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.armory-tab-btn:hover { color: var(--fg); }
.armory-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Attributes Bar */
.attributes-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.attr-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.attr-pill {
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.attr-magicka { color: var(--attr-magicka); background: rgba(58, 134, 255, 0.12); }
.attr-health { color: var(--attr-health); background: rgba(230, 57, 70, 0.12); }
.attr-stamina { color: var(--attr-stamina); background: rgba(42, 157, 143, 0.12); }

/* Hotbars & Skills */
.skills-section {
  margin-bottom: 2rem;
}
.section-title-sm {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotbar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 860px) {
  .hotbar-container {
    grid-template-columns: 1fr;
  }
}

.hotbar-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.hotbar-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
}

.skills-slots-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}

.skill-slot {
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.skill-slot:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.skill-slot.ultimate {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface-3), rgba(212, 162, 78, 0.12));
}
.skill-slot.ultimate .skill-icon-img {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(212, 162, 78, 0.35);
}
.skill-slot.empty {
  opacity: 0.6;
}

.skill-slot-idx {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 0.62rem;
  color: var(--accent);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(212, 162, 78, 0.3);
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
  z-index: 2;
}

.skill-icon-wrapper {
  width: 48px;
  height: 48px;
  margin-bottom: 0.45rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1013;
  border-radius: 6px;
}

.skill-icon-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.skill-icon-fallback {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted);
}

.skill-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px dashed var(--border);
  margin-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.02);
}

.skill-name, .skill-slot-name {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.skill-morph, .skill-slot-base {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* =========================================================
   Champion Points 2.0 Constellation Matrix
   ========================================================= */
.cp-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.cp-header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cp-total-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--fg);
}
.cp-total-pill strong {
  color: var(--accent);
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.cp-constellation-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.15s ease;
}
.cp-constellation-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cp-constellation-card.tree-warfare {
  border-top: 3px solid #3a86ff;
}
.cp-constellation-card.tree-fitness {
  border-top: 3px solid #e63946;
}
.cp-constellation-card.tree-craft {
  border-top: 3px solid #52b788;
}

.cp-constellation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
}

.cp-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cp-emblem-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.cp-tree-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.cp-tree-title.warfare { color: #60a5fa; }
.cp-tree-title.fitness { color: #f87171; }
.cp-tree-title.craft   { color: #4ade80; }

.cp-tree-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}
.cp-tree-tag.warfare { background: rgba(58, 134, 255, 0.15); color: #60a5fa; border: 1px solid rgba(58, 134, 255, 0.3); }
.cp-tree-tag.fitness { background: rgba(230, 57, 70, 0.15); color: #f87171; border: 1px solid rgba(230, 57, 70, 0.3); }
.cp-tree-tag.craft   { background: rgba(82, 183, 136, 0.15); color: #4ade80; border: 1px solid rgba(82, 183, 136, 0.3); }

.cp-stars-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cp-star-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  transition: all 0.15s ease;
}
.cp-star-row:hover {
  border-color: rgba(212, 162, 78, 0.35);
  background: rgba(255, 255, 255, 0.02);
}
.cp-star-row.empty-star {
  opacity: 0.55;
  border-style: dashed;
}

.cp-star-frame-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #09090b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border-strong);
  margin-top: 1px;
}
.cp-star-frame-box.warfare { border-color: rgba(58, 134, 255, 0.4); }
.cp-star-frame-box.fitness { border-color: rgba(230, 57, 70, 0.4); }
.cp-star-frame-box.craft   { border-color: rgba(82, 183, 136, 0.4); }

.cp-star-frame-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cp-star-slot-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  background: #000;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 1px 3px;
}

.cp-star-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cp-star-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cp-star-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-points-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--fg);
  flex-shrink: 0;
}
.cp-points-badge.warfare { color: #93c5fd; border-color: rgba(58, 134, 255, 0.35); }
.cp-points-badge.fitness { color: #fca5a5; border-color: rgba(230, 57, 70, 0.35); }
.cp-points-badge.craft   { color: #86efac; border-color: rgba(82, 183, 136, 0.35); }

.cp-star-desc {
  font-size: 0.69rem;
  line-height: 1.3;
  color: var(--muted);
  word-break: break-word;
}

/* =========================================================
   Equipment & Armor Sets Matrix
   ========================================================= */
.gear-section {
  margin-bottom: 2rem;
}

.gear-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gear-view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.gear-view-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.gear-view-btn.active {
  background: var(--surface-3);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Armor Sets Grouped Grid */
.armor-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.armor-set-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.armor-set-card:hover {
  border-color: rgba(212, 162, 78, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.armor-set-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
}

.armor-set-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.armor-set-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.armor-set-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(212, 162, 78, 0.15);
  border: 1px solid rgba(212, 162, 78, 0.4);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
}

.armor-set-sub-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.set-type-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.set-type-tag.type-trial { color: #f7a048; border-color: rgba(247, 160, 72, 0.3); }
.set-type-tag.type-dungeon { color: #5bc0be; border-color: rgba(91, 192, 190, 0.3); }
.set-type-tag.type-monster { color: #c288d9; border-color: rgba(194, 136, 217, 0.3); }
.set-type-tag.type-mythic { color: #ffaa00; border-color: rgba(255, 170, 0, 0.4); }
.set-type-tag.type-arena { color: #74cf92; border-color: rgba(116, 207, 146, 0.3); }
.set-type-tag.type-pvp { color: #e63946; border-color: rgba(230, 57, 70, 0.3); }
.set-type-tag.type-crafted { color: #d4a24e; border-color: rgba(212, 162, 78, 0.3); }

/* Set Bonuses Accordion / Box */
.armor-set-bonuses {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.set-bonus-line {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.set-bonus-line.active {
  color: #dfcfaf;
  font-weight: 500;
}
.set-bonus-line.active .bonus-pip {
  color: var(--accent);
}
.set-bonus-line:not(.active) {
  opacity: 0.55;
}
.bonus-pip {
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

/* Set Pieces List */
.armor-set-pieces-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gear-piece-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  transition: all 0.15s ease;
}
.gear-piece-row:hover {
  background: rgba(212, 162, 78, 0.05);
  border-color: rgba(212, 162, 78, 0.3);
}

.gear-piece-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #0d0c0a;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gear-piece-icon-box.rarity-legendary {
  border-color: #eeac00;
  box-shadow: 0 0 8px rgba(238, 172, 0, 0.3);
}
.gear-piece-icon-box.rarity-epic {
  border-color: #a02ef7;
  box-shadow: 0 0 8px rgba(160, 46, 247, 0.3);
}
.gear-piece-icon-box.rarity-superior {
  border-color: #3a92ff;
  box-shadow: 0 0 6px rgba(58, 146, 255, 0.3);
}
.gear-piece-icon-box.rarity-mythic {
  border-color: #ffaa00;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
}

.gear-piece-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.gear-bar-badge {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(212, 162, 78, 0.4);
  padding: 1px 3px;
  border-radius: 2px;
}

.gear-piece-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gear-piece-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gear-piece-title .slot-weight-badge {
  color: var(--muted);
  font-weight: normal;
  font-size: 0.76rem;
}

.gear-piece-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1px;
}

.gear-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}
.gear-meta-pill.muted {
  color: var(--muted);
  font-style: italic;
}

.gear-mini-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.gear-slot-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.15s ease;
}
.gear-slot-card:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

.gear-slot-card.rarity-legendary { border-left-color: var(--rarity-legendary); }
.gear-slot-card.rarity-epic { border-left-color: var(--rarity-epic); }
.gear-slot-card.rarity-superior { border-left-color: var(--rarity-superior); }
.gear-slot-card.rarity-fine { border-left-color: var(--rarity-fine); }
.gear-slot-card.rarity-mythic { border-left-color: var(--rarity-mythic); }

.gear-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gear-slot-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.gear-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
}
.gear-item-name.rarity-legendary { color: var(--rarity-legendary); }
.gear-item-name.rarity-epic { color: var(--rarity-epic); }
.gear-item-name.rarity-superior { color: var(--rarity-superior); }

.gear-set-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.gear-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.gear-trait {
  color: var(--fg);
  font-weight: 500;
}

/* Sets Summary Matrix */
.sets-summary-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.sets-summary-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.sets-badges-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.set-badge-item {
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.set-badge-count {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* =========================================================
   Champion Points Constellations
   ========================================================= */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.cp-constellation-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.cp-constellation-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.cp-star-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cp-star-row:last-child { border-bottom: none; }
.cp-star-pts {
  font-weight: 700;
  color: var(--accent);
}

/* =========================================================
   Modal Dialogs (Lua Importer)
   ========================================================= */
dialog.armory-modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg);
  padding: 0;
  max-width: 650px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  margin: auto;
}
dialog.armory-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  color: var(--accent);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--fg); }
.modal-body {
  padding: 1.35rem;
}

.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.25rem;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: var(--surface-3);
}
.drop-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.modal-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--fg);
  font-family: monospace;
  font-size: 0.85rem;
  resize: vertical;
}
.modal-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* =========================================================
   Community Builds Directory & Multi-User Grid
   ========================================================= */
.community-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.community-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.community-stat-num {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.controls-secondary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.select-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  cursor: pointer;
}
.select-input:focus {
  outline: none;
  border-color: var(--accent);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.community-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--fg);
  line-height: 1.3;
}
.card-title a {
  color: inherit;
}
.card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}

.card-creator {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.card-creator:hover {
  text-decoration: underline;
}

.card-sets {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.card-set-badge {
  font-size: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  color: var(--fg);
  white-space: nowrap;
}

.card-footer {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.btn-like {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.btn-like:hover, .btn-like.liked {
  border-color: #e63946;
  color: #e63946;
  background: rgba(230, 57, 70, 0.1);
}

.btn-inspect {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(212, 162, 78, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-inspect:hover {
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
}

/* Detail Back Nav Bar */
.detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.btn-back {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Publish Form in Modal */
.publish-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}
.publish-preview-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.publish-preview-card.selected {
  border-color: var(--accent);
  background: var(--surface-3);
}

.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--fg);
  font-size: 0.88rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

/* =========================================================
   Player Accounts Directory & Account Hub
   ========================================================= */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.account-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.account-name-badge {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}
.account-servers-row {
  display: flex;
  gap: 0.35rem;
}
.server-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.server-na {
  background: rgba(58, 134, 255, 0.15);
  color: #79c0ff;
  border: 1px solid rgba(58, 134, 255, 0.35);
}
.server-eu {
  background: rgba(238, 172, 0, 0.15);
  color: #e3b341;
  border: 1px solid rgba(238, 172, 0, 0.35);
}

.account-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.account-stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
}
.account-stat-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
}

/* Account Profile View */
.account-profile-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.account-profile-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}
.server-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.server-tab-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.server-tab-btn:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.server-tab-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* Character Roster Grid */
.character-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 3rem;
}

.character-roster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.character-roster-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.character-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.character-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}

.character-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-bottom: 1rem;
  align-items: center;
}

.armory-loadouts-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}
.armory-loadouts-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: space-between;
}
.armory-loadouts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.armory-loadout-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--fg);
  transition: all 0.15s ease;
}
.armory-loadout-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* View Mode Toggle Pill */
.view-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.view-mode-group {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
}
.view-mode-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-mode-btn.active {
  background: var(--surface-3);
  color: var(--accent);
}

/* Profile Navigation Tabs */
.profile-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin: 1.5rem 0 1.25rem 0;
  overflow-x: auto;
}
.profile-tab-btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.75rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  transition: all 0.15s ease;
  position: relative;
  bottom: -2px;
}
.profile-tab-btn:hover {
  color: var(--fg);
  background: var(--surface-2);
}
.profile-tab-btn.active {
  background: var(--surface-2);
  color: var(--accent);
  border-color: var(--border-strong);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--surface-2);
}
.tab-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  transition: all 0.15s ease;
}
.profile-tab-btn.active .tab-badge {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Profile Hero Stat Chips & Title Pill */
.profile-stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
  align-items: center;
}
.profile-stat-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
}
.profile-title-pill {
  background: linear-gradient(135deg, rgba(238, 172, 0, 0.18), rgba(212, 162, 78, 0.08));
  border: 1px solid var(--rarity-legendary);
  color: var(--rarity-legendary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Achievements & Vet Clears UI */
.ach-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ach-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
}
.ach-stat-val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
}
.ach-stat-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}
.ach-bar-container {
  background: var(--surface-3);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-top: 0.75rem;
  width: 100%;
}
.ach-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffaa00);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.vet-section-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.vet-chips-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.vet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.vet-item-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vet-item-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
.vet-item-card.trifecta {
  border-color: rgba(238, 172, 0, 0.45);
  background: linear-gradient(135deg, rgba(238, 172, 0, 0.08), var(--surface-2));
}
.vet-item-card.trial {
  border-color: rgba(160, 46, 247, 0.45);
  background: linear-gradient(135deg, rgba(160, 46, 247, 0.08), var(--surface-2));
}
.vet-item-card.arena {
  border-color: rgba(58, 146, 255, 0.45);
  background: linear-gradient(135deg, rgba(58, 146, 255, 0.08), var(--surface-2));
}
.vet-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.vet-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fg);
  line-height: 1.3;
}
.vet-type-badge {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.category-progress-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.85rem;
}
.category-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
}
.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

/* Stickerbook Collection UI */
.stickerbook-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.stickerbook-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.set-collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.set-collection-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.set-collection-card.completed {
  border-color: rgba(238, 172, 0, 0.45);
  background: linear-gradient(135deg, rgba(238, 172, 0, 0.04), var(--surface));
}
.set-complete-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(238, 172, 0, 0.15);
  color: var(--rarity-legendary);
  border: 1px solid rgba(238, 172, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Leaderboards UI */
.leaderboard-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.leaderboard-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}
.leaderboard-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}
.leaderboard-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.leaderboard-nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.leaderboard-nav-btn:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.leaderboard-nav-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}
.leaderboard-row {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.leaderboard-row:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
.leaderboard-row td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.leaderboard-row td:first-child {
  border-left: 1px solid var(--border);
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}
.leaderboard-row td:last-child {
  border-right: 1px solid var(--border);
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.rank-cell {
  width: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.rank-medal-1 { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.rank-medal-2 { color: #c0c0c0; text-shadow: 0 0 8px rgba(192, 192, 192, 0.4); }
.rank-medal-3 { color: #cd7f32; text-shadow: 0 0 8px rgba(205, 127, 50, 0.4); }

/* =========================================================
   Item Sets & Mythics Directory & Single Set Pages
   ========================================================= */

.sets-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.sets-hero-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}
.sets-hero-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.sets-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 3rem;
}

.set-catalog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.set-catalog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.set-catalog-card.mythic {
  border-color: rgba(238, 172, 0, 0.45);
  background: linear-gradient(135deg, rgba(238, 172, 0, 0.05), var(--surface));
}
.set-catalog-card.monster {
  border-color: rgba(160, 46, 247, 0.4);
  background: linear-gradient(135deg, rgba(160, 46, 247, 0.05), var(--surface));
}
.set-catalog-card.trial {
  border-color: rgba(58, 146, 255, 0.4);
  background: linear-gradient(135deg, rgba(58, 146, 255, 0.05), var(--surface));
}

.set-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.set-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  margin: 0;
}
.set-catalog-card:hover .set-card-name {
  color: var(--accent);
}

.set-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}
.set-badge-mythic {
  background: rgba(238, 172, 0, 0.15);
  color: var(--rarity-legendary);
  border: 1px solid rgba(238, 172, 0, 0.4);
}
.set-badge-monster {
  background: rgba(160, 46, 247, 0.15);
  color: #bf6ff7;
  border: 1px solid rgba(160, 46, 247, 0.4);
}
.set-badge-trial {
  background: rgba(58, 146, 255, 0.15);
  color: #64b5f6;
  border: 1px solid rgba(58, 146, 255, 0.4);
}
.set-badge-dungeon {
  background: rgba(42, 157, 143, 0.15);
  color: #48cae4;
  border: 1px solid rgba(42, 157, 143, 0.4);
}
.set-badge-overland {
  background: rgba(46, 196, 182, 0.12);
  color: #52b788;
  border: 1px solid rgba(82, 183, 136, 0.4);
}
.set-badge-crafted {
  background: rgba(212, 162, 78, 0.15);
  color: var(--accent);
  border: 1px solid rgba(212, 162, 78, 0.4);
}
.set-badge-pvp {
  background: rgba(230, 57, 70, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.4);
}
.set-badge-arena {
  background: rgba(142, 68, 173, 0.15);
  color: #d291bc;
  border: 1px solid rgba(142, 68, 173, 0.4);
}
.set-badge-class {
  background: rgba(106, 76, 147, 0.15);
  color: #b392ac;
  border: 1px solid rgba(106, 76, 147, 0.4);
}
.set-badge-other {
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--border);
}

.set-source-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.set-bonuses-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 0.85rem;
  max-height: 140px;
  overflow: hidden;
  position: relative;
}
.set-bonuses-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to bottom, transparent, var(--surface-2));
  pointer-events: none;
}

.set-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}

/* Single Set Inspector Page */
.set-detail-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
}
.set-detail-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}
.set-detail-bonuses-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.set-bonus-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--fg);
}
.set-bonus-item:last-child {
  margin-bottom: 0;
}
.set-bonus-item.is-full-bonus {
  background: linear-gradient(90deg, rgba(212, 162, 78, 0.08), var(--surface-2));
  border-left-color: var(--rarity-legendary);
  font-weight: 600;
}

.set-builds-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   SITE STATUS: UNDER CONSTRUCTION BANNER
   ========================================================================== */

.construction-banner {
  background: #181309;
  border-top: 2px solid #eeac00;
  border-bottom: 2px solid #eeac00;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 90;
}

.construction-hazard-stripes {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #eeac00,
    #eeac00 14px,
    #181309 14px,
    #181309 28px
  );
  opacity: 0.85;
}

.construction-content {
  padding: 1.75rem 1rem 1.6rem 1rem;
  text-align: center;
}

.construction-alert-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #eeac00;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  background: rgba(238, 172, 0, 0.12);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(238, 172, 0, 0.35);
}

.construction-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 800;
  color: #ffbf36;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin: 0 0 0.65rem 0;
  text-shadow: 0 0 25px rgba(238, 172, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.construction-subtitle {
  font-size: 1.02rem;
  color: #d6ccb8;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   LANDING PAGE (FRONT PAGE) STYLING
   ========================================================================== */

.landing-hero {
  background: radial-gradient(circle at 50% 12%, rgba(212, 162, 78, 0.09), transparent 65%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 1.75rem 2.5rem 1.75rem;
  text-align: center;
  margin-bottom: 2.75rem;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.landing-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.landing-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.35rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
}

.landing-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  color: var(--fg);
  line-height: 1.15;
  margin: 0 0 1.1rem 0;
  letter-spacing: 0.015em;
}

.landing-hero-desc {
  max-width: 740px;
  margin: 0 auto 2.25rem auto;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
}

.landing-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.btn-lg {
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  max-width: 880px;
  margin: 0 auto;
}

.landing-stat-card {
  text-align: center;
  padding: 0.35rem;
}

.landing-stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.landing-stat-lbl {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.landing-section {
  margin-bottom: 3.25rem;
}

.landing-section-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.landing-section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.landing-section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--fg);
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
}

.landing-section-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.5;
}

.landing-more-btn {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.landing-more-btn:hover {
  color: #f1cf88;
  text-decoration: underline;
}

.landing-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.landing-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.landing-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}
.landing-pillar-card:hover .pillar-title {
  color: var(--accent);
}

.pillar-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.pillar-link {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: auto;
}

.landing-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.15rem;
}

.landing-set-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.landing-set-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.landing-set-card.mythic {
  border-color: rgba(238, 172, 0, 0.4);
  background: linear-gradient(135deg, rgba(238, 172, 0, 0.05), var(--surface));
}
.landing-set-card.trial {
  border-color: rgba(58, 146, 255, 0.4);
  background: linear-gradient(135deg, rgba(58, 146, 255, 0.05), var(--surface));
}
.landing-set-card.monster {
  border-color: rgba(160, 46, 247, 0.4);
  background: linear-gradient(135deg, rgba(160, 46, 247, 0.05), var(--surface));
}
.landing-set-card.dungeon {
  border-color: rgba(42, 157, 143, 0.4);
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.05), var(--surface));
}

.landing-set-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.landing-set-card:hover .set-card-name {
  color: var(--accent);
}

.landing-set-source {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.landing-set-desc {
  font-size: 0.84rem;
  color: var(--fg);
  line-height: 1.45;
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.landing-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.landing-step-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--fg);
  margin: 0 0 0.5rem 0;
}

.landing-step-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.landing-addon-banner {
  background: linear-gradient(135deg, rgba(212, 162, 78, 0.12), var(--surface) 60%), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3.25rem;
}

.addon-badge {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.landing-addon-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin: 0 0 0.65rem 0;
}

.landing-addon-desc {
  color: var(--fg);
  font-size: 0.98rem;
  max-width: 620px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.5;
}

.landing-addon-buttons {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.community-view-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
