/* A Pro: утверждённый знак и компактное управление выбранной картой.
   Изолировано от лендинга, базы знаний и legacy-платёжных состояний. */
.cabinet-layout.gc2 .brand-mark,
.app-body .auth-brand-mark,
.app-body .app-logo-icon { padding: 0; background: transparent; box-shadow: none; }
.cabinet-layout.gc2 .brand-mark img,
.app-body .auth-brand-mark img,
.app-body .app-logo-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cabinet-layout.gc2 .brand-copy strong { white-space: nowrap; }
/* Одинаковый плоский знак независимо от набора продуктовых стилей страницы. */
.cabinet-layout.gc2 > .sidebar:not(.is-collapsed) .brand-row { min-height: 54px; padding: 0 8px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; }
.cabinet-layout.gc2 > .sidebar .brand-mark,
.cabinet-layout.gc2 > .mobile-header .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; padding: 0; background: #7135e8; box-shadow: none; }
.cabinet-layout.gc2 > .sidebar .brand-mark::after { content: none; }
.cabinet-layout.gc2 > .sidebar .brand-copy strong b,
.cabinet-layout.gc2 > .mobile-header .mobile-brand b { color: #7135e8; }
.cabinet-layout.gc2 > .sidebar.is-collapsed .cabinet-account { border: 0; background: transparent; box-shadow: none; }
.cabinet-layout.gc2 .card-brand-mark { display: inline-block; width: 24px; height: 24px; vertical-align: middle; margin-right: 5px; }
.cabinet-layout.gc2 .golden-card-visual__brand { display: flex; align-items: center; gap: 4px; }
.cabinet-layout.gc2 .golden-card-visual__brand img { display: block; width: 22px; height: 22px; }
.cabinet-layout.gc2 .golden-card-visual::before,
.cabinet-layout.gc2 .golden-card-visual::after { content: none; }

/* Шесть цифр остаются внутри окна входа, включая ширину 320 px. */
@media (max-width: 720px) {
  .app-body #modal-code .otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 294px; margin-inline: auto; }
  .app-body #modal-code .otp input { width: 100%; min-width: 0; padding-inline: 0; }
}

#tab-cards .cards-dashboard--workspace { gap: 20px; }
#tab-cards .cards-dashboard--workspace.cards-dashboard--empty {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
#tab-cards .cards-dashboard--empty > .cards-issue-region {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}
#tab-cards .cards-dashboard--empty .cards-issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#tab-cards .cards-workspace {
  display: block; width: 100%; max-width: none; margin: 0; padding: 24px;
  border: 1px solid #e5deed; border-radius: 24px; background: #fff; box-shadow: none;
  container-type: inline-size;
}
#tab-cards .cards-workspace__heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
#tab-cards .cards-workspace__heading h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
#tab-cards .cards-workspace button:focus-visible,
#tab-cards .cards-workspace a:focus-visible { outline: 3px solid #7135e8; outline-offset: 3px; }
#tab-cards .cards-workspace button:disabled,
#tab-cards .cards-workspace .cards-mine__actions button:disabled { background: #f0edf4; color: #766a81; border-color: #e5deed; cursor: not-allowed; opacity: 1; }
#tab-cards .cards-workspace { overflow-anchor: none; }
#tab-cards .cards-workspace .cards-mine__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 3px; margin: -3px -3px 18px;
  overflow: visible; scroll-snap-type: none;
}
#tab-cards .cards-mine__carousel { display: block; }
#tab-cards .cards-mine__arrow,
#tab-cards .cards-mine__selector { display: none; }
#tab-cards .cards-workspace .cards-mine__item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  gap: 0; align-items: start; width: 100%; max-width: none; min-width: 0; min-height: 0;
  padding: 4px; border: 1px solid #e5deed; border-radius: 18px; background: #fff;
  color: #292332; transform: none; box-shadow: none; scroll-snap-align: none;
}
#tab-cards .cards-workspace .cards-mine__item.is-active { border-color: #7135e8; background: #f4eeff; box-shadow: none; }
#tab-cards .cards-workspace .cards-mine__item:focus-visible { outline: none; border-color: #7135e8; }
#tab-cards .cards-workspace .cards-mine__item:hover { border-color: #7135e8; }
#tab-cards .cards-miniature { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1.6 / 1; color: #fff; text-align: left; }
#tab-cards .cards-miniature .golden-card-visual { display: block; width: 100%; max-width: none; height: 100%; aspect-ratio: auto; margin: 0; padding: 0; border-radius: 14px; }
#tab-cards .cards-miniature .golden-card-visual--premium {
  color: #fff;
  background: linear-gradient(135deg, #000 0%, #050505 45%, #0a0803 57%, #6b5310 72%, #d9b441 84%, #f7e9b8 92%, #c9a227 100%);
}
#tab-cards .cards-miniature .golden-card-visual--subscription {
  background: linear-gradient(140deg, #05261c 0%, #0b3d2e 43%, #12715a 74%, #34d399 100%);
}
#tab-cards .cards-miniature .golden-card-visual__brand { left: 18px; top: 17px; gap: 4px; font-size: 11px; }
#tab-cards .cards-miniature .golden-card-visual__brand img { width: 22px; height: 22px; }
#tab-cards .cards-miniature .golden-card-visual__mark { right: 18px; top: 20px; font-size: 11px; }
#tab-cards .cards-miniature .golden-card-visual__chip { display: none; }
#tab-cards .cards-miniature .golden-card-visual__number { left: 18px; bottom: 18px; font-size: 13px; letter-spacing: .04em; }
#tab-cards .cards-miniature .golden-card-visual__footer { display: none; }
#tab-cards .cards-miniature__status { position: absolute; top: 17px; right: 65px; padding: 4px 8px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.22); font-size: 11px; line-height: 1.4; }
#tab-cards .cards-miniature__balance { position: absolute; left: 18px; right: 18px; top: 65px; display: grid; gap: 5px; color: #fff; }
#tab-cards .cards-miniature__balance > span { font-size: 12px; line-height: 1.3; }
#tab-cards .cards-miniature__balance > strong { color: #fff; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
#tab-cards .cards-miniature__expiry { position: absolute; right: 18px; bottom: 18px; color: #fff; font-size: 12px; }
#tab-cards .cards-miniature.is-maintenance .golden-card-visual { filter: saturate(.45) brightness(.52); }
#tab-cards .cards-miniature.is-maintenance .cards-miniature__status,
#tab-cards .cards-miniature.is-maintenance .cards-miniature__balance,
#tab-cards .cards-miniature.is-maintenance .cards-miniature__expiry { visibility: hidden; }
#tab-cards .cards-miniature__maintenance { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; gap: 7px; padding: 20px; color: #fff; text-align: center; }
#tab-cards .cards-miniature__maintenance b { font-size: clamp(16px, 2vw, 22px); line-height: 1.15; }
#tab-cards .cards-miniature__maintenance small { color: rgba(255,255,255,.8); font-size: 12px; }
#tab-cards .cards-selector-check { position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: #7135e8; color: #fff; visibility: hidden; font-weight: 850; }
#tab-cards .is-active .cards-selector-check { visibility: visible; }
#tab-cards .cards-workspace__body { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
#tab-cards .cards-selected { min-width: 0; }
#tab-cards .cards-workspace .cards-mine__actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; background: none; }
#tab-cards .cards-workspace .cards-mine__actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 74px; margin: 0; padding: 10px 7px; border: 1px solid #e1d8ed; border-radius: 12px; background: #f7f3ff; color: #5421b9; font-size: 12px; font-weight: 750; line-height: 1.3; text-align: center; cursor: pointer; }
#tab-cards .cards-workspace .cards-mine__actions button:hover:not(:disabled) { background: #ebe0ff; }
#tab-cards .cards-workspace svg { flex: 0 0 auto; width: 19px; height: 19px; }
#tab-cards .cards-workspace .cards-mine__manage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin: 0; padding: 0; font-size: 12px; text-align: right; }
#tab-cards .cards-workspace .cards-mine__manage button { min-height: 42px; padding: 6px 0; border: 0; background: none; color: #8a3b52; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#tab-cards .cards-workspace .cards-mine__manage .cards-close-button { min-height: 44px; padding: 10px 14px; border: 1px solid #ba3b54; border-radius: 10px; background: #fff; color: #9f2942; font-weight: 650; text-decoration: none; }
#tab-cards .cards-workspace .cards-close-button:hover { background: #fff1f4; }
#tab-cards .cards-workspace .cards-activity-panel { width: 100%; min-width: 0; min-height: 0; height: auto; align-self: start; padding: 18px; margin: 0; border: 1px solid #e5deed; border-radius: 16px; background: #faf9fc; box-shadow: none; }
#tab-cards .cards-workspace .cards-activity-panel__head h2 { font-size: 20px; line-height: 1.25; margin: 4px 0 0; }
#tab-cards .cards-workspace .cards-activity-panel__head > small { padding: 6px 8px; color: #5421b9; border-radius: 8px; font-size: 11px; white-space: nowrap; }
#tab-cards .cards-workspace .cards-activity-panel__list { margin-top: 12px; }
#tab-cards .cards-workspace .cards-activity-panel__empty { min-height: 120px; gap: 8px; }
#tab-cards .cards-workspace .cards-activity-panel__empty p { max-width: 230px; margin: 0; color: #6d6177; font-size: 13px; line-height: 1.5; }
#tab-cards .cards-workspace .cards-activity-panel__all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: #5421b9; font-size: 13px; font-weight: 750; text-decoration: none; }
#tab-cards .cards-issue-region { display: block; order: 1; width: 100%; min-width: 0; }
#tab-cards .cards-issue-region .cards-issue-catalog { container-type: inline-size; }
#tab-cards .cards-issue-region .cards-issue-catalog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
#tab-cards .cards-issue-region h2 { margin: 0; font-size: 24px; line-height: 1.25; }
#tab-cards .cards-issue-limit { font-size: 13px; color: #70657b; }
#tab-cards .cards-issue-region .cards-issue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; gap: 16px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
#tab-cards .cards-issue-region .cards-issue-option { min-width: 0; width: 100%; flex: none; }
#tab-cards .cards-issue-option--premium { position: relative; }
#tab-cards .cards-issue-option--premium .cards-issue-option__surface { border: 2px solid #c99a30; box-shadow: 0 0 0 4px rgba(201,154,48,.13), 0 18px 38px rgba(88,58,10,.22); }
#tab-cards .cards-issue-option--premium .premium-card-highlights { position: absolute; z-index: 6; top: -25px; left: 50%; display: flex; align-items: center; justify-content: center; gap: 0; width: max-content; max-width: calc(100% - 16px); pointer-events: none; transform: translateX(-50%); filter: drop-shadow(0 9px 14px rgba(34,22,4,.2)); }
#tab-cards .premium-cash-pill { display: inline-flex; align-items: center; min-height: 39px; padding: 8px 23px 8px 17px; border: 2px solid #c68a13; border-radius: 999px; background: linear-gradient(135deg,#fff7d6 0%,#f7d77a 58%,#e8b943 100%); color: #422800; box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 7px 18px rgba(118,73,3,.28); font-size: 11px; font-weight: 850; line-height: 1.15; white-space: nowrap; }
#tab-cards .premium-bonus-sticker { display: inline-grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; min-width: 50px; min-height: 50px; margin-left: -12px; padding: 0; border: 3px solid #f8e7b7; border-radius: 50%; background: linear-gradient(145deg,#45dc89,#20b968); color: #07331c; box-shadow: 0 8px 20px rgba(15,112,59,.32); font-size: 13px; font-weight: 900; line-height: 1; transform: rotate(5deg); }
@container (max-width: 615px) {
  #tab-cards .cards-issue-region .cards-issue-option { align-self: start; }
  #tab-cards .cards-issue-region .cards-issue-option__surface { height: auto; }
  #tab-cards .cards-issue-region .cards-issue-option--premium { margin-top: 32px; }
}
@container (max-width: 330px) {
  #tab-cards .cards-workspace__heading { flex-direction: column; align-items: stretch; gap: 10px; }
  #tab-cards .cards-workspace__heading h2 { white-space: normal; }
  #tab-cards .cards-workspace .cards-mine__manage { justify-content: flex-start; text-align: left; }
  #tab-cards .cards-workspace .cards-mine__manage .cards-close-button { align-self: flex-start; }
}

