.auth-page__body,
.account-page__body {
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 8vw, 80px);
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 32px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.account-card {
  width: 100%;
  padding: clamp(24px, 4vw, 32px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-field input {
  padding: 12px 14px;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
}

.auth-field input:focus {
  outline: 2px solid var(--sky-300);
  border-color: var(--sky-500);
}

.auth-card__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky-600), var(--mint-500));
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-card__submit:hover {
  filter: brightness(1.05);
}

.auth-card__switch {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card__switch a {
  color: var(--sky-700);
  font-weight: 600;
}

.auth-card__error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

button.site-nav__extra-link {
  width: 100%;
  text-align: left;
  border: none;
  font: inherit;
  cursor: pointer;
}

button.top-bar__link {
  border: none;
  background: none;
  padding: 0;
}

.top-bar__link--accent span {
  font-weight: 700;
  color: var(--sky-700, #2a5f8c);
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-modal .price-modal__dialog {
  width: min(100%, 440px);
  padding: clamp(22px, 3vw, 28px) clamp(20px, 2.8vw, 26px) clamp(18px, 2.4vw, 22px);
  border: 1px solid rgba(197, 224, 245, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #f8fcff 52%, #f4fbf8 100%);
  box-shadow:
    0 20px 50px rgba(45, 157, 232, 0.14),
    0 8px 24px rgba(15, 35, 50, 0.08);
}

.auth-modal .price-modal__close {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf2f7;
  color: #718096;
}

.auth-modal__title {
  margin: 0 0 6px;
  padding-right: 36px;
  color: #1a2e3d;
}

.auth-modal__lead {
  margin: 0 0 16px;
  color: rgba(26, 46, 61, 0.72);
}

.auth-modal__submit {
  background: linear-gradient(135deg, #2d9de8 0%, #3dcc9f 100%);
  box-shadow: 0 8px 22px rgba(45, 157, 232, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-modal__submit:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(45, 157, 232, 0.34);
}

.auth-modal__submit:active {
  transform: translateY(0);
}

.auth-modal__switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: rgba(26, 46, 61, 0.68);
}

.auth-modal__switch-link {
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #2d9de8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-modal__switch-link:hover {
  color: #1a5f8a;
}

.auth-modal__error {
  margin-bottom: 12px;
}

.account-page__hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.account-page__logout {
  padding: 10px 18px;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}

.account-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sky-100);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar {
  display: none;
}

.account-tabs__btn {
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.account-tabs__btn.is-active {
  color: var(--sky-700);
  background: var(--white);
  border-bottom-color: var(--sky-600);
}

.account-panel {
  width: 100%;
}

.account-card--profile {
  max-width: 480px;
}

.account-form--profile {
  max-width: 420px;
}

.account-card__title {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

.account-form__submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky-600), var(--mint-500));
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-form__submit--secondary {
  background: var(--sky-600);
}

.account-field__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.account-password {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sky-100);
}

.account-password__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.account-flash {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.account-flash--ok {
  background: #ecfdf5;
  color: #166534;
}

.account-flash--error {
  background: #fef2f2;
  color: #b91c1c;
}

.account-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-order {
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid var(--sky-100);
  border-radius: var(--radius-sm);
  background: var(--sky-50);
}

.account-order__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.account-order__status {
  font-size: 0.85rem;
  color: var(--sky-700);
  font-weight: 600;
}

.account-order__meta {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.account-order__lines {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-order-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.account-order-line__thumb,
.account-order-bundle__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--sky-100);
  background: var(--white);
  display: block;
}

.account-order-bundle__thumb {
  width: 40px;
  height: 40px;
}

.account-order-line__thumb img,
.account-order-bundle__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-order-line__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sky-100), var(--mint-100));
}

.account-order-line__placeholder--sm {
  min-height: 40px;
}

.account-order-line__body {
  flex: 1;
  min-width: 0;
}

.account-order-line__name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.account-order-line__name:hover {
  color: var(--sky-700);
}

.account-order-bundle {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-order-bundle__item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.account-order-bundle__name {
  color: var(--text-muted);
  text-decoration: none;
}

.account-order-bundle__name:hover {
  color: var(--sky-700);
}

.account-order__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky-700);
}

.account-card__empty {
  color: var(--text-muted);
}

.account-card__subtitle {
  margin: 24px 0 10px;
  font-size: 1rem;
  color: #1a2e3d;
}

.account-partner-dashboard {
  display: grid;
  gap: 16px;
}

.account-partner-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.account-partner-stat {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--sky-100);
}

.account-partner-stat__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.account-partner-stat__value {
  font-size: 1.1rem;
  color: #1a2e3d;
}

.account-partner-code {
  letter-spacing: 0.04em;
}

.account-partner-copy {
  margin-top: 8px;
  border: none;
  background: none;
  color: var(--sky-700);
  font-weight: 700;
  cursor: pointer;
}

.account-partner-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.account-partner-orders {
  margin: 0;
  padding-left: 18px;
  color: rgba(26, 46, 61, 0.78);
  font-size: 0.92rem;
}

.account-partner-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}
