/* MAG Master — внешний лендинг (космический стиль, бегущие строки, переливы) */
:root {
  --landing-bg: #0a0b0f;
  --landing-card: rgba(21, 24, 33, 0.75);
  --landing-card-solid: #151821;
  --landing-border: rgba(80, 90, 120, 0.25);
  --landing-text: #e8e9ec;
  --landing-muted: #9ca3af;
  --landing-accent: #3b82f6;
  --landing-accent-hover: #60a5fa;
  --landing-glow: rgba(59, 130, 246, 0.25);
  --landing-purple: rgba(139, 92, 246, 0.2);
  --landing-red: rgba(239, 68, 68, 0.15);
}

/* Космический фон: градиент + звёзды */
body.landing-standalone {
  margin: 0;
  color: var(--landing-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 50%, rgba(139, 92, 246, 0.06), transparent 45%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(239, 68, 68, 0.04), transparent 40%),
    var(--landing-bg);
}
body.landing-standalone::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 160px 120px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 300px 160px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 380px 50px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 450px 200px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 520px 90px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 600px 180px, rgba(255,255,255,0.3), transparent);
  background-size: 620px 220px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.landing-standalone .landing-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
}
/* Кабинет: main расширяется по контенту, один скролл на странице */
body.account-cabinet-visible.landing-standalone .landing-wrap {
  max-width: 1200px;
}
body.account-cabinet-visible.landing-standalone .landing-hero {
  padding-bottom: 16px;
}
body.account-cabinet-visible.landing-standalone #dashboardBlock {
  margin-bottom: 24px;
}
body.account-cabinet-visible.landing-standalone .account-dashboard {
  min-height: auto;
}
.landing-standalone .landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--landing-border);
  background: rgba(15, 17, 21, 0.7);
  backdrop-filter: blur(12px);
}
.landing-standalone .landing-topbar .landing-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--landing-text);
  text-decoration: none;
}
.landing-standalone .landing-topbar .landing-login {
  font-size: 0.9rem;
  color: var(--landing-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--landing-border);
}
.landing-standalone .landing-topbar .landing-login:hover {
  color: var(--landing-accent);
  border-color: var(--landing-accent);
}

/* Встроенный в приложение (home с сайдбаром) */
.landing-page .main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Hero */
.landing-hero {
  text-align: center;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.landing-hero-bg {
  position: absolute;
  inset: -12px 0 0;
  z-index: 0;
  pointer-events: none;
}
.landing-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.landing-hero-chip {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: min(360px, 70vw);
  height: 160px;
  border-radius: 18px;
  border: 1px solid rgba(80, 90, 120, 0.35);
  background:
    radial-gradient(ellipse 55% 90% at 30% 35%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 90% at 70% 65%, rgba(139, 92, 246, 0.14), transparent 55%),
    rgba(21, 24, 33, 0.25);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  filter: blur(0.1px);
  opacity: 0.9;
}
.landing-hero-chip::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
}
.landing-hero-chip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.18), transparent 60%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  opacity: 0.85;
}
.landing-hero-content {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero-bg { display: none; }
}
.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.landing-hero .landing-hero-sub {
  font-size: 1.1rem;
  color: var(--landing-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.landing-hero .landing-cta {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 4px 20px var(--landing-glow);
}
.landing-hero .landing-cta:hover {
  box-shadow: 0 6px 28px var(--landing-glow), 0 0 0 1px rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* Что умеет — сетка карточек */
.landing-section {
  margin-bottom: 56px;
}
.landing-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--landing-text);
}
.landing-section .landing-section-hint {
  font-size: 0.9rem;
  color: var(--landing-muted);
  margin-bottom: 24px;
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.landing-feature-card {
  background: var(--landing-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.landing-feature-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}
.landing-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--landing-text);
}
.landing-feature-card p {
  font-size: 0.9rem;
  color: var(--landing-muted);
  margin: 0;
  line-height: 1.45;
}

/* —— Бегущая строка: карточки задач (влево) —— */
.landing-marquee-section {
  margin-bottom: 48px;
}
.landing-marquee-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--landing-muted);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.landing-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.landing-marquee {
  display: flex;
  width: max-content;
  animation: landing-marquee-left 45s linear infinite;
}
.landing-marquee.landing-marquee-right {
  animation: landing-marquee-right 50s linear infinite;
}
.landing-marquee-inner {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  flex-shrink: 0;
}
@keyframes landing-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes landing-marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* —— Карточка задачи (полный вид как в приложении) —— */
.landing-marquee .landing-task-card,
.landing-marquee .landing-sprint-card {
  flex-shrink: 0;
}
.landing-marquee .landing-task-card {
  min-width: 340px;
  max-width: 360px;
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  border-right: 2px solid rgba(239, 68, 68, 0.4);
  border-bottom: 2px solid rgba(239, 68, 68, 0.25);
}
.landing-marquee .landing-task-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  border-right-color: rgba(239, 68, 68, 0.5);
  border-bottom-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 8px 24px var(--landing-glow);
}
.landing-task-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--landing-text);
  margin: 0 0 10px;
  line-height: 1.35;
}
.landing-task-status-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.landing-task-status-pill.landing-task-status-progress {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
.landing-task-status-pill.landing-task-status-done {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}
.landing-task-meta-row {
  font-size: 0.8rem;
  color: var(--landing-text);
  margin-bottom: 4px;
}
.landing-task-meta-row-muted {
  color: var(--landing-muted);
}
.landing-task-meta-dot {
  margin: 0 6px;
  color: var(--landing-muted);
  font-weight: 700;
}
.landing-task-workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.landing-task-workflow-btn {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--landing-muted);
  border: 1px solid var(--landing-border);
}
.landing-task-cta-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--landing-accent);
  color: #fff;
  margin-bottom: 10px;
  width: fit-content;
}
.landing-task-desc {
  font-size: 0.82rem;
  color: var(--landing-text);
  line-height: 1.45;
  margin: 0 0 8px;
}
.landing-task-areas {
  font-size: 0.8rem;
  color: var(--landing-muted);
}

