/* ==========================================================================
   InfinityCraft Portal — Visual Finish & Homologation Overlay (r663)
   Preserves r661 kinematic visual identity across /, /servidores, /noticias,
   /ranking, /loja, /launcher, /suporte, /conta, and /conta/:servidor
   ========================================================================== */

/* 1. OAuth Social Login & Titular Confirmation (.ic-oauth-block) */
.ic-oauth-block {
  margin: 0 0 22px;
  display: grid;
  gap: 14px;
}

.ic-oauth-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b7c5da;
  margin: 0;
}

.ic-oauth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ic-oauth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(22, 33, 52, 0.94), rgba(14, 22, 36, 0.96));
  color: #eff4fc;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.ic-oauth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 102, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.ic-oauth-btn.is-discord:hover:not(:disabled) {
  border-color: rgba(88, 101, 242, 0.75);
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.22);
}

.ic-oauth-btn.is-microsoft:hover:not(:disabled) {
  border-color: rgba(0, 164, 239, 0.72);
  box-shadow: 0 10px 26px rgba(0, 164, 239, 0.2);
}

.ic-oauth-btn.is-disabled,
.ic-oauth-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  background: rgba(15, 22, 34, 0.7);
  border-color: rgba(255, 255, 255, 0.07);
}

.ic-oauth-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: none;
  background: rgba(255, 255, 255, 0.06);
}

.ic-oauth-btn.is-discord .ic-oauth-icon {
  background: rgba(88, 101, 242, 0.2);
  color: #99a4ff;
}

.ic-oauth-btn.is-microsoft .ic-oauth-icon {
  background: rgba(0, 164, 239, 0.16);
  color: #7ad7ff;
}

.ic-oauth-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ic-oauth-copy strong {
  font-size: 13px;
  color: #f4f7fd;
  line-height: 1.2;
}

.ic-oauth-copy small {
  font-size: 10px;
  color: #93a5be;
  line-height: 1.2;
}

.ic-oauth-btn.is-discord .ic-oauth-copy small,
.ic-oauth-btn.is-microsoft .ic-oauth-copy small {
  color: #7ee2b8;
}

.ic-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8899b3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ic-oauth-divider::before,
.ic-oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.ic-oauth-confirm-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.48);
  background: linear-gradient(135deg, rgba(44, 33, 18, 0.92), rgba(18, 27, 43, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 12px;
}

.ic-oauth-confirm-card h4 {
  margin: 0;
  font-size: 16px;
  color: #ffe094;
}

.ic-oauth-confirm-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #dce5f4;
}

.ic-oauth-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ic-onboarding-fields {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(14, 23, 38, 0.65);
  margin: 4px 0;
}

.ic-onboarding-fields small {
  color: #99acc6;
  font-size: 11px;
  line-height: 1.45;
}

/* 2. Account Area: Server Quick Entry & Link Cards (.ic-account-servers-section) */
.ic-account-servers-section {
  margin: 0 0 24px;
  padding: 24px 26px !important;
  border: 1px solid rgba(255, 209, 102, 0.22) !important;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255, 202, 101, 0.1), transparent 55%),
    linear-gradient(135deg, rgba(19, 29, 46, 0.96), rgba(12, 19, 31, 0.98)) !important;
}

.ic-account-servers-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ic-account-servers-head h2 {
  margin: 4px 0 6px !important;
  font-size: 22px !important;
  color: #f6f8fd;
}

.ic-account-servers-head p {
  margin: 0;
  font-size: 13px;
  color: #a8b9d0;
}

.ic-account-servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
}

.ic-account-server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(22, 34, 54, 0.92), rgba(13, 20, 33, 0.96));
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ic-account-server-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.ic-account-server-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ic-account-server-thumb {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d1524;
  display: grid;
  place-items: center;
}

.ic-account-server-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-account-server-title {
  min-width: 0;
  flex: 1;
}

.ic-account-server-title strong {
  display: block;
  font-size: 15px;
  color: #f5f8ff;
  line-height: 1.25;
}

.ic-account-server-title small {
  display: block;
  font-size: 11px;
  color: #9ab0ca;
  margin-top: 2px;
}

