/* Mu Crown style — Account Panel */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Sora:wght@400;500;600;700&display=swap");

.crown-panel-shell {
  --crown-accent: #3aa0ff;
  --crown-accent2: #38bdf8;
  --crown-gold: #ffc952;
  --font-title: "Cinzel", serif;
  --font-body: "Sora", "Montserrat", system-ui, sans-serif;
  font-family: var(--font-body);
  position: relative;
}

main .page.account-panel-page.crown-panel-shell {
  background: rgba(8, 12, 28, 0.82) !important;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(113, 200, 255, 0.14) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border-radius: 24px !important;
  overflow: visible !important;
}

.crown-panel-shell .account-panel-page__title {
  font-family: var(--font-title);
  letter-spacing: 0.1em;
}

.crown-hero {
  position: relative;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(900px 280px at 20% 0%, rgba(58, 160, 255, 0.28), transparent 58%),
    radial-gradient(700px 240px at 95% 10%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(14, 18, 32, 0.88), rgba(8, 10, 18, 0.78));
  border: 1px solid rgba(148, 170, 255, 0.14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.crown-hero__bg {
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, rgba(58, 160, 255, 0.16), transparent 40%, rgba(56, 189, 248, 0.1));
  filter: blur(16px);
  opacity: 0.55;
  pointer-events: none;
}

.crown-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.crown-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 245, 255, 0.68);
  margin-bottom: 10px;
}

.crown-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--crown-accent) 55%, rgba(58, 160, 255, 0.2));
  box-shadow: 0 0 14px rgba(58, 160, 255, 0.55);
}

.crown-hero__headline {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.96);
  margin: 0 0 6px;
}

.crown-hero__subline {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(240, 245, 255, 0.62);
  max-width: 520px;
}

.crown-vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 226, 130, 0.95);
  background: linear-gradient(180deg, rgba(255, 201, 82, 0.22), rgba(120, 70, 0, 0.18));
  border: 1px solid rgba(255, 201, 82, 0.35);
  box-shadow: 0 0 18px rgba(255, 200, 90, 0.12);
}

.crown-vip-spotlight {
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(420px 180px at 18% 0%, rgba(255, 215, 0, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.45), rgba(6, 8, 14, 0.22));
  border: 1px solid rgba(148, 170, 255, 0.14);
}

.crown-vip-spotlight.is-free {
  border-color: rgba(148, 163, 184, 0.2);
}

.crown-vip-spotlight__label {
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 245, 255, 0.75);
  margin-bottom: 8px;
}

.crown-vip-spotlight__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.95);
  margin-bottom: 10px;
}

.crown-vip-spotlight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.crown-vip-spotlight__meta span {
  font-size: 0.72rem;
  color: rgba(240, 245, 255, 0.7);
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(10, 16, 30, 0.35);
  border: 1px solid rgba(120, 170, 255, 0.14);
}

.crown-vip-spotlight__meta strong {
  color: rgba(255, 235, 160, 0.98);
}

.crown-vip-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(120, 170, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.crown-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.crown-btn--vip {
  background: linear-gradient(180deg, rgba(58, 160, 255, 0.22), rgba(20, 60, 140, 0.35));
  color: rgba(240, 245, 255, 0.92);
  border-color: rgba(58, 160, 255, 0.35);
}

.crown-btn--golds {
  background: linear-gradient(180deg, rgba(255, 201, 82, 0.28), rgba(180, 120, 20, 0.35));
  color: rgba(255, 240, 200, 0.98);
  border-color: rgba(255, 201, 82, 0.4);
  box-shadow: 0 0 20px rgba(255, 200, 90, 0.15);
}

.crown-wallet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.crown-coin-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(6, 8, 14, 0.55);
  border: 1px solid rgba(148, 170, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.crown-coin-pill__ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(58, 160, 255, 0.12);
  border: 1px solid rgba(58, 160, 255, 0.22);
  color: #71c8ff;
  font-size: 1rem;
}

.crown-coin-pill--gold .crown-coin-pill__ic {
  background: rgba(255, 201, 82, 0.12);
  border-color: rgba(255, 201, 82, 0.25);
  color: #ffc952;
}

.crown-coin-pill__val {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #4ade80;
  line-height: 1.1;
}

.crown-coin-pill__nm {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  margin-top: 2px;
}

.crown-vip-wallet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.crown-btn--credits-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background:
    radial-gradient(220px 60px at 18% 0%, rgba(34, 197, 94, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(10, 16, 30, 0.35));
  border: 1px solid rgba(34, 197, 94, 0.26);
  color: rgba(220, 255, 235, 0.95);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.1);
}

.crown-panel-shell .account-dashboard__characters,
.crown-panel-shell .crown-block,
.crown-panel-shell section.crown-block {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 80px;
}