.cabinet-layout.gc2 .cabinet-load-error {
  display: grid; justify-items: center; gap: 10px; min-height: 260px; margin: 18px 0 0; padding: 42px 24px;
  border: 1px solid #e3d8f3; border-radius: 22px; background: linear-gradient(180deg,#fff 0%,#faf7ff 100%); text-align: center;
}
.cabinet-layout.gc2 .cabinet-load-error__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eee5ff; color: #7135e8; font-size: 22px; font-weight: 850; }
.cabinet-layout.gc2 .cabinet-load-error h2 { margin: 3px 0 0; color: #292332; font-size: 21px; line-height: 1.2; }
.cabinet-layout.gc2 .cabinet-load-error p { max-width: 470px; margin: 0; color: #70657b; font-size: 14px; line-height: 1.5; text-wrap: balance; }
.cabinet-layout.gc2 .cabinet-load-error .btn { min-width: 190px; margin-top: 6px; }
#tab-cards .cards-issue-region .issue-plan-art::before {
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
}
.cabinet-layout.gc2 .issue-plan-art i img { width: 22px; height: 22px; object-fit: contain; }
.cabinet-layout.gc2 .card-flow-root .issue-plan-art i { display: flex; align-items: center; gap: 5px; }
#tab-cards .cards-issue-region .issue-plan-art i { display: flex; align-items: center; gap: 5px; position: absolute; z-index: 3; left: 25%; top: 31%; font-size: 12px; transform: rotate(-5deg); }

@media (max-width: 767px) {
  .cabinet-layout.gc2 #tab-overview .overview-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .cabinet-layout.gc2 #tab-overview .overview-product-card { min-width: 0; padding: 12px; }
  .cabinet-layout.gc2 #tab-overview .overview-product-card__top { flex-wrap: wrap; gap: 4px; }
  .cabinet-layout.gc2 #tab-overview .overview-product-card__copy b { font-size: 15px; overflow-wrap: anywhere; }
  #tab-cards .cards-workspace { padding: 16px; border-radius: 20px; }
  #tab-cards .cards-workspace__heading { align-items: center; gap: 12px; }
  #tab-cards .cards-workspace__heading h2 { font-size: clamp(22px, 6vw, 26px); white-space: nowrap; }
  #tab-cards .cards-workspace .cards-mine__manage { gap: 4px; }
  #tab-cards .cards-workspace .cards-mine__manage .cards-close-button { padding: 8px 10px; }
  #tab-cards .cards-workspace .cards-mine__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #tab-cards .cards-workspace__body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #tab-cards .cards-workspace .cards-mine__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #tab-cards .cards-workspace .cards-mine__actions button { padding: 10px 6px; font-size: 12px; }
  #tab-cards .cards-workspace .cards-activity-panel { padding: 14px; }
  #tab-cards .cards-workspace .cards-activity-panel__head h2 { font-size: 19px; }
  #tab-cards .cards-issue-region .cards-issue-grid { grid-template-columns: minmax(0, 1fr); }
  #tab-cards .cards-issue-region .cards-issue-grid { padding-top: 30px; row-gap: 16px; }
  #tab-cards .cards-issue-region .cards-issue-option--premium { margin-top: 32px; }
  #tab-cards .cards-issue-region .cards-issue-option--subscription { position: relative; transform: none; }
  #tab-cards .cards-issue-region .pay-panel--promo { margin-top: 16px; }
  #tab-cards .cards-dashboard--empty .cards-issue-grid { grid-template-columns: minmax(0, 1fr); }
  #tab-cards .cards-issue-region .cards-issue-catalog__head { align-items: flex-start; }
  #tab-cards .cards-issue-region h2 { font-size: 22px; }
  #tab-cards .premium-cash-pill { font-size: 11px; }
  #tab-cards .premium-bonus-sticker { min-width: 50px; font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 959px) {
  #tab-cards .cards-dashboard--empty .cards-issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .cabinet-layout.gc2 #tab-overview .overview-product-grid { grid-template-columns: minmax(0, 1fr); }
  #tab-cards .cards-miniature .golden-card-visual__number { font-size: 11px; letter-spacing: 0; }
}