.ic-account-server-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ic-server-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ic-server-pill.is-online {
  background: rgba(45, 196, 141, 0.16);
  color: #7ef0c1;
  border: 1px solid rgba(45, 196, 141, 0.38);
}

.ic-server-pill.is-homolog {
  background: rgba(255, 209, 102, 0.16);
  color: #ffd87a;
  border: 1px solid rgba(255, 209, 102, 0.36);
}

.ic-server-pill.is-prep {
  background: rgba(140, 160, 190, 0.14);
  color: #b4c4dc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ic-server-pill.is-linked {
  background: rgba(89, 199, 239, 0.16);
  color: #8ee4ff;
  border: 1px solid rgba(89, 199, 239, 0.35);
}

.ic-account-server-btn {
  width: 100%;
  justify-content: space-between !important;
  min-height: 40px !important;
  padding: 9px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

/* 3. Dedicated Server Entry & Link Portal Page (/conta/:slug) */
.ic-server-entry-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  gap: 24px;
}

.ic-server-entry-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ic-server-entry-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d5e8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 29, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ic-server-entry-back:hover {
  border-color: rgba(255, 209, 102, 0.5);
  color: #ffe094;
}

.ic-server-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ic-server-switcher a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #aebfd6;
  background: rgba(16, 25, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.15s ease;
}

.ic-server-switcher a:hover,
.ic-server-switcher a[aria-current="page"] {
  color: #162033;
  background: linear-gradient(135deg, #ffd67c, #f3a942);
  border-color: #ffd67c;
  box-shadow: 0 6px 20px rgba(243, 169, 66, 0.3);
}

.ic-server-entry-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.32);
  background: linear-gradient(125deg, #162338 0%, #0e1726 60%, #1b182c 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  padding: 36px 40px;
  align-items: center;
}

.ic-server-entry-hero-copy {
  display: grid;
  gap: 14px;
  z-index: 1;
}

.ic-server-entry-hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  color: #fff6e0;
}

.ic-server-entry-hero-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #cad6e8;
  max-width: 660px;
}

.ic-server-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ic-server-entry-art {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a101c;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.ic-server-entry-art img.ic-art-bg {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04);
}

.ic-server-entry-art img.ic-art-wordmark {
  position: absolute;
  max-width: 78%;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.78));
}

.ic-server-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.ic-server-entry-card {
  padding: 28px 30px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: linear-gradient(155deg, rgba(19, 29, 46, 0.95), rgba(12, 18, 30, 0.98)) !important;
  display: grid;
  gap: 16px;
}

.ic-server-entry-card h2 {
  margin: 0;
  font-size: 22px;
  color: #f6f9ff;
}

.ic-server-code-box {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(89, 199, 239, 0.45);
  background: linear-gradient(135deg, rgba(16, 39, 58, 0.92), rgba(12, 22, 36, 0.96));
  display: grid;
  gap: 8px;
}

.ic-server-code-box code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #84dce9;
  background: rgba(0, 0, 0, 0.32);
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  display: block;
}

/* 4. Explanatory Privacy Tab (.ic-privacy-explanatory) */
.ic-privacy-explanatory {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.ic-privacy-controls-list {
  display: grid;
  gap: 14px;
}

.ic-privacy-item {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 24, 39, 0.82);
  display: grid;
  gap: 10px;
}

.ic-privacy-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ic-privacy-item-head strong {
  font-size: 15px;
  color: #f4f8ff;
}

.ic-privacy-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ic-privacy-facts div {
  font-size: 11px;
  line-height: 1.45;
  color: #a9bbd2;
}

.ic-privacy-facts span {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffd166;
  font-size: 10px;
  margin-bottom: 2px;
}

.ic-privacy-preview-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  background: linear-gradient(145deg, rgba(24, 36, 56, 0.95), rgba(13, 20, 33, 0.98));
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.ic-privacy-preview-card h4 {
  margin: 0;
  font-size: 16px;
  color: #ffe094;
}

.ic-privacy-preview-pills {
  display: grid;
  gap: 8px;
}

.ic-privacy-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

/* 5. Store (/loja): VIP Card Alignment & 4-Column Audited Comparison */
.vip-plans {
  align-items: stretch !important;
}