.crown-panel-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.crown-block {
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.92), rgba(8, 10, 18, 0.88));
  border: 1px solid rgba(148, 170, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.crown-block__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 14px;
}

.crown-block__head-text {
  flex: 1;
  min-width: 0;
}

.crown-block__title {
  display: block;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.94);
  line-height: 1.2;
  margin: 0 0 4px;
}

.crown-block__icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 0;
  background: rgba(58, 160, 255, 0.12);
  border: 1px solid rgba(58, 160, 255, 0.22);
  color: #71c8ff;
  font-size: 0.95rem;
  line-height: 1;
}

.crown-block__hint {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.3;
}

.crown-info-list {
  padding: 10px 12px 14px;
}

.crown-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(5, 8, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.crown-info-row:last-child {
  margin-bottom: 0;
}

.crown-info-key {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
}

.crown-info-key__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(58, 160, 255, 0.12);
  border: 1px solid rgba(58, 160, 255, 0.22);
  color: #71c8ff;
  font-size: 0.85rem;
  line-height: 1;
}

.crown-info-key__icon i {
  color: inherit;
  font-size: inherit;
  line-height: 1;
}

.crown-info-key__text {
  line-height: 1.2;
}

.crown-info-key i {
  color: #71c8ff;
}

.crown-info-val {
  flex-shrink: 0;
  max-width: 55%;
  padding: 7px 12px;
  border-radius: 10px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 600;
  color: #dbeafe;
  background: rgba(58, 160, 255, 0.1);
  border: 1px solid rgba(58, 160, 255, 0.18);
  word-break: break-word;
}

.crown-2fa-box {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: flex-start;
}

.crown-2fa-box__ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(58, 160, 255, 0.12);
  border: 1px solid rgba(58, 160, 255, 0.22);
  color: #71c8ff;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.crown-2fa-box__title {
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.crown-2fa-box__desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 12px;
}

.crown-char-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(520px 180px at 10% 0%, rgba(58, 160, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(8, 12, 24, 0.95), rgba(6, 8, 16, 0.88));
  border: 1px solid rgba(113, 200, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.crown-char-hero__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(58, 160, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.crown-char-hero__left {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 220px;
}

.crown-char-hero__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(58, 160, 255, 0.45);
  box-shadow: 0 0 20px rgba(58, 160, 255, 0.2);
  flex-shrink: 0;
}

.crown-char-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crown-char-hero__kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71c8ff;
  margin-bottom: 4px;
}

.crown-char-hero__name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fafc;
  margin-bottom: 4px;
}

.crown-char-hero__sub {
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.4;
}

.crown-char-hero .crown-btn {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(58, 160, 255, 0.28), rgba(20, 60, 140, 0.4));
  border-color: rgba(58, 160, 255, 0.4);
  color: #fff;
}

.crown-char-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 14px 14px;
}

.crown-char-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px 14px;
}

.crown-char-row {
  margin: 0 !important;
}

.crown-char-row.is-featured {
  border-color: rgba(255, 201, 82, 0.28);
  box-shadow: 0 0 28px rgba(255, 200, 90, 0.08);
}

.crown-char-row .crown-char-hero__sub {
  max-width: 520px;
  line-height: 1.45;
}

.crown-char-list .account-dashboard__character-card {
  width: 120px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.crown-char-list .account-dashboard__character-card:hover {
  transform: translateY(-2px);
}

[data-character-featured] ~ [data-character-detail] {
  display: none !important;
}

.chroma-panel-modal {
  z-index: 10060 !important;
}

.chroma-panel-modal .modal-dialog {
  z-index: 10061 !important;
}

.chroma-panel-modal .modal-content {
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.98), rgba(8, 10, 18, 0.98));
  border: 1px solid rgba(58, 160, 255, 0.28);
  border-radius: 18px;
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.chroma-panel-modal .modal-header {
  border-bottom: 1px solid rgba(58, 160, 255, 0.16);
}

.chroma-panel-modal .modal-footer {
  border-top: 1px solid rgba(58, 160, 255, 0.16);
}

.chroma-panel-modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.85;
}

body.modal-open .modal-backdrop.show {
  z-index: 10055 !important;
  opacity: 0.72 !important;
}

.crown-panel-shell .account-panel-page__sidebar {
  border-color: rgba(113, 200, 255, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.crown-panel-shell .account-panel-page__content {
  overflow: visible !important;
  min-height: 400px;
}

.crown-panel-shell .account-dashboard__grid,
.crown-panel-shell .crown-panel-grid {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.crown-empty-note {
  padding: 16px;
  margin: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(113, 200, 255, 0.22);
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.84rem;
  text-align: center;
}

@media (max-width: 991px) {
  .crown-hero__inner {
    grid-template-columns: 1fr;
  }

  .crown-panel-grid {
    grid-template-columns: 1fr;
  }

  .crown-char-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
