[hidden] { display: none !important; }

.account-page {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
}

.discord-login{display:grid;grid-template-columns:auto 1fr;column-gap:11px;align-items:center;margin:16px 0 12px;padding:13px 15px;border:1px solid rgba(132,145,255,.42);border-radius:13px;background:linear-gradient(135deg,rgba(88,101,242,.3),rgba(44,60,172,.22));color:#fff;text-decoration:none;transition:transform .2s,border-color .2s}.discord-login:hover{transform:translateY(-2px);border-color:#8f9aff}.discord-login>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#5865f2;font-size:1.15rem}.discord-login strong{font-size:.82rem}.discord-login small{color:#aeb8dd;font-size:.62rem;margin-top:3px}.account-divider{display:flex;align-items:center;gap:10px;color:#64738d;font-size:.62rem;margin:10px 0 14px}.account-divider::before,.account-divider::after{content:"";height:1px;flex:1;background:rgba(113,142,190,.16)}

.account-main {
  min-height: calc(100vh - 205px);
  display: grid;
  align-items: center;
  padding: 42px 0 70px;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.account-showcase,
.account-panel,
.dashboard-hero,
.dashboard-card {
  border: 1px solid rgba(121, 231, 255, 0.2);
  background: linear-gradient(145deg, rgba(10, 35, 78, 0.82), rgba(3, 9, 26, 0.93));
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.account-showcase {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 34px;
  isolation: isolate;
}

.account-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 50%, rgba(121, 231, 255, 0.22), transparent 32%),
    radial-gradient(circle at 78% 16%, rgba(78, 91, 255, 0.24), transparent 30%),
    linear-gradient(115deg, transparent 38%, rgba(121, 231, 255, 0.06) 54%, transparent 70%);
}

.account-showcase::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: -18%;
  right: -18%;
  bottom: -22%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(44, 125, 255, 0.35), transparent 62%);
  filter: blur(24px);
  animation: account-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.account-showcase-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(121, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 231, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 84%);
  mask-image: linear-gradient(to top, #000, transparent 84%);
}

.account-showcase-orbit {
  position: absolute;
  border: 1px solid rgba(121, 231, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(44, 125, 255, 0.08);
  pointer-events: none;
}

.account-showcase-orbit::before,
.account-showcase-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(121, 231, 255, 0.18);
  border-radius: inherit;
}

.account-showcase-orbit::after { inset: 32%; border-color: rgba(128, 103, 255, 0.25); }
.orbit-one { width: 590px; height: 590px; left: -180px; bottom: -100px; animation: portal-rune-spin 28s linear infinite; }
.orbit-two { width: 330px; height: 330px; right: -110px; top: -95px; animation: portal-rune-spin-reverse 18s linear infinite; }

.account-character {
  position: absolute;
  z-index: 3;
  left: -4%;
  bottom: -7%;
  width: min(58%, 455px);
  max-width: none;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 28px rgba(121, 231, 255, 0.16));
  animation: account-character-float 6s ease-in-out infinite;
}

.account-showcase-copy {
  position: absolute;
  z-index: 8;
  top: 29%;
  right: 7%;
  width: min(54%, 430px);
}

.account-showcase-copy h1 {
  margin: 18px 0;
  font-size: clamp(54px, 5vw, 82px);
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.account-showcase-copy h1 span {
  color: var(--cyan-bright);
  text-shadow: 0 0 30px rgba(121, 231, 255, 0.22);
}

.account-showcase-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.account-security-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: rgba(201, 248, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-security-line i,
.dashboard-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px var(--success);
  animation: status-blink 2s ease-in-out infinite;
}

.account-brand-chip {
  position: absolute;
  z-index: 9;
  top: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(121, 231, 255, 0.24);
  border-radius: 18px;
  background: rgba(4, 13, 34, 0.76);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.account-brand-chip img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: contain;
}

.account-brand-chip span { display: grid; gap: 3px; }
.account-brand-chip small { color: var(--cyan); font-size: 7px; font-weight: 1000; letter-spacing: 0.16em; }
.account-brand-chip strong { font-size: 11px; letter-spacing: 0.08em; }

.account-panel {
  position: relative;
  align-self: center;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px);
  border-radius: 34px;
}

.account-panel::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 125, 255, 0.24), transparent 68%);
  pointer-events: none;
}

.account-panel-head,
.account-tabs,
.account-form,
.account-message,
.account-separator,
.account-discord-link,
.account-session-note { position: relative; z-index: 2; }

.account-panel-head h2 {
  margin: 14px 0 9px;
  font-size: clamp(35px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.account-panel-head > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 28px 0 24px;
  padding: 5px;
  border: 1px solid rgba(121, 231, 255, 0.14);
  border-radius: 16px;
  background: rgba(2, 7, 20, 0.62);
}

.account-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.account-tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(44, 125, 255, 0.48), rgba(128, 103, 255, 0.35));
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 10px 28px rgba(44, 125, 255, 0.16);
}

