/* ARES — Comptes liés V1 */

.ares-linked-accounts {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #303b59;
  background: linear-gradient(135deg,#1b2340,#12182d);
  color: #f1f4ff;
}

.ares-linked-accounts[hidden] {
  display: none !important;
}

.ares-linked-heading h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 750;
}

.ares-linked-heading p {
  margin: 0 0 22px;
  color: #a7b3ce;
  line-height: 1.5;
}

.ares-linked-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #303b59;
}

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

.ares-linked-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #283456;
  font-size: 23px;
  font-weight: 700;
}

.ares-linked-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ares-linked-details strong {
  font-size: 15px;
}

.ares-linked-details small {
  color: #a7b3ce;
  font-size: 12px;
}

.ares-linked-action,
.ares-linked-status,
.ares-linked-disabled {
  flex-shrink: 0;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.ares-linked-action {
  background: #3779f5;
  border: 1px solid #6099ff;
  color: white;
  cursor: pointer;
}

.ares-linked-status {
  background: #183c35;
  color: #82e3b3;
  border: 1px solid #316d59;
}

.ares-linked-disabled {
  background: #242b40;
  color: #8793ad;
  border: 1px solid #374159;
}

#ares-linked-message {
  color: #ffb3b3;
}

@media(max-width:600px) {
  .ares-linked-accounts {
    padding: 18px;
    border-radius: 20px;
  }

  .ares-linked-row {
    gap: 10px;
  }

  .ares-linked-action,
  .ares-linked-status,
  .ares-linked-disabled {
    padding: 9px 11px;
    font-size: 12px;
  }
}

/* ARES_LINKED_V2_CSS */
.ares-linked-logo {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.ares-linked-logo[data-provider="discord"] {
  filter: invert(43%) sepia(86%) saturate(1593%)
          hue-rotate(207deg) brightness(102%);
}

.ares-linked-logo[data-provider="apple"] {
  filter: brightness(0) invert(1);
}

.ares-linked-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ares-linked-unlink {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #a84c65;
  background: #3c2233;
  color: #ffc0cc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ares-linked-unlink:hover {
  background: #633044;
}

.ares-linked-unlink:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 520px) {
  .ares-linked-actions {
    gap: 6px;
  }

  .ares-linked-unlink {
    padding: 8px 9px;
    font-size: 11px;
  }

  .ares-linked-status {
    padding: 8px 9px;
    font-size: 11px;
  }
}
