/* Portal24 — вход по SMS (общий UI) */
:root {
  --g24-auth-accent: #2563eb;
  --g24-auth-accent-hover: #1d4ed8;
  --g24-auth-accent-soft: rgba(37, 99, 235, 0.1);
  --g24-auth-text: #0f172a;
  --g24-auth-muted: #64748b;
  --g24-auth-border: #e2e8f0;
  --g24-auth-radius: 24px;
  --g24-sidebar-bg: #2b2f36;
  --g24-sidebar-bg-hover: rgba(255, 255, 255, 0.08);
  --g24-sidebar-text: #f3f4f6;
  --g24-sidebar-muted: #9ca3af;
  --g24-sidebar-border: rgba(255, 255, 255, 0.1);
}

/* Кнопка в шапке (fallback, если glass CSS ещё не подхватил) */
.g24-auth-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 999px;
  background: #fff;
  color: var(--g24-auth-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.g24-auth-header-btn:hover {
  border-color: var(--g24-auth-accent);
  color: var(--g24-auth-accent);
  text-decoration: none;
}
.g24-auth-header-btn--primary {
  background: var(--g24-auth-accent);
  border-color: var(--g24-auth-accent);
  color: #fff;
}
.g24-auth-header-btn--primary:hover {
  background: var(--g24-auth-accent-hover);
  border-color: var(--g24-auth-accent-hover);
  color: #fff;
}

/* Оверлей */
.g24-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  animation: g24AuthFadeIn 0.22s ease;
}
.g24-auth-overlay[hidden] {
  display: none !important;
}
@keyframes g24AuthFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.g24-auth-modal,
.g24-auth-modal--v2 {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 28px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(100% 70% at 100% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    #fff;
  border-radius: var(--g24-auth-radius);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  text-align: center;
  animation: g24AuthPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes g24AuthPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.g24-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.g24-auth-close:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.g24-auth-brand {
  margin: 4px 0 14px;
}
.g24-auth-logo {
  display: block;
  max-width: 180px;
  width: auto;
  height: auto;
  max-height: 36px;
  margin: 0 auto;
  object-fit: contain;
}

.g24-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--g24-auth-accent-soft);
  color: var(--g24-auth-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.g24-auth-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--g24-auth-text);
}

.g24-auth-lead {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--g24-auth-muted);
  text-align: center;
}

.g24-auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.g24-auth-trust li {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
}

.g24-auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--g24-auth-text);
  text-align: left;
}

.g24-auth-phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--g24-auth-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.g24-auth-phone-field:focus-within {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.g24-auth-prefix {
  padding: 14px 12px 14px 16px;
  font-weight: 700;
  color: var(--g24-auth-text);
  border-right: 1px solid var(--g24-auth-border);
  background: #f8fafc;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.g24-auth-input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  font-size: 1.05rem;
  outline: none;
  background: transparent;
  color: var(--g24-auth-text);
}
.g24-auth-input--code {
  border: 1.5px solid var(--g24-auth-border);
  border-radius: 14px;
  text-align: center;
  font-size: 1.75rem;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  margin-bottom: 6px;
  caret-color: var(--g24-auth-accent);
  padding-left: 1.1em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.g24-auth-input--code:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.g24-auth-hint,
.g24-auth-meta {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--g24-auth-muted);
  text-align: center;
  line-height: 1.4;
}

.g24-auth-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 0.85rem;
  color: #b91c1c;
  text-align: left;
}

.g24-auth-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.g24-auth-submit:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.32);
}
.g24-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.g24-auth-submit[data-loading="1"] .g24-auth-submit__label::after {
  content: '…';
}

.g24-auth-back {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: none;
  color: var(--g24-auth-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.g24-auth-back:hover {
  color: var(--g24-auth-accent);
}

.g24-auth-sent-to {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--g24-auth-muted);
  text-align: center;
}
.g24-auth-sent-to strong {
  color: var(--g24-auth-text);
  font-weight: 700;
}

.g24-auth-resend {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.g24-auth-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
}
.g24-auth-countdown[hidden] {
  display: none !important;
}
.g24-auth-countdown__ring {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}
.g24-auth-countdown__track,
.g24-auth-countdown__progress {
  fill: none;
  stroke-width: 3;
}
.g24-auth-countdown__track {
  stroke: #e2e8f0;
}
.g24-auth-countdown__progress {
  stroke: var(--g24-auth-accent);
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s linear;
}
.g24-auth-countdown__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--g24-auth-text);
  font-variant-numeric: tabular-nums;
}

