
.characters-page * {
  box-sizing: border-box;
}

.characters-page{
 min-height: calc(100vh - var(--header-h) - 120px);
  padding:
    calc(var(--header-h) + 42px)
    42px
    42px;

  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 14, 0.08),
      rgba(2, 6, 14, 0.18)
    ),
    url("/assets/img/foto.png") no-repeat center top fixed;

  background-size: cover;
  color: var(--text);
}

/* HEADER */

.page-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}


.page-title h1 {
/*  width: 100%;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  color: var(--gold-2);
  text-transform: uppercase; */
    font-family: Playfair Display;
    background: linear-gradient(180deg, #efdbc3 0%, #f7d3ab 18%, #ffce92 38%, #fabd58 52%, #f6cb6a 70%, #f3dfbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .25);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.7));
}

.page-title .search-box {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.search-box {
  display: flex;
  padding: 7px;
  border: 1px solid rgba(198, 132, 45, .45);
  border-radius: 12px;
  background: rgba(3, 8, 18, .85);
}

.search-box input {
  width: 300px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.search-box button {
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5cf7c, #c99238);
  color: #211405;
  font-weight: 800;
  cursor: pointer;
}

/* LAYOUT */


.character-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: stretch; /* importante */
}

.profile-card {
  height: 100%;
}

/* CARDS */


.item-card,
.equipment-panel {
  border: 1px solid rgba(198, 132, 45, .45);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
}

.profile-card {
  background:
    url("/assets/img/card.png") center / cover no-repeat;
}

.item-card {
  background: rgba(3, 10, 22, .86);
}

/* EQUIPMENT PANEL */

.equipment-panel {
  position: relative;
  padding: 20px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 18px;
  overflow: hidden;
  background-image: url('/assets/img/icones/characters/find1.png');
  background-size: cover;
  background-position: center;
}

.equipment-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* TOP SLOTS */

.top-slots {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* LISTAS */

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.equipment-list.left {
  grid-column: 1;
  align-items: flex-start;
}

.equipment-list.right {
  grid-column: 3;
  width: 100%;
}

/* LINHA DO ITEM */

.gear-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  cursor: pointer;
}

.equipment-list.left .gear-row {
  flex-direction: row;
}

/* DIREITA FINAL */


.equipment-list.right .gear-info {
  text-align: right;
  justify-self: end;
  max-width: 260px;
}

.equipment-list.right .gear-slot {
  justify-self: end;
}

/* SLOTS */

.gear-slot {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  flex: 0 0 54px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(180,180,180,.55);
  border-radius: 6px;
  background: rgba(2,5,10,.6);
  overflow: hidden;
}

.gear-slot.compact {
  width: 54px !important;
  height: 54px !important;
  flex-basis: 54px !important;
}


.gear-slot img {
  width: 90% !important;
  height: 90% !important;

  object-fit: contain;
  object-position: center;

  transform: none !important;

  display: block;
}

.gear-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.gear-label {
  font-size: 12px;
  color: #aaa;
}

.gear-name {
  font-size: 13px;
  font-weight: 600;
  color: #c77dff;
}

/* TOOLTIP HOVER AREA */

.gear-slot,
.gear-slot img {
  pointer-events: none;
}

.gear-row.has-item .gear-slot {
  pointer-events: auto;
}

/* REMOVE PERSONAGEM */

.character-preview {
  display: none;
}

/* TOOLTIP */

.item-tooltip {
  position: fixed;
  z-index: 99999;
  display: none;
  pointer-events: none;
}

.aion-item-tooltip {
  width: 610px;
  max-width: 90vw;  
  padding: 10px;
  background: #071116;
  border: 2px solid #172530;
  box-shadow:
    inset 0 0 0 1px #344550,
    0 0 0 1px #000,
    0 10px 25px rgba(0,0,0,.75);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: Tahoma,Verdana,Helvetica,sans-serif;
}

.tooltip-id {
  color: #fff;
}

.tooltip-title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
}

.tooltip-header {
  display: flex;
  gap: 12px;
}

.tooltip-icon {
  display: none;
}

.tooltip-info {
  line-height: 1.15;
}

.tooltip-good {
  display: none;
}

.tooltip-bad {
  color: #ff4a4a;
  font-weight: 700;
}

.tooltip-bad span {
  color: #fff;
  margin-left: 4px;
}

.tooltip-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(180, 200, 210, .25);
}

.tooltip-row {
  display: grid;
  grid-template-columns: 190px 90px 190px 90px;
  column-gap: 10px;
  align-items: start;
  margin-bottom: 4px;
}

.tooltip-row span {
  color: #fff;
  text-align: left;
  white-space: nowrap;
  line-height: 1.1;
}

.tooltip-row strong {
  color: #fff;
  text-align: right;
  white-space: nowrap;
  line-height: 1.1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.tooltip-sockets {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.tooltip-socket {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 2px solid #27343b;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)),
    #12181c;
  box-shadow:
    inset 0 0 0 1px #3b4a52,
    inset 0 0 8px rgba(0,0,0,.75);
}

/* RIGHT SIDE: texto à esquerda, ícone à direita, perto da borda */

.equipment-panel {
  grid-template-columns: 260px 1fr 260px;
}

.equipment-list.right {
  grid-column: 3;
  width: 100%;
  padding-right: 0;
}

.equipment-list.right .gear-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.equipment-list.right .gear-info {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  max-width: 260px;
}

.equipment-list.right .gear-slot {
  grid-column: 2;
  justify-self: end;
}

/* DIREITA: igual esquerda, só invertido */
.equipment-list.right {
  grid-column: 3;
  align-items: flex-end;
}

.equipment-list.right .gear-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
  min-width: 0;
}

.equipment-list.right .gear-info {
  order: 1;
  flex: 0 0 auto;
  width: 180px;
  max-width: 180px;
  text-align: right;
}

.equipment-list.right .gear-slot {
  order: 2;
  flex: 0 0 64px !important;
  margin: 0 !important;
}

.equipment-list.right .gear-label,
.equipment-list.right .gear-name {
  text-align: right;
}

.tooltip-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 6px 12px;

    padding: 2px 0; /* ↓ reduz altura */
    line-height: 1.1; /* ↓ texto mais compacto */

    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tooltip-row span {
    font-size: 14px;
}

.tooltip-row strong {
    font-size: 14px;
}

.aion-item-tooltip {
  width: 610px;
}

.tooltip-row {
  display: grid;
  grid-template-columns: 155px 110px 155px 110px;
  column-gap: 12px;
  align-items: start;
  padding: 2px 0;
  line-height: 1.12;
}

.tooltip-row span {
  text-align: left;
  white-space: nowrap;
}

.tooltip-row strong {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tooltip-section {
  padding: 8px 0;
  margin: 0;
}

.tooltip-section + .tooltip-section {
  border-top: 1px solid rgba(255,255,255,.14);
}


.profile-card {
  min-height: 620px;
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-header h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
}

.profile-header p {
  margin: 0 0 28px;
  font-size: 18px;
}

.abyss-points {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

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

.stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  line-height: 1.15;
}

.stats span {
  color: #e8edf5;
}

.stats strong {
  color: #fff;
  font-weight: 700;
}

.full-stats {
  margin-top: 14px;
  align-self: flex-start;
}

/* Nome do personagem */
#profileName {
  color: #f6cb6a; /* dourado/amarelo */
}

/* Valores dos stats */
.stats strong,
#profileAp {
  color: #f6cb6a;
}

.character-layout {
 grid-template-columns: 325px 950px;
}

.gear-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* importante com scale */
}

/* finall */
