.template .el-main {
  padding: 18px 20px 38px;
  background: #f4f6fb;
}

.legacy-home {
  display: none !important;
}

.bcy-member-home {
  --bcy-blue: #3478f6;
  --bcy-blue-soft: #eef5ff;
  --bcy-text: #17233d;
  --bcy-muted: #7c879e;
  --bcy-border: #e8ecf3;
  color: var(--bcy-text);
  font-size: 14px;
}

.bcy-member-home *,
.bcy-member-home *::before,
.bcy-member-home *::after {
  box-sizing: border-box;
}

.bcy-member-home a {
  color: inherit;
  text-decoration: none;
}

.bcy-member-home button {
  font: inherit;
}

.bcy-home-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.bcy-home-grid-top {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 1fr);
}

.bcy-home-grid-middle {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr);
}

.bcy-home-grid-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bcy-home-grid-bottom {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr);
  margin-bottom: 0;
}

.bcy-home-card {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(230, 234, 242, .92);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(31, 45, 78, .025);
  padding: 22px 24px;
}

.bcy-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 20px;
}

.bcy-card-heading > span {
  position: relative;
  padding-left: 14px;
  color: #68758f;
  font-size: 18px;
  line-height: 28px;
}

.bcy-card-heading > span::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  border-radius: 1px;
  background: var(--bcy-blue);
}

.bcy-card-heading > a {
  color: #77849c;
  font-size: 13px;
  transition: color .2s ease;
}

.bcy-card-heading > a:hover {
  color: var(--bcy-blue);
}

.bcy-account-main {
  display: flex;
  align-items: center;
  min-height: 104px;
}

.bcy-avatar {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  margin-right: 22px;
  overflow: hidden;
  border: 5px solid #e6f1ff;
  border-radius: 50%;
  background: linear-gradient(145deg, #83d3bc, #6aaeff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  font-weight: 600;
}

.bcy-account-copy {
  min-width: 0;
  flex: 1;
}

.bcy-welcome {
  margin: 0 0 10px;
  color: #8c96aa;
}

.bcy-user-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
}

.bcy-user-line strong {
  max-width: 68%;
  overflow: hidden;
  color: var(--bcy-blue);
  font-size: 22px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcy-level {
  flex: 0 0 auto;
  padding: 3px 12px;
  border: 1px solid #424b5c;
  border-radius: 14px;
  color: #424b5c;
  font-size: 12px;
}

.bcy-account-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(90px, .7fr);
  gap: 10px 18px;
  color: #929caf;
  font-size: 13px;
}

.bcy-account-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcy-account-meta b {
  color: #69758b;
  font-weight: 500;
}

.bcy-account-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--bcy-border);
  border-bottom: 1px solid var(--bcy-border);
}

.bcy-account-status a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: #60708a;
  font-size: 13px;
}

.bcy-account-status a + a {
  border-left: 1px solid var(--bcy-border);
}

.bcy-account-status i {
  color: var(--bcy-blue);
  font-size: 17px;
}

.bcy-login-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 17px;
  color: #8f99ab;
  font-size: 12px;
}

.bcy-card-label {
  margin: 0 0 12px;
  color: #818ca1;
  font-size: 13px;
}

.bcy-balance {
  margin-bottom: 24px;
  color: #ff5f66;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .2px;
}

.bcy-finance-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 31px;
}

.bcy-finance-actions button,
.bcy-finance-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--bcy-blue);
  border-radius: 3px;
  background: var(--bcy-blue);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}

.bcy-finance-actions button:hover,
.bcy-finance-actions a:hover {
  background: #2469e8;
  box-shadow: 0 6px 14px rgba(52,120,246,.18);
}

.bcy-finance-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.bcy-finance-links a {
  position: relative;
  color: #66748d;
  text-align: center;
  font-size: 13px;
}

.bcy-finance-links a + a::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -2px;
  width: 1px;
  background: var(--bcy-border);
}

.bcy-consume-totals {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  color: #8a94a7;
  font-size: 13px;
}

.bcy-consume-totals b {
  margin-left: 5px;
  color: #ff5f66;
  font-size: 20px;
  font-weight: 500;
}

.bcy-trend-chart {
  height: 178px;
  margin-top: 18px;
}

.bcy-trend-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bcy-trend-grid {
  fill: none;
  stroke: #edf1f6;
  stroke-width: 1;
}

.bcy-trend-area {
  fill: url(#bcyTrendFill);
}

.bcy-trend-line {
  fill: none;
  stroke: #44bdec;
  stroke-width: 2.5;
}

.bcy-products-card,
.bcy-todo-card {
  min-height: 330px;
}

.bcy-product-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bcy-summary-tile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #e5ebf4;
  border-radius: 3px;
  background: #f7f9fc;
  color: #64728b;
  cursor: pointer;
}

.bcy-summary-tile i {
  color: var(--bcy-blue);
  font-size: 23px;
}

.bcy-summary-tile b {
  color: var(--bcy-blue);
  font-weight: 500;
}

.bcy-product-list {
  border-top: 1px solid var(--bcy-border);
}

.bcy-product-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(140px, auto) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  background: transparent;
  color: var(--bcy-text);
  cursor: pointer;
  text-align: left;
}

.bcy-product-row:hover {
  background: #f8faff;
}

.bcy-product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--bcy-blue-soft);
  color: var(--bcy-blue);
  font-size: 19px;
}

.bcy-product-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.bcy-product-name b,
.bcy-product-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcy-product-name b {
  font-weight: 500;
}

.bcy-product-name small,
.bcy-product-expire {
  color: #909bad;
  font-size: 12px;
}

.bcy-product-expire.is-overdue {
  color: #f45b64;
}

.bcy-product-row > i {
  color: #9aa5b7;
}