.g24-auth-resend-btn {
  border: 1px solid var(--g24-auth-border);
  background: #fff;
  color: var(--g24-auth-accent);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}
.g24-auth-resend-btn:hover:not(:disabled) {
  background: var(--g24-auth-accent-soft);
  border-color: rgba(37, 99, 235, 0.35);
}
.g24-auth-resend-btn:disabled {
  color: var(--g24-auth-muted);
  cursor: not-allowed;
  background: #f8fafc;
}

@media (max-width: 480px) {
  .g24-auth-modal,
  .g24-auth-modal--v2 {
    padding: 28px 18px 22px;
    border-radius: 20px;
  }
  .g24-auth-title { font-size: 1.35rem; }
}

/* Личный кабинет */
.g24-cabinet-main {
  padding: 32px 0 48px;
}
/* overflow-x:hidden на html/body в темах ломает sticky → top:108px
   сдвигает сайдбар вниз как relative. clip не создаёт scroll-container. */
html:has(body.g24-cabinet-page),
body.g24-cabinet-page {
  overflow-x: clip !important;
}
/* Отступ под плавающий glass-header (spacer скрыт) */
body.g24-cabinet-page .g24-cabinet-main,
html body:has(.site-header.p24-glass).g24-cabinet-page .g24-cabinet-main,
html body.g24-cabinet-page:has(.site-header.p24-glass) .g24-cabinet-main {
  padding-top: 108px;
}
@media (max-width: 900px) {
  body.g24-cabinet-page .g24-cabinet-main,
  html body.g24-cabinet-page:has(.site-header.p24-glass) .g24-cabinet-main {
    padding-top: 96px;
  }
}
.g24-cabinet {
  max-width: 720px;
}
.g24-cabinet__header h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}
.g24-cabinet__phone {
  margin: 0 0 24px;
  color: var(--g24-auth-muted);
  font-size: 1.05rem;
}
.g24-cabinet__card {
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: var(--g24-auth-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.g24-cabinet__card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.g24-cabinet__card--muted {
  background: #f9fafb;
}
.g24-cabinet__card--muted p {
  margin: 0;
  color: var(--g24-auth-muted);
  font-size: 0.95rem;
}
.g24-cabinet__meta {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g24-cabinet__meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-cabinet__meta li:last-child {
  border-bottom: none;
}
.g24-cabinet__meta span {
  color: var(--g24-auth-muted);
}
.g24-cabinet__logout {
  margin-top: 8px;
  padding: 12px 24px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 12px;
  background: #fff;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
}
.g24-cabinet__guest {
  text-align: center;
  padding: 48px 24px;
  background: #f9fafb;
  border-radius: var(--g24-auth-radius);
}
.g24-cabinet__guest h1 {
  margin-top: 0;
}
.g24-cabinet__login-btn {
  max-width: 280px;
  margin: 0 auto;
}

.g24-cabinet-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1450px;
  width: 100%;
}
body.g24-cabinet-page .g24-cabinet-layout.container {
  max-width: 1450px;
  padding-top: 0;
  /* style.css: .container { overflow-x:hidden } → overflow-y:auto,
     sticky top считается от контейнера и опускает сайдбар на 108px */
  overflow: visible !important;
}
.g24-cabinet-content {
  min-width: 0;
  order: 2;
  margin-top: 0;
}
.g24-cabinet-content--full {
  grid-column: 1 / -1;
}
.g24-cabinet-sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
  margin-top: 0;
  background: var(--g24-sidebar-bg);
  border: none;
  border-radius: var(--g24-auth-radius);
  padding: 22px 18px;
  order: 1;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
  color: var(--g24-sidebar-text);
}
.g24-cabinet-content > :first-child {
  margin-top: 0;
}
.g24-cabinet-sidebar__user {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--g24-sidebar-border);
  font-size: 0.9rem;
  color: var(--g24-sidebar-muted);
}
.g24-cabinet-sidebar__user strong {
  font-size: 1.05rem;
  color: var(--g24-sidebar-text);
  line-height: 1.35;
}
.g24-cabinet-sidebar__status {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}
.g24-cabinet-sidebar__status--draft,
.g24-cabinet-sidebar__status--rejected { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.g24-cabinet-sidebar__status--pending { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
.g24-cabinet-sidebar__status--approved { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.g24-cabinet-sidebar__balance {
  margin-top: 8px;
  color: var(--g24-sidebar-muted);
  font-size: 0.88rem;
}
.g24-cabinet-sidebar__balance strong {
  color: #fff;
  font-size: 1.05rem;
}
.g24-cabinet-city {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.g24-cabinet-city__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--g24-sidebar-muted);
  margin-bottom: 6px;
}
.g24-cabinet-city__select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.g24-cabinet-city__select option {
  color: #111;
}
.g24-city-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eef8;
  color: #1e3a5f;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.g24-city-badge--sm {
  font-size: 0.72rem;
  padding: 2px 6px;
  margin-right: 4px;
}
.g24-lf-city-bar {
  margin-bottom: 16px;
  padding: 16px 18px;
}
.g24-lf-city-bar__label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.g24-lf-city-bar__select {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  font-size: 1rem;
  font-weight: 600;
}
.g24-cabinet-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.g24-cabinet-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--g24-sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.g24-cabinet-nav__link:hover {
  background: var(--g24-sidebar-bg-hover);
  text-decoration: none;
  color: #fff;
}
.g24-cabinet-nav__link.is-active {
  background: rgba(211, 47, 47, 0.22);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--g24-auth-accent);
}
.g24-cabinet-nav__link.is-locked {
  opacity: 0.55;
}
.g24-cabinet-nav__lock {
  font-size: 0.85rem;
}
.g24-cabinet-sidebar__logout {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--g24-sidebar-border);
  border-radius: 10px;
  background: transparent;
  color: #fca5a5;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.g24-cabinet-sidebar__logout:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}
