/* ============================================================
   MAYTRAS Premium Home — hafif görsel katman (v2)
   İlke: unified.css'in kart yerleşimine ve ikonlarına ASLA dokunma.
   Yalnızca: hero aurora, hover tilt, kompakt durum bandı, grup aksanları.
   ============================================================ */

/* ---------- Hero: animasyonlu aurora arka plan ---------- */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.dashboard-hero::before,
.dashboard-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.dashboard-hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle at 30% 30%, #14b8a6 0%, #6366f1 45%, transparent 70%);
  animation: pm-aurora-a 14s ease-in-out infinite alternate;
}

.dashboard-hero::after {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: 12%;
  background: radial-gradient(circle at 60% 40%, #06b6d4 0%, #0d9488 50%, transparent 72%);
  animation: pm-aurora-b 18s ease-in-out infinite alternate;
}

@keyframes pm-aurora-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 40px) scale(1.15); }
  100% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes pm-aurora-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(70px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 20px) scale(1.05); }
}

/* ---------- Modül kartları: yalnızca hover'da 3D tilt ----------
   Base yerleşim unified.css'te kalır; burada sadece hover transform'u
   zenginleştirilir (unified.css: translateY(-2px) → tilt + lift). */
.modules-launcher-grid .module-launcher-btn {
  --pm-rx: 0deg;
  --pm-ry: 0deg;
}

.modules-launcher-grid .module-launcher-btn:hover {
  transform: perspective(900px) rotateX(var(--pm-rx)) rotateY(var(--pm-ry)) translateY(-4px);
}

/* ---------- Kompakt durum bandı ---------- */
.pm-statusbar {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0f172a 0%, #134e4a 85%);
  color: #e2e8f0;
  font-size: 0.8rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.pm-statusbar .pm-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pm-statusbar .pm-sep {
  width: 1px;
  height: 14px;
  background: rgba(148, 163, 184, 0.35);
}

.pm-statusbar .pm-label {
  color: #94a3b8;
  font-weight: 500;
}

.pm-statusbar .pm-value {
  color: #f8fafc;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pm-statusbar .pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pm-heartbeat 2s ease-out infinite;
}

.pm-statusbar .pm-dot.pm-degraded { background: #f59e0b; animation: none; }
.pm-statusbar .pm-dot.pm-down { background: #ef4444; animation: none; }

@keyframes pm-heartbeat {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pm-statusbar .pm-spark {
  width: 96px;
  height: 26px;
  display: inline-block;
}

/* ---------- Grup başlıkları: renkli aksan çubuğu ---------- */
.launcher-group-head {
  position: relative;
  padding-left: 14px;
}

.launcher-group-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #14b8a6, #6366f1);
}

.launcher-group-head--business::before {
  background: linear-gradient(180deg, #f59e0b, #f97316);
}

.launcher-group-head--support::before {
  background: linear-gradient(180deg, #10b981, #06b6d4);
}

/* ---------- Koyu tema ---------- */
html[data-theme='dark'] .pm-statusbar {
  background: linear-gradient(120deg, #020617 0%, #172554 85%);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.55);
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .dashboard-hero::before,
  .dashboard-hero::after,
  .pm-statusbar .pm-dot {
    animation: none !important;
  }
  .modules-launcher-grid .module-launcher-btn:hover {
    transform: translateY(-2px);
  }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .pm-statusbar {
    gap: 10px;
    padding: 7px 12px;
  }
  .pm-statusbar .pm-spark { display: none; }
}

/* ============================================================
   Premium UI S2 — North Star strip + GTOS badge
   ============================================================ */

.mvp-badge {
  display: none !important;
}

.gtos-badge {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #0f766e;
}

html[data-theme='dark'] .gtos-badge {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(99, 102, 241, 0.12));
}

.gtos-north-star {
  margin: 0 0 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 253, 250, 0.88) 55%, rgba(238, 242, 255, 0.85) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  position: relative;
}

.gtos-north-star::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(20, 184, 166, 0.12), transparent 60%);
  pointer-events: none;
}

.gtos-north-star__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  align-items: center;
}

.gtos-north-star__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 0.35rem;
}

.gtos-north-star__title {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.gtos-north-star__sub {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 58ch;
  margin: 0;
}

.gtos-north-star__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.gtos-north-star__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gtos-north-star__trust {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.45rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

.gtos-north-star__trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.gtos-north-star__trust i {
  color: #0d9488;
  width: 1rem;
  text-align: center;
}

html[data-theme='dark'] .gtos-north-star {
  border-color: rgba(71, 85, 105, 0.45);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(30, 27, 75, 0.55) 100%);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.45);
}

html[data-theme='dark'] .gtos-north-star__eyebrow {
  color: #5eead4;
}

html[data-theme='dark'] .gtos-north-star__title {
  color: #f1f5f9;
}

html[data-theme='dark'] .gtos-north-star__sub {
  color: #94a3b8;
}

html[data-theme='dark'] .gtos-north-star__trust {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(71, 85, 105, 0.4);
}

html[data-theme='dark'] .gtos-north-star__trust li {
  color: #cbd5e1;
}

#maytras-app.module-workspace-is-open .gtos-north-star {
  display: none;
}

@media (max-width: 960px) {
  .gtos-north-star__inner {
    grid-template-columns: 1fr;
  }
  .gtos-north-star__trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gtos-north-star__trust {
    grid-template-columns: 1fr;
  }
}

/* —— Premium UI S3: sidebar CC hint + secondary module directory —— */
.sidebar-cc-hint {
  margin: 0.35rem 0.65rem 0.55rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #64748b;
  border-radius: 0.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.65);
}

html[data-theme='dark'] .sidebar-cc-hint {
  color: #94a3b8;
  border-color: rgba(71, 85, 105, 0.55);
  background: rgba(15, 23, 42, 0.45);
}

.modules-directory {
  margin: 0 0 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.modules-directory-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #334155;
}

.modules-directory-summary::-webkit-details-marker {
  display: none;
}

.modules-directory-summary::before {
  content: '▸';
  margin-right: 0.35rem;
  color: #0d9488;
  transition: transform 0.2s ease;
}

.modules-directory[open] .modules-directory-summary::before {
  transform: rotate(90deg);
}

.modules-directory-title {
  font-size: 0.88rem;
}

.modules-directory-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.modules-directory .modules-launcher {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  box-shadow: none;
}

