.dashboard-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(34, 244, 255, 0.16), transparent 32%),
    linear-gradient(rgba(34, 244, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 244, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #020813 0%, #030710 100%);
  background-size: auto, 52px 52px, 52px 52px, auto;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: 30px;
  min-height: 80px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(112, 240, 255, 0.14);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(3, 13, 25, 0.86));
  backdrop-filter: blur(18px);
}

.dashboard-brand .brand-mark {
  width: 78px;
  height: 50px;
}

.dashboard-product-nav,
.dashboard-actions,
.dashboard-tabs,
.dashboard-subnav,
.contact-icons,
.filter-section,
.payment-grid,
.pager {
  display: flex;
  align-items: center;
}

.dashboard-product-nav {
  justify-content: center;
  gap: clamp(32px, 5vw, 86px);
  font-weight: 750;
}

.dashboard-product-nav a {
  color: rgba(244, 251, 255, 0.9);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.dashboard-product-nav a:hover {
  color: var(--blue);
  text-shadow: 0 0 18px rgba(34, 244, 255, 0.45);
}

.dashboard-actions {
  justify-content: end;
  gap: 18px;
}

.console-link,
.language-chip,
.avatar-button,
.dashboard-tabs button,
.dashboard-subnav button,
.filter-section button,
.billing-side button,
.finance-head button,
.payment-grid button,
.redeem-row button,
.card-heading button,
.pager button,
.avatar-popover button {
  border: 1px solid rgba(112, 240, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.console-link,
.language-chip {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink-soft);
  border-radius: 999px;
}

.console-link.active {
  color: var(--ink);
  border-color: rgba(34, 244, 255, 0.3);
  background: rgba(34, 244, 255, 0.1);
}

.console-icon {
  margin-right: 4px;
}

.avatar-menu-wrap {
  position: relative;
}

.avatar-button,
.user-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061014;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 0 24px rgba(34, 244, 255, 0.24);
}

.avatar-button {
  width: 46px;
  height: 46px;
}

.avatar-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 70;
  display: grid;
  gap: 10px;
  width: 260px;
  padding: 16px;
  border: 1px solid rgba(112, 240, 255, 0.18);
  border-radius: 18px;
  background: rgba(2, 8, 19, 0.96);
  box-shadow: var(--shadow);
}

.avatar-popover[hidden],
.date-popover[hidden],
.modal-layer[hidden],
.toast[hidden] {
  display: none !important;
}

.avatar-popover span {
  color: var(--ink-soft);
  font-size: 13px;
}

.avatar-popover button {
  min-height: 38px;
  color: var(--ink);
  border-radius: 12px;
}

.dashboard-shell {
  width: min(1300px, calc(100% - 56px));
  margin: 0 auto;
  padding: 46px 0 90px;
}

.dashboard-tabs {
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 58px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(112, 240, 255, 0.13);
}

.dashboard-tabs button {
  min-width: 120px;
  height: 44px;
  color: var(--ink-soft);
  border-radius: 999px;
}

.dashboard-tabs button.active,
.dashboard-subnav button.active,
.filter-section button.active {
  color: #03110b;
  border-color: transparent;
  background: linear-gradient(110deg, var(--blue), var(--green));
}

.console-panel,
.finance-panel {
  display: none;
}

.console-panel.active,
.finance-panel.active {
  display: block;
}

.overview-top {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) 430px;
  gap: 22px;
  margin-bottom: 26px;
}

.my-apps-card,
.user-balance-card,
.contact-card,
.analytics-card,
.console-card,
.mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112, 240, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.025), 0 22px 70px rgba(0, 0, 0, 0.22);
}

.my-apps-card {
  min-height: 284px;
  padding: 28px;
  border-radius: 22px;
}

.my-apps-card h1,
.analytics-header h2,
.finance-head h1,
.card-heading h1,
.card-heading h2 {
  margin: 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.app-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 18px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  border: 1px solid rgba(112, 240, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(88, 255, 149, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028));
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.025);
  overflow: hidden;
  cursor: pointer;
  animation: appCardPop 520ms cubic-bezier(0.2, 1.2, 0.22, 1) both;
  animation-delay: var(--delay, 0ms);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(34, 244, 255, 0.13), transparent);
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.app-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(34, 244, 255, 0.46);
  box-shadow: 0 18px 44px rgba(34, 244, 255, 0.14), inset 0 0 32px rgba(88, 255, 149, 0.035);
}

.app-card:hover::before {
  transform: translateX(130%);
}

.app-card:active {
  transform: translateY(-2px) scale(0.985);
}

.app-card strong,
.app-card span,
.app-card em,
.app-card-index {
  position: relative;
  z-index: 1;
}

.app-card strong {
  font-size: 18px;
}

.app-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.app-card-pending em {
  color: var(--ink-faint);
}

.app-card-index {
  width: fit-content;
  color: rgba(34, 244, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(34, 244, 255, 0.32);
}

.app-card-link {
  border-color: rgba(88, 255, 149, 0.28);
}

@keyframes appCardPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-card span,
.empty-state,
.chart-empty,
.mini-card p,
.card-heading p,
.finance-head span,
.user-details span,
.billing-side span,
.console-card small {
  color: var(--ink-soft);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 184px;
  grid-column: 1 / -1;
  border: 1px dashed rgba(112, 240, 255, 0.16);
  border-radius: 18px;
}

.right-cards {
  display: grid;
  gap: 18px;
}

.user-balance-card {
  display: grid;
  gap: 18px;
  min-height: 190px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 244, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024));
}

.user-info-card,
.balance-card,
.finance-head,
.card-heading.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border: 0;
}

.user-details {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-right: auto;
}