/* —— Карточка спринта (полный вид как в приложении) —— */
.landing-marquee .landing-sprint-card {
  min-width: 300px;
  max-width: 320px;
  background: rgba(18, 20, 28, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.landing-marquee .landing-sprint-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px var(--landing-purple);
}
.landing-sprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.landing-sprint-header-actions {
  display: flex;
  gap: 6px;
}
.landing-sprint-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}
.landing-sprint-icon-ok {
  background: rgba(34, 197, 94, 0.5);
  color: #fff;
}
.landing-sprint-icon-close {
  background: rgba(59, 130, 246, 0.5);
  color: #fff;
}
.landing-sprint-card .landing-sprint-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--landing-text);
  margin: 12px 14px 4px;
}
.landing-sprint-card .landing-sprint-dates {
  font-size: 0.85rem;
  color: var(--landing-text);
  margin: 0 14px 8px;
  display: block;
}
.landing-sprint-progress-text {
  font-size: 0.8rem;
  color: var(--landing-muted);
  margin: 0 14px 6px;
}
.landing-sprint-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 14px 10px;
}
.landing-sprint-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border-radius: 999px;
  transition: width 0.3s;
}
.landing-sprint-priority {
  font-size: 0.8rem;
  color: var(--landing-muted);
  margin: 0 14px 10px;
}
.landing-sprint-tasks {
  list-style: none;
  margin: 0 14px 8px;
  padding: 0;
  font-size: 0.8rem;
  color: var(--landing-muted);
  line-height: 1.6;
}
.landing-sprint-tasks li {
  margin-bottom: 4px;
}
.landing-sprint-task-id {
  color: #67b7e0;
  margin-right: 4px;
}
.landing-sprint-task-status {
  color: var(--landing-muted);
  font-size: 0.75rem;
}
.landing-sprint-more {
  font-size: 0.78rem;
  color: var(--landing-muted);
  margin: 0 14px 12px;
  padding-top: 6px;
  border-top: 1px solid var(--landing-border);
}