.account-form { display: grid; gap: 15px; }
.account-form-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 12px; }

.account-field { display: grid; gap: 8px; }
.account-field > span:first-child {
  color: rgba(226, 244, 255, 0.84);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-field input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(121, 231, 255, 0.17);
  border-radius: 14px;
  background: rgba(2, 7, 20, 0.76);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.account-field input::placeholder { color: rgba(167, 187, 210, 0.42); }
.account-field input:focus {
  border-color: rgba(121, 231, 255, 0.62);
  background: rgba(4, 14, 34, 0.92);
  box-shadow: 0 0 0 4px rgba(44, 125, 255, 0.12), 0 0 30px rgba(44, 125, 255, 0.08);
}

.password-control { position: relative; display: block; }
.password-control input { padding-right: 80px; }
.password-control button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 58px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: rgba(44, 125, 255, 0.14);
  color: var(--cyan-bright);
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  transform: translateY(-50%);
}

.account-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}

.account-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); }
.account-consent a { color: var(--cyan-bright); text-decoration: underline; text-underline-offset: 3px; }

.account-submit { width: 100%; margin-top: 3px; border: 0; cursor: pointer; }
.account-submit:disabled,
.account-logout:disabled { opacity: 0.58; cursor: wait; transform: none; }

.account-message,
.account-session-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 102, 125, 0.24);
  border-radius: 12px;
  background: rgba(255, 102, 125, 0.08);
  color: #ffc8d0;
  font-size: 12px;
  line-height: 1.5;
}

.account-message[data-type="success"],
.account-session-note {
  border-color: rgba(101, 243, 196, 0.24);
  background: rgba(101, 243, 196, 0.08);
  color: #b9ffe7;
}

.account-session-note a { color: var(--cyan-bright); font-weight: 900; }

.account-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: rgba(167, 187, 210, 0.46);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0.14em;
}

.account-separator::before,
.account-separator::after { content: ""; flex: 1; height: 1px; background: rgba(121, 231, 255, 0.12); }

.account-discord-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(121, 231, 255, 0.15);
  border-radius: 15px;
  background: rgba(44, 125, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.account-discord-link:hover { transform: translateY(-2px); border-color: rgba(121, 231, 255, 0.36); background: rgba(44, 125, 255, 0.13); }
.account-discord-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(44, 125, 255, 0.22); color: var(--cyan-bright); }
.account-discord-link > span:nth-child(2) { display: grid; gap: 3px; }
.account-discord-link strong { font-size: 11px; }
.account-discord-link small { color: var(--muted); font-size: 9px; }
.account-discord-link b { color: var(--cyan); }

.account-footer { margin-top: 0; }

/* Minha conta */
.dashboard-main { min-height: calc(100vh - 205px); padding: 46px 0 76px; }
.account-loading {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-loading img { width: 86px; height: 86px; object-fit: contain; animation: account-loading 2.2s ease-in-out infinite; }
.account-loading.is-error { color: #ffc8d0; }

.dashboard-shell { display: grid; gap: 26px; }
.dashboard-hero {
  position: relative;
  min-height: 285px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: clamp(35px, 5vw, 68px);
  border-radius: 32px;
}
.dashboard-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(44, 125, 255, 0.18), transparent 42%, rgba(128, 103, 255, 0.13)); pointer-events: none; }
.dashboard-hero > * { position: relative; z-index: 2; }
.dashboard-hero h1 { margin: 16px 0 10px; font-size: clamp(52px, 6.5vw, 92px); line-height: 0.92; letter-spacing: -0.065em; }
.dashboard-hero h1 span { color: var(--cyan-bright); }
.dashboard-hero > div:first-child > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 16px; }
.dashboard-avatar { width: 190px; height: 190px; flex: 0 0 auto; padding: 10px; border: 1px solid rgba(121, 231, 255, 0.3); border-radius: 45px; background: rgba(4, 13, 32, 0.72); box-shadow: 0 0 65px rgba(44, 125, 255, 0.2); transform: rotate(3deg); }
.dashboard-avatar img { width: 100%; height: 100%; border-radius: 36px; object-fit: contain; }