.g24-cabinet-page__head h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.g24-cabinet-page__head p {
  margin: 0 0 20px;
  color: var(--g24-auth-muted);
}
.g24-cabinet-page__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.g24-cabinet-card,
.g24-cabinet-balance-card {
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: var(--g24-auth-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.g24-cabinet-card h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.g24-cabinet-balance-card__label {
  display: block;
  color: var(--g24-auth-muted);
  font-size: 0.9rem;
}
.g24-cabinet-balance-card__value {
  display: block;
  font-size: 2rem;
  color: var(--g24-auth-accent);
  margin: 8px 0;
}
.g24-cabinet-balance-card__note {
  margin: 0;
  color: var(--g24-auth-muted);
  font-size: 0.9rem;
}
.g24-cabinet-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.g24-cabinet-alert--ok { background: #dcfce7; color: #166534; }
.g24-cabinet-alert--warn { background: #fef3c7; color: #92400e; }
.g24-cabinet-alert--info { background: #dbeafe; color: #1e40af; }
.g24-cabinet-alert--err { background: #fee2e2; color: #991b1b; }
.g24-cabinet-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.g24-cabinet-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.g24-cabinet-form__field span {
  font-size: 0.9rem;
  font-weight: 600;
}
.g24-cabinet-form__field input,
.g24-cabinet-form__field textarea,
.g24-cabinet-form__field select {
  padding: 10px 12px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 10px;
  font: inherit;
}
.g24-cabinet-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.g24-cabinet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--g24-auth-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.g24-cabinet-btn--ghost {
  background: #fff;
  color: var(--g24-auth-text);
  border: 1px solid var(--g24-auth-border);
}
.g24-cabinet-form__hint,
.g24-cabinet-bonus-hint,
.g24-cabinet-empty {
  color: var(--g24-auth-muted);
  font-size: 0.95rem;
}
.g24-cabinet-table-wrap {
  overflow-x: auto;
}
.g24-cabinet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.g24-cabinet-table th,
.g24-cabinet-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--g24-auth-border);
  text-align: left;
}
.g24-cabinet-table th {
  color: var(--g24-auth-muted);
  font-weight: 600;
}
.g24-cabinet-table .is-plus { color: #16a34a; font-weight: 600; }
.g24-cabinet-ticket-list,
.g24-cabinet-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g24-cabinet-ticket,
.g24-cabinet-review {
  padding: 14px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-cabinet-ticket__head,
.g24-cabinet-review__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.g24-cabinet-ticket__reply {
  margin-top: 8px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 0.9rem;
}

.g24-cabinet-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.g24-cabinet-alert--error {
  background: #fee2e2;
  color: #991b1b;
}
.g24-cabinet-alert--success {
  background: #dcfce7;
  color: #166534;
}
.g24-cabinet-pay-card__lead {
  color: var(--g24-auth-muted);
  margin-top: 0;
}
.g24-cabinet-pay-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin-top: 4px;
}
.g24-pay-amount-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g24-pay-amount-field__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g24-auth-text);
}
.g24-pay-amount-field__wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--g24-auth-border);
  border-radius: 14px;
  background: #fafafa;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.g24-pay-amount-field__wrap:focus-within {
  border-color: var(--g24-auth-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}
.g24-pay-amount-field__input {
  flex: 1;
  min-width: 0;
  padding: 16px 12px 16px 18px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--g24-auth-text);
  letter-spacing: -0.02em;
  -moz-appearance: textfield;
}
.g24-pay-amount-field__input::-webkit-outer-spin-button,
.g24-pay-amount-field__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.g24-pay-amount-field__input:focus {
  outline: none;
}
.g24-pay-amount-field__currency {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--g24-auth-muted);
  background: rgba(15, 23, 42, 0.04);
  border-left: 1px solid var(--g24-auth-border);
  user-select: none;
}
.g24-cabinet-pay-form__submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.g24-cabinet-pay-form__submit:disabled {
  opacity: 0.72;
  cursor: wait;
}
.g24-cabinet-pay-form__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--g24-auth-muted);
}
.g24-cabinet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.g24-cabinet-btn--primary {
  background: var(--g24-auth-accent);
  color: #fff;
}
.g24-cabinet-btn--secondary {
  background: #fff;
  color: var(--g24-auth-text);
  border: 1px solid var(--g24-auth-border);
}
.g24-cabinet-pay-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.g24-cabinet-pay-status__label {
  font-size: 0.85rem;
  color: var(--g24-auth-muted);
}
.g24-cabinet-pay-invoice {
  margin: 8px 0;
}
.g24-cabinet-pay-invoice span {
  color: var(--g24-auth-muted);
}
.g24-cabinet-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.g24-cabinet-pay-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--g24-auth-muted);
}

