/* ==========================================================================
   AION 2 ARMORY & GEAR SCORER (kisk.app Compatible)
   ========================================================================== */

.armory-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.armory-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: rgba(18, 22, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10000;
}

.armory-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.armory-input-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.armory-select,
.armory-input {
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.armory-select:focus,
.armory-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.armory-btn-search {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.armory-btn-search:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.armory-sample-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  width: 100%;
}

.armory-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #cbd5e1);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.armory-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fff;
}

/* Character Profile Hero Card */
.armory-hero-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.1), transparent 60%),
              rgba(15, 20, 28, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.armory-char-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid #f59e0b;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  overflow: hidden;
}

.armory-char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.armory-char-meta h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.armory-char-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.armory-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: #e2e8f0;
}

.armory-badge.cp {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-weight: 700;
}

.armory-scores-panel {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.armory-score-box {
  text-align: right;
}

.armory-score-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Chakra Petch', sans-serif;
  color: #f59e0b;
  line-height: 1;
}

.armory-score-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.armory-grade-badge {
  font-size: 2.2rem;
  font-weight: 900;
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid currentColor;
  box-shadow: 0 0 25px currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 75px;
}

.armory-grade-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Live Refresh Gear Action */
.armory-refresh-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.armory-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.armory-refresh-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.armory-refresh-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.armory-refresh-btn.cooldown {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.armory-refresh-btn.loading .armory-refresh-icon {
  animation: armory-spin 0.85s linear infinite;
}

@keyframes armory-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.armory-sync-status-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-dim, #94a3b8);
}

.armory-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: armory-pulse 2s ease-in-out infinite;
}

@keyframes armory-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.armory-sync-text {
  font-family: inherit;
  letter-spacing: 0.02em;
}

/* 2-Column Grid: Gear on Left, kisk Analysis on Right */
.armory-grid-layout {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .armory-grid-layout {
    grid-template-columns: 1fr;
  }
}

.armory-gear-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Base card container - 1:1 authentic kisk.app visual style */
.armory-gear-cards article.card {
  position: relative;
  border-radius: 23px !important;
  background: var(--card-bg, #1B1934) !important;
  border: 1px solid rgba(210, 200, 255, 0.12) !important;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(210, 200, 255, 0.07) !important;
  overflow: hidden !important;
  padding: 1px !important;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.2s ease !important;
  backdrop-filter: none !important;
  display: block;
}

.armory-gear-cards article.card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(210, 200, 255, 0.25) !important;
}

/* Card inner layer */
.armory-gear-cards article.card .inner {
  position: relative;
  height: 100%;
  border-radius: 22px;
  background: #1B1934;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

/* Face padding and flex layout */
.armory-gear-cards article.card .face {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

/* Header: Picture + Info + Letter badge */
.armory-gear-cards article.card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.armory-gear-cards article.card .picture {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
}

.armory-gear-cards article.card .picture img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(241, 238, 250, 0.1);
  object-fit: cover;
  display: block;
}

/* Enchant level pill */
.armory-gear-cards article.card .enchant {
  position: absolute;
  right: -5px;
  bottom: -5px;
  padding: 0 6px;
  border-radius: 999px;
  background: #15132A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  box-shadow: 0 0 0 2px #1B1934;
}

.armory-gear-cards article.card .enchant.max {
  background: linear-gradient(135deg, #E2B24B, #B9821F);
  color: #1a1303;
}

/* Card Meta (Title + Subtitle + Score) */
.armory-gear-cards article.card .card-meta {
  flex: 1;
  min-width: 0;
}

.armory-gear-cards article.card header b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #ECE8FA;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.armory-gear-cards article.card header .note {
  display: block;
  font-size: 12px;
  color: #A6A1C2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-gear-cards article.card header .facet {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ECE8FA;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  margin-top: 5px;
}

.armory-gear-cards article.card header .facet small {
  color: #A6A1C2;
  font-size: 11px;
  font-weight: 600;
}

/* Grade Letter Badge */
.armory-gear-cards article.card .letter {
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display, inherit);
  font-size: 24px;
  font-weight: 700;
  color: var(--letter, #ECE8FA);
  background: var(--chip, #24214A);
  flex: none;
}

/* Stat Lines */
.armory-gear-cards article.card .card-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.armory-gear-cards article.card .line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  font-size: 13px;
  color: #ECE8FA;
}

.armory-gear-cards article.card .line > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.armory-gear-cards article.card .line > span:first-child .note {
  color: #A6A1C2;
  font-size: 12px;
  font-weight: normal;
}

.armory-gear-cards article.card .line > span:nth-child(2) {
  font-weight: 700;
  color: #ECE8FA;
  font-size: 13px;
}

.armory-gear-cards article.card .line.zero {
  color: #6a6585;
}

.armory-gear-cards article.card .line.zero > span:nth-child(2) {
  color: #6a6585;
}

.armory-gear-cards article.card .line.zero .bar i {
  opacity: 0.35;
}

/* Progress bar under stat lines */
.armory-gear-cards article.card .bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 4px;
  background: rgba(210, 200, 255, 0.12);
  overflow: hidden;
}