.vip-plan {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.vip-plan-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.vip-plan-benefits {
  flex: 1 !important;
}

.vip-card-actions {
  margin-top: auto !important;
  padding-top: 16px;
}

.ic-vip-compare-4col {
  margin-top: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  background: linear-gradient(160deg, rgba(18, 27, 44, 0.96), rgba(11, 17, 28, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ic-vip-compare-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.ic-vip-compare-head h3 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #fff4da;
}

.ic-vip-compare-head p {
  margin: 0;
  font-size: 14px;
  color: #b4c3d8;
  max-width: 680px;
}

.ic-vip-server-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ic-vip-server-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 21, 35, 0.85);
  color: #bdcce0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ic-vip-server-tab:hover {
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
}

.ic-vip-server-tab[aria-pressed="true"] {
  background: linear-gradient(135deg, #ffd67c, #f3a942);
  color: #151f32;
  border-color: #ffd67c;
  box-shadow: 0 8px 24px rgba(243, 169, 66, 0.3);
}

.ic-vip-audit-note {
  padding: 12px 32px;
  background: rgba(255, 209, 102, 0.08);
  border-bottom: 1px solid rgba(255, 209, 102, 0.18);
  font-size: 12px;
  color: #e4d4b4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ic-vip-table-wrap {
  overflow-x: auto;
  padding: 0 20px 24px;
}

.ic-vip-4col-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.ic-vip-4col-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 16px;
  text-align: left;
  background: #121c2e;
  border-bottom: 2px solid rgba(255, 209, 102, 0.35);
  color: #f4f8ff;
  font-size: 14px;
}

.ic-vip-4col-table thead th.col-membro {
  color: #b8c7dd;
}

.ic-vip-4col-table thead th.col-star {
  color: #ffd166;
}

.ic-vip-4col-table thead th.col-galaxy {
  color: #c59bff;
}

.ic-vip-4col-table thead th.col-infinity {
  color: #6ce5ff;
  background: linear-gradient(180deg, rgba(24, 52, 78, 0.95), #121c2e);
}

.ic-vip-4col-table tbody tr.ic-vip-cat-row th {
  padding: 14px 16px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.06);
  border-bottom: 1px solid rgba(255, 209, 102, 0.2);
}

.ic-vip-4col-table tbody th[scope="row"] {
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  color: #dce6f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  width: 28%;
}

.ic-vip-4col-table tbody td {
  padding: 13px 16px;
  color: #c4d2e6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  width: 18%;
}

.ic-vip-4col-table tbody td.col-infinity {
  background: rgba(89, 199, 239, 0.05);
  color: #eef8ff;
  font-weight: 600;
}

.ic-vip-4col-table tbody tr:hover th[scope="row"],
.ic-vip-4col-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

/* 6. Support Landing (/suporte) & Ticket Workspace (/conta/suporte) */
.ic-support-depts-section {
  margin: 28px 0;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(18, 28, 44, 0.94), rgba(12, 18, 30, 0.98));
}

.ic-support-depts-head {
  margin-bottom: 20px;
}

.ic-support-depts-head h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  color: #f6f9ff;
}

.ic-support-depts-head p {
  margin: 0;
  color: #a8b9d0;
  font-size: 14px;
}

.ic-support-depts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ic-support-dept-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 22, 36, 0.85);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ic-support-dept-card:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 199, 239, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.ic-support-dept-card strong {
  font-size: 16px;
  color: #f4f8ff;
}

.ic-support-dept-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #a7b8cf;
}

.ic-support-dept-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #7ee2ff;
}

/* Standalone /conta/suporte Portal Enhancement */
.support-standalone {
  max-width: 1360px !important;
  padding: 32px 24px 72px !important;
}

.support-standalone .support-premium {
  background: linear-gradient(155deg, rgba(18, 28, 44, 0.95), rgba(11, 17, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.support-standalone .support-page-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.support-category-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.support-category-choices button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 24, 39, 0.85);
  color: #eef4fc;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.support-category-choices button:hover,
.support-category-choices button.selected {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

@media (max-width: 960px) {
  .ic-oauth-grid,
  .ic-support-depts-grid,
  .ic-server-entry-hero,
  .ic-server-entry-grid,
  .ic-privacy-explanatory {
    grid-template-columns: 1fr;
  }
  .ic-privacy-facts,
  .support-category-choices {
    grid-template-columns: 1fr;
  }
}