/* —— Страница оплаты —— */
.g24-pay-head {
  margin-bottom: 4px;
}
.g24-pay-head__amount {
  margin: 0 0 20px;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--g24-auth-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.g24-pay-head__amount span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g24-auth-muted);
  margin-left: 4px;
}
.g24-pay-card {
  padding: 28px 28px 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.g24-pay-card__top {
  margin-bottom: 20px;
}
.g24-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.g24-pay-badge--awaiting {
  background: #fef3c7;
  color: #92400e;
}
.g24-pay-badge--paid {
  background: #dcfce7;
  color: #166534;
}
.g24-pay-badge--inactive {
  background: #f3f4f6;
  color: #6b7280;
}
.g24-pay-erip-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.g24-pay-erip {
  background: linear-gradient(135deg, #fff8f8 0%, #fff 50%, #f8fafc 100%);
  border: 2px solid rgba(211, 47, 47, 0.18);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 0;
}
.g24-pay-erip__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g24-auth-accent);
  margin-bottom: 10px;
}
.g24-pay-erip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.g24-pay-erip__number {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--g24-auth-text);
  letter-spacing: 0.02em;
  word-break: break-all;
  line-height: 1.4;
  background: none;
  padding: 0;
}
.g24-pay-erip__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid var(--g24-auth-border);
  border-radius: 10px;
  background: #fff;
  color: var(--g24-auth-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.g24-pay-erip__copy:hover {
  border-color: var(--g24-auth-accent);
  color: var(--g24-auth-accent);
}
.g24-pay-erip__copy.is-copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.g24-pay-erip__hint {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--g24-auth-muted);
}
.g24-pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--g24-auth-border);
  border-radius: 14px;
  min-width: 206px;
}
.g24-pay-qr__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g24-auth-muted);
  margin-bottom: 10px;
}
.g24-pay-qr__img {
  display: block;
  width: 174px;
  height: 174px;
  border-radius: 8px;
  background: #fff;
}
.g24-pay-qr__hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
  max-width: 180px;
  line-height: 1.4;
}
.g24-pay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
}
.g24-pay-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.g24-pay-meta__label {
  font-size: 0.8rem;
  color: var(--g24-auth-muted);
}
.g24-pay-meta__value {
  font-size: 0.95rem;
  color: var(--g24-auth-text);
}
.g24-pay-actions {
  margin: 24px 0;
}
.g24-pay-actions__primary {
  min-width: 200px;
}
.g24-pay-steps {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--g24-auth-border);
}
.g24-pay-steps--before-actions {
  margin: 20px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--g24-auth-border);
}
.g24-pay-steps--before-actions + .g24-pay-actions {
  margin-top: 0;
}
.g24-pay-steps h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.g24-pay-steps ol {
  line-height: 1.65;
}
.g24-pay-footer-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--g24-auth-border);
}