/* Как это выглядит — статичный блок (оставляем для контекста или убираем) */
.landing-preview {
  background: var(--landing-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.landing-preview-sprint {
  font-size: 0.85rem;
  color: var(--landing-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--landing-border);
}
.landing-preview-sprint strong {
  color: var(--landing-text);
}
.landing-preview-tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-task-card {
  background: rgba(15, 17, 21, 0.6);
  border: 1px solid var(--landing-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.landing-task-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}
.landing-task-card .landing-task-id {
  font-size: 0.8rem;
  color: var(--landing-muted);
  min-width: 28px;
}
.landing-task-card .landing-task-title {
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.landing-task-card .landing-task-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.landing-task-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
.landing-task-badge.priority-high {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}
.landing-task-badge.status-done {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.landing-task-badge.status-progress {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* CTA блок */
/* Маркетинговый FAQ — компактные блоки */
.marketing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.marketing-faq-item {
  background: var(--landing-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.marketing-faq-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
}
.marketing-faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--landing-text);
}
.marketing-faq-item p {
  font-size: 0.95rem;
  color: var(--landing-muted);
  margin: 0;
  line-height: 1.5;
}

/* Pricing — как это работает */
.pricing-how-block {
  margin-bottom: 32px;
}
.pricing-how-block + h2 {
  margin-top: 40px;
}
.pricing-how-block h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--landing-text);
}
.pricing-how-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pricing-how-card {
  background: var(--landing-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.pricing-how-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
}
.pricing-how-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--landing-text);
}
.pricing-how-card p {
  font-size: 0.95rem;
  color: var(--landing-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.pricing-how-block h2 + .pricing-how-cards {
  margin-top: 0;
}
.pricing-how-note {
  font-size: 0.88rem !important;
  color: var(--landing-muted);
  opacity: 0.9;
}

/* Pricing — бюджет на AI */
.pricing-budget-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--landing-border);
}
.pricing-budget-block h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--landing-text);
}
.pricing-budget-list {
  margin: 12px 0 16px;
  padding-left: 24px;
  color: var(--landing-muted);
  line-height: 1.6;
}
.pricing-budget-list li {
  margin-bottom: 8px;
}
.pricing-budget-note {
  font-size: 0.9rem;
  color: var(--landing-muted);
  margin: 0;
  line-height: 1.5;
}

