.desteny-dashboard-page {
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.desteny-dash-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(14px);
}

.desteny-dash-topbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desteny-dash-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  flex-shrink: 0;
}

.desteny-dash-top-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .desteny-dash-top-links {
    display: flex;
  }
}

.desteny-dash-top-links a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.desteny-dash-top-links a:hover {
  color: hsl(var(--foreground));
}

.desteny-dash-top-spacer {
  flex: 1;
}

.desteny-dash-lang {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  padding: 0.35rem 0.5rem;
}

.desteny-dash-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 12rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 0.25rem 0.85rem 0.25rem 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.desteny-dash-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9999px;
  background: hsl(265 89% 66% / 0.25);
  color: hsl(265 89% 76%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.desteny-dash-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desteny-dashboard-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

.desteny-dashboard-title {
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

.desteny-dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.desteny-dash-tab {
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-radius: 9999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.desteny-dash-tab[aria-selected="true"] {
  color: hsl(var(--foreground));
  border-color: hsl(265 89% 66% / 0.55);
  box-shadow: 0 0 20px hsl(265 89% 66% / 0.18);
  background: hsl(265 89% 66% / 0.06);
}

.desteny-dash-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
}

.desteny-dash-subnav.hidden {
  display: none !important;
}

.desteny-dash-sub-link {
  background: none;
  border: none;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  position: relative;
}

.desteny-dash-sub-link[aria-current="page"] {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.desteny-dash-sub-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.7rem;
  height: 2px;
  background: hsl(var(--foreground));
}

.desteny-dash-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 1.35rem;
  align-items: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.desteny-dash-status-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.desteny-dash-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.desteny-dash-dot--warn { background: #eab308; }
.desteny-dash-dot--ok { background: #22c55e; }

.desteny-status-pill {
  border-radius: 9999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}

.desteny-status-pill--updating {
  color: #eab308;
  border-color: #eab30888;
}

.desteny-status-pill--online {
  color: #22c55e;
  border-color: #22c55e88;
}

.desteny-dash-panel[hidden] {
  display: none !important;
}

.desteny-dash-panel {
  margin-top: 1.75rem;
}

.desteny-dash-section-head {
  margin-bottom: 1.25rem;
}

.desteny-dash-section-head h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.desteny-dash-section-head p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.desteny-dash-welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.65);
  padding: 1.25rem 1.35rem;
}

.desteny-dash-welcome-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.65rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.desteny-dash-welcome h4 {
  font-size: 1.35rem;
  font-weight: 700;
}

.desteny-dash-welcome .dash-highlight {
  color: hsl(265 89% 66%);
}

.desteny-dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .desteny-dash-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.desteny-dash-stat {
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.55);
  padding: 0.85rem 1rem;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.desteny-dash-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.desteny-dash-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

.desteny-dash-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.desteny-dash-stat-icon {
  opacity: 0.85;
  color: hsl(265 89% 66%);
}

.desteny-dash-license-empty {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(265 89% 66% / 0.25);
  background: linear-gradient(180deg, hsl(265 89% 66% / 0.12), hsl(265 89% 66% / 0.04));
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.desteny-dash-license-empty h4 {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.desteny-dash-license-empty p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.desteny-dash-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.55);
  padding: 1.25rem;
  margin-top: 1rem;
}

.desteny-dash-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 0 0.85rem;
  text-align: center;
}

.desteny-dash-card-head--row {
  justify-content: space-between;
  text-align: left;
}

.desteny-dash-card-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.desteny-dash-card-kicker--left {
  justify-content: flex-start;
}

.desteny-dash-announce {
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.45);
  padding: 1.1rem 1.15rem;
  margin-top: 0.75rem;
}

.desteny-dash-announce h4 {
  font-weight: 700;
  font-size: 0.95rem;
}

.desteny-dash-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  padding: 0.1rem 0.55rem;
  font-size: 0.7rem;
  margin-left: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.desteny-dash-media-hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.45);
}