.g24-cabinet-telegram-card {
  margin-top: 20px;
}
.g24-cabinet-telegram-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.g24-cabinet-telegram-card__lead {
  color: var(--g24-auth-muted);
  margin: 0 0 14px;
}
.g24-cabinet-telegram-card__hint {
  margin: 0 0 12px;
}
.g24-cabinet-telegram-card__code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.g24-cabinet-telegram-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 10px;
}
.g24-cabinet-telegram-card__link {
  display: inline-flex;
  text-decoration: none;
}

/* —— Дашборд кабинета —— */
.g24-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.96) 0%, rgba(15, 23, 42, 0.92) 55%, rgba(37, 99, 235, 0.55) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.g24-dash-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.g24-dash-hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 220px;
}
.g24-dash-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.g24-dash-hero__title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.g24-dash-hero__sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
}
.g24-dash-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.g24-dash-hero__actions .g24-cabinet-btn {
  padding: 9px 14px;
  font-size: 0.88rem;
  border-radius: 11px;
}
.g24-dash-hero__actions .g24-cabinet-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.g24-dash-hero__actions .g24-cabinet-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.g24-dash-hero__actions .g24-cabinet-btn--primary {
  background: #fff;
  color: #1e3a5f;
  border-color: #fff;
}
.g24-dash-hero__actions .g24-cabinet-btn--primary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.g24-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.g24-dash-head__eyebrow {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g24-auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.g24-dash-head h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.g24-dash-head__sub {
  margin: 0;
  color: var(--g24-auth-muted);
  max-width: 520px;
}
.g24-dash-head__profile {
  flex-shrink: 0;
}
.g24-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.g24-dash-stat {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.g24-dash-stat__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.g24-dash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border-radius: 11px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.g24-dash-icon svg {
  display: block;
}
.g24-dash-icon--lg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 13px;
}
.g24-dash-icon--wallet {
  background: rgba(211, 47, 47, 0.1);
  color: #c62828;
}
.g24-dash-icon--listings {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.g24-dash-icon--views {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}
.g24-dash-icon--reviews {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}
.g24-dash-icon--add {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.g24-dash-icon--profile {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}
.g24-dash-icon--support {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}
a.g24-dash-stat:hover {
  border-color: rgba(211, 47, 47, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}
.g24-dash-stat--accent {
  background: linear-gradient(145deg, #fff 0%, #fff5f5 100%);
  border-color: rgba(211, 47, 47, 0.18);
}
.g24-dash-stat--accent .g24-dash-stat__value {
  color: var(--g24-auth-accent);
}
.g24-dash-stat__label {
  font-size: 0.78rem;
  color: var(--g24-auth-muted);
  font-weight: 600;
}
.g24-dash-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.g24-dash-stat__value span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g24-auth-muted);
}
.g24-dash-stat__meta {
  font-size: 0.78rem;
  color: var(--g24-auth-muted);
}
.g24-dash-section-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--g24-auth-muted);
}
.g24-dash-actions {
  margin-bottom: 22px;
}
.g24-dash-actions--bottom {
  margin: 8px 0 0;
  padding-top: 8px;
}
.g24-dash-actions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.g24-dash-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g24-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--g24-auth-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.g24-dash-chip:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  background: #f8fafc;
}
.g24-dash-chip__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}
.g24-dash-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--g24-auth-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-height: 112px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.g24-dash-action:hover {
  border-color: rgba(211, 47, 47, 0.28);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  text-decoration: none;
}
.g24-dash-action:hover .g24-dash-icon {
  transform: scale(1.04);
}
.g24-dash-action__title {
  font-weight: 700;
  font-size: 0.95rem;
}
.g24-dash-action__desc {
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
  line-height: 1.35;
}
.g24-dash-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.g24-dash-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.g24-dash-panel__head h2 {
  margin: 0;
}
.g24-dash-panel__head a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g24-auth-accent);
  text-decoration: none;
}
.g24-dash-panel__head a:hover {
  text-decoration: underline;
}
.g24-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g24-dash-list__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-dash-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.g24-dash-list__sub {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
}
.g24-dash-list__amount {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.92rem;
}
.g24-dash-list__amount.is-plus { color: #16a34a; }
.g24-dash-list__amount.is-minus { color: #dc2626; }
.g24-dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.g24-dash-badge--ok {
  background: #dcfce7;
  color: #166534;
}
.g24-dash-telegram__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.g24-dash-telegram__head h2 {
  margin: 0 0 6px;
}

/* —— Профиль —— */
.g24-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.g24-profile-head h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.g24-profile-head p {
  margin: 0;
  color: var(--g24-auth-muted);
}
.g24-profile-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.g24-profile-status--draft { background: #f3f4f6; color: #374151; }
.g24-profile-status--pending { background: #dbeafe; color: #1e40af; }
.g24-profile-status--approved { background: #dcfce7; color: #166534; }
.g24-profile-status--rejected { background: #fee2e2; color: #991b1b; }
.g24-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.g24-profile-card h2,
.g24-profile-side-card h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}
.g24-profile-meta {
  margin: 0;
}
.g24-profile-meta div {
  padding: 10px 0;
  border-bottom: 1px solid var(--g24-auth-border);
}
.g24-profile-meta div:last-child {
  border-bottom: none;
}
.g24-profile-meta dt {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--g24-auth-muted);
}
.g24-profile-meta dd {
  margin: 0;
  font-size: 0.95rem;
}
.g24-profile-side-card__link {
  width: 100%;
  margin-top: 14px;
  text-decoration: none;
}
.g24-profile-bonus p {
  margin: 0;
  color: var(--g24-auth-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* —— Список объявлений —— */
.g24-listings-add-btn {
  flex-shrink: 0;
  text-decoration: none;
}
.g24-listings-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px 52px;
}
.g24-listings-empty-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--g24-auth-accent);
  margin-bottom: 20px;
}
.g24-listings-empty-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.g24-listings-empty-card p {
  margin: 0 0 28px;
  max-width: 420px;
  color: var(--g24-auth-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.g24-listings-empty-card__btn {
  min-width: 220px;
  padding: 14px 28px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .g24-cabinet-layout {
    grid-template-columns: 1fr;
  }
  .g24-cabinet-sidebar {
    position: static;
    order: 0;
  }
  .g24-cabinet-content {
    order: 1;
  }
  .g24-cabinet-form__grid {
    grid-template-columns: 1fr;
  }
  .g24-pay-erip-layout {
    grid-template-columns: 1fr;
  }
  .g24-pay-qr {
    min-width: 0;
    width: 100%;
  }
  .g24-pay-erip__row {
    flex-direction: column;
    align-items: stretch;
  }
  .g24-pay-erip__copy {
    justify-content: center;
  }
  .g24-pay-head__amount {
    font-size: 2rem;
  }
  .g24-dash-stats,
  .g24-dash-actions__grid,
  .g24-dash-columns,
  .g24-profile-layout {
    grid-template-columns: 1fr;
  }
  .g24-dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g24-dash-hero {
    padding: 14px 16px;
  }
  .g24-dash-hero__title {
    font-size: 1.2rem;
  }
}

.g24-mobile-auth-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 12px 0;
}

@media (max-width: 640px) {
  .g24-auth-header-btn span.g24-auth-header-label {
    display: none;
  }
  .g24-auth-modal {
    padding: 28px 20px 24px;
  }
}