/* Pricing — hero + nav */
.pricing-hero {
  padding-bottom: 28px;
}
.pricing-hero .pricing-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.pricing-nav {
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
}
.pricing-nav a {
  text-decoration: none;
  color: var(--landing-muted);
  border: 1px solid var(--landing-border);
  background: rgba(255,255,255,0.03);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.pricing-nav a:hover {
  color: var(--landing-text);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

/* Pricing — тарифные кнопки и бейджи */
.pricing-plan-actions {
  margin-top: 14px;
}
.pricing-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  box-shadow: 0 4px 16px var(--landing-glow);
  transition: transform 0.15s, box-shadow 0.25s, filter 0.25s;
}
.pricing-plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--landing-glow);
  filter: brightness(1.02);
}
.pricing-plan-btn:active {
  transform: translateY(0);
}
.pricing-plan-recommended {
  position: relative;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.10);
}
.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Pricing — budget calculator */
.pricing-budget-calc {
  margin-top: 18px;
  background: var(--landing-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 18px;
}
.pricing-budget-calc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pricing-budget-calc-title {
  font-weight: 700;
  color: var(--landing-text);
}
.pricing-budget-calc-value {
  color: var(--landing-text);
  font-weight: 800;
}
.pricing-budget-range {
  width: 100%;
  margin: 14px 0 10px;
}
.pricing-budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pricing-budget-preset {
  cursor: pointer;
  border: 1px solid var(--landing-border);
  background: rgba(255,255,255,0.03);
  color: var(--landing-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.pricing-budget-preset:hover {
  color: var(--landing-text);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}
.pricing-budget-mini {
  margin-top: 12px;
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pricing-budget-mini-muted {
  opacity: 0.9;
  font-size: 0.86rem;
}
.pricing-budget-calc-actions {
  margin-top: 14px;
}
.pricing-budget-calc-actions .pricing-plan-btn {
  max-width: 360px;
}

/* Pricing — FAQ accordion */
.pricing-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-faq-item {
  background: var(--landing-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.pricing-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  color: var(--landing-text);
  font-weight: 700;
}
.pricing-faq-item summary::-webkit-details-marker { display: none; }
.pricing-faq-item summary::after {
  content: "▾";
  float: right;
  color: var(--landing-muted);
  transition: transform 0.2s;
}
.pricing-faq-item[open] summary::after {
  transform: rotate(180deg);
}
.pricing-faq-body {
  padding: 0 18px 16px;
  color: var(--landing-muted);
  line-height: 1.55;
}

/* Pricing — sticky CTA */
.pricing-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
}
.pricing-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.pricing-sticky-inner {
  pointer-events: auto;
  width: min(960px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--landing-border);
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.pricing-sticky-title {
  font-weight: 800;
  color: var(--landing-text);
}
.pricing-sticky-sub {
  font-size: 0.88rem;
  color: var(--landing-muted);
}
.pricing-sticky .pricing-plan-btn {
  width: auto;
  padding: 10px 16px;
  border-radius: 12px;
}

/* Pricing — modal */
body.pricing-modal-open {
  overflow: hidden;
}
.pricing-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}
.pricing-modal[aria-hidden="false"] {
  display: block;
}
.pricing-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.65);
  backdrop-filter: blur(2px);
}
.pricing-modal-dialog {
  position: relative;
  width: min(720px, calc(100% - 28px));
  margin: 6vh auto 0;
  background: rgba(18, 20, 28, 0.94);
  border: 1px solid var(--landing-border);
  border-radius: 18px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.pricing-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--landing-border);
  background: rgba(255,255,255,0.02);
}
.pricing-modal-title {
  font-weight: 800;
  color: var(--landing-text);
}
.pricing-modal-close {
  cursor: pointer;
  border: 1px solid var(--landing-border);
  background: rgba(255,255,255,0.03);
  color: var(--landing-muted);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}
.pricing-modal-close:hover {
  color: var(--landing-text);
  border-color: rgba(59, 130, 246, 0.45);
}
.pricing-modal-form {
  padding: 18px;
}
.pricing-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pricing-field span {
  display: block;
  font-size: 0.85rem;
  color: var(--landing-muted);
  margin-bottom: 6px;
}
.pricing-field input,
.pricing-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--landing-border);
  background: rgba(255,255,255,0.03);
  color: var(--landing-text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
.pricing-field input:focus,
.pricing-field select:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.pricing-modal-requisites {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pricing-modal-requisites-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}
.pricing-modal-grid-requisites { margin-top: 0; }
.pricing-modal-summary {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--landing-border);
  background: rgba(59, 130, 246, 0.06);
  color: var(--landing-text);
}
.pricing-modal-summary-muted {
  margin-left: 8px;
  font-size: 0.85rem;
  color: var(--landing-muted);
}
.pricing-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pricing-modal-actions .pricing-plan-btn {
  width: auto;
  padding: 10px 16px;
}
.pricing-modal-secondary {
  text-decoration: none;
  color: var(--landing-muted);
  border: 1px solid var(--landing-border);
  padding: 10px 14px;
  border-radius: 12px;
}
.pricing-modal-secondary:hover {
  color: var(--landing-text);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(255,255,255,0.03);
}
.pricing-modal-success {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}
.pricing-modal-success-title {
  font-weight: 800;
  color: #86efac;
}
.pricing-modal-success-sub {
  margin-top: 6px;
  color: var(--landing-muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .pricing-modal-grid {
    grid-template-columns: 1fr;
  }
  .pricing-badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}

.landing-cta-block {
  text-align: center;
  padding: 40px 0;
}
.landing-cta-block .landing-cta {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 4px 16px var(--landing-glow);
}
.landing-cta-block .landing-cta:hover {
  box-shadow: 0 6px 24px var(--landing-glow);
  transform: translateY(-1px);
}
.landing-cta-block .landing-cta-secondary {
  margin-left: 12px;
  background: transparent;
  color: var(--landing-muted);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
}
.landing-cta-block .landing-cta-secondary:hover {
  color: var(--landing-text);
  border-color: var(--landing-muted);
  background: rgba(255,255,255,0.03);
}

/* Footer */
.landing-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--landing-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--landing-muted);
}
.landing-footer a {
  color: var(--landing-muted);
  text-decoration: none;
}
.landing-footer a:hover {
  color: var(--landing-accent);
}