.desteny-dash-media-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: hsl(265 89% 66% / 0.15);
  border: 1px solid hsl(265 89% 66% / 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(265 89% 70%);
  box-shadow: 0 0 30px hsl(265 89% 66% / 0.15);
}

.desteny-dash-media-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .desteny-dash-media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.desteny-dash-media-grid article {
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--border));
  padding: 1rem;
  background: hsl(var(--background) / 0.35);
}

.desteny-dash-media-grid h5 {
  font-weight: 700;
  font-size: 0.9rem;
}

.desteny-dash-discord-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid hsl(265 89% 66% / 0.35);
  background: linear-gradient(90deg, hsl(265 89% 66% / 0.22), hsl(265 89% 66% / 0.08));
}

.desteny-dash-steps {
  margin-top: 1rem;
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--border));
  padding: 1rem 1.15rem;
  background: hsl(var(--card) / 0.4);
}

.desteny-dash-steps ol {
  margin-top: 0.75rem;
  padding-left: 1.15rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.desteny-dash-field {
  margin-top: 0.85rem;
}

.desteny-dash-field label {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desteny-dash-field input {
  width: 100%;
  border-radius: 0.55rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
}

.desteny-dash-profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.desteny-dash-profile-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.85rem;
  background: hsl(265 89% 66% / 0.2);
  color: hsl(265 89% 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
}

.desteny-dash-faq-item {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.45);
  margin-top: 0.55rem;
  overflow: hidden;
}

.desteny-dash-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.desteny-dash-faq-panel {
  padding: 0 1rem 1rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.desteny-dash-faq-panel[hidden] {
  display: none !important;
}

.desteny-dash-support-banner {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid hsl(265 89% 66% / 0.35);
  background: hsl(265 89% 66% / 0.12);
}

.desteny-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.55rem;
  background: hsl(265 89% 66%);
  color: hsl(var(--primary-foreground));
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.desteny-btn-primary:hover {
  filter: brightness(1.05);
}

.desteny-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.desteny-dash-msg {
  font-size: 0.8125rem;
  margin-top: 0.65rem;
  color: hsl(var(--muted-foreground));
}

.desteny-dash-msg.is-error {
  color: #f87171;
}

.desteny-dash-msg.hidden {
  display: none !important;
}

.desteny-dash-locked {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.45);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.desteny-dash-locked-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.desteny-dash-locked h4 {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.desteny-dash-redeem-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0.65rem 0.85rem;
}

.desteny-dash-redeem-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

.desteny-dash-redeem-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  outline: none;
}

.desteny-dash-redeem-btn {
  width: 100%;
  margin-top: 0.85rem;
}

.desteny-dash-sub-box {
  border-radius: 1rem;
  border: 1px solid hsl(265 89% 66% / 0.3);
  background: hsl(265 89% 66% / 0.06);
  padding: 1.35rem 1.25rem;
}

.desteny-dash-sub-box.hidden,
.desteny-dash-locked.hidden,
#dash-downloads-unlocked.hidden {
  display: none !important;
}

.desteny-dash-plan-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .desteny-dash-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.desteny-dash-plan-card {
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.55);
  padding: 1rem;
  position: relative;
}

.desteny-dash-plan-card.is-featured {
  border-color: hsl(265 89% 66% / 0.45);
}

.desteny-dash-plan-badge {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: hsl(265 89% 66%);
  color: hsl(var(--primary-foreground));
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.desteny-dash-plan-card h4 {
  font-weight: 700;
}

.desteny-dash-plan-card .price {
  margin-top: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.desteny-dash-plan-card .period {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}

.desteny-dash-hwid-table {
  display: grid;
  gap: 0.65rem;
}

.desteny-dash-hwid-table div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.desteny-dash-hwid-table dt {
  color: hsl(var(--muted-foreground));
}

.desteny-dash-changelog-card {
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.45);
  padding: 1.15rem;
  margin-top: 0.75rem;
}

.desteny-dash-changelog-card ul {
  margin-top: 0.65rem;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.desteny-dash-changelog-meta {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-family: ui-monospace, monospace;
}