.armory-gear-cards article.card .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--fill, #4C8DF0);
}

/* Bottom turn footer */
.armory-gear-cards article.card .turn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1.5px dashed rgba(187, 166, 255, 0.35);
  border-radius: 12px;
  background: rgba(132, 102, 234, 0.05);
  color: #BBA6FF;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  box-sizing: border-box;
}

.armory-gear-cards article.card .turn span:last-child {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

/* Grade color profiles */
.armory-gear-cards article.card.bis {
  --letter: #FFE29A;
  --chip: conic-gradient(from 200deg, rgba(255, 214, 120, .3), rgba(255, 150, 200, .3), rgba(140, 180, 255, .3), rgba(120, 230, 200, .3), rgba(255, 214, 120, .3));
  --fill: linear-gradient(90deg, #FF9FC6, #FFC861, #7FD8FF, #B08CFF, #FF9FC6);
  background: conic-gradient(#E9B949, #FFB3D1, #A9D4FF, #B6F2D6, #FFE29A, #E9B949) !important;
}
.armory-gear-cards article.card.bis .inner {
  background: linear-gradient(135deg, #3A1A3C, #1B2550 45%, #10363A);
}

.armory-gear-cards article.card.splus {
  --letter: #FFD27A;
  --chip: linear-gradient(135deg, rgba(255, 214, 120, .28), rgba(255, 150, 200, .28), rgba(140, 180, 255, .28));
  --fill: linear-gradient(90deg, #FF9FC6, #FFC861, #7FD8FF, #B08CFF);
  background: linear-gradient(115deg, #FFE7A3, #FFC6E5 25%, #C6D8FF 50%, #C9F5E6 75%, #FFE7A3) !important;
}
.armory-gear-cards article.card.splus .inner {
  background: linear-gradient(135deg, #34183F, #1B2348 55%, #2C1F3A);
}

.armory-gear-cards article.card.s {
  --letter: #F2C661;
  --chip: linear-gradient(135deg, rgba(242, 198, 97, .3), rgba(217, 167, 62, .16));
  --fill: linear-gradient(90deg, #E2B24B, #F5D47E);
  background: linear-gradient(135deg, #B8913A, #F3D88F 45%, #8E6A1E) !important;
}
.armory-gear-cards article.card.s .inner {
  background: linear-gradient(160deg, #33280F, #1E1A24 70%);
}

.armory-gear-cards article.card.a {
  --letter: #D9DEEC;
  --chip: linear-gradient(135deg, rgba(217, 222, 236, .2), rgba(174, 182, 203, .1));
  --fill: linear-gradient(90deg, #7D88A6, #B4BCD2);
  background: linear-gradient(135deg, #79819A, #D5DAE8 45%, #626A82) !important;
}
.armory-gear-cards article.card.a .inner {
  background: linear-gradient(160deg, #2A2F3E, #1C1C2C 70%);
}

.armory-gear-cards article.card.b {
  --letter: #93B8FF;
  --chip: rgba(76, 141, 240, .22);
  --fill: #4C8DF0;
  background: #2B4378 !important;
}
.armory-gear-cards article.card.b .inner {
  background: #1B1934;
}

.armory-gear-cards article.card.c {
  --letter: #6FD8CA;
  --chip: rgba(45, 179, 166, .2);
  --fill: #2DB3A6;
  background: #1F4B4D !important;
}
.armory-gear-cards article.card.c .inner {
  background: #1B1934;
}

.armory-gear-cards article.card.d,
.armory-gear-cards article.card.ungraded {
  --letter: #A6A1C2;
  --chip: rgba(255, 255, 255, .07);
  --fill: #615C80;
  background: rgba(255, 255, 255, .08) !important;
}
.armory-gear-cards article.card.d .inner,
.armory-gear-cards article.card.ungraded .inner {
  background: #1B1934;
}

.armory-item-card {
  background: rgba(18, 24, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative;
}

.armory-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(22, 30, 42, 0.95);
}

.armory-item-card.Special  { border-left: 4px solid #04ddd9; }
.armory-item-card.Heroic,
.armory-item-card.Mythic,
.armory-item-card.Eternal  { border-left: 4px solid #d21046; }
.armory-item-card.Unique,
.armory-item-card.Fabled   { border-left: 4px solid #d3ad0f; }
.armory-item-card.Epic     { border-left: 4px solid #1383b6; }
.armory-item-card.Rare,
.armory-item-card.Superior { border-left: 4px solid #498b35; }
.armory-item-card.Common   { border-left: 4px solid #808080; }

.armory-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.armory-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.armory-item-enhance {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.armory-item-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.armory-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
}

.armory-stat-line.BIS {
  color: #10b981;
  font-weight: 600;
}

.armory-stat-line.Dead {
  color: #ef4444;
  text-decoration: line-through;
}

.armory-stat-line.Suboptimal {
  color: #eab308;
}

.armory-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.4rem;
  margin-top: 0.2rem;
}

/* Sidebar / kisk.app Analysis Card */
.armory-analysis-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.armory-panel-card {
  background: rgba(18, 22, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
}

.armory-panel-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

.armory-reroll-item {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.armory-reroll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.armory-reroll-slot {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f87171;
}

.armory-reroll-target {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.armory-reroll-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.armory-manastones-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.armory-manastone-tag {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ==========================================================================
   ARMORY MULTI-SEARCH RESULTS LIST (Name, Server, Level)
   ========================================================================== */

.armory-results-card {
  background: rgba(18, 22, 31, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.armory-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.armory-results-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.armory-results-table-wrap {
  overflow-x: auto;
}

.armory-results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.armory-results-table th {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim, #94a3b8);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.armory-results-table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.armory-results-row {
  transition: background 0.15s ease;
  cursor: pointer;
}

.armory-results-row:hover {
  background: rgba(245, 158, 11, 0.08);
}

.armory-char-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.armory-char-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
}

.armory-char-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.armory-char-name-bold {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.armory-race-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.armory-race-badge.Asmodian {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.armory-race-badge.Elyos {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.armory-server-tag {
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
}

.armory-level-tag {
  font-weight: 700;
  font-family: 'Chakra Petch', sans-serif;
  color: #f59e0b;
}

.armory-action-inspect-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.armory-action-inspect-btn:hover {
  background: #f59e0b;
  color: #000;
}

/* Autocomplete live suggestions overlay */
.armory-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
  z-index: 10001;
}

.armory-suggestions-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin-top: 0;
  background: #15132A !important;
  border: 1px solid rgba(132, 102, 234, 0.45) !important;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(132, 102, 234, 0.25) !important;
  z-index: 999999 !important;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.armory-suggestions-box.is-open {
  display: block;
}

.armory-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}

.armory-suggestion-item:hover {
  background: rgba(245, 158, 11, 0.15);
}

/* ==========================================================================
   ARMORY SUBTABS: Ausrüstung vs. Upgrades
   ========================================================================== */
.armory-subnav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.armory-subtab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-dim, #94a3b8);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border-radius: 6px 6px 0 0;
}

.armory-subtab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.armory-subtab-btn.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   ITEM CARD WITH IMAGE & BOLD DISTINCT GRADE BADGE
   ========================================================================== */
.armory-item-card-inner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.armory-item-icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #10141e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.armory-item-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.armory-item-icon-wrap {
  border-width: 2px !important;
  border-style: solid !important;
}

.armory-item-card.Special .armory-item-icon-wrap,
.armory-item-card.special .armory-item-icon-wrap {
  border-color: #04ddd9;
  box-shadow: 0 0 10px rgba(4, 221, 217, 0.4);
  background-image: url('img/rarity/bg_special.webp');
  background-size: cover;
  background-position: center;
}
.armory-item-card.Heroic .armory-item-icon-wrap,
.armory-item-card.heroic .armory-item-icon-wrap,
.armory-item-card.Mythic .armory-item-icon-wrap,
.armory-item-card.mythic .armory-item-icon-wrap,
.armory-item-card.Eternal .armory-item-icon-wrap,
.armory-item-card.eternal .armory-item-icon-wrap {
  border-color: #d21046;
  box-shadow: 0 0 10px rgba(210, 16, 70, 0.4);
  background-image: url('img/rarity/bg_mythic.webp');
  background-size: cover;
  background-position: center;
}
.armory-item-card.Unique .armory-item-icon-wrap,
.armory-item-card.unique .armory-item-icon-wrap,
.armory-item-card.Fabled .armory-item-icon-wrap,
.armory-item-card.fabled .armory-item-icon-wrap {
  border-color: #d3ad0f;
  box-shadow: 0 0 10px rgba(211, 173, 15, 0.4);
  background-image: url('img/rarity/bg_fabled.webp');
  background-size: cover;
  background-position: center;
}
.armory-item-card.Epic .armory-item-icon-wrap,
.armory-item-card.epic .armory-item-icon-wrap {
  border-color: #1383b6;
  box-shadow: 0 0 10px rgba(19, 131, 182, 0.4);
  background-image: url('img/rarity/bg_heroic.webp');
  background-size: cover;
  background-position: center;
}
.armory-item-card.Rare .armory-item-icon-wrap,
.armory-item-card.rare .armory-item-icon-wrap,
.armory-item-card.Superior .armory-item-icon-wrap,
.armory-item-card.superior .armory-item-icon-wrap {
  border-color: #498b35;
  box-shadow: 0 0 10px rgba(73, 139, 53, 0.4);
  background-image: url('img/rarity/bg_superior.webp');
  background-size: cover;
  background-position: center;
}
.armory-item-card.Common .armory-item-icon-wrap,
.armory-item-card.common .armory-item-icon-wrap {
  border-color: var(--rarity-common-color, #808080);
  box-shadow: 0 0 10px rgba(128, 128, 128, 0.3);
  background-image: url('img/rarity/bg_common.webp');
  background-size: cover;
  background-position: center;
}

.armory-item-icon-enchant {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #f59e0b;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-bottom-right-radius: 5px;
  border-right: 1px solid rgba(245, 158, 11, 0.4);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
}

.armory-item-main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.armory-item-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Eye-Catching, Big Grade Badges */
.armory-grade-badge-prominent {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 900;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.armory-grade-badge-prominent .grade-letter {
  font-size: 1.15rem;
  line-height: 1;
}

.armory-grade-badge-prominent .grade-score-num {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 700;
}

.armory-grade-badge-prominent.grade-splus {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  border: 1px solid #fde047;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.armory-grade-badge-prominent.grade-s {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: 1px solid #c084fc;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.35);
}

.armory-grade-badge-prominent.grade-a {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  border: 1px solid #67e8f9;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
}

.armory-grade-badge-prominent.grade-b {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: 1px solid #6ee7b7;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.armory-grade-badge-prominent.grade-c {
  background: linear-gradient(135deg, #475569, #64748b);
  color: #e2e8f0;
  border: 1px solid #94a3b8;
}

.armory-grade-badge-prominent.grade-d {
  background: linear-gradient(135deg, #991b1b, #ef4444);
  color: #fee2e2;
  border: 1px solid #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   UPGRADES PLANNER VIEW (kisk.app compatible)
   ========================================================================== */
.armory-upgrades-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.armory-upgrades-hero {
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 70%),
              rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.armory-upgrades-hero h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Upgrades List Container */
.armory-upgrades-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   KISK.APP 1:1 REPLICA UPGRADE ROUTES & REACH BAR
   ========================================================================== */
.routes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route {
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(18, 24, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.route:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* The Top Priority "Up next" Route with Conic Foil Border */
.route.next {
  padding: 16px 20px;
  border: 3px solid transparent;
  background: linear-gradient(#151b29, #151b29) padding-box,
              conic-gradient(from 200deg, #FFE7A3, #FFC6E5, #C6D8FF, #C9F5E6, #FFE7A3) border-box;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.route header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.route header > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.route .picture, .board.plan .picture {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.route .picture img, .board.plan .picture img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.4);
  object-fit: cover;
  display: block;
}

.route .picture .enchant, .board.plan .picture .enchant {
  position: absolute;
  top: -4px;
  right: -4px;
  background: rgba(0, 0, 0, 0.9);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.6);
  line-height: 1.2;
}

.route .picture .enchant.max, .board.plan .picture .enchant.max {
  color: #ec4899;
  border-color: #ec4899;
  box-shadow: 0 0 6px rgba(236, 72, 153, 0.4);
}

.route .pill.label {
  display: inline-flex;
  align-items: baseline;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 18px;
}

.route .named {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.route .named b {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.grades {
  color: #94a3b8;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.grades .letter {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.grades .splus {
  color: #ec4899;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.grades .s {
  color: #f59e0b;
  font-weight: 700;
}

.grades .a {
  color: #3b82f6;
  font-weight: 700;
}

.grades .b {
  color: #10b981;
  font-weight: 700;
}

.grades .c {
  color: #94a3b8;
  font-weight: 700;
}

.grades .d {
  color: #ef4444;
  font-weight: 700;
}

/* REACH PROGRESS BAR */
.reach {
  position: relative;
  height: 10px;
  margin: 32px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.reach i {
  position: absolute;
  font-style: normal;
}

.reach .now {
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: #3b82f6;
}

.reach .now.s { background: #f59e0b; }
.reach .now.splus { background: #ec4899; }
.reach .now.a { background: #3b82f6; }
.reach .now.b { background: #10b981; }
.reach .now.c { background: #64748b; }
.reach .now.d { background: #ef4444; }

.reach .aim {
  top: -10px;
  bottom: -10px;
  border-left: 2px dashed #ec4899;
}

.reach .aim span {
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #ec4899;
  text-shadow: 0 0 6px rgba(236, 72, 153, 0.5);
}

.reach .band {
  top: -3px;
  bottom: -3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF9FC6, #FFC861, #7FD8FF, #B08CFF);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.reach .mean {
  top: -6px;
  bottom: -6px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

.route .average {
  margin: 2px 0 0;
  text-align: right;
  font-size: 12px;
  color: #94a3b8;
}

/* REROLL STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px 12px;
  width: fit-content;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.steps li {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 4px 14px 4px 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.steps b {
  font-weight: 700;
  color: #f87171;
}

.steps .into {
  color: #94a3b8;
}

.steps .into b {
  display: inline-block;
  max-width: 100%;
  color: #38bdf8;
}

.steps .note {
  justify-self: end;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 8px;
  border-radius: 10px;
}

.route.next .steps li:first-child {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1.5px #E7B95A;
}

.coin {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #5B3A00;
  background: conic-gradient(from 200deg, #FFE7A3, #FFC6E5, #C6D8FF, #C9F5E6, #FFE7A3);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 3px 8px -3px rgba(90, 60, 0, 0.45);
}

/* TARGETS (BEST / GOOD / FINE) */
.route .lead {
  margin: 14px 0 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.targets {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
}

.targets dt {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.targets dt b {
  min-width: 3.2em;
  color: #ffffff;
  font-weight: 700;
}

.targets dt .note {
  color: #94a3b8;
  font-size: 11px;
}

.targets dd {
  margin: 0;
}

.facets {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
}

.facet {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
}

.facet.best {
  background: linear-gradient(135deg, #FFE7A3, #F2C14E);
  color: #5B3A00;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.facet.good {
  background: #E4DCFF;
  color: #3E2A8C;
}

.facet.fine {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.then {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #eab308;
  font-weight: 600;
}

.then svg {
  color: #f59e0b;
}

/* OTHER SECTIONS (BOARD PLAN) */
.armory-other-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.armory-other-section-card {
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.armory-other-section-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.board.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.board.plan li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  transition: background 0.15s;
}

.board.plan li:hover {
  background: rgba(255, 255, 255, 0.07);
}

.board.plan .what {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.board.plan .what .named {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.board.plan .what .named b {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.board.plan .what .desc {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.armory-already-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.armory-already-tag {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .route { padding: 14px; }
  .route.next { padding: 12px; }
  .steps { grid-template-columns: 24px minmax(0, 1fr) auto; row-gap: 6px; }
  .steps li { row-gap: 2px; padding: 5px 8px; }
  .steps .coin { grid-row: span 2; align-self: start; }
  .steps .into { grid-column: 2 / -1; grid-row: 2; }
  .targets dt { flex-direction: column; gap: 0; }
}



/* ==========================================================================
   ARMORY SUBTAB: SKILLS & STIGMAS (COMPACT WITH RICH HOVER TOOLTIP)
   ========================================================================== */
.armory-skills-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.armory-skills-hero {
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.armory-skills-hero-meta h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.15rem;
  color: var(--text-main, #ffffff);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.armory-skills-count {
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
}

.armory-skills-hero-meta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.armory-skills-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-main, #ffffff);
  margin: 0 0 0.75rem 0;
}

.armory-skills-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.55rem;
}

.armory-skill-tile {
  position: relative;
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.armory-skill-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.armory-skill-tile.is-stigma {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, var(--bg-card, #0f172a), rgba(168, 85, 247, 0.08));
}

.armory-skill-tile.is-stigma:hover {
  border-color: rgba(168, 85, 247, 0.7);
}

.armory-skill-tile.is-passive {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(135deg, var(--bg-card, #0f172a), rgba(52, 211, 153, 0.06));
}

.armory-skill-tile.is-passive:hover {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.armory-skill-lvl-badge.is-passive {
  background: #059669;
  font-size: 0.52rem;
  padding: 1px 3px;
}

.armory-passive-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

.armory-skill-subtag.is-passive-tag {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}


.armory-skill-thumb {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}

.armory-skill-thumb img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.armory-skill-lvl-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #0284c7;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.armory-skill-lvl-badge.is-stigma {
  background: #9333ea;
  font-size: 0.52rem;
  padding: 1px 2px;
}

.armory-skill-info-compact {
  flex: 1;
  min-width: 0;
}

.armory-skill-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.armory-skill-name-txt {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-skill-cd-txt {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.armory-stigma-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  white-space: nowrap;
}

.armory-skill-meta-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.armory-skill-subtag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.armory-skill-subtag.is-active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.armory-skill-subtag.is-rank {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.armory-skill-subtag.is-weapon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.armory-skill-subtag.is-stigma-tag {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Rich Hover Tooltip */
.armory-skill-hover-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 290px;
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 100;
}

.armory-skill-tile:hover .armory-skill-hover-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.armory-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
}

.armory-tooltip-header strong {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
}

.armory-tooltip-cd {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.armory-tooltip-sub {
  font-size: 0.72rem;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.4rem;
}

.armory-tooltip-desc {
  margin: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ==========================================================================
   ARMORY SUBTAB: AUTHENTIC AION 2 ARCANA RELICS
   ========================================================================== */
.armory-arcana-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.armory-arcana-hero {
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.08);
}

.armory-arcana-hero h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.2rem;
  color: var(--text-main, #ffffff);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.armory-arcana-hero p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
}

.armory-arcana-badge-deck {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  white-space: nowrap;
}

.armory-relic-card {
  position: relative;
}

.armory-arcana-summary-panel {
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.armory-arcana-summary-panel h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text-main, #ffffff);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.armory-arcana-skill-boosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.armory-arcana-skill-boost-item {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.armory-arcana-skill-boost-item .sk-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
}

.armory-arcana-skill-boost-item .sk-badge {
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