/* ===== Account dashboard (CodePen-style) — используется на /account ===== */
.account-dashboard {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  overflow: hidden;
  min-height: 600px;
}
.account-dashboard-nav {
  width: 280px;
  min-width: 280px;
  background: linear-gradient(180deg, rgba(15, 15, 30, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.account-dashboard-nav::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}
.account-dashboard-nav-header {
  padding: 0 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}
.account-dashboard-nav-header h2 { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.account-dashboard-nav-header p { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; }
.account-dashboard-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: left;
  width: 100%;
  color: rgba(255, 255, 255, 0.7);
}
.account-dashboard-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 14px;
}
.account-dashboard-tab::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
  border-radius: 0 4px 4px 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.account-dashboard-tab:hover { color: #fff; }
.account-dashboard-tab:hover::before { opacity: 0.5; }
.account-dashboard-tab.is-active { color: #fff; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.account-dashboard-tab.is-active::before { opacity: 1; }
.account-dashboard-tab.is-active::after { transform: translateY(-50%) scaleY(1); }
.account-dashboard-tab-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: all 0.4s ease;
}
.account-dashboard-tab-icon svg { width: 20px; height: 20px; stroke: rgba(255, 255, 255, 0.5); transition: all 0.4s ease; }
.account-dashboard-tab.is-active .account-dashboard-tab-icon {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.account-dashboard-tab.is-active .account-dashboard-tab-icon svg,
.account-dashboard-tab:hover .account-dashboard-tab-icon svg { stroke: #fff; }
.account-dashboard-tab-text { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; text-align: left; }
.account-dashboard-tab-title { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.4s ease; display: block; }
.account-dashboard-tab-subtitle { color: rgba(255, 255, 255, 0.35); font-size: 0.75rem; margin-top: 2px; transition: color 0.4s ease; display: block; }
.account-dashboard-tab.is-active .account-dashboard-tab-subtitle { color: rgba(255, 255, 255, 0.6); }
.account-dashboard-tab-arrow { position: relative; z-index: 1; opacity: 0; transform: translateX(-10px); transition: all 0.4s ease; }
.account-dashboard-tab-arrow svg { width: 18px; height: 18px; stroke: rgba(255, 255, 255, 0.6); }
.account-dashboard-tab.is-active .account-dashboard-tab-arrow { opacity: 1; transform: translateX(0); }
.account-dashboard-content { flex: 1; padding: 32px 40px; position: relative; min-width: 0; }
.account-dashboard-panel {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.account-dashboard-panel.is-active {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.account-dashboard-panel-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.account-dashboard-panel-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  color: #a78bfa;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.account-dashboard-panel-title { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.account-dashboard-panel-desc { color: rgba(255, 255, 255, 0.5); font-size: 1rem; line-height: 1.6; max-width: 600px; }
.account-dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.account-dashboard-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: all 0.4s ease;
}
.account-dashboard-stat:hover { border-color: rgba(99, 102, 241, 0.4); background: rgba(99, 102, 241, 0.08); }
.account-dashboard-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.account-dashboard-stat-label { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.account-dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}
.account-dashboard-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.account-dashboard-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.account-dashboard-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-radius: 10px;
}
.account-dashboard-card-title { color: #fff; font-size: 1rem; font-weight: 600; }
.account-dashboard-features { list-style: none; padding: 0; margin: 0; }
.account-dashboard-features li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; padding: 6px 0; }
.account-dashboard-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border-radius: 50%;
  flex-shrink: 0;
}
.account-dashboard-progress { margin-top: 16px; }
.account-dashboard-progress-label { display: flex; justify-content: space-between; color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; margin-bottom: 6px; }
.account-dashboard-progress-bar { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; }
.account-dashboard-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%); border-radius: 10px; transition: width 1s ease; }
.account-dashboard-subscription-warning { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.account-dashboard-subscription-warning .account-dashboard-card-title { color: #fbbf24; }

.account-subscription-period { margin-top: 4px; font-size: 0.9rem; }
.account-subscription-breakdown { margin-top: 8px; }
.account-subscription-rows { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.account-subscription-rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.account-subscription-rows .row strong { color: #fff; }
.account-table-compact { margin-top: 12px; font-size: 0.88rem; }
.account-table-compact th, .account-table-compact td { padding: 8px 10px; }
.account-subscription-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 1rem; font-weight: 700; color: #fff; display: flex; justify-content: space-between; gap: 12px; }
.account-profiles-with-prices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.account-profiles-with-prices li .profile-price { font-weight: 700; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.account-ai-tokens { margin-top: 12px; }
.account-ai-tokens a { color: #818cf8; text-decoration: none; }
.account-ai-tokens a:hover { text-decoration: underline; }

/* ——— Тариф и подписка: карточки плана + чипы профилей ——— */
.account-subscription-tariff-card { overflow: hidden; }
.tariff-card-head { margin-bottom: 20px; }
.tariff-card-title { margin: 0 0 6px 0; font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.tariff-card-desc { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); line-height: 1.45; }
.tariff-current-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: rgba(255, 255, 255, 0.95);
}
.tariff-section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.tariff-plan-choose { margin-bottom: 22px; }
.tariff-plan-radio { position: absolute; opacity: 0; pointer-events: none; }
.tariff-plan-select-sync { position: absolute; left: -9999px; }
.tariff-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tariff-plan-cards-two { grid-template-columns: repeat(2, 1fr); }
.tariff-plan-price-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tariff-plan-price-old { font-size: 0.9rem; color: rgba(255, 255, 255, 0.4); text-decoration: line-through; }
.tariff-plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tariff-plan-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
}
.tariff-plan-radio:checked + .tariff-plan-card,
.tariff-plan-radio:focus-visible + .tariff-plan-card {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.tariff-plan-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.tariff-plan-price { font-size: 1.05rem; font-weight: 800; color: rgba(255, 255, 255, 0.95); }
.tariff-plan-period { font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.tariff-plan-hint { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); margin-top: 6px; }

.tariff-profiles-wrap { margin-bottom: 18px; }
.tariff-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tariff-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.85rem;
}
.tariff-chip:hover { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06); }
.tariff-chip input { width: auto; margin: 0; accent-color: #6366f1; }
.tariff-chip-name { color: rgba(255, 255, 255, 0.8); font-weight: 600; }
.tariff-chip-price { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-left: 2px; }
.tariff-chip:has(input:checked) {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
}
.tariff-chip:has(input:checked) .tariff-chip-name { color: #fff; }

.tariff-users-note {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.tariff-users-note strong { color: rgba(255, 255, 255, 0.95); }
.tariff-limits-row {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}
.tariff-limit { display: flex; align-items: baseline; gap: 8px; }
.tariff-limit-label { color: rgba(255, 255, 255, 0.5); }
.tariff-limit-value { font-weight: 700; color: rgba(255, 255, 255, 0.9); }

.tariff-card-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.tariff-save-btn { min-width: 140px; }
.tariff-save-status { font-size: 0.85rem; }
.tariff-save-status.ok { color: #86efac; }
.tariff-save-status.err { color: #f87171; }

@media (max-width: 640px) {
  .tariff-plan-cards { grid-template-columns: 1fr; }
}
.account-subscription-users-card .account-subscription-users-list { margin-top: 10px; max-height: 240px; overflow-y: auto; }
.account-subscription-users-list .account-user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); margin-bottom: 6px; font-size: 0.9rem; }
.account-subscription-users-list .account-user-row .user-info { color: rgba(255,255,255,0.9); }
.account-subscription-users-list .account-user-row .user-role { font-size: 0.82rem; color: var(--landing-muted); }
.account-subscription-add-user { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.account-subscription-add-user-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.account-subscription-add-user-fields .account-field { margin-top: 0; min-width: 120px; }
.account-subscription-add-user .account-btn { flex-shrink: 0; }
.account-btn-secondary-small { font-size: 0.8rem; padding: 4px 10px; border-radius: 8px; background: transparent; border: 1px solid var(--landing-border); color: var(--landing-muted); cursor: pointer; }
.account-btn-secondary-small:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.5); }
.account-user-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.account-user-actions select { min-width: 90px; padding: 4px 8px; font-size: 0.85rem; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--landing-border); color: var(--landing-text); }

/* ——— Читаемость выпадающих списков (опции не сливаются с фоном) ——— */
.account-dashboard select,
.account-field select,
.members-invite-form select,
.pricing-field select,
#authCard select {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.15);
}
.account-dashboard select option,
.account-field select option,
.members-invite-form select option,
.pricing-field select option,
#authCard select option {
  background-color: #1e293b;
  color: #e2e8f0;
}

/* ——— Вкладка Пользователи: приглашения ——— */
.members-invite-card .account-dashboard-card-header { margin-bottom: 10px; }
.members-invite-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.members-invite-form .account-field { margin-top: 0; min-width: 160px; }
.members-invite-form .account-btn { flex-shrink: 0; }
.members-invite-status { margin-top: 10px; font-size: 0.88rem; min-height: 1.4em; }
.members-invite-status.ok { color: #86efac; }
.members-invite-status.err { color: #f87171; }
.members-pending-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.members-pending-list { max-height: 180px; margin-top: 8px; }
.members-pending-list .account-user-row { margin-bottom: 6px; }

@media (max-width: 900px) {
  .account-dashboard { flex-direction: column; min-height: auto; }
  .account-dashboard-nav { width: 100%; min-width: auto; flex-direction: row; overflow-x: auto; padding: 12px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .account-dashboard-nav-header { display: none; }
  .account-dashboard-tab { flex-direction: column; min-width: 100px; padding: 12px; text-align: center; }
  .account-dashboard-tab-subtitle, .account-dashboard-tab-arrow { display: none; }
  .account-dashboard-tab::after { top: auto; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 50%; height: 3px; border-radius: 4px 4px 0 0; }
  .account-dashboard-tab.is-active::after { transform: translateX(-50%) scaleX(1); }
  .account-dashboard-content { padding: 24px; }
  .account-dashboard-panel.is-active { display: block; }
  .account-dashboard-stats { grid-template-columns: 1fr; }
}