.dashboard-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.dashboard-card { position: relative; min-height: 270px; overflow: hidden; padding: 27px; border-radius: 25px; transition: transform 200ms ease, border-color 200ms ease; }
.dashboard-card:hover { transform: translateY(-4px); border-color: rgba(121, 231, 255, 0.38); }
.dashboard-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -110px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(44, 125, 255, 0.2), transparent 66%); }
.profile-card { grid-row: span 2; min-height: 560px; }
.dashboard-card-head { display: flex; align-items: center; justify-content: flex-start; color: var(--cyan); font-size: 9px; font-weight: 1000; letter-spacing: 0.16em; }
.dashboard-card h2 { margin: 55px 0 13px; font-size: clamp(28px, 3vw, 39px); line-height: 0.98; letter-spacing: -0.045em; }
.dashboard-route p { max-width: 330px; margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.account-details { display: grid; gap: 2px; margin: 34px 0 0; }
.account-details div { display: grid; gap: 5px; padding: 17px 0; border-bottom: 1px solid rgba(121, 231, 255, 0.11); }
.account-details dt { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.account-details dd { max-width: 100%; margin: 0; overflow: hidden; color: var(--cyan-bright); font-size: 14px; font-weight: 850; text-overflow: ellipsis; }
.dashboard-status { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: #b9ffe7; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.route-discord { background: linear-gradient(145deg, rgba(37, 73, 163, 0.65), rgba(4, 11, 30, 0.93)); }
.route-bot { background: radial-gradient(circle at 100% 0, rgba(56, 95, 255, 0.2), transparent 46%), linear-gradient(145deg, rgba(18, 52, 105, 0.78), rgba(4, 10, 25, 0.95)); }
.route-bot code { display: inline-flex; padding: 3px 6px; border: 1px solid rgba(89, 208, 255, 0.24); border-radius: 7px; background: rgba(31, 113, 204, 0.18); color: #77dcff; font: 800 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.route-terms { background: linear-gradient(145deg, rgba(28, 63, 119, 0.65), rgba(4, 11, 30, 0.93)); }
.route-support { grid-column: 2 / 4; }
.dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 5px 0 10px; }
.dashboard-actions .account-message { flex: 1 1 100%; margin: 0; }
.account-logout { border: 1px solid rgba(255, 102, 125, 0.28); background: rgba(255, 102, 125, 0.08); color: #ffc8d0; cursor: pointer; }
.account-logout:hover { border-color: rgba(255, 102, 125, 0.52); background: rgba(255, 102, 125, 0.14); }

@keyframes account-character-float { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-13px) rotate(0.7deg); } }
@keyframes account-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.95); } 50% { opacity: 0.95; transform: scale(1.05); } }
@keyframes account-loading { 0%, 100% { transform: scale(0.92); filter: drop-shadow(0 0 12px rgba(44, 125, 255, 0.2)); } 50% { transform: scale(1.04); filter: drop-shadow(0 0 30px rgba(121, 231, 255, 0.45)); } }

@media (max-width: 1100px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-showcase { min-height: 520px; }
  .account-character { width: 340px; bottom: -26%; }
  .account-showcase-copy { top: 24%; width: 52%; }
  .account-panel { width: min(680px, 100%); justify-self: center; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .profile-card { grid-row: auto; min-height: 430px; }
  .route-support { grid-column: auto; }
}

@media (max-width: 720px) {
  .dashboard-grid {
    content-visibility: auto;
    contain-intrinsic-size: auto 1280px;
  }
  .account-page { width: min(100% - 24px, 1480px); }
  .account-main { padding-top: 22px; }
  .account-showcase { min-height: 580px; border-radius: 25px; }
  .account-brand-chip { top: 18px; right: 18px; }
  .account-character { left: -18%; bottom: -4%; width: 350px; }
  .account-showcase-copy { top: 25%; right: 5%; width: 62%; }
  .account-showcase-copy h1 { font-size: clamp(47px, 14vw, 67px); }
  .account-showcase-copy > p:not(.eyebrow) { font-size: 13px; }
  .account-security-line { display: none; }
  .account-panel { padding: 28px 22px; border-radius: 25px; }
  .account-form-row { grid-template-columns: 1fr; }
  .dashboard-hero { min-height: 380px; align-items: flex-start; padding: 30px 25px; }
  .dashboard-hero h1 { font-size: clamp(47px, 14vw, 68px); }
  .dashboard-avatar { position: absolute; right: 22px; bottom: 22px; width: 116px; height: 116px; border-radius: 30px; }
  .dashboard-avatar img { border-radius: 23px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card, .profile-card { min-height: 300px; }
  .route-support { grid-column: auto; }
  .dashboard-actions .button { width: 100%; }
}

@media (max-width: 450px) {
  .account-showcase { min-height: 530px; }
  .account-character { left: -35%; width: 330px; }
  .account-showcase-copy { top: 27%; width: 65%; }
  .account-brand-chip span { display: none; }
  .account-brand-chip { padding: 7px; }
  .account-brand-chip img { width: 42px; height: 42px; }
  .account-tabs { margin-top: 23px; }
  .account-footer nav { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .account-character,
  .account-showcase-orbit,
  .account-showcase::after,
  .account-loading img { animation: none !important; }
}