.bcy-todo-list {
  display: grid;
  gap: 13px;
}

.bcy-todo-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #e9edf4;
  border-radius: 4px;
  transition: border-color .2s ease, transform .2s ease;
}

.bcy-todo-item:hover {
  border-color: #bdd2fb;
  transform: translateY(-1px);
}

.bcy-todo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
}

.bcy-todo-icon.orange { background: #fff4e8; color: #ff982e; }
.bcy-todo-icon.blue { background: #edf4ff; color: #3478f6; }
.bcy-todo-icon.cyan { background: #eafafa; color: #28b9bd; }

.bcy-todo-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.bcy-todo-item b {
  font-weight: 500;
}

.bcy-todo-item small {
  overflow: hidden;
  color: #929caf;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcy-todo-item em {
  color: var(--bcy-blue);
  font-size: 24px;
  font-style: normal;
  text-align: center;
}

.bcy-service-card,
.bcy-support-card {
  min-height: 222px;
}

.bcy-service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bcy-service-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid #edf0f5;
  border-radius: 3px;
  background: #f7f9fc;
  color: #53627c;
  text-align: center;
  transition: all .2s ease;
}

.bcy-service-links a:hover {
  border-color: #bcd1fb;
  background: var(--bcy-blue-soft);
  color: var(--bcy-blue);
}

.bcy-service-links i {
  color: var(--bcy-blue);
  font-size: 18px;
}

.bcy-support-visual {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 126px;
  padding: 12px;
  border-radius: 4px;
  background: linear-gradient(125deg, #f4f8ff, #fff);
}

.bcy-qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border: 8px solid #17233d;
  background: #fff;
  color: var(--bcy-blue);
  box-shadow: inset 0 0 0 4px #fff;
  font-size: 38px;
}

.bcy-support-visual b {
  display: block;
  margin-bottom: 9px;
  font-size: 16px;
}

.bcy-support-visual p {
  margin: 0 0 12px;
  color: #8c97aa;
  font-size: 12px;
  line-height: 1.7;
}

.bcy-support-visual a {
  color: var(--bcy-blue);
  font-size: 13px;
}

.bcy-referral-card,
.bcy-news-card {
  min-height: 214px;
}

.bcy-referral-content {
  display: grid;
  grid-template-columns: 150px 150px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.bcy-referral-content > div,
.bcy-referral-closed {
  padding: 18px;
  border: 1px solid #e9edf4;
  border-radius: 4px;
  background: #fafbfe;
}

.bcy-referral-content small {
  display: block;
  margin-bottom: 11px;
  color: #8994a7;
}

.bcy-referral-content strong {
  color: #ff6068;
  font-size: 22px;
  font-weight: 500;
}

.bcy-referral-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.bcy-referral-url small {
  grid-column: 1 / -1;
}

.bcy-referral-url span {
  overflow: hidden;
  color: #596780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcy-referral-url button,
.bcy-referral-closed button {
  border: 0;
  border-radius: 3px;
  background: var(--bcy-blue);
  color: #fff;
  cursor: pointer;
  padding: 7px 14px;
}

.bcy-referral-closed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #707d94;
  min-height: 84px;
}

.bcy-news-list {
  display: grid;
}

.bcy-news-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  background: transparent;
  color: #4c5a73;
  cursor: pointer;
  text-align: left;
}

.bcy-news-list button:hover b {
  color: var(--bcy-blue);
}

.bcy-news-list button span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.bcy-news-list b {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcy-news-list small {
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--bcy-blue-soft);
  color: var(--bcy-blue);
}

.bcy-news-list time {
  color: #a1aabb;
  font-size: 12px;
}

.bcy-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 96px;
  color: #98a2b3;
}

.bcy-empty-state i {
  font-size: 22px;
}

.bcy-empty-state button {
  margin-left: 6px;
  padding: 6px 12px;
  border: 1px solid var(--bcy-blue);
  border-radius: 3px;
  background: #fff;
  color: var(--bcy-blue);
  cursor: pointer;
}

.bcy-empty-state.compact {
  min-height: 116px;
}

@media (max-width: 1540px) {
  .bcy-home-grid-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bcy-consume-card {
    grid-column: 1 / -1;
  }

  .bcy-trend-chart {
    height: 130px;
  }

  .bcy-home-grid-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bcy-support-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .bcy-home-grid-middle,
  .bcy-home-grid-bottom {
    grid-template-columns: 1fr;
  }

  .bcy-home-grid-services {
    grid-template-columns: 1fr;
  }

  .bcy-support-card {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .template .el-main {
    padding: 12px;
  }

  .bcy-home-grid,
  .bcy-home-grid-top {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .bcy-consume-card {
    grid-column: auto;
  }

  .bcy-home-card {
    padding: 18px;
  }

  .bcy-account-main {
    align-items: flex-start;
  }

  .bcy-avatar {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    margin-right: 15px;
    font-size: 24px;
  }

  .bcy-account-meta,
  .bcy-product-summary,
  .bcy-service-links,
  .bcy-referral-content {
    grid-template-columns: 1fr;
  }

  .bcy-referral-url small {
    grid-column: auto;
  }

  .bcy-finance-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bcy-finance-links a + a::before {
    display: none;
  }

  .bcy-login-meta,
  .bcy-consume-totals {
    flex-direction: column;
  }

  .bcy-product-row {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
  }

  .bcy-product-expire {
    display: none;
  }
}

@media (max-width: 520px) {
  .bcy-finance-actions {
    grid-template-columns: 1fr;
  }

  .bcy-account-status {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bcy-account-status a + a {
    border-left: 0;
  }

  .bcy-support-visual {
    align-items: flex-start;
  }

  .bcy-qr-placeholder {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    font-size: 26px;
  }
}


