﻿.lemon-center-page.el-main {
  padding: 0.24rem !important;
  background:
    radial-gradient(circle at top right, rgba(219, 154, 62, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f2ea 0%, #f2f5fb 42%, #eef2f8 100%);
}

.lemon-center-page {
  color: #1f2937;
}

.lemon-center-page * {
  box-sizing: border-box;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0.24rem;
  padding: 0.2rem 0.22rem;
  background:
    linear-gradient(135deg, rgba(12, 33, 72, 0.98) 0%, rgba(22, 74, 165, 0.96) 58%, rgba(18, 151, 144, 0.9) 100%);
  color: #fff;
  box-shadow: 0 0.18rem 0.48rem rgba(15, 35, 79, 0.18);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-panel::before {
  width: 2.6rem;
  height: 2.6rem;
  top: -1rem;
  right: -0.72rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel::after {
  width: 1.7rem;
  height: 1.7rem;
  left: 42%;
  bottom: -0.82rem;
  background: rgba(255, 200, 112, 0.16);
}

.hero-panel__content,
.hero-meta,
.hero-stats,
.dashboard-grid {
  position: relative;
  z-index: 1;
}

.hero-panel__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.7rem;
  gap: 0.18rem;
  align-items: stretch;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 0.14rem;
}

.hero-avatar {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 0.22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.28rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.hero-copy h1 {
  margin: 0.01rem 0 0.08rem;
  font-size: 0.28rem;
  line-height: 1.2;
}

.hero-eyebrow {
  font-size: 0.13rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.hero-note {
  margin: 0;
  max-width: 5.6rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.13rem;
  line-height: 1.55;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.06rem;
  margin-bottom: 0.08rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.03rem 0.09rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.12rem;
}

.hero-tag--level {
  background: rgba(255, 195, 90, 0.18);
  color: #ffe09c;
}

.hero-tag--success {
  background: rgba(80, 205, 137, 0.18);
  color: #c8f6d8;
}

.hero-wallet {
  display: grid;
  gap: 0.1rem;
}

.wallet-card {
  padding: 0.16rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 1.14rem;
}

.wallet-card--light {
  background: rgba(255, 255, 255, 0.1);
}

.wallet-label {
  font-size: 0.13rem;
  color: rgba(255, 255, 255, 0.74);
}

.wallet-value {
  margin-top: 0.06rem;
  font-size: 0.28rem;
  font-weight: 700;
  line-height: 1.15;
}

.wallet-sub {
  margin-top: 0.06rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.13rem;
  line-height: 1.6;
}

.wallet-actions {
  margin-top: 0.12rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  align-items: center;
}

.wallet-actions .el-button {
  border-radius: 999px;
}

.wallet-actions--text {
  justify-content: flex-start;
}

.wallet-trend {
  font-size: 0.13rem;
  font-weight: 600;
}

.wallet-trend.up {
  color: #a8efc2;
}

.wallet-trend.down {
  color: #ffd3c5;
}

.hero-meta {
  margin-top: 0.14rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem;
}

.hero-meta__item {
  padding: 0.12rem 0.14rem;
  border-radius: 0.16rem;
  background: rgba(255, 255, 255, 0.1);
}

.hero-meta__item span {
  display: block;
  margin-bottom: 0.06rem;
  font-size: 0.12rem;
  color: rgba(255, 255, 255, 0.66);
}

.hero-meta__item strong {
  display: block;
  font-size: 0.14rem;
  line-height: 1.35;
  word-break: break-all;
}

.hero-stats {
  margin-top: 0.14rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem;
}

.hero-stat {
  padding: 0.14rem;
  border-radius: 0.18rem;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.hero-stat:hover {
  transform: translateY(-0.02rem);
  background: rgba(255, 255, 255, 0.16);
}

.hero-stat span,
.hero-stat em {
  display: block;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.13rem;
}

.hero-stat strong {
  display: block;
  margin: 0.06rem 0 0.03rem;
  font-size: 0.26rem;
  line-height: 1.1;
}

.hero-stat em {
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
  font-size: 0.12rem;
}

.dashboard-grid {
  margin-top: 0.24rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.6rem;
  gap: 0.24rem;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 0.24rem;
  align-content: start;
}

.dashboard-panel {
  border-radius: 0.24rem;
  padding: 0.24rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(223, 228, 237, 0.72);
  box-shadow: 0 0.12rem 0.34rem rgba(31, 41, 55, 0.05);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.18rem;
  margin-bottom: 0.18rem;
}

.panel-head h3 {
  margin: 0;
  font-size: 0.22rem;
  color: #12213c;
}

.panel-head p {
  margin: 0.06rem 0 0;
  color: #667085;
  font-size: 0.13rem;
  line-height: 1.6;
}

.panel-head > a {
  flex-shrink: 0;
  color: #1d4ed8;
  font-size: 0.13rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  padding: 0.16rem;
  border-radius: 0.2rem;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.96) 0%, rgba(243, 247, 255, 0.96) 100%);
  border: 1px solid rgba(232, 221, 203, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-0.02rem);
  box-shadow: 0 0.12rem 0.28rem rgba(27, 48, 86, 0.08);
}

.action-icon {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 0.16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #102447 0%, #2057d4 100%);
  color: #fff;
  font-size: 0.16rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.action-copy h4 {
  margin: 0;
  font-size: 0.16rem;
  color: #12213c;
}

.action-copy p {
  margin: 0.06rem 0 0;
  font-size: 0.13rem;
  color: #667085;
  line-height: 1.55;
}

.cert-grid {
  margin-top: 0.18rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
}

.cert-card {
  padding: 0.16rem;
  border-radius: 0.18rem;
  background: #f8fafc;
  border: 1px solid #e5edf6;
}

.cert-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.12rem;
}

.cert-card__top span {
  font-weight: 600;
  color: #12213c;
}

.cert-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.28rem;
  padding: 0 0.1rem;
  border-radius: 999px;
  font-size: 0.12rem;
  font-weight: 600;
}

.cert-status.success {
  background: rgba(80, 205, 137, 0.16);
  color: #1f8f56;
}

.cert-status.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b86a08;
}

.cert-status.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #d73535;
}

.cert-status.default {
  background: #eef2f7;
  color: #667085;
}

.cert-card p {
  margin: 0.1rem 0 0.12rem;
  color: #667085;
  font-size: 0.13rem;
  line-height: 1.6;
}

.cert-card a,
.table-link {
  color: #1d4ed8;
}

.product-table .el-table__header-wrapper th {
  background: #f8fafc;
  color: #475467;
}

.product-table .el-table td,
.product-table .el-table th.is-leaf {
  border-bottom: 1px solid #eef2f7;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.7rem;
  height: 0.28rem;
  padding: 0 0.1rem;
  border-radius: 999px;
  background: #edf2f7;
  color: #475467;
  font-size: 0.12rem;
}

.status-chip.is-active {
  background: rgba(80, 205, 137, 0.14);
  color: #1f8f56;
}

.status-chip.is-pending {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-chip.is-unpaid {
  background: rgba(245, 158, 11, 0.16);
  color: #c96c08;
}

.status-chip.is-suspended,
.status-chip.is-deleted {
  background: rgba(107, 114, 128, 0.12);
  color: #667085;
}

.status-chip.is-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #d73535;
}

.due-soon {
  color: #d73535;
  font-weight: 600;
}

.activity-list,
.ticket-list,
.news-list {
  display: grid;
  gap: 0.12rem;
}

.activity-item,
.ticket-item,
.news-item {
  display: flex;
  gap: 0.12rem;
  padding: 0.15rem 0.16rem;
  border-radius: 0.18rem;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.activity-item {
  align-items: flex-start;
}

.activity-marker {
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 50%;
  margin-top: 0.06rem;
  background: linear-gradient(135deg, #d18b2b 0%, #f5bd66 100%);
  flex-shrink: 0;
}

.activity-copy h4,
.ticket-item h4,
.news-item__copy h4 {
  margin: 0;
  font-size: 0.15rem;
  color: #12213c;
  line-height: 1.5;
}

.activity-copy p,
.ticket-item p,
.news-item__copy p {
  margin: 0.06rem 0 0;
  color: #667085;
  font-size: 0.12rem;
  line-height: 1.6;
}

.ticket-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.1rem;
  margin-bottom: 0.14rem;
}

.ticket-stat {
  padding: 0.12rem;
  border-radius: 0.18rem;
  background:
    linear-gradient(135deg, rgba(16, 36, 71, 0.06) 0%, rgba(29, 78, 216, 0.06) 100%);
}

.ticket-stat span {
  display: block;
  font-size: 0.12rem;
  color: #667085;
}

.ticket-stat strong {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.24rem;
  color: #102447;
}

.ticket-item {
  cursor: pointer;
  flex-direction: column;
}

.ticket-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.12rem;
}

.ticket-item__code {
  color: #102447;
  font-weight: 600;
  font-size: 0.13rem;
}

.ticket-item__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.28rem;
  padding: 0 0.1rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.12rem;
}