.user-details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge {
  width: fit-content;
  padding: 5px 9px;
  color: #03110b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--blue), var(--green));
}

.balance-card {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(112, 240, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.balance-card div {
  display: grid;
  gap: 8px;
}

.balance-card strong,
.mini-card strong {
  color: var(--blue);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
}

.balance-card button,
.finance-head button,
.redeem-row button,
.card-heading button {
  min-height: 40px;
  padding: 0 18px;
  color: #03110b;
  font-weight: 900;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--blue), var(--green));
}

.contact-card {
  min-height: 118px;
  padding: 22px;
  border-radius: 22px;
}

.contact-card h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.contact-icons {
  gap: 22px;
  align-items: center;
}

.contact-icons button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 180ms ease, filter 180ms ease;
}

.contact-icons.compact button {
  width: 50px;
  height: 50px;
}

.contact-icons button:hover {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(34, 244, 255, 0.28));
}

.contact-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.analytics-card {
  padding: 26px;
  border-radius: 22px;
}

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-section {
  gap: 10px;
  flex-wrap: wrap;
}

.filter-section button,
.dashboard-subnav button,
.pager button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--ink-soft);
  border-radius: 999px;
}

.custom-date-wrapper {
  position: relative;
}

.date-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  display: grid;
  gap: 10px;
  width: 250px;
  padding: 14px;
  border: 1px solid rgba(112, 240, 255, 0.16);
  border-radius: 16px;
  background: rgba(2, 8, 19, 0.98);
  box-shadow: var(--shadow-card);
}

.date-popover label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.date-popover input,
.redeem-row input,
.filter-grid input,
.filter-grid select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(112, 240, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
}

.chart-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 340px;
  border: 1px solid rgba(112, 240, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(rgba(34, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 244, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 56px, 92px 100%;
}

.chart-y-axis {
  display: grid;
  padding: 18px 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.chart-stage {
  position: relative;
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 32px 34px;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.chart-bar {
  flex: 1;
  min-width: 16px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--green));
  box-shadow: 0 0 18px rgba(34, 244, 255, 0.2);
}

.dashboard-subnav {
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(112, 240, 255, 0.13);
}

.finance-head {
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(112, 240, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(34, 244, 255, 0.1), rgba(88, 255, 149, 0.06));
}

.finance-head p {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.billing-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
}

.billing-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.mini-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
}

.console-card {
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.card-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

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

.package-card {
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(112, 240, 255, 0.14);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.empty-line {
  display: grid;
  place-items: center;
  min-height: 96px;
  grid-column: 1 / -1;
  color: var(--ink-faint);
}

.payment-grid {
  gap: 12px;
  flex-wrap: wrap;
}

.payment-grid button {
  min-height: 44px;
  padding: 0 20px;
  color: var(--ink);
  border-radius: 14px;
}

.payment-grid button.active {
  color: #03110b;
  border-color: transparent;
  background: linear-gradient(110deg, var(--blue), var(--green));
}

.redeem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 136px repeat(3, minmax(118px, 0.7fr)) 94px;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-grid.llm-filter {
  grid-template-columns: minmax(0, 1fr) 136px 94px;
}

.filter-grid button[data-filter-date],
.filter-grid button[data-run-filter] {
  min-height: 42px;
  color: var(--ink);
  border: 1px solid rgba(112, 240, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.filter-grid button[data-run-filter] {
  color: #03110b;
  font-weight: 900;
  border: 0;
  background: linear-gradient(110deg, var(--blue), var(--green));
}

.console-table-wrap {
  overflow-x: auto;
}

.console-table-wrap table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--ink-soft);
  font-size: 13px;
}

.console-table-wrap th,
.console-table-wrap td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(112, 240, 255, 0.1);
  text-align: left;
}

.console-table-wrap th {
  color: var(--ink);
  font-weight: 850;
}

.pager {
  justify-content: end;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink-soft);
}

.pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(112, 240, 255, 0.2);
  border-radius: 24px;
  background: rgba(2, 8, 19, 0.98);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  border: 1px solid rgba(112, 240, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.modal-card h2 {
  margin: 0 0 16px;
}

.modal-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.modal-card img.qr {
  display: block;
  width: min(260px, 100%);
  margin: 18px auto 0;
  border-radius: 18px;
  background: #fff;
}

.modal-email-link {
  display: inline-flex;
  max-width: 100%;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  word-break: break-all;
  border: 1px solid rgba(34, 244, 255, 0.22);
  border-radius: 999px;
  background: rgba(34, 244, 255, 0.08);
}

.notification-form {
  display: grid;
  gap: 12px;
}

.notification-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
}

.notification-form input,
.notification-form select {
  min-height: 42px;
  color: var(--ink);
  border: 1px solid rgba(112, 240, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0 12px;
}

.notification-form button {
  min-height: 42px;
  color: #03110b;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(110deg, var(--blue), var(--green));
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid rgba(112, 240, 255, 0.22);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(2, 8, 19, 0.96);
  box-shadow: var(--shadow-card);
}

@media (max-width: 1080px) {
  .dashboard-header {
    grid-template-columns: 1fr;
    padding-block: 16px;
  }

  .dashboard-product-nav,
  .dashboard-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .overview-top,
  .billing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    width: min(100% - 28px, 1300px);
    padding-top: 28px;
  }

  .apps-grid,
  .package-grid,
  .filter-grid,
  .filter-grid.llm-filter {
    grid-template-columns: 1fr;
  }

  .analytics-header,
  .finance-head,
  .card-heading.row,
  .balance-card {
    align-items: start;
    flex-direction: column;
  }

  .redeem-row {
    grid-template-columns: 1fr;
  }
}
