/* Extracted from account/index.html block 1. */
/* ===== Page-specific styles ===== */
    .account-page {
      padding-top: 100px;
      min-height: 100vh;
    }

    .account-container {
      max-width: 960px;
      margin: 0 auto;
      padding: clamp(32px, 5vw, 60px) clamp(16px, 3vw, 32px) 80px;
    }

    .account-title {
      font-family: 'Onest', sans-serif;
      font-size: clamp(26px, 3.2vw, 32px);
      font-weight: 700;
      color: #1A1A1A;
      margin: 0 0 32px;
    }

    /* Cards grid — stable layout, no drift */
    .account-grid {
      display: grid;
      gap: 20px;
      grid-template-columns: 1fr;
      grid-template-areas:
        "profile"
        "tracks"
        "subscription"
        "danger"
        "logout";
    }
    .account-card[data-area="profile"] { grid-area: profile; }
    .account-card[data-area="tracks"] { grid-area: tracks; }
    .account-card[data-area="subscription"] { grid-area: subscription; }
    .account-card[data-area="danger"] { grid-area: danger; }
    .account-logout { grid-area: logout; }

    @media (min-width: 900px) {
      .account-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
          "profile tracks"
          "subscription subscription"
          "danger danger"
          "logout logout";
      }
    }

    /* User info card */
    .account-card {
      background: #fff;
      border: 2px solid #E8E6E1;
      border-radius: 20px;
      padding: 28px;
      margin-bottom: 0;
    }
    .account-card__header {
      font-family: 'Onest', sans-serif;
      font-size: 18px;
      font-weight: 600;
      color: #1A1A1A;
      margin-bottom: 20px;
    }

    /* User profile */
    .account-user {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .account-user__avatar {
      width: 56px;
      height: 56px;
      background: #7C3AED;
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      font-weight: 600;
      flex-shrink: 0;
    }
    .account-user__info {
      flex: 1;
      min-width: 0;
    }
    .account-user__name {
      font-size: 17px;
      font-weight: 600;
      color: #1A1A1A;
      margin-bottom: 2px;
    }
    .account-user__email {
      font-size: 14px;
      color: #71717A;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* Info rows */
    .account-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 0;
    }
    .account-row + .account-row {
      border-top: 1px solid #E8E6E1;
    }
    .account-row__label {
      font-size: 15px;
      color: #71717A;
    }
    .account-row__value {
      font-size: 15px;
      font-weight: 600;
      color: #1A1A1A;
      text-align: right;
    }
    .account-row__value--accent {
      color: #7C3AED;
    }
    .account-row__value--muted {
      color: #71717A;
      font-weight: 400;
    }

    /* Status badges */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
    }
    .status-badge--active {
      background: rgba(34, 197, 94, 0.1);
      color: #16A34A;
    }
    .status-badge--canceled {
      background: rgba(239, 68, 68, 0.1);
      color: #EF4444;
    }
    .status-badge--none {
      background: #F3F2EE;
      color: #71717A;
    }
    .status-badge__dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
    }

    /* Buttons */
    .account-actions {
      display: flex;
      gap: 12px;
      margin-top: 24px;
      flex-wrap: wrap;
    }
    .account-btn {
      padding: 12px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: background 0.2s, opacity 0.2s, transform 0.15s;
      font-family: 'Golos Text', sans-serif;
    }
    .account-btn:active {
      transform: scale(0.98);
    }
    .account-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }
    .account-btn--danger {
      background: rgba(239, 68, 68, 0.1);
      color: #EF4444;
    }
    .account-btn--danger:hover:not(:disabled) {
      background: rgba(239, 68, 68, 0.15);
    }
    .account-btn--secondary {
      background: #F3F2EE;
      color: #1A1A1A;
    }
    .account-btn--secondary:hover:not(:disabled) {
      background: #E8E6E1;
    }
    .account-btn--primary {
      background: #7C3AED;
      color: #fff;
      box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
    }
    .account-btn--primary:hover:not(:disabled) {
      background: #6D28D9;
    }
    .account-btn--success {
      background: rgba(34, 197, 94, 0.1);
      color: #16A34A;
    }
    .account-btn--success:hover:not(:disabled) {
      background: rgba(34, 197, 94, 0.15);
    }

    /* No subscription CTA */
    .account-nosub {
      text-align: center;
      padding: 24px 0;
    }
    .account-nosub__text {
      font-size: 15px;
      color: #71717A;
      margin-bottom: 20px;
    }
    .account-nosub__link {
      display: inline-flex;
      padding: 14px 28px;
      background: #7C3AED;
      color: #fff;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
      transition: background 0.2s;
    }
    .account-nosub__link:hover {
      background: #6D28D9;
    }

    /* Loading */
    .account-loading {
      text-align: center;
      padding: 60px 0;
    }
    .account-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid #E8E6E1;
      border-top-color: #7C3AED;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto 16px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .account-loading__text {
      font-size: 15px;
      color: #71717A;
    }

    /* Error */
    .account-error {
      background: rgba(239, 68, 68, 0.06);
      border: 1px solid rgba(239, 68, 68, 0.15);
      border-radius: 12px;
      padding: 16px 20px;
      font-size: 14px;
      color: #EF4444;
      margin-bottom: 20px;
    }

    /* Toast notification */
    .account-toast {
      position: fixed;
      bottom: 32px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: #1A1A1A;
      color: #fff;
      padding: 14px 24px;
      border-radius: 14px;
      font-size: 14px;
      font-weight: 500;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      transition: transform 0.3s;
      z-index: 200;
    }
    .account-toast--visible {
      transform: translateX(-50%) translateY(0);
    }

    /* Logout */
    .account-logout {
      margin-top: 20px;
      text-align: center;
    }
    .account-logout__btn {
      background: none;
      border: none;
      font-size: 14px;
      color: #71717A;
      cursor: pointer;
      font-family: 'Golos Text', sans-serif;
      padding: 8px 16px;
      transition: color 0.2s;
    }
    .account-logout__btn:hover {
      color: #EF4444;
    }

    /* Sticky header overrides */
    .sticky-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(250, 250, 248, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid #E8E6E1;
    }
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 120px;
      height: 64px;
      display: flex;
      align-items: center;
      gap: 32px;
    }
    .header-logo {
      font-family: 'Onest', sans-serif;
      font-size: 22px;
      font-weight: 700;
      color: #1A1A1A;
      text-decoration: none;
      flex-shrink: 0;
    }
    .header-nav {
      display: flex;
      align-items: center;
      gap: 24px;
      flex: 1;
    }
    .header-nav__link {
      font-size: 15px;
      font-weight: 500;
      color: #71717A;
      text-decoration: none;
      transition: color 0.2s;
    }
    .header-nav__link:hover,
    .header-nav__link--active {
      color: #1A1A1A;
    }
    .header-auth {
      flex-shrink: 0;
    }
    /* .header-tokens inline-span удалён из renderHeader iter30 — token badge
       теперь только в header-row-2 (.header-tokens-badge). Inline CSS не нужен. */
    .btn-google-signin {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      background: #fff;
      border: 1px solid #E8E6E1;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 500;
      color: #1A1A1A;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      font-family: 'Golos Text', sans-serif;
    }
    .btn-google-signin:hover {
      background: #F3F2EE;
      box-shadow: 0 2px 8px rgba(0,0,0,.04);
    }
    .header-user {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: #1A1A1A;
    }
    .header-user__avatar {
      width: 32px;
      height: 32px;
      background: #7C3AED;
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
    }
    .header-user__name {
      font-size: 14px;
      font-weight: 500;
    }
    .header-burger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
    }
    .header-burger span {
      display: block;
      width: 22px;
      height: 2px;
      background: #1A1A1A;
      border-radius: 1px;
      transition: transform 0.2s, opacity 0.2s;
    }

    @media (max-width: 768px) {
      .header-inner {
        padding: 0 24px;
      }
      .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid #E8E6E1;
        gap: 8px;
      }
      .menu-open .header-nav {
        display: flex;
      }
      .header-auth {
        display: none;
      }
      .header-burger {
        display: flex;
        margin-left: auto;
      }
      .menu-open .header-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }
      .menu-open .header-burger span:nth-child(2) {
        opacity: 0;
      }
      .menu-open .header-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }
      .account-title {
        font-size: 26px;
      }
      .account-actions {
        flex-direction: column;
      }
      .account-btn {
        width: 100%;
        text-align: center;
      }
    }
