.hidden {
  display: none !important;
}

:root {
  --bg-dark: #0a0d14;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(26, 36, 56, 0.95);
  --bg-elevated: #151d2c;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.3);

  --fire: #f97316;
  --grass: #22c55e;
  --water: #0ea5e9;
  --earth: #d97706;
  --lightning: #eab308;
  --ice: #38bdf8;
  --wind: #14b8a6;
  --dark: #a855f7;
  --light: #fbbf24;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.07) 0%, transparent 40%);
  min-height: 100vh;
}

.app-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-pill {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.nav-brand h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

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

.api-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.btn-api, .btn-csv {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: all 0.2s;
}

.btn-api {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-api:hover {
  background: rgba(56, 189, 248, 0.25);
}

.btn-csv {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-csv:hover {
  background: rgba(251, 191, 36, 0.25);
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.6rem;
  max-width: 680px;
}

.stats-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  text-align: center;
  min-width: 120px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  display: block;
}

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

/* Controls Card */
.controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.95rem 3rem 0.95rem 3.2rem;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.btn-clear {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-col label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.filter-col select {
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-col select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-focus-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.focus-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.pill-btn.active {
  background: var(--accent);
  color: #0a0d14;
  border-color: var(--accent);
  font-weight: 700;
}

.results-badge {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

/* Cards Grid */
.aniimo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Picture / Portrait Banner */
.card-portrait-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.portrait-img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.card:hover .portrait-img {
  transform: scale(1.08);
}

.portrait-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.portrait-badge-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.portrait-badge-stage {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.stage-Lumin { background: rgba(14, 165, 233, 0.3); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.5); }
.stage-Gamma { background: rgba(168, 85, 247, 0.3); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.5); }
.stage-Nova { background: rgba(251, 191, 36, 0.3); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.5); }

/* Shimmer aura for Prismana active */
.card.is-prismana-active {
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.card.is-prismana-active .card-portrait-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(56, 189, 248, 0.4)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

/* Card Header */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
}

.element-badges-wrap {
  display: flex;
  gap: 0.35rem;
}

.el-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.el-Fire { background: rgba(249, 115, 22, 0.2); color: var(--fire); border: 1px solid rgba(249, 115, 22, 0.3); }
.el-Grass { background: rgba(34, 197, 94, 0.2); color: var(--grass); border: 1px solid rgba(34, 197, 94, 0.3); }
.el-Water { background: rgba(14, 165, 233, 0.2); color: var(--water); border: 1px solid rgba(14, 165, 233, 0.3); }
.el-Earth { background: rgba(217, 119, 6, 0.2); color: var(--earth); border: 1px solid rgba(217, 119, 6, 0.3); }
.el-Lightning { background: rgba(234, 179, 8, 0.2); color: var(--lightning); border: 1px solid rgba(234, 179, 8, 0.3); }
.el-Ice { background: rgba(56, 189, 248, 0.2); color: var(--ice); border: 1px solid rgba(56, 189, 248, 0.3); }
.el-Wind { background: rgba(20, 184, 166, 0.2); color: var(--wind); border: 1px solid rgba(20, 184, 166, 0.3); }
.el-Dark { background: rgba(168, 85, 247, 0.2); color: var(--dark); border: 1px solid rgba(168, 85, 247, 0.3); }
.el-Light { background: rgba(251, 191, 36, 0.2); color: var(--light); border: 1px solid rgba(251, 191, 36, 0.3); }

.card-evo-txt {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.75rem;
}

.card-role-strip {
  background: rgba(10, 13, 20, 0.7);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.85rem;
}

.role-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
}

.role-desc {
  font-size: 0.8rem;
  color: #e2e8f0;
}

/* Card Form Nav Buttons */
.form-nav-strip {
  display: flex;
  gap: 0.35rem;
  background: rgba(10, 13, 20, 0.6);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.btn-form-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.btn-form-tab:hover {
  color: white;
}

.btn-form-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-form-tab.is-prismana.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.4);
}

/* Active Form Panel */
.active-form-box {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.form-title-txt {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.form-loc-tag {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Abilities Grid */
.ability-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.abil-pill {
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.abil-pill.is-utility-pill {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.abil-pill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.abil-pill-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
}

.abil-pill-lvl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.abil-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.abil-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 2px;
}

.abil-progress-fill.lvl-4, .abil-progress-fill.lvl-5 {
  background: linear-gradient(90deg, #ec4899, #f59e0b);
}

.workplace-perk-box {
  margin-top: auto;
  background: rgba(10, 13, 20, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.workplace-perk-box strong {
  color: #f1f5f9;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.modal-close:hover {
  color: white;
}

/* Modal 3D / Full Illustration Visual Showcase */
.modal-hero-grid {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.modal-visual-column {
  flex: 0 0 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-visual-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
  background-color: #0b1120;
}

.modal-visual-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  backdrop-filter: blur(6px);
  z-index: 5;
  pointer-events: none;
}

.modal-viewer-canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.modal-viewer-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-viewer-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #94a3b8;
  font-size: 0.8rem;
  z-index: 4;
  transition: opacity 0.25s ease;
}

.modal-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: modalSpin 0.8s linear infinite;
}

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

.modal-visual-toolbar {
  display: flex;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-visual-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-visual-toggle:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.btn-visual-toggle.active {
  color: #0f172a;
  background: #38bdf8;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

.modal-meta-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Modal Form Switcher Tabs */
.modal-form-tabs-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0 0.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.btn-modal-form-tab {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-modal-form-tab:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: white;
}

.btn-modal-form-tab.active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

.btn-modal-form-tab.is-prismana.active {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  border-color: #ec4899;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.45);
}

/* Semantic SEO Guide & FAQ Section */
.seo-guide-section {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.seo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.seo-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.seo-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.seo-feature-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.seo-feature-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.seo-feature-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.seo-feature-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seo-feature-box li {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}

.seo-feature-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.seo-faq-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
}

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

.faq-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Crawlable Directory Table for SEO */
.crawlable-directory-section {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.crawlable-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  white-space: nowrap;
}

.crawlable-table thead {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-light);
}

.crawlable-table th,
.crawlable-table td {
  padding: 0.85rem 1rem;
}

.crawlable-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.crawlable-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.crawlable-table a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
}

.crawlable-table a:hover {
  text-decoration: underline;
}

.badge-s-tier {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-a-tier {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-b-tier {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-c-tier {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Footer */
.app-footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0a0d14;
  border: none;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #7dd3fc;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
}

/* Responsive Mobile Enhancements */
@media (max-width: 768px) {
  .app-layout {
    padding: 1rem 0.75rem 3rem;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .nav-brand h2 {
    font-size: 1.15rem;
  }

  .hero-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  /* 2x2 grid for stats cards so they never look jagged */
  .stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.75rem;
    min-width: 0;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .controls-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .search-input-wrap input {
    font-size: 0.95rem;
    padding-left: 2.8rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-focus-row {
    gap: 0.35rem;
  }

  .pill-btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    min-height: 36px;
  }

  .results-badge {
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .aniimo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1rem;
  }

  /* Modal Mobile Optimization */
  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal-card {
    padding: 1.25rem 0.85rem;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .modal-close {
    top: 0.6rem;
    right: 0.6rem;
    width: 38px;
    height: 38px;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* SEO feature & FAQ grid mobile tuning */
  .seo-feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .seo-faq-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .back-to-top-btn {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}



/* Optimizer Section Studio */
.optimizer-section {
  margin-bottom: 2.5rem;
}

.optimizer-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 13, 20, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.optimizer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #ec4899);
}

.optimizer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.optimizer-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.optimizer-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
}

.optimizer-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.5;
}

.btn-optimize-run {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #0a0d14;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-optimize-run:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
}

.optimizer-grid-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.settings-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.settings-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #cbd5e1;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.size-btn-group, .presets-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-choice, .btn-preset {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-choice:hover, .btn-preset:hover {
  border-color: #38bdf8;
  color: white;
}

.btn-choice.active, .btn-preset.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}

.roles-selection-wrap {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.roles-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.roles-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.btn-link-action {
  background: none;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

.btn-link-action:hover {
  color: #7dd3fc;
}

.dot-sep {
  color: var(--text-muted);
}

.roles-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.role-pill-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.role-pill-checkbox input {
  display: none;
}

.role-pill-checkbox:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.role-pill-checkbox.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #f0f9ff;
  font-weight: 600;
}

.optimizer-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.toggle-option input {
  accent-color: var(--accent);
}

/* Results Display */
.optimizer-results-container {
  margin-top: 1.5rem;
}

.team-stats-banner {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.team-score-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.team-score-box {
  display: flex;
  flex-direction: column;
}

.team-score-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}

.team-score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.team-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 600px;
}

.coverage-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.coverage-pill.covered {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.coverage-pill.missing {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.team-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-team-action {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-team-action:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Team Roster Grid */
.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.team-member-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.team-member-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.team-member-top {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.team-member-avatar {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.team-member-avatar img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.team-member-info {
  flex: 1;
  min-width: 0;
}

.team-member-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.team-member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-form {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
}

.team-member-form.is-prismana {
  color: #ec4899;
}

.primary-assignment-tag {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-member-abilities-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
}

.team-ability-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #cbd5e1;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.team-ability-row.is-target {
  color: #38bdf8;
  font-weight: 600;
}

.team-inspect-btn {
  margin-top: 0.85rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.team-inspect-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: white;
}


/* Worker Slots Stepper & Number Input */
.slots-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slots-number-input {
  width: 76px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: all 0.2s ease;
}

.slots-number-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Remove spin buttons from number input */
.slots-number-input::-webkit-outer-spin-button,
.slots-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.slots-number-input[type=number] {
  -moz-appearance: textfield;
}

.btn-slot-step {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-slot-step:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-slot-step:active {
  transform: scale(0.95);
}

.slots-label-badge {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  margin-left: 0.25rem;
}

.slots-quick-presets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.slots-chip-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.btn-slot-chip {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-slot-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: white;
}

.btn-slot-chip.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}

/* Checkbox pill improvements */
.role-pill-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.role-pill-checkbox input[type="checkbox"] {
  display: inline-block !important;
  cursor: pointer;
  accent-color: #38bdf8;
  width: 14px;
  height: 14px;
  margin: 0;
}

.role-pill-checkbox:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: white;
}

.role-pill-checkbox.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #f0f9ff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}


/* Role Pill Cards with Worker Quantity Inputs */
.roles-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.role-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  transition: all 0.2s ease;
  user-select: none;
}

.role-pill-card.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.role-pill-card:not(.active) {
  opacity: 0.55;
}

.role-pill-card:not(.active):hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.25);
}

.role-pill-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.role-pill-head input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #38bdf8;
  cursor: pointer;
  margin: 0;
}

.role-pill-text {
  font-size: 0.83rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-qty-box {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.role-pill-card:not(.active) .role-qty-box {
  pointer-events: none;
  opacity: 0.35;
}

.btn-role-step {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-role-step:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-color: #38bdf8;
}

.role-qty-num {
  width: 32px;
  height: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 0;
  outline: none;
  transition: border-color 0.15s ease;
}

.role-qty-num:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

.role-qty-num::-webkit-outer-spin-button,
.role-qty-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.role-qty-num[type=number] {
  -moz-appearance: textfield;
}

/* 3 Team Options Tabs */
.team-options-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-team-tab {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-team-tab:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.btn-team-tab.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.btn-team-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.tab-badge-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.btn-team-tab.active .tab-badge-pill {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.tab-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.15rem;
}

.tab-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.25;
}


/* Optimizer Placeholder & Calculating States */
.optimizer-placeholder {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1.5px dashed rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  margin-top: 1rem;
}

.placeholder-icon {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.placeholder-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.4rem;
}

.placeholder-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

.placeholder-desc strong {
  color: #38bdf8;
}

.btn-optimize-run.is-calculating {
  opacity: 0.75;
  pointer-events: none;
  background: linear-gradient(135deg, #0284c7, #6366f1) !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5) !important;
}

.team-member-slot-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}


/* Official In-Game Homeland Ability Pill Badges */
.homeland-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.35);
  user-select: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}

.homeland-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.homeland-pill .pill-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.homeland-pill .pill-name {
  font-weight: 700;
  color: #ffffff;
}

.homeland-pill .pill-lvl {
  background: rgba(0, 0, 0, 0.28);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 0.2rem;
  color: #ffffff;
}

/* Ability Pill Grid on Creature Cards */
.ability-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

/* Abilities Guide Accordion */
.guide-accordion-section {
  max-width: 1400px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.guide-accordion-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}

.guide-accordion-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.guide-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  transition: background 0.2s ease;
}

.guide-accordion-header:hover {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.guide-header-title-wrap {
  flex: 1;
}

.guide-pill-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

.guide-main-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.2rem;
}

.guide-main-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.btn-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-guide-toggle:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.guide-toggle-arrow {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
}

.btn-guide-toggle.expanded .guide-toggle-arrow {
  transform: rotate(180deg);
}

.guide-accordion-body {
  padding: 1.25rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.2s ease;
}

.guide-category-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.35rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.guide-entry {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: default;
  user-select: text;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-entry:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
}

.guide-entry-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

/* Quick Ability Filter Bar */
.ability-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.8rem;
  scrollbar-width: thin;
}

.ability-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  white-space: nowrap;
  margin-right: 0.2rem;
}

.btn-abil-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-abil-filter:hover {
  border-color: var(--role-col, #38bdf8);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-abil-filter.active {
  background: var(--role-col, #38bdf8) !important;
  border-color: var(--role-col, #38bdf8) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* Styled Role Pill Cards in Optimizer */
.role-pill-card[style*="--role-theme"] {
  border-left: 3px solid var(--role-theme, #38bdf8);
}

.role-pill-card.active[style*="--role-theme"] {
  border-color: var(--role-theme, #38bdf8);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   View Switching & Section Tabs
   ========================================================================== */
.view-section-hidden {
  display: none !important;
}

.nav-tabs-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.btn-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-nav-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.btn-nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.85), rgba(99, 102, 241, 0.85));
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.nav-tab-icon {
  font-size: 1.05rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-nav-tab:hover .nav-tab-icon {
  transform: scale(1.18);
}

@media (max-width: 768px) {
  .nav-tabs-menu {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    gap: 0.35rem;
    padding: 0.4rem;
  }
  .btn-nav-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ==========================================================================
   4-Aniimo Battle Squad Card Generator Styles
   ========================================================================== */
.squad-builder-section {
  margin-bottom: 2.5rem;
}

.squad-builder-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.squad-builder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #ec4899);
}

.squad-builder-header {
  margin-bottom: 1.5rem;
}

.squad-builder-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 0.5rem;
}

.squad-builder-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.squad-builder-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 800px;
}

.squad-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.5);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.squad-name-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 300px;
}

.squad-name-input-wrap label {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.squad-name-input-wrap input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.squad-name-input-wrap input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.squad-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-clear-squad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear-squad:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-generate-squad {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-generate-squad:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-generate-squad:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 4 Slots Grid */
.squad-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .squad-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .squad-slots-grid {
    grid-template-columns: 1fr;
  }
}

.squad-slot-box {
  background: rgba(15, 23, 42, 0.7);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  text-align: center;
  user-select: none;
}

.squad-slot-box.is-empty:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

.squad-slot-plus-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 2rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.squad-slot-box.is-empty:hover .squad-slot-plus-btn {
  transform: scale(1.15) rotate(90deg);
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.squad-slot-num-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.squad-slot-cta {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Filled Slot Box */
.squad-slot-box.is-filled {
  border-style: solid;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  padding: 1rem;
}

.squad-slot-box.is-filled:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.squad-slot-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.squad-slot-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.squad-slot-remove-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}

.squad-slot-remove-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.squad-slot-portrait-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.squad-slot-portrait-img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5));
  transition: transform 0.25s ease;
}

.squad-slot-box.is-filled:hover .squad-slot-portrait-img {
  transform: scale(1.08);
}

.squad-slot-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.squad-slot-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.squad-slot-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.squad-slot-form-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.squad-slot-elements-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

/* Squad Preview Area */
.squad-card-preview-area {
  margin-top: 2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 1.5rem;
}

.preview-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.preview-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-download-squad {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-download-squad:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-copy-squad {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-squad:hover {
  background: rgba(56, 189, 248, 0.25);
}

.canvas-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  background: #070b14;
}

.canvas-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Squad Picker Modal */
.squad-picker-modal-card {
  max-width: 860px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.squad-picker-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.squad-picker-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
}

.squad-picker-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.3rem 0 0.8rem;
}

.squad-picker-search-wrap {
  position: relative;
  width: 100%;
}

.squad-picker-search-wrap input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.squad-picker-search-wrap input:focus {
  border-color: #38bdf8;
}

.squad-picker-search-wrap .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.squad-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  overflow-y: auto;
  padding-right: 0.4rem;
  max-height: 55vh;
}

.squad-picker-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.18s;
}

.squad-picker-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.6);
}

.squad-picker-item-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.squad-picker-item-avatar {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
}

.squad-picker-item-info {
  flex: 1;
}

.squad-picker-item-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.squad-picker-item-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.squad-picker-item-forms {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-pick-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  color: #cbd5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-pick-form:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-pick-form.is-prismana {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
}

.btn-pick-form.is-prismana:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: #ec4899;
  color: #ffffff;
}