html[data-theme='dark'] .modules-directory {
  border-color: rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.35);
}

html[data-theme='dark'] .modules-directory-summary {
  color: #e2e8f0;
}

html[data-theme='dark'] .modules-directory-hint {
  color: #94a3b8;
}

.gtos-north-star__cta--ghost {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: #475569;
}

html[data-theme='dark'] .gtos-north-star__cta--ghost {
  border-color: rgba(71, 85, 105, 0.55);
  color: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
  .modules-directory-summary::before {
    transition: none;
  }
}

/* S2: CC aktifken legacy hero / MVP landing demo yüzeyinden gizlenir */
html[data-gtos-cc='on'] #dashboard-overview,
html[data-gtos-cc='on'] #gtos-north-star {
  display: none !important;
}

/* S4: Launcher discovery + ops KPI strip */
.modules-launcher-discovery {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.gtos-launcher-ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.55rem;
  background: rgba(248, 250, 252, 0.65);
}

.gtos-launcher-ops-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.gtos-launcher-ops-pill span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.gtos-launcher-ops-pill strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modules-launcher-grid .launcher-benefit {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  line-height: 1.25;
  color: #64748b;
  font-weight: 400;
  text-align: left;
  pointer-events: none;
}

html[data-theme='dark'] .modules-launcher-discovery {
  color: #94a3b8;
}

html[data-theme='dark'] .gtos-launcher-ops-strip {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(71, 85, 105, 0.45);
}

html[data-theme='dark'] .gtos-launcher-ops-pill span {
  color: #94a3b8;
}

html[data-theme='dark'] .gtos-launcher-ops-pill strong {
  color: #e2e8f0;
}

html[data-theme='dark'] .modules-launcher-grid .launcher-benefit {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .gtos-launcher-ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gtos-launcher-ops-strip {
    grid-template-columns: 1fr;
  }
  .modules-launcher-grid .launcher-benefit {
    display: none;
  }
}

/* S5: Premium billing surface */
html[data-billing-open='1'] {
  overflow: hidden;
}

html[data-billing-open='1'][data-billing-fullscreen='1'] {
  overflow: hidden;
}

html[data-billing-open='1'][data-billing-fullscreen='1'] body {
  overflow: hidden;
}

html[data-billing-fullscreen='1'] .maytras-landing-surface.detail-overlay.billing-gate-shell {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  justify-content: flex-start;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

/* unified.css #billing-overlay .detail-panel width cap — fullscreen override */
html[data-billing-fullscreen='1'] #billing-overlay {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 !important;
}

html[data-billing-fullscreen='1'] #billing-overlay.billing-overlay--premium {
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
}

html[data-billing-fullscreen='1'] #billing-overlay .billing-gate-shell__frame,
html[data-billing-fullscreen='1'] #billing-overlay .detail-panel.billing-panel--premium,
html[data-billing-fullscreen='1'] #billing-overlay .detail-panel {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 !important;
  flex: 1 0 auto;
  border-radius: 0 !important;
  overflow: visible !important;
}

html[data-billing-open='1'] #billing-overlay:not(.hidden) {
  display: flex !important;
}

html[data-billing-fullscreen='1'] .billing-gate-nav {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.billing-gate-shell {
  z-index: 12500;
}

html[data-billing-fullscreen='1'] .billing-gate-shell {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  background: var(--maytras-landing-bg, #070a12);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(207, 175, 107, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(37, 99, 235, 0.1), transparent 55%);
}

html[data-billing-fullscreen='1'] .billing-gate-shell__frame,
html[data-billing-fullscreen='1'] .billing-gate-shell__frame.billing-panel--premium,
html[data-billing-fullscreen='1'] .billing-panel--premium.billing-gate-shell__frame {
  width: 100%;
  max-width: none;
  max-height: none;
  min-height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--maytras-landing-text, #f4f6fb);
  overflow: visible;
  padding-bottom: 2.5rem;
}

.billing-gate-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
}

.billing-gate-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-left: auto;
}

.billing-gate-nav__user {
  max-width: min(240px, 36vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maytras-landing-text, #f4f6fb);
}

.billing-gate-nav__logout {
  border: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.28));
  background: rgba(255, 255, 255, 0.04);
  color: var(--maytras-landing-text-muted, #8b95ab);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.billing-gate-nav__logout:hover {
  border-color: rgba(207, 175, 107, 0.45);
  color: var(--maytras-landing-text, #f4f6fb);
  background: rgba(207, 175, 107, 0.1);
}

.billing-gate-nav__brand {
  font-family: Montserrat, 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--maytras-landing-gradient-gold, linear-gradient(135deg, #e8cf88 0%, #b8934a 45%, #8a6d3c 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.billing-gate-nav__secure {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--maytras-landing-text-muted, #8b95ab);
}

.billing-gate-nav__secure i {
  color: var(--maytras-landing-gold, #cfaf6b);
}

.billing-checkout-alert {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.billing-interval-cap-note {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fcd34d;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(120, 53, 15, 0.35);
}

.billing-interval-cap-note--info {
  color: var(--maytras-landing-text-muted, #8b95ab);
  border-color: var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
  background: var(--maytras-landing-glass, rgba(255, 255, 255, 0.035));
}

.billing-onboarding-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--maytras-landing-text-muted, #8b95ab);
}

.billing-invoice-profile {
  margin: 1.25rem 0 0;
  padding: 0;
  border-radius: 0.85rem;
  border: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
  background: var(--maytras-landing-glass, rgba(255, 255, 255, 0.035));
  overflow: hidden;
}

.billing-invoice-profile__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.billing-invoice-profile__toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.billing-invoice-profile__toggle-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--maytras-landing-text, #f4f6fb);
}

.billing-invoice-profile__summary {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--maytras-landing-text-muted, #8b95ab);
}

.billing-invoice-profile__summary.is-incomplete {
  color: #fcd34d;
}

.billing-invoice-profile__summary.is-complete {
  color: #6ee7b7;
}

.billing-invoice-profile__chevron {
  flex-shrink: 0;
  color: var(--maytras-landing-gold, #cfaf6b);
  transition: transform 0.2s ease;
}

.billing-invoice-profile:not(.is-collapsed) .billing-invoice-profile__chevron {
  transform: rotate(180deg);
}

.billing-invoice-profile__body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.12));
}

.billing-invoice-profile__head h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--maytras-landing-text, #f4f6fb);
}