.news-item {
  align-items: center;
  cursor: pointer;
}

.news-item__date {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, #f4b861 0%, #d28a21 100%);
  color: #fff;
  font-size: 0.18rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-item__copy {
  min-width: 0;
}

.referral-card,
.wx-card,
.empty-block {
  border-radius: 0.18rem;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  padding: 0.18rem;
}

.referral-copy span,
.referral-metrics span {
  display: block;
  color: #667085;
  font-size: 0.12rem;
}

.referral-copy strong,
.referral-metrics strong {
  display: block;
  margin-top: 0.06rem;
  color: #102447;
  font-size: 0.18rem;
  line-height: 1.45;
  word-break: break-all;
}

.referral-metrics {
  margin-top: 0.14rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem;
}

.referral-actions {
  margin-top: 0.16rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
}

.wx-card__state {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  color: #475467;
  font-size: 0.13rem;
  line-height: 1.6;
}

.wx-dot {
  width: 0.1rem;
  height: 0.1rem;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.wx-dot.active {
  background: #1f8f56;
}

.wx-card__actions {
  margin-top: 0.14rem;
}

.wx-qrcode {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  margin: 0.16rem auto 0;
  border-radius: 0.18rem;
  object-fit: cover;
  background: #fff;
  padding: 0.08rem;
}

.empty-block {
  text-align: center;
}

.empty-block h4 {
  margin: 0;
  font-size: 0.18rem;
  color: #12213c;
}

.empty-block p {
  margin: 0.08rem 0 0;
  color: #667085;
  font-size: 0.13rem;
  line-height: 1.65;
}

.empty-block .el-button {
  margin-top: 0.16rem;
}

.empty-block--small {
  padding: 0.16rem;
}

.lemon-recharge-dialog .el-dialog__body {
  padding-top: 0.12rem;
}

.recharge-box p {
  margin: 0 0 0.16rem;
  color: #667085;
  font-size: 0.14rem;
  line-height: 1.7;
}

.recharge-input {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.12rem 0.14rem;
  border-radius: 0.18rem;
  background: #f8fafc;
  border: 1px solid #e5edf6;
}

.recharge-input > span {
  color: #102447;
  font-size: 0.2rem;
  font-weight: 700;
}

.recharge-foot {
  margin-top: 0.18rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.1rem;
}

@media screen and (max-width: 1500px) {
  .hero-panel__content {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1180px) {
  .hero-meta,
  .hero-stats,
  .ticket-stat-grid,
  .dashboard-side,
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 920px) {
  .action-grid,
  .referral-metrics {
    grid-template-columns: 1fr;
  }

  .hero-profile {
    align-items: flex-start;
  }
}

/* light-blue refresh */
.lemon-center-page.el-main {
  padding: 0.14rem 0.24rem 0.24rem !important;
  line-height: normal !important;
  text-align: left !important;
  background:
    radial-gradient(circle at top right, rgba(125, 191, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #f5fbff 0%, #eef7ff 44%, #e8f3ff 100%);
}

.hero-panel {
  background: linear-gradient(135deg, #5aa6ff 0%, #7ec9ff 55%, #8fdcf4 100%);
  box-shadow: 0 0.16rem 0.42rem rgba(84, 151, 229, 0.22);
}

.hero-panel::before {
  background: rgba(255, 255, 255, 0.18);
}

.hero-panel::after {
  background: rgba(214, 237, 255, 0.38);
}

.hero-tag,
.wallet-card,
.wallet-card--light,
.hero-meta__item,
.hero-stat {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-tag--level,
.hero-tag--success {
  color: #f5fbff;
}

.hero-tag--level {
  background: rgba(255, 255, 255, 0.22);
}

.hero-tag--success {
  background: rgba(38, 140, 216, 0.2);
}

.hero-eyebrow,
.hero-note,
.wallet-label,
.wallet-sub,
.hero-meta__item span,
.hero-stat span,
.hero-stat em {
  color: rgba(255, 255, 255, 0.84);
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.26);
}

.dashboard-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(198, 225, 249, 0.88);
  box-shadow: 0 0.12rem 0.34rem rgba(67, 119, 181, 0.08);
}

.panel-head > a,
.cert-card a,
.table-link {
  color: #3b82f6;
}

.action-card {
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.98) 0%, rgba(234, 245, 255, 0.98) 100%);
  border: 1px solid rgba(188, 220, 247, 0.88);
}

.action-card:hover {
  box-shadow: 0 0.12rem 0.28rem rgba(89, 153, 214, 0.14);
}

.action-icon,
.news-item__date,
.activity-marker {
  background: linear-gradient(135deg, #69b4ff 0%, #92d7ff 100%);
}

.cert-card,
.activity-item,
.ticket-item,
.news-item,
.referral-card,
.wx-card,
.empty-block,
.recharge-input {
  background: #f7fbff;
  border-color: #d9ebfb;
}

.ticket-stat {
  background: linear-gradient(135deg, rgba(92, 156, 231, 0.08) 0%, rgba(139, 210, 246, 0.14) 100%);
}

.wx-dot.active {
  background: #4da6ff;
}

.lemon-center-page .el-button--primary {
  background: linear-gradient(135deg, #55a2ff 0%, #78caff 100%);
  border-color: #55a2ff;
}

.lemon-center-page .el-button--primary:hover,
.lemon-center-page .el-button--primary:focus {
  background: linear-gradient(135deg, #4998f8 0%, #6ec3fb 100%);
  border-color: #4998f8;
}

.lemon-center-page .el-button.is-plain {
  color: #4a8fe8;
  border-color: rgba(104, 166, 230, 0.36);
  background: #f7fbff;
}
.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
}

.product-preview-card {
  padding: 0.18rem;
  border-radius: 0.18rem;
  background: #f7fbff;
  border: 1px solid #d9ebfb;
  display: grid;
  gap: 0.1rem;
}

.product-preview-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.16rem;
}

.product-preview-row span {
  flex-shrink: 0;
  color: #667085;
  font-size: 0.13rem;
  line-height: 1.6;
}

.product-preview-row strong,
.product-preview-row a {
  flex: 1;
  text-align: right;
  color: #12213c;
  font-size: 0.13rem;
  line-height: 1.6;
  word-break: break-all;
}

.product-preview-row--status b {
  flex-shrink: 0;
}
/* clickable product cards */
.product-preview-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-preview-card:hover {
  transform: translateY(-0.02rem);
  border-color: #b8dfff;
  box-shadow: 0 0.12rem 0.28rem rgba(89, 153, 214, 0.14);
}

.product-preview-row--primary strong {
  font-weight: 700;
}


/* tighten top spacing under fixed header */
.template .el-main.home-main.lemon-center-page {
  padding-top: 40px !important;
  margin-top: 0 !important;
}

.template .el-main.home-main.lemon-center-page > :first-child {
  margin-top: 0 !important;
}