.billing-invoice-profile__lead {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--maytras-landing-text-muted, #8b95ab);
}

.billing-invoice-profile__type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.billing-invoice-profile__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--maytras-landing-text, #f4f6fb);
}

.billing-invoice-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.billing-invoice-profile__grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: var(--maytras-landing-text-muted, #8b95ab);
}

.billing-invoice-profile__grid label.billing-invoice-profile__full {
  grid-column: 1 / -1;
}

.billing-invoice-profile__grid input,
.billing-invoice-profile__grid select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
  background: rgba(7, 10, 18, 0.55);
  color: var(--maytras-landing-text, #f4f6fb);
}

.billing-invoice-profile__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.billing-invoice-profile__status {
  font-size: 0.78rem;
  color: var(--maytras-landing-gold, #cfaf6b);
}

.billing-plan-vat-note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--maytras-landing-text-muted, #8b95ab);
}

@media (max-width: 760px) {
  .billing-invoice-profile__grid {
    grid-template-columns: 1fr;
  }
}

.billing-fx-note {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--maytras-landing-text-muted, #8b95ab);
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
  background: var(--maytras-landing-glass, rgba(255, 255, 255, 0.035));
}

.billing-checkout-alert strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.billing-checkout-alert p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.billing-interval-cap-note {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #92400e;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.85);
}

.billing-fx-note {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #475569;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.95);
}

.billing-interval-btn.is-disabled,
.billing-interval-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html[data-billing-fullscreen='1'] .billing-hero-actions--onboarding {
  justify-content: center;
  border-bottom: 0;
  padding-bottom: 0.35rem;
}

html[data-billing-fullscreen='1'] .billing-hero-actions--onboarding .detail-btn.secondary,
html[data-billing-fullscreen='1'] .billing-hero-actions--onboarding .billing-hero-actions__tertiary {
  display: none;
}

html[data-billing-fullscreen='1'] .billing-trust-strip--compact {
  display: flex;
  flex-wrap: wrap;
  overflow-x: visible;
  gap: 0.45rem;
  padding-bottom: 0;
  margin-bottom: 1rem;
}

html[data-billing-fullscreen='1'] .billing-trust-strip--compact li {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.7rem;
  background: var(--maytras-landing-glass, rgba(255, 255, 255, 0.035));
  border-color: var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
  color: var(--maytras-landing-text-muted, #8b95ab);
}

html[data-billing-fullscreen='1'] .billing-trust-strip--compact i {
  color: var(--maytras-landing-gold, #cfaf6b);
}

html[data-billing-fullscreen='1'] .billing-panel__eyebrow {
  color: var(--maytras-landing-gold, #cfaf6b);
}

html[data-billing-fullscreen='1'] .billing-panel__headcopy h3 {
  color: var(--maytras-landing-text, #f4f6fb);
  font-family: Montserrat, 'Space Grotesk', sans-serif;
}

html[data-billing-fullscreen='1'] .billing-panel__sub {
  color: var(--maytras-landing-text-muted, #8b95ab);
}

html[data-billing-fullscreen='1'] .billing-interval-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
}

html[data-billing-fullscreen='1'] .billing-interval-btn {
  color: var(--maytras-landing-text-muted, #8b95ab);
}

html[data-billing-fullscreen='1'] .billing-interval-btn.is-active {
  background: rgba(207, 175, 107, 0.18);
  color: var(--maytras-landing-text, #f4f6fb);
  box-shadow: inset 0 0 0 1px rgba(207, 175, 107, 0.35);
}

.billing-payment-method-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.billing-payment-method-card {
  border: 1px solid rgba(207, 175, 107, 0.18);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  background: rgba(10, 14, 26, 0.55);
  opacity: 0.72;
  transition: border-color 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.billing-payment-method-card.is-active {
  opacity: 1;
  border-color: rgba(207, 175, 107, 0.42);
  box-shadow: 0 0 0 1px rgba(207, 175, 107, 0.12);
}

.billing-payment-method-card__eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(207, 175, 107, 0.88);
  margin-bottom: 0.35rem;
}

.billing-payment-method-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.billing-payment-method-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(244, 246, 251, 0.78);
}

.billing-bank-transfer-panel {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(207, 175, 107, 0.22);
  border-radius: 1rem;
  background: rgba(8, 12, 22, 0.82);
}

.billing-bank-transfer-panel__head h4 {
  margin: 0 0 0.35rem;
}

.billing-bank-transfer-panel__lead {
  margin: 0 0 1rem;
  color: rgba(244, 246, 251, 0.78);
}

.billing-bank-transfer-summary {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.billing-bank-transfer-summary__row--ref {
  align-items: center;
}

.billing-bank-transfer-summary__ref {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.billing-bank-transfer-required,
.billing-bank-transfer-optional {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.billing-bank-transfer-required {
  color: #fbbf24;
}

.billing-bank-transfer-optional {
  color: rgba(148, 163, 184, 0.85);
}

.billing-bank-transfer-receipt-input {
  width: 100%;
  margin-bottom: 0.35rem;
}

.billing-bank-transfer-receipt-hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.9);
}

.billing-bank-transfer-notify.is-submitted input,
.billing-bank-transfer-notify.is-submitted button {
  opacity: 0.65;
  pointer-events: none;
}

.billing-bank-transfer-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.billing-bank-transfer-accounts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.billing-bank-transfer-account {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
}

.billing-bank-transfer-account__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.billing-bank-transfer-account__currency {
  display: inline-flex;
  min-width: 2.5rem;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(207, 175, 107, 0.16);
  color: #f4f6fb;
  font-size: 0.75rem;
  font-weight: 700;
}

.billing-bank-transfer-account__iban {
  display: block;
  font-size: 0.92rem;
  word-break: break-all;
}

.billing-bank-transfer-notify label {
  display: block;
  margin-bottom: 0.35rem;
}

.billing-bank-transfer-notify input {
  width: 100%;
  margin-bottom: 0.75rem;
}

.billing-bank-transfer-notify__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.billing-bank-transfer-status {
  margin: 0.75rem 0 0;
  color: rgba(244, 246, 251, 0.82);
}

@media (max-width: 760px) {
  .billing-payment-method-panel {
    grid-template-columns: 1fr;
  }
}

html[data-billing-fullscreen='1'] .billing-plan-card {
  background: var(--maytras-landing-glass, rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(20px);
  border: 2px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.16));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  color: var(--maytras-landing-text, #f4f6fb);
}

html[data-billing-fullscreen='1'] .billing-plan-card--featured {
  border-color: var(--maytras-landing-gold, #cfaf6b);
  box-shadow: 0 12px 34px rgba(255, 215, 0, 0.18);
}

html[data-billing-fullscreen='1'] .billing-plan-card .price {
  font-family: Montserrat, 'Space Grotesk', sans-serif;
  background: var(--maytras-landing-gradient-gold, linear-gradient(135deg, #e8cf88 0%, #b8934a 45%, #8a6d3c 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-billing-fullscreen='1'] .billing-plan-card .price-suffix,
html[data-billing-fullscreen='1'] .billing-plan-desc,
html[data-billing-fullscreen='1'] .billing-plan-card ul {
  color: var(--maytras-landing-text-muted, #8b95ab);
}

html[data-billing-fullscreen='1'] .billing-plan-badge {
  background: var(--maytras-landing-gradient-gold, linear-gradient(135deg, #e8cf88 0%, #b8934a 45%, #8a6d3c 100%));
  color: #070a12;
}

html[data-billing-fullscreen='1'] .billing-plan-cta--self,
html[data-billing-fullscreen='1'] .billing-plan-cta--sales,
html[data-billing-fullscreen='1'] .billing-hero-actions .btn-primary {
  background: var(--maytras-landing-action, #2563eb);
  border-color: var(--maytras-landing-action, #2563eb);
  color: #fff;
}

html[data-billing-fullscreen='1'] .billing-hero-actions .btn-primary:hover,
html[data-billing-fullscreen='1'] .billing-plan-cta--self:hover,
html[data-billing-fullscreen='1'] .billing-plan-cta--sales:hover {
  background: var(--maytras-landing-action-hover, #1e40af);
  border-color: var(--maytras-landing-action-hover, #1e40af);
}

html[data-billing-fullscreen='1'] .billing-plan-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(207, 175, 107, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--maytras-landing-glass-border, rgba(207, 175, 107, 0.12));
}

html[data-billing-fullscreen='1'] .billing-failure-actions {
  border-color: rgba(207, 175, 107, 0.28);
  background: rgba(120, 53, 15, 0.22);
}

html[data-billing-fullscreen='1'] .billing-failure-note {
  color: #fcd34d;
}

html[data-billing-fullscreen='1'] .billing-current-plan--onboarding {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-billing-fullscreen='1'] .billing-panel__header {
  text-align: center;
  justify-content: center;
  border-bottom: 0;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 0;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

html[data-billing-fullscreen='1'] .billing-panel__headcopy {
  max-width: 52rem;
  margin: 0 auto;
}

html[data-billing-fullscreen='1'] .billing-panel__header .detail-close {
  display: none;
}

html[data-billing-fullscreen='1'] .billing-panel__sub {
  font-size: 0.95rem;
}

html[data-billing-fullscreen='1'] .billing-hero-actions {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
  border-bottom: 0;
}

html[data-billing-fullscreen='1'] .billing-detail-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 3vw, 2.5rem) 3rem;
  box-sizing: border-box;
  overflow: visible;
  max-height: none;
}

html[data-billing-fullscreen='1'] .billing-invoice-profile {
  margin-top: 1.5rem;
}

html[data-billing-fullscreen='1'] .billing-pricing-grid {
  margin-top: 0.35rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1280px) {
  html[data-billing-fullscreen='1'] .billing-pricing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.billing-overlay--premium {
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
}

.billing-panel--premium {
  width: min(1180px, 96vw);
  max-height: min(92vh, 980px);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.billing-panel__header {
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.billing-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d9488;
}

.billing-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.billing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.billing-hero-actions__tertiary {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #0d9488;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.35rem 0.25rem;
}

.billing-hero-actions__tertiary:hover {
  color: #0f766e;
}

.billing-panel--premium .billing-detail-content {
  overflow: auto;
  padding: 0 1.25rem 1.25rem;
}

.billing-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.billing-trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(248, 250, 252, 0.8);
}

.billing-trust-strip i {
  color: #0d9488;
}

.billing-plans-skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.billing-plan-skeleton {
  height: 220px;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0.12));
  background-size: 200% 100%;
  animation: billing-skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes billing-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.billing-failure-actions {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  background: rgba(255, 251, 235, 0.65);
}

.billing-failure-note {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  color: #92400e;
}

.billing-failure-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.billing-plan-cta--sales {
  width: 100%;
}

html[data-theme='dark'] .billing-panel--premium {
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .billing-panel__sub {
  color: #94a3b8;
}

html[data-theme='dark'] .billing-hero-actions__tertiary {
  color: #5eead4;
}

html[data-theme='dark'] .billing-trust-strip li {
  color: #cbd5e1;
  border-color: rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.45);
}

html[data-theme='dark'] .billing-failure-actions {
  background: rgba(120, 53, 15, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
}

html[data-theme='dark'] .billing-failure-note {
  color: #fcd34d;
}

@media (max-width: 960px) {
  .billing-trust-strip,
  .billing-plans-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .billing-trust-strip,
  .billing-plans-skeleton {
    grid-template-columns: 1fr;
  }
  .billing-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .billing-hero-actions__tertiary {
    margin-left: 0;
    text-align: center;
  }
  .billing-overlay--premium {
    padding: 0.35rem;
  }
  .billing-panel--premium {
    max-height: 96vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .billing-plan-skeleton {
    animation: none;
  }
}

/* —— Premium UI S4: sidebar collapse + North Star positioning —— */
.sidebar-secondary-access {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0.55rem 0.5rem;
}

.sidebar-secondary-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.38rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.8);
  color: #334155;
  cursor: pointer;
}

.sidebar-secondary-btn:hover,
.sidebar-secondary-btn:focus-visible {
  border-color: #0d9488;
  outline: none;
}

.sidebar-modules-access {
  margin: 0 0.45rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.sidebar-modules-access-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #475569;
}

.sidebar-modules-access-summary::-webkit-details-marker {
  display: none;
}

.sidebar-modules-access-title {
  font-size: 0.78rem;
}

.sidebar-modules-access-hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
}

html[data-gtos-s4='on'] #sidebar-modules-access.is-collapsed .sidebar-nav-accordion {
  max-height: 0;
  overflow: hidden;
}

.gtos-north-star--positioning .gtos-north-star__actions {
  display: none;
}

.gtos-north-star__positioning {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 52ch;
}

html[data-theme='dark'] .sidebar-secondary-btn {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(71, 85, 105, 0.5);
  color: #cbd5e1;
}

html[data-theme='dark'] .sidebar-modules-access {
  border-color: rgba(71, 85, 105, 0.5);
}

html[data-theme='dark'] .sidebar-modules-access-summary {
  color: #94a3b8;
}

html[data-theme='dark'] .gtos-north-star__positioning {
  color: #94a3b8;
}

@media (max-width: 720px) {
  .sidebar-secondary-access {
    flex-direction: column;
  }
}

/* —— Premium UI S6: auth + onboarding trust entry —— */
.auth-overlay--premium {
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.auth-panel--premium {
  width: min(100%, 480px);
  max-height: 94vh;
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  padding: 1.15rem 1.25rem 1rem;
}

.auth-panel__header {
  margin-bottom: 0.85rem;
}

.auth-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d9488;
}

.auth-panel__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.auth-panel__positioning {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.auth-billing-context {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(240, 253, 250, 0.75);
}

.auth-billing-context__text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f766e;
}

.auth-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.auth-trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.85);
  font-size: 0.68rem;
  color: #475569;
}

.auth-trust-strip li i {
  color: #0d9488;
  font-size: 0.72rem;
}

.auth-social--premium {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.auth-social-btn__badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-social-btn--disabled,
.auth-social-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-social-divider--premium {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.75rem;
  font-size: 0.72rem;
  color: #64748b;
}

.auth-social-divider--premium::before,
.auth-social-divider--premium::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

.auth-body--premium .auth-switch {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.auth-body--premium .form-hint {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
}

.auth-demo-block {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.auth-demo-btn {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(240, 253, 250, 0.55);
  cursor: pointer;
}

.auth-demo-btn__title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f766e;
}

.auth-demo-btn__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
}

.auth-footer--premium {
  margin-top: 0.65rem;
  min-height: 1.1rem;
  font-size: 0.78rem;
  color: #b45309;
}

html[data-theme='dark'] .auth-panel--premium {
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .auth-panel__subtitle {
  color: #e2e8f0;
}

html[data-theme='dark'] .auth-panel__positioning,
html[data-theme='dark'] .auth-body--premium .form-hint,
html[data-theme='dark'] .auth-demo-btn__desc {
  color: #94a3b8;
}

html[data-theme='dark'] .auth-trust-strip li {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(71, 85, 105, 0.45);
  color: #cbd5e1;
}

html[data-theme='dark'] .auth-billing-context {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(45, 212, 191, 0.25);
}

html[data-theme='dark'] .auth-billing-context__text {
  color: #5eead4;
}

html[data-theme='dark'] .auth-social-btn {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(71, 85, 105, 0.55);
  color: #e2e8f0;
}

html[data-theme='dark'] .auth-demo-btn {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(45, 212, 191, 0.25);
}

html[data-theme='dark'] .auth-demo-btn__title {
  color: #5eead4;
}

@media (max-width: 560px) {
  .auth-trust-strip,
  .account-trust-strip {
    grid-template-columns: 1fr;
  }
  .auth-overlay--premium {
    padding: 0.35rem;
  }
  .auth-panel--premium {
    max-height: 96vh;
  }
  .account-overlay--premium {
    padding: 0.35rem;
  }
  .account-panel--premium {
    max-height: 96vh;
  }
  .account-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .account-hero-actions__tertiary {
    margin-left: 0;
    text-align: center;
  }
}

/* —— Premium UI S6: account / access trust surface —— */
.account-overlay--premium {
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
}

.account-panel--premium {
  width: min(920px, 96vw);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.account-panel__header {
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.account-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d9488;
}

.account-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}

.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.account-hero-actions__tertiary {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #0d9488;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.35rem 0.25rem;
}

.account-funnel-note {
  margin: 0.5rem 1.25rem 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.78rem;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.account-detail-content {
  overflow: auto;
  padding: 0 1.25rem 1.25rem;
}

.account-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.account-trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(248, 250, 252, 0.8);
}

.account-trust-strip i {
  color: #0d9488;
}

.account-lead--premium {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
}

.account-sso-readiness {
  margin: 0 0 0.85rem;
}

.account-sso-readiness h4 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
}

.account-sso-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.account-sso-badge {
  padding: 0.6rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
}

.account-sso-badge--disabled {
  opacity: 0.82;
}

.account-sso-badge--live {
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(240, 253, 250, 0.75);
}

.account-sso-badge__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.account-sso-badge__state {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #64748b;
}

.account-connections-section h4 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
}

html[data-theme='dark'] .account-panel--premium {
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .account-panel__sub,
html[data-theme='dark'] .account-lead--premium {
  color: #94a3b8;
}

html[data-theme='dark'] .account-trust-strip li,
html[data-theme='dark'] .account-sso-badge {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(71, 85, 105, 0.45);
  color: #cbd5e1;
}

html[data-theme='dark'] .account-sso-badge__label {
  color: #e2e8f0;
}

html[data-theme='dark'] .account-hero-actions__tertiary {
  color: #5eead4;
}

@media (max-width: 720px) {
  .account-sso-badges,
  .account-trust-strip {
    grid-template-columns: 1fr;
  }
}

/* —— Premium UI S7: demo seed banner + copilot note —— */
.gtos-demo-seed-banner {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(13, 148, 136, 0.45);
  background: rgba(240, 253, 250, 0.75);
}

.gtos-demo-seed-banner__inner,
.gtos-demo-seed-banner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.gtos-demo-seed-banner p,
.gtos-demo-seed-banner__note {
  margin: 0.35rem 0 0;
  width: 100%;
  font-size: 0.76rem;
  color: #64748b;
}

.gtos-demo-seed-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.gtos-demo-seed-badge--inline {
  margin-right: 0.35rem;
}

.ai-copilot-demo-note {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  color: #64748b;
  background: rgba(248, 250, 252, 0.85);
  border: 1px dashed rgba(148, 163, 184, 0.35);
}

html[data-theme='dark'] .gtos-demo-seed-banner {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(45, 212, 191, 0.25);
}

html[data-theme='dark'] .gtos-demo-seed-badge {
  background: rgba(13, 148, 136, 0.18);
  color: #5eead4;
}

html[data-theme='dark'] .ai-copilot-demo-note {
  background: rgba(15, 23, 42, 0.45);
  color: #94a3b8;
}

.ai-copilot-human-decides {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
  border-left: 3px solid rgba(13, 148, 136, 0.45);
}

.ai-copilot-response {
  margin-top: 0.65rem;
  max-height: min(62vh, 520px);
  overflow: auto;
  padding-right: 0.15rem;
}

.ai-copilot-response-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.55rem;
  padding: 0.65rem 0.7rem;
  background: rgba(248, 250, 252, 0.92);
}

.ai-copilot-response-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.ai-copilot-response-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ai-copilot-response-badge--muted {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.25);
}

.ai-copilot-response-badge--guided {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.28);
}

.ai-copilot-prompt-draft-wrap {
  margin: 0 0 0.55rem;
}

.ai-copilot-prompt-draft-wrap label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.ai-copilot-prompt-draft {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  border-radius: 0.45rem;
  border: 1px dashed rgba(13, 148, 136, 0.35);
  background: rgba(240, 253, 250, 0.65);
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #334155;
}

.ai-copilot-guided-card {
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-radius: 0.55rem;
  padding: 0.65rem 0.7rem;
  background: rgba(240, 253, 250, 0.92);
}

.ai-copilot-guided-card__lead,
.ai-copilot-guided-card__prompt,
.ai-copilot-guided-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.ai-copilot-human-decides--inline {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.ai-copilot-response-card__prompt {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  color: #475569;
}

.ai-copilot-source-strip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.68rem;
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

.ai-copilot-compliance {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #64748b;
}

.ai-copilot-response-section {
  margin-bottom: 0.55rem;
}

.ai-copilot-response-section h4 {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.ai-copilot-response-section p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #475569;
}

.ai-copilot-response-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #475569;
}

.ai-copilot-response-list--ordered {
  list-style: decimal;
}

.ai-copilot-response-list--actions li {
  margin-bottom: 0.15rem;
}

.ai-copilot-upgrade {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.ai-copilot-upgrade h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.ai-copilot-upgrade__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ai-copilot-upgrade__actions .detail-btn--primary {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
}

.ai-copilot-upgrade__actions .detail-btn--ghost {
  background: transparent;
}

html[data-theme='dark'] .ai-copilot-human-decides {
  color: #5eead4;
  background: rgba(13, 148, 136, 0.12);
  border-left-color: rgba(45, 212, 191, 0.55);
}

html[data-theme='dark'] .ai-copilot-response-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(71, 85, 105, 0.55);
}

html[data-theme='dark'] .ai-copilot-source-strip {
  background: rgba(15, 23, 42, 0.45);
  color: #94a3b8;
  border-color: rgba(71, 85, 105, 0.45);
}

html[data-theme='dark'] .ai-copilot-compliance,
html[data-theme='dark'] .ai-copilot-response-section p,
html[data-theme='dark'] .ai-copilot-response-list {
  color: #cbd5e1;
}

html[data-theme='dark'] .ai-copilot-response-section h4,
html[data-theme='dark'] .ai-copilot-upgrade h4 {
  color: #e2e8f0;
}

html[data-theme='dark'] .ai-copilot-response-card__prompt {
  color: #94a3b8;
}

html[data-theme='dark'] .ai-copilot-response-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

html[data-theme='dark'] .ai-copilot-response-badge--muted {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

@media (max-width: 640px) {
  .ai-copilot-panel {
    max-width: calc(100vw - 1rem);
  }
  .ai-copilot-response {
    max-height: 50vh;
  }
}

/* —— Premium UI S9: Mobile / PWA activation polish —— */
@media (max-width: 430px) {
  body,
  body.sidebar-collapsed {
    --sidebar-width: 0px;
    overflow-x: clip;
  }

  .sidebar {
    transform: translateX(-105%);
    width: min(260px, 86vw);
    visibility: hidden;
    pointer-events: none;
    z-index: 2100;
    transition: transform 0.2s ease, visibility 0.2s;
  }

  body.gtos-mobile-drawer-open .sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.gtos-mobile-drawer-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2090;
    background: rgba(15, 23, 42, 0.45);
  }

  .app-main {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
  }

  .main-content {
    max-width: 100%;
    overflow-x: clip;
    padding-inline: 0.65rem;
    min-width: 0;
  }

  .main-header {
    width: 100%;
    max-width: 100vw;
  }

  .header-content {
    padding: 0 0.65rem;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
  }

  .header-insights {
    display: none;
  }

  .header-toolbar-end {
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
  }

  .header-icon-btn--labeled .header-icon-btn__label {
    display: none;
  }

  .header-icon-btn--labeled {
    width: 2.75rem;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }

  .gtos-north-star {
    margin-inline: 0;
    border-radius: 0.65rem;
  }

  .gtos-north-star__inner {
    padding: 0.85rem 0.75rem;
    gap: 0.65rem;
  }

  .gtos-north-star__title {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
    line-height: 1.25;
  }

  .gtos-north-star__sub {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .gtos-north-star__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .gtos-north-star__cta,
  .gtos-north-star__cta--ghost {
    min-height: 44px;
    justify-content: center;
    width: 100%;
  }

  .gtos-north-star__trust {
    gap: 0.35rem;
  }

  .gtos-north-star__trust li {
    font-size: 0.68rem;
    padding: 0.35rem 0.45rem;
  }

  .billing-panel--premium,
  .auth-panel--premium,
  .account-panel--premium {
    width: 100%;
    max-width: 100%;
    border-radius: 0.75rem;
  }

  .billing-overlay--premium,
  .auth-overlay--premium,
  .account-overlay--premium {
    padding: max(0.35rem, env(safe-area-inset-top)) max(0.35rem, env(safe-area-inset-right))
      max(0.35rem, env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
  }

  .billing-plans,
  .billing-pricing-grid {
    grid-template-columns: 1fr;
  }

  .billing-plan-card button,
  .billing-hero-actions button,
  .billing-hero-actions__tertiary,
  .billing-interval-btn,
  #billing-close,
  .auth-social-btn,
  .auth-demo-btn,
  .auth-panel--premium .detail-btn,
  .billing-failure-actions button {
    min-height: 45px;
    box-sizing: border-box;
  }

  .billing-interval-btn,
  .billing-hero-actions button {
    min-width: 44px;
  }

  .auth-body--premium {
    overflow-y: auto;
    max-height: calc(96vh - 8rem);
  }

  #account-hero-actions button,
  .account-hero-actions__tertiary,
  #account-close {
    min-height: 44px;
    min-width: 44px;
  }

  .ai-copilot-panel {
    top: auto;
    right: max(0.5rem, env(safe-area-inset-right));
    left: max(0.5rem, env(safe-area-inset-left));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    width: auto;
    max-height: min(85dvh, calc(100vh - 3.5rem));
    padding: 0.65rem;
  }

  .ai-copilot-card button,
  .ai-copilot-upgrade__actions .detail-btn,
  .ai-copilot-suggestions .detail-btn {
    min-height: 44px;
    width: 100%;
  }

  .ai-copilot-response {
    max-height: min(48dvh, 360px);
  }

  .ai-copilot-source-strip {
    font-size: 0.65rem;
  }

  .header-icon-btn--labeled {
    min-width: 44px;
    min-height: 44px;
  }

  .modules-launcher-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .modules-launcher-grid .module-launcher-btn {
    min-height: 44px;
  }

  .gtos-launcher-ops-strip {
    grid-template-columns: 1fr;
  }

  .gtos-demo-seed-banner__inner,
  .gtos-demo-seed-banner__id {
    word-break: break-word;
  }
}

@media (max-width: 390px) {
  .gtos-north-star__positioning {
    font-size: 0.72rem;
  }

  .billing-trust-strip li,
  .auth-trust-strip li {
    font-size: 0.68rem;
  }
}

@media (max-width: 430px) {
  html[data-theme='dark'] .ai-copilot-panel {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }

  #maytras-pwa-install button {
    min-height: 44px;
    min-width: 44px;
  }

  #maytras-pwa-install {
    font-size: 0.82rem;
    line-height: 1.35;
  }
}

/* —— Access / Conversion Gate (PROGRAM-003 S0 — d2030 dark) —— */
.access-gate-overlay--premium {
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(10px);
  z-index: 12050;
}

.access-gate-panel {
  width: min(100%, 540px);
  max-height: 94vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 1.35rem 1.45rem 1.15rem;
  background: linear-gradient(180deg, #0e1728, #0a111f);
  color: #e5e7eb;
}

.access-gate-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2dd4bf;
}

.access-gate-panel__message {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
}

.access-gate-panel__payment {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(15, 118, 110, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: #5eead4;
}

.access-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0 0.75rem;
}

.access-gate-demo-primary,
.access-gate-plan-primary {
  width: 100%;
  justify-content: center;
  font-weight: 600;
}

.access-gate-plan-note {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(30, 58, 138, 0.18);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #93c5fd;
}

.access-gate-pilot-note {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(120, 53, 15, 0.22);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fcd34d;
}

.access-gate-actions__sales {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.access-gate-actions__sales .detail-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
}

.access-gate-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

.access-gate-consent input {
  margin-top: 0.15rem;
  min-width: 18px;
  min-height: 18px;
}

.access-gate-privacy-note {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.access-gate-privacy-note a {
  color: #2dd4bf;
  font-weight: 600;
}

html[data-theme='dark'] .access-gate-consent {
  color: #cbd5e1;
}

html[data-theme='dark'] .access-gate-privacy-note {
  color: #94a3b8;
}

.access-gate-actions .btn-primary,
.access-gate-actions .detail-btn {
  min-height: 44px;
  flex: 1 1 140px;
}

.access-gate-lead-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.access-gate-lead-form h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: #e5e7eb;
}

.access-gate-lead-form textarea,
.access-gate-lead-form input {
  background: #0a1220;
  border-color: rgba(148, 163, 184, 0.22);
  color: #e5e7eb;
}

.access-gate-lead-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.access-gate-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.access-gate-lead-status {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: #0f766e;
  font-weight: 600;
}

.access-gate-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.5rem;
}

.access-gate-login-link,
.access-gate-demo-workspace {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2dd4bf;
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
}

.access-gate-demo-badge {
  margin: 0.75rem 0 0;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(255, 251, 235, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  text-align: center;
}

html[data-access-gated='1'] #maytras-app {
  filter: blur(4px) saturate(0.92);
  pointer-events: none;
  user-select: none;
  max-height: 100vh;
  overflow: hidden;
}

html[data-theme='dark'] .access-gate-panel,
.access-gate-panel {
  background: linear-gradient(180deg, #0e1728, #0a111f);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme='dark'] .access-gate-panel__message,
.access-gate-panel__message {
  color: #94a3b8;
}

html[data-theme='dark'] .access-gate-panel__payment {
  background: rgba(13, 148, 136, 0.12);
  color: #5eead4;
}

html[data-theme='dark'] .access-gate-demo-badge {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

@media (max-width: 640px) {
  .access-gate-panel {
    width: 100%;
    border-radius: 0.75rem;
  }

  .access-gate-actions__sales {
    grid-template-columns: 1fr;
  }

  .access-gate-overlay--premium {
    padding: max(0.35rem, env(safe-area-inset-top)) max(0.35rem, env(safe-area-inset-right))
      max(0.35rem, env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
  }

  .access-gate-actions button,
  .access-gate-lead-actions button {
    min-height: 45px;
    width: 100%;
  }
}

/* PROGRAM-004 — Auth-first SaaS gate (production customer entry) */
.auth-gate-shell {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  color: #0f172a;
  overflow: auto;
}

.auth-gate-shell.hidden {
  display: none !important;
}

.auth-gate-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.auth-gate-nav__brand {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-gate-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-gate-nav__link {
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.7rem;
}

.auth-gate-nav__signup {
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.auth-gate-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1rem;
}

.auth-gate-view {
  width: min(100%, 420px);
}

.auth-gate-view--hero {
  text-align: center;
  max-width: 560px;
}

.auth-gate-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.15;
}

.auth-gate-hero__subtitle {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: #64748b;
  line-height: 1.55;
}

.auth-gate-hero__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-gate-hero__cta {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-gate-hero__cta--primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.auth-gate-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-gate-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
}

.auth-gate-switch {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.auth-social--clean {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.auth-social-divider--clean {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.auth-social-divider--clean::before,
.auth-social-divider--clean::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-section--clean .form-group {
  margin-bottom: 0.75rem;
}

.auth-section--clean input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.95rem;
  background: #fff;
  color: #0f172a;
}

.auth-gate-submit {
  width: 100%;
  border: 0;
  border-radius: 0.55rem;
  background: #64748b;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  margin-top: 0.25rem;
  cursor: pointer;
}

.auth-gate-submit:not(:disabled):hover {
  background: #475569;
}

.auth-links--center {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.auth-gate-legal {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

.auth-gate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem 1.2rem;
  color: #64748b;
  font-size: 0.82rem;
}

.auth-gate-help {
  color: #2563eb;
  text-decoration: none;
}

html[data-platform-locked='1'] #maytras-app {
  display: none !important;
}

@media (max-width: 640px) {
  .auth-gate-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-gate-nav__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* PROGRAM-003 hotfix — sidebar IA + billing visibility */
html[data-gtos-nav='on'] .sidebar-deferred,
html[data-gtos-cc='on'] .sidebar-deferred {
  display: none !important;
}

html[data-gtos-nav='on'] .sidebar,
html[data-gtos-cc='on'] .sidebar {
  padding: 0.85rem 0.75rem;
  gap: 0.45rem;
  overflow-x: hidden;
}

html[data-gtos-nav='on'] .sidebar-nav-group,
html[data-gtos-cc='on'] .sidebar-nav-group {
  margin: 0.35rem 0 0.15rem;
  padding: 0 0.45rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
}

html[data-gtos-nav='on'] .sidebar-home-btn,
html[data-gtos-cc='on'] .sidebar-home-btn {
  padding: 0.48rem 0.65rem;
  font-size: 0.82rem;
  border-radius: 0.5rem;
}

html[data-gtos-nav='on'] .sidebar-home-btn--primary,
html[data-gtos-cc='on'] .sidebar-home-btn--primary {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(15, 118, 110, 0.14));
  border-color: rgba(45, 212, 191, 0.45);
  color: #ccfbf1;
}

html[data-gtos-nav='on'] .sidebar-modules-access,
html[data-gtos-cc='on'] .sidebar-modules-access {
  margin-top: 0.15rem;
}

html[data-gtos-nav='on'] .sidebar-modules-access-summary,
html[data-gtos-cc='on'] .sidebar-modules-access-summary {
  padding: 0.45rem 0.55rem;
  font-size: 0.76rem;
}

html[data-gtos-nav='on'] .sidebar-user,
html[data-gtos-cc='on'] .sidebar-user {
  margin-top: auto;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
}

html[data-gtos-nav='on'] .sidebar-actions,
html[data-gtos-cc='on'] .sidebar-actions {
  gap: 0.35rem;
}

.sidebar-billing-btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(45, 212, 191, 0.5);
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #f0fdfa;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.sidebar-billing-btn:hover,
.sidebar-billing-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.28);
}

.header-icon-btn--billing .header-icon-btn__label {
  color: #0f766e;
  font-weight: 700;
}

html[data-theme='dark'] .header-icon-btn--billing .header-icon-btn__label {
  color: #5eead4;
}

.auth-oauth-setup-note {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.65);
  font-size: 0.74rem;
  line-height: 1.45;
  color: #475569;
}

html[data-theme='dark'] .auth-oauth-setup-note {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(71, 85, 105, 0.55);
  color: #94a3b8;
}

/* —— Landing parity tokens (www.maytras.com ↔ app onboarding) —— */
:root {
  --maytras-landing-bg: #070a12;
  --maytras-landing-glass: rgba(255, 255, 255, 0.035);
  --maytras-landing-glass-border: rgba(207, 175, 107, 0.16);
  --maytras-landing-gold: #cfaf6b;
  --maytras-landing-text: #f4f6fb;
  --maytras-landing-text-muted: #8b95ab;
  --maytras-landing-action: #2563eb;
  --maytras-landing-action-hover: #1e40af;
  --maytras-landing-gradient-gold: linear-gradient(135deg, #e8cf88 0%, #b8934a 45%, #8a6d3c 100%);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface.auth-gate-shell {
  background: var(--maytras-landing-bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(207, 175, 107, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(37, 99, 235, 0.1), transparent 55%);
  color: var(--maytras-landing-text);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-nav {
  border-bottom-color: var(--maytras-landing-glass-border);
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-nav__brand {
  background: var(--maytras-landing-gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-nav__link {
  color: var(--maytras-landing-text-muted);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-nav__link:hover {
  color: var(--maytras-landing-text);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-nav__signup {
  background: #fff;
  color: #0f172a;
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-hero__title,
html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-card__title {
  color: var(--maytras-landing-text);
  font-family: Montserrat, 'Space Grotesk', sans-serif;
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-hero__subtitle,
html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-switch,
html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-legal,
html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-footer {
  color: var(--maytras-landing-text-muted);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-card {
  background: var(--maytras-landing-glass);
  backdrop-filter: blur(20px);
  border: 2px solid var(--maytras-landing-glass-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-section--clean input {
  background: rgba(7, 10, 18, 0.65);
  border-color: rgba(207, 175, 107, 0.22);
  color: var(--maytras-landing-text);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-social-divider--clean,
html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-social-divider--clean::before,
html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-social-divider--clean::after {
  color: var(--maytras-landing-text-muted);
  background: rgba(207, 175, 107, 0.18);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-hero__cta {
  border-color: var(--maytras-landing-glass-border);
  background: var(--maytras-landing-glass);
  color: var(--maytras-landing-text);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-hero__cta--primary,
html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-submit:not(:disabled) {
  background: var(--maytras-landing-action);
  border-color: var(--maytras-landing-action);
  color: #fff;
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-gate-submit:not(:disabled):hover {
  background: var(--maytras-landing-action-hover);
}

html[data-maytras-prod-surface='1'] .maytras-landing-surface .auth-oauth-setup-note {
  background: rgba(120, 53, 15, 0.22);
  border-color: rgba(207, 175, 107, 0.28);
  color: #fcd34d;
}

html[data-billing-open='1'] .maytras-landing-surface.detail-overlay {
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(12px);
}

html[data-billing-fullscreen='1'] .maytras-landing-surface.detail-overlay {
  background: var(--maytras-landing-bg);
}
