* {
  box-sizing: border-box;
}
html,
body,
#root {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  background: #f1f4fb;
  color: #0f172a;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-page {
  min-height: 100vh;
  background: #f5f7fb;
  padding: 20px;
}
.app-container {
  max-width: 1100px;
  margin: 0 auto;
}
.app-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px #0000000f;
}
.app-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}
.app-subtitle {
  color: #6b7280;
  margin-top: 8px;
}
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.app-btn,
.app-link-btn,
.app-btn-danger,
.app-btn-secondary {
  border: none;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.app-btn,
.app-link-btn {
  background: #0362b9;
  color: #fff;
  box-shadow: 0 14px 30px #0d49ad33;
}
.app-btn-danger {
  background: linear-gradient(135deg, #f5533d, #ed2a24);
  color: #fff;
}
.app-btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #d9e2f0;
  box-shadow: 0 10px 24px #0f172a0f;
}
.app-btn:disabled,
.app-btn-danger:disabled,
.app-btn-secondary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.app-btn:not(:disabled):hover,
.app-btn-danger:not(:disabled):hover,
.app-btn-secondary:not(:disabled):hover,
.app-link-btn:hover {
  transform: translateY(-1px);
}
.app-input,
.app-select,
.app-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6deeb;
  border-radius: 14px;
  font-size: 15px;
  background: #fffffff2;
  color: #0f172a;
  box-shadow: inset 0 1px #ffffffb3;
}
.app-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.app-error,
.app-success {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.app-error {
  background: #fee2e2;
  color: #991b1b;
}
.app-success {
  background: #dcfce7;
  color: #166534;
}
.app-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.app-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.app-muted {
  color: #6b7280;
}
.app-help {
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}
.section-kicker {
  margin-bottom: 8px;
  color: #0d5bd8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 768px) {
  .app-page {
    padding: 14px;
  }
  .app-title {
    font-size: 26px;
  }
}
.login-page {
  min-height: 100vh;
  padding: 24px;
  scroll-behavior: smooth;
  background:
    radial-gradient(
      circle at top left,
      rgba(90, 200, 255, 0.18),
      transparent 26%
    ),
    radial-gradient(
      circle at right center,
      rgba(33, 99, 235, 0.14),
      transparent 30%
    ),
    linear-gradient(180deg, #fff, #f3f7ff);
}
.marketing-header {
  width: min(1280px, 100%);
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border-radius: 28px;
  background: #ffffffd6;
  border: 1px solid rgba(213, 223, 236, 0.9);
  box-shadow: 0 18px 42px #0f172a14;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.marketing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.marketing-brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.marketing-brand-subtitle {
  color: #64748b;
  font-size: 14px;
}
.marketing-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.marketing-nav a,
.marketing-nav button,
.marketing-pill {
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}
.marketing-nav a,
.marketing-nav button {
  color: #143063;
  outline: none;
  cursor: pointer;
  border: 1px solid #cae0ff;
  background: #fffc;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.marketing-nav button:hover,
.marketing-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px #14306314;
}
.marketing-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.marketing-pill-light {
  color: #143063;
  background: linear-gradient(135deg, #fff6c6, #fff1a3);
}
.marketing-pill-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6a3d, #ff3d1f);
}
.marketing-pill-button {
  border: none;
  cursor: pointer;
}
.marketing-main {
  width: min(1280px, 100%);
  margin: 0 auto;
}
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
}
.hero-copy {
  padding: 34px 0;
}
.hero-eyebrow {
  color: #d08a19;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-title {
  max-width: 720px;
  margin: 14px 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #163b72;
}
.hero-description {
  max-width: 640px;
  margin: 0;
  color: #223455;
  font-size: 21px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-cta {
  padding: 16px 26px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 18px 36px #0f172a1f;
}
.hero-cta-button {
  border: none;
  cursor: pointer;
}
.hero-cta-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6331, #ff3d1f);
}
.hero-cta-secondary {
  color: #fff;
  background: linear-gradient(135deg, #1148b7, #1676ea);
}
.hero-warning {
  max-width: 640px;
  margin-top: 22px;
  color: #384860;
  line-height: 1.7;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.hero-highlight-card {
  padding: 18px;
  border-radius: 20px;
  color: #294161;
  line-height: 1.6;
  background: #ffffffc7;
  border: 1px solid rgba(214, 223, 237, 0.9);
  box-shadow: 0 16px 30px #0f172a0f;
}
.hero-visual {
  position: relative;
  min-height: 600px;
}
.hero-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}
.hero-orbit-one {
  inset: 60px 0 auto auto;
  width: 420px;
  height: 420px;
  background: linear-gradient(180deg, #0e5ff62e, #0e5ff605);
}
.hero-orbit-two {
  inset: auto auto 32px 30px;
  width: 160px;
  height: 160px;
  background: #ffc46b4d;
}
.hero-device-glow {
  position: absolute;
  inset: 56px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at center,
      rgba(121, 237, 255, 0.95),
      rgba(121, 237, 255, 0.14) 22%,
      transparent 44%
    ),
    radial-gradient(
      circle at 40% 38%,
      rgba(255, 255, 255, 0.82),
      transparent 14%
    );
  filter: blur(0.6px);
}
.hero-device-screen {
  position: absolute;
  inset: 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border-radius: 42px;
  color: #fff;
  background:
    linear-gradient(180deg, #0611301f, #040e22d1),
    linear-gradient(145deg, #071536e0, #0822498c);
}
.hero-chip {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff24;
}
.hero-device-title {
  margin-bottom: 20px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}
.hero-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hero-device-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff14;
}
.hero-device-grid strong {
  font-size: 20px;
}
.hero-device-grid span {
  color: #ffffffbd;
  font-size: 13px;
}
.marketing-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  margin-top: 26px;
  align-items: start;
}
.guide-panel,
.login-card,
.marketing-info-section,
.marketing-footer-note {
  background: #ffffffeb;
  border: 1px solid rgba(214, 223, 237, 0.92);
  box-shadow: 0 18px 42px #0f172a14;
}
.guide-panel,
.login-card,
.marketing-info-section {
  border-radius: 28px;
  padding: 28px;
}
.guide-panel h2,
.marketing-section-title,
.login-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}
#guide,
#results,
#faq,
#contact {
  scroll-margin-top: calc(var(--bt-header-height, 82px) + 24px);
}
.marketing-section-intro {
  margin: 16px 0 0;
  color: #4b5b73;
  line-height: 1.8;
}
.workflow-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.workflow-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}
.workflow-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.workflow-card p {
  margin: 0;
  color: #4b5b73;
  line-height: 1.7;
}
.login-card {
  position: sticky;
  top: 24px;
}
.login-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.login-badge {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0cb96b, #139c5a);
}
.login-subtitle {
  margin-top: 14px;
  margin-bottom: 24px;
  color: #5c6d84;
  line-height: 1.7;
}
.login-form {
  display: grid;
  gap: 16px;
}
.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #f8fbff;
}
.auth-mode-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #53637a;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}
.auth-mode-tabs button.active {
  color: #fff;
  background: #0362b9;
  box-shadow: 0 10px 22px #1676ea33;
}
.google-auth-block {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.google-button-slot {
  min-height: 44px;
}
.google-button-slot > div {
  margin: 0 auto;
}
.google-fallback-button {
  min-height: 44px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  color: #143063;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}
.google-fallback-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}
.google-config-warning {
  padding: 12px;
  border-radius: 8px;
  color: #87590b;
  line-height: 1.6;
  background: #fff7df;
  border: 1px solid #ffe3a4;
}
.auth-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 2px 0 18px;
  color: #7b8aa0;
  font-size: 13px;
  font-weight: 800;
}
.auth-divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #dbe6f5;
}
.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: #ffffffeb;
}
.auth-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.login-submit {
  width: 100%;
  min-height: 52px;
}
.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.login-stats div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}
.login-stats strong {
  font-size: 22px;
}
.login-stats span {
  color: #64748b;
  font-size: 13px;
}
.marketing-info-section {
  margin-top: 22px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.results-card,
.faq-card {
  padding: 20px;
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}

.results-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.results-card strong {
  display: block;
  margin-bottom: 10px;
  color: #163b72;
  font-size: 24px;
  line-height: 1.25;
}
.results-card p,
.faq-card p {
  margin: 0;
  color: #4b5b73;
  line-height: 1.8;
}
.marketing-footer-note {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  color: #3d4e65;
  line-height: 1.7;
  text-align: left;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: start;
}
.faq-copy {
  position: relative;
  min-height: 420px;
}
.faq-copy .marketing-section-title {
  max-width: 540px;
}
.faq-copy .marketing-section-intro {
  max-width: 520px;
}
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 0;
}
.faq-card {
  overflow: hidden;
  border: 1.5px solid #1d7bd8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 123, 216, 0.08);
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}
.faq-card.is-open {
  box-shadow: 0 18px 36px rgba(29, 123, 216, 0.14);
}
.faq-trigger {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e8f1ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 900;
}
.faq-question {
  color: #1976d2;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}
.faq-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f1f6ff;
  border: 1px solid #d8e8ff;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #2563eb;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-card.is-open .faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.faq-card.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}
.faq-answer {
  min-height: 0;
  overflow: hidden;
}
.faq-answer p {
  margin: 0 22px 22px 70px;
  padding: 18px 20px;
  background: #f6f7f9;
  color: #344154;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}
@media (max-width: 1100px) {
  .marketing-header,
  .hero-panel,
  .marketing-lower {
    grid-template-columns: 1fr;
  }
  .marketing-nav {
    justify-content: flex-start;
  }
  .hero-visual {
    min-height: 480px;
  }
  .login-card {
    position: static;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .login-page {
    padding: 14px;
  }
  .marketing-header,
  .guide-panel,
  .login-card,
  .marketing-info-section,
  .marketing-footer-note {
    padding: 18px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-description {
    font-size: 18px;
  }
  .hero-highlights,
  .login-stats,
  .results-grid,
  .hero-device-grid,
  .auth-two-cols {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 360px;
  }
  .hero-device {
    inset: 0;
    width: 100%;
  }
  .hero-device-screen {
    inset: 30px;
    padding: 22px;
  }
}
.dashboard-metric-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px #0000000f;
}
.dashboard-metric-label {
  color: #6b7280;
  margin-bottom: 8px;
}
.dashboard-metric-value {
  font-size: 36px;
  font-weight: 800;
}
.dashboard-metric-text {
  font-size: 18px;
  font-weight: 600;
  word-break: break-all;
}
.dashboard-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px #0000000f;
}
.dashboard-section-title {
  margin-top: 0;
  margin-bottom: 20px;
}
.dashboard-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dashboard-inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dashboard-ranges {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.dashboard-range-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}
.dashboard-delete-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 800;
  cursor: pointer;
}
.dashboard-delete-btn:hover:not(:disabled) {
  background: #fecaca;
}
.dashboard-delete-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .dashboard-range-row {
    grid-template-columns: 1fr;
  }
}
.tasks-list {
  display: grid;
  gap: 16px;
}
.tasks-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px #0000000f;
}
.tasks-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tasks-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tasks-eye-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2156bd;
  background: #f7faff;
  cursor: pointer;
}
.tasks-eye-icon {
  width: 20px;
  height: 20px;
}
.tasks-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tasks-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.tasks-badge.draft {
  background: #e5e7eb;
  color: #374151;
}
.tasks-badge.active {
  background: #dcfce7;
  color: #166534;
}
.tasks-badge.paused {
  background: #fef3c7;
  color: #92400e;
}
.tasks-badge.completed {
  background: #dbeafe;
  color: #1d4ed8;
}
.tasks-badge.archived {
  background: #f3f4f6;
  color: #4b5563;
}
.tasks-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0f172a47;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tasks-modal-card {
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: min(86vh, 920px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px #0f172a29;
}
.tasks-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #e5edf7;
}
.tasks-modal-head h2 {
  margin: 0 0 6px;
}
.tasks-modal-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}
.tasks-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tasks-modal-body::-webkit-scrollbar {
  width: 10px;
}
.tasks-modal-body::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 999px;
  background: #cbd5e1;
}
.tasks-stats-list {
  display: grid;
  gap: 12px;
}
.tasks-stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(110px, 0.75fr) minmax(94px, 0.6fr) minmax(150px, 0.95fr) minmax(96px, 0.65fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e5edf7;
}
.tasks-stats-row > div {
  min-width: 0;
}
.tasks-stats-title {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.tasks-stats-row .app-muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tasks-stats-row > div:first-child .app-muted {
  display: -webkit-box;
  max-height: 3.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
@media (max-width: 768px) {
  .tasks-stats-row {
    grid-template-columns: 1fr;
  }
}
.create-task-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px #0000000f;
}
.create-task-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.create-task-full {
  grid-column: 1 / -1;
}
.create-task-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 768px) {
  .create-task-inline {
    flex-direction: column;
    align-items: stretch;
  }
}
.feed-page {
  --feed-topbar-height: 86px;
  height: 100vh;
  overflow: hidden;
  background: #f8fbff;
  color: #0f172a;
}
.feed-shell-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--feed-topbar-height);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: #ffffffeb;
  border-bottom: 1px solid rgba(209, 219, 235, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: none;
}
.feed-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.feed-topbar-center {
  display: flex;
  justify-content: center;
}
.feed-buy-points {
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0cb96b, #1f9e55);
}
.feed-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feed-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e4ebf5;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
}
.feed-circle-action,
.feed-circle-link {
  min-width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e4ebf5;
  box-shadow: none;
  cursor: pointer;
}
.feed-circle-action:first-of-type {
  color: #16a34a;
}
.feed-circle-action-play {
  color: #1aa45c;
}
.feed-circle-action-play.is-running {
  color: #dc2626;
}
.feed-circle-action-active {
  color: #f59e0b;
}
.feed-circle-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.feed-notification-wrap {
  position: relative;
}
.feed-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: #ef4444;
  border: 2px solid #fff;
}
.feed-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 80;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fffffff5;
  box-shadow: 0 24px 70px #0f172a38;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation:
    feedToastIn 0.26s ease-out,
    feedToastOut 0.26s ease-in 3.74s forwards;
}
.feed-toast:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
}
.feed-toast.is-success:before {
  background: #16a34a;
}
.feed-toast.is-error:before {
  background: #ef4444;
}
.feed-toast-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
}
.feed-toast.is-success .feed-toast-mark {
  color: #15803d;
  background: #dcfce7;
}
.feed-toast.is-error .feed-toast-mark {
  color: #b91c1c;
  background: #fee2e2;
}
.feed-toast-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.feed-toast-copy strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}
.feed-toast-copy span {
  color: #475569;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.feed-toast-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.feed-toast-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}
@keyframes feedToastIn {
  0% {
    opacity: 0;
    transform: translate3d(18px, -12px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}
@keyframes feedToastOut {
  to {
    opacity: 0;
    transform: translate3d(18px, -10px, 0) scale(0.98);
  }
}
.feed-notification-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 35;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe6f5;
  box-shadow: 0 22px 60px #0f172a2e;
}
.feed-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
}
.feed-notification-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.feed-notification-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
}
.feed-notification-list::-webkit-scrollbar {
  width: 8px;
}
.feed-notification-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}
.feed-notification-item,
.feed-notification-empty {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
}
.feed-notification-item {
  cursor: pointer;
}
.feed-notification-item:hover,
.feed-notification-item.is-unread {
  background: #f5f9ff;
  border-color: #dbeafe;
}
.feed-notification-item strong {
  color: #0f172a;
  font-size: 14px;
}
.feed-notification-item span {
  color: #475569;
  line-height: 1.45;
}
.feed-notification-item small,
.feed-notification-empty {
  color: #94a3b8;
  font-size: 12px;
}
.feed-circle-text {
  font-size: 13px;
  font-weight: 800;
}
.feed-shell {
  width: min(1480px, calc(100vw - 48px));
  height: calc(100vh - var(--feed-topbar-height));
  margin: 0 auto;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
}
.feed-sidebar,
.feed-score-card,
.feed-composer,
.feed-post-card,
.session-card,
.right-rail-card,
.promo-card {
  background: #fff;
  border: 1px solid rgba(213, 223, 236, 0.85);
  box-shadow: none;
}
.feed-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}
.feed-sidebar-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.feed-sidebar-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.chat-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 10px;
  border-bottom: 1px solid #e6edf7;
}
.chat-thread-copy {
  display: grid;
  gap: 4px;
}
.chat-thread-copy strong {
  font-size: 16px;
}
.chat-thread-copy span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}
.chat-contact-strip {
  display: flex;
  gap: 10px;
  padding: 12px 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-contact-strip::-webkit-scrollbar {
  display: none;
}
.chat-contact-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: #47607f;
  background: #fff;
  cursor: pointer;
}
.chat-contact-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0d5bd8, #25c1ff);
  border-color: transparent;
}
.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-message.is-own {
  flex-direction: row-reverse;
}
.chat-avatar,
.feed-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0d5bd8, #25c1ff);
  overflow: hidden;
}
.feed-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.feed-avatar-small {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.chat-bubble {
  flex: 1;
  padding: 11px 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf2f7;
  line-height: 1.35;
}
.chat-author {
  margin-bottom: 4px;
  font-weight: 700;
}
.chat-time {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
}
.chat-empty-state {
  padding: 20px 16px;
  border-radius: 18px;
  text-align: center;
  color: #64748b;
  background: #f7f9fc;
  border: 1px dashed #d8e1ee;
}
.chat-footer {
  margin-top: auto;
  padding: 14px 18px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.chat-input-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chat-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 999px;
  padding: 0 16px;
  background: #f7f9fc;
  border: 1px solid #edf2f7;
  color: #0f172a;
}
.chat-input-recipient {
  flex-basis: 100%;
}
.chat-input:focus {
  outline: none;
  border-color: #9fc2ff;
}
.chat-send-btn {
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  color: #fff;
  background: #2d6bc0;
  cursor: pointer;
}
.chat-send-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.feed-main {
  display: grid;
  gap: 16px;
  height: 100%;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-content: start;
  grid-auto-rows: max-content;
}
.feed-score-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 24px;
  font-size: 18px;
  background: #fff;
}
.feed-score-divider {
  width: 1px;
  height: 58px;
  background: #d7dfec;
}
.feed-score-box {
  display: grid;
  gap: 4px;
}
.feed-score-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feed-score-box strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.feed-score-box small {
  color: #64748b;
  font-size: 13px;
}
.feed-composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  background: #fff;
}
.feed-composer-avatar {
  width: 54px;
  height: 54px;
  font-size: 22px;
}
.feed-composer-body {
  display: grid;
  gap: 12px;
}
.feed-composer-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feed-composer-placeholder {
  width: 100%;
  min-height: 16px;
  padding: 10px 22px;
  border-radius: 22px;
  color: #667085;
  font-size: 15px;
  background: #f7f9fc;
  border: 1px solid #edf2f7;
  box-shadow: none;
}
.feed-composer-trigger {
  cursor: pointer;
  text-align: left;
}
.feed-composer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.feed-mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e8edf5;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  background: #f3f6fa;
  cursor: pointer;
}
.feed-mini-chip.is-success {
  color: #0f8e4c;
  background: #e8f8ee;
  border-color: #d5efdf;
}
.feed-composer-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.feed-composer-side-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feed-composer-score {
  min-width: 82px;
  padding: 12px 16px;
  border-radius: 18px;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #1e293b;
  background: #f7f9fc;
  border: 1px solid #edf2f7;
}
.session-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
}
.session-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.session-card-head h3 {
  margin: 0;
  font-size: 24px;
}
.session-badge {
  padding: 8px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  background: #e6f0ff;
}
.session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.session-grid div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f9fc;
  border: 1px solid #edf2f7;
}
.session-grid span {
  color: #64748b;
  font-size: 13px;
}
.session-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.session-extension-note {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  background: #f7f9fc;
  border: 1px solid #edf2f7;
}
.feed-post-list {
  display: grid;
  gap: 18px;
}
.feed-post-card {
  padding: 22px;
  border-radius: 24px;
}
.feed-post-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.feed-post-author {
  display: flex;
  gap: 14px;
  align-items: center;
}
.feed-post-name {
  font-size: 20px;
  font-weight: 800;
}
.feed-post-meta {
  margin-top: 4px;
  color: #64748b;
}
.feed-post-menu-wrap {
  position: relative;
}
.feed-post-menu-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}
.feed-post-menu-btn:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.feed-post-menu-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    -8px 0 0 currentColor,
    8px 0 0 currentColor;
}
.feed-post-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 176px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 48px #0f172a29;
}
.feed-post-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 8px;
  padding: 11px 12px;
  text-align: left;
  color: #991b1b;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.feed-post-menu button:hover:not(:disabled) {
  background: #fee2e2;
}
.feed-post-menu button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.feed-post-menu-trash {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top: none;
  border-radius: 0 0 3px 3px;
}
.feed-post-menu-trash:before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.feed-post-menu-trash:after {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.feed-post-content {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.7;
}
.feed-post-raw-links {
  display: grid;
  gap: 2px;
}
.feed-post-raw-line {
  word-break: break-word;
}
.feed-post-content p {
  margin: 12px 0 0;
  white-space: pre-wrap;
}
.feed-post-link {
  color: #0d6efd;
  word-break: break-word;
}
.feed-post-link-suffix {
  margin-left: 8px;
  color: #0f172a;
}
.feed-post-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6edf7;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}
.feed-post-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.feed-toolbar-btn {
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  color: #475569;
  background: #f7f9fc;
  border: 1px solid #edf2f7;
  cursor: pointer;
}
.feed-toolbar-btn.is-owner {
  color: #0d5bd8;
  background: #eef4ff;
  border-color: #d6e6ff;
}
.feed-toolbar-btn.is-live {
  color: #0f8e4c;
  background: #e8f8ee;
  border-color: #d5efdf;
}
.feed-toolbar-btn.is-liked {
  color: #15803d;
  background: #ecfdf3;
  border-color: #bbf7d0;
}
.feed-comments-toggle {
  margin-top: 16px;
  border: none;
  padding: 0;
  color: #0d5bd8;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}
.feed-comments-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.feed-inline-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feed-inline-comment-body {
  flex: 1;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.55;
  background: #f8fbff;
  border: 1px solid #e6edf7;
}
.feed-inline-comment-author {
  margin-bottom: 4px;
  font-weight: 700;
}
.feed-inline-comment-time {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
}
.feed-comment-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e6edf7;
}
.feed-comment-input {
  flex: 1;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  color: #0f172a;
  background: #f7f9fc;
  border: 1px solid #edf2f7;
}
.feed-comment-input:focus {
  outline: none;
  border-color: #9fc2ff;
}
.feed-comment-submit {
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  height: 44px;
  font-weight: 700;
  color: #fff;
  background: #2d6bc0;
  cursor: pointer;
}
.feed-comment-submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.feed-empty-state {
  padding: 32px 20px;
  text-align: center;
  border-radius: 22px;
  color: #64748b;
  background: #fff;
  border: 1px dashed #d8e1ee;
}
.feed-right-rail {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
  height: 100%;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.feed-right-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.right-rail-card,
.promo-card {
  padding: 16px;
  border-radius: 22px;
}
.right-rail-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #475569;
}
.guide-visual {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #1c57dc, #0b8de5);
}
.guide-visual-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  background: #ffffff24;
}
.guide-visual-copy {
  line-height: 1.6;
}
.feed-extension-helper {
  margin-top: 12px;
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.guide-list {
  display: grid;
  gap: 10px;
}
.guide-list-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 14px;
  background: #fff;
  border: 1px solid #edf2f7;
}
button.guide-list-item {
  cursor: pointer;
}
.guide-list-item.is-unread {
  border-color: #bad2ff;
  background: #f5f9ff;
}
.feed-ad-rail-card,
.feed-ad-list {
  display: grid;
  gap: 14px;
}
.feed-ad-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid #edf2f7;
}
.feed-ad-card img {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  opacity: 0.82;
}
.feed-ad-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
}
.feed-ad-copy strong {
  font-size: 16px;
}
.feed-ad-copy span {
  color: #ffffffd1;
  line-height: 1.45;
  font-size: 13px;
}
.feed-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0f172a59;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.profile-modal-card {
  width: min(680px, 100%);
}
.profile-avatar-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid #edf2f7;
}
.profile-avatar-preview div:last-child {
  display: grid;
  gap: 4px;
}
.profile-avatar-preview span {
  color: #64748b;
}
.profile-avatar-large {
  width: 72px;
  height: 72px;
  font-size: 22px;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}
.profile-file-input {
  padding: 10px 12px;
}
.profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
}
.feed-modal-card {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(213, 223, 236, 0.85);
}
.feed-modal-card form {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.feed-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e6edf7;
}
.feed-modal-head h2 {
  margin: 0;
  font-size: 28px;
}
.feed-modal-close {
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}
.feed-modal-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}
.feed-modal-body::-webkit-scrollbar {
  width: 8px;
}
.feed-modal-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}
.feed-modal-hint {
  padding: 18px 20px;
  border-radius: 22px;
  line-height: 1.65;
  color: #64748b;
  font-size: 16px;
  background: #f8fbff;
  border: 1px solid #e6edf7;
}
.feed-modal-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.feed-modal-field {
  display: grid;
  gap: 10px;
}
.feed-modal-field span {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}
.feed-modal-textarea {
  width: 100%;
  resize: vertical;
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: #0f172a;
  background: #fff;
  border: 1px solid #dbe5f1;
}
.feed-modal-textarea:focus {
  outline: none;
  border-color: #9fc2ff;
}
.feed-modal-footer {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px 28px;
  border-top: 1px solid #e6edf7;
}
.feed-extension-queue {
  display: none;
}
.click-stats-modal-card {
  width: min(980px, 100%);
}
.click-stats-modal-head {
  align-items: flex-start;
}
.click-stats-modal-clock {
  margin-left: auto;
  padding-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: #334155;
}
.click-stats-modal-body {
  display: grid;
  gap: 18px;
}
.click-stats-groups {
  display: grid;
  gap: 18px;
  max-height: 56vh;
  padding-right: 6px;
  overflow-y: auto;
}
.click-stats-group {
  display: grid;
  gap: 12px;
}
.click-stats-group-title {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  background: #e9ebf8;
  color: #0f172a;
}
.click-stats-group-title.is-reward-earned {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #14532d;
  border: 1px solid #86efac;
}
.click-stats-group-title.is-reward-none {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}
.click-stats-group-title.is-reward-empty {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.click-stats-group-subtitle {
  color: #64748b;
  font-size: 14px;
  word-break: break-word;
}
.click-stats-list {
  display: grid;
  gap: 14px;
}
.click-stats-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e6edf7;
}
.click-stats-row .feed-avatar.click-stats-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  font-size: 22px;
  flex-shrink: 0;
}
.click-stats-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}
.click-stats-user-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.click-stats-user-row strong {
  font-size: 18px;
}
.click-stats-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.click-stats-reward.is-earned {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}
.click-stats-reward.is-none {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
}
.click-stats-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #0f172a;
  font-size: 14px;
}
.click-stats-closed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.click-stats-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  background: #cbd5e1;
}
.click-stats-dot.is-on {
  background: #22c55e;
  box-shadow: 0 0 0 4px #22c55e29;
}
.click-stats-dot.is-off {
  background: #f59e0b;
  box-shadow: 0 0 0 4px #f59e0b29;
}
.click-stats-warning {
  color: #b45309;
  font-size: 13px;
}
.promo-card {
  display: grid;
  gap: 8px;
}
.promo-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.promo-card-gold a {
  font-weight: 700;
  color: #0f172a;
}
.feed-page.is-dark {
  background: #0b1220;
  color: #e5edf8;
}
.feed-page.is-dark .feed-shell-topbar {
  background: #0a111feb;
  border-bottom-color: #293954d9;
}
.feed-page.is-dark .feed-toast {
  background: #0f172af5;
  border-color: #475569b8;
  box-shadow: 0 24px 70px #00000057;
}
.feed-page.is-dark .feed-toast-copy strong {
  color: #f8fbff;
}
.feed-page.is-dark .feed-toast-copy span {
  color: #cbd5e1;
}
.feed-page.is-dark .feed-toast-close {
  color: #cbd5e1;
  background: #1e293b;
}
.feed-page.is-dark .feed-toast-close:hover {
  color: #fff;
  background: #334155;
}
.feed-page.is-dark .feed-brand,
.feed-page.is-dark .feed-post-name,
.feed-page.is-dark .feed-score-box strong,
.feed-page.is-dark .feed-composer-score,
.feed-page.is-dark .session-card-head h3,
.feed-page.is-dark .chat-author,
.feed-page.is-dark .right-rail-card-head,
.feed-page.is-dark .feed-post-content p,
.feed-page.is-dark .feed-post-summary,
.feed-page.is-dark .promo-card-gold a {
  color: #f8fbff;
}
.feed-page.is-dark .feed-user-pill,
.feed-page.is-dark .feed-circle-action,
.feed-page.is-dark .feed-circle-link,
.feed-page.is-dark .feed-sidebar,
.feed-page.is-dark .feed-score-card,
.feed-page.is-dark .feed-composer,
.feed-page.is-dark .feed-post-card,
.feed-page.is-dark .session-card,
.feed-page.is-dark .right-rail-card,
.feed-page.is-dark .promo-card {
  background: #111a2b;
  border-color: #24324a;
}
.feed-page.is-dark .feed-buy-points {
  background: linear-gradient(135deg, #16a34a, #0d8b52);
}
.feed-page.is-dark .feed-user-pill,
.feed-page.is-dark .feed-circle-action,
.feed-page.is-dark .feed-circle-link {
  color: #e5edf8;
}
.feed-page.is-dark .feed-notification-menu,
.feed-page.is-dark .feed-post-menu {
  background: #111a2b;
  border-color: #24324a;
  box-shadow: 0 22px 60px #00000061;
}
.feed-page.is-dark .feed-post-menu-btn {
  color: #cbd5e1;
  background: #1e293b;
}
.feed-page.is-dark .feed-post-menu-btn:hover {
  color: #fff;
  background: #334155;
}
.feed-page.is-dark .feed-post-menu button {
  color: #fecaca;
  background: #111a2b;
}
.feed-page.is-dark .feed-post-menu button:hover:not(:disabled) {
  background: #ef44442e;
}
.feed-page.is-dark .feed-notification-head,
.feed-page.is-dark .profile-avatar-preview,
.feed-page.is-dark .feed-ad-card {
  border-color: #24324a;
}
.feed-page.is-dark .feed-notification-head span,
.feed-page.is-dark .feed-notification-item span,
.feed-page.is-dark .feed-notification-item small,
.feed-page.is-dark .feed-notification-empty,
.feed-page.is-dark .profile-avatar-preview span {
  color: #9fb0c7;
}
.feed-page.is-dark .feed-notification-item strong {
  color: #f8fbff;
}
.feed-page.is-dark .feed-notification-item:hover,
.feed-page.is-dark .feed-notification-item.is-unread,
.feed-page.is-dark .profile-avatar-preview {
  background: #162238;
}
.feed-page.is-dark .feed-notification-badge {
  border-color: #111a2b;
}
.feed-page.is-dark .feed-circle-action-play {
  color: #39d98a;
}
.feed-page.is-dark .feed-circle-action-play.is-running {
  color: #f87171;
}
.feed-page.is-dark .feed-circle-action-active {
  color: #fbbf24;
}
.feed-page.is-dark .feed-score-divider,
.feed-page.is-dark .feed-comment-box,
.feed-page.is-dark .feed-post-summary,
.feed-page.is-dark .chat-footer,
.feed-page.is-dark .chat-thread-head,
.feed-page.is-dark .feed-post-comment,
.feed-page.is-dark .feed-post-card,
.feed-page.is-dark .session-card,
.feed-page.is-dark .chat-bubble,
.feed-page.is-dark .guide-list-item,
.feed-page.is-dark .feed-comment-input,
.feed-page.is-dark .chat-input,
.feed-page.is-dark .feed-composer-placeholder,
.feed-page.is-dark .feed-composer-score,
.feed-page.is-dark .session-grid div,
.feed-page.is-dark .session-extension-note,
.feed-page.is-dark .feed-toolbar-btn,
.feed-page.is-dark .feed-inline-comment-body,
.feed-page.is-dark .feed-modal-card,
.feed-page.is-dark .feed-modal-head,
.feed-page.is-dark .feed-modal-footer,
.feed-page.is-dark .feed-modal-hint,
.feed-page.is-dark .feed-modal-textarea,
.feed-page.is-dark .chat-contact-btn,
.feed-page.is-dark .chat-empty-state {
  border-color: #24324a;
}
.feed-page.is-dark .chat-bubble,
.feed-page.is-dark .guide-list-item,
.feed-page.is-dark .feed-comment-input,
.feed-page.is-dark .chat-input,
.feed-page.is-dark .feed-composer-placeholder,
.feed-page.is-dark .feed-composer-score,
.feed-page.is-dark .session-grid div,
.feed-page.is-dark .session-extension-note,
.feed-page.is-dark .feed-toolbar-btn,
.feed-page.is-dark .feed-mini-chip,
.feed-page.is-dark .feed-inline-comment-body,
.feed-page.is-dark .feed-modal-card,
.feed-page.is-dark .feed-modal-hint,
.feed-page.is-dark .feed-modal-textarea,
.feed-page.is-dark .chat-contact-btn,
.feed-page.is-dark .chat-empty-state {
  background: #162235;
  color: #d6dfec;
}
.feed-page.is-dark .feed-extension-helper {
  color: #d6dfec;
  border-top-color: #ffffff29;
}
.feed-page.is-dark .chat-footer {
  background: #111a2b;
}
.feed-page.is-dark .chat-input {
  background: #1a2639;
}
.feed-page.is-dark .chat-thread-copy span,
.feed-page.is-dark .chat-time,
.feed-page.is-dark .feed-inline-comment-time {
  color: #8ea2bf;
}
.feed-page.is-dark .feed-mini-chip.is-success {
  background: #16a34a2e;
  border-color: #16a34a57;
  color: #7ee2a8;
}
.feed-page.is-dark .feed-score-label,
.feed-page.is-dark .feed-score-box small,
.feed-page.is-dark .feed-composer-label,
.feed-page.is-dark .feed-composer-side-label,
.feed-page.is-dark .feed-post-meta,
.feed-page.is-dark .section-kicker,
.feed-page.is-dark .guide-list-item,
.feed-page.is-dark .promo-kicker,
.feed-page.is-dark .app-success,
.feed-page.is-dark .app-error,
.feed-page.is-dark .feed-empty-state,
.feed-page.is-dark .feed-post-summary {
  color: #9fb0c7;
}
.feed-page.is-dark .feed-post-link {
  color: #7ab4ff;
}
.feed-page.is-dark .feed-post-link-suffix {
  color: #e5edf8;
}
.feed-page.is-dark .session-badge {
  background: #3b82f62e;
  color: #9fc6ff;
}
.feed-page.is-dark .guide-visual {
  background: linear-gradient(145deg, #12388f, #0d6fd6);
}
.feed-page.is-dark .chat-contact-btn.is-active,
.feed-page.is-dark .feed-comment-submit,
.feed-page.is-dark .chat-send-btn {
  color: #fff;
}
.feed-page.is-dark .guide-list-item.is-unread {
  background: #2158bd38;
  border-color: #6299ff47;
}
.feed-page.is-dark .feed-toolbar-btn.is-owner {
  color: #bfd9ff;
  background: #2563eb29;
  border-color: #60a5fa3d;
}
.feed-page.is-dark .feed-toolbar-btn.is-live {
  color: #86efac;
  background: #16a34a2e;
  border-color: #22c55e3d;
}
.feed-page.is-dark .feed-toolbar-btn.is-liked {
  color: #86efac;
  background: #16a34a33;
  border-color: #22c55e52;
}
.feed-page.is-dark .feed-comments-toggle {
  color: #7ab4ff;
}
.feed-page.is-dark .feed-modal-backdrop {
  background: #0206179e;
}
.feed-page.is-dark .feed-modal-close {
  color: #8ea2bf;
}
.feed-page.is-dark .feed-modal-field span {
  color: #c9d5e6;
}
.feed-page.is-dark .click-stats-modal-clock,
.feed-page.is-dark .click-stats-user-row strong,
.feed-page.is-dark .click-stats-meta {
  color: #f8fbff;
}
.feed-page.is-dark .click-stats-row {
  background: #162235;
  border-color: #24324a;
}
.feed-page.is-dark .click-stats-group-title.is-reward-empty {
  background: #1a2438;
  color: #c9d5e6;
  border-color: #2c3d5a;
}
.feed-page.is-dark .click-stats-group-title.is-reward-earned {
  background: linear-gradient(135deg, #14532d, #166534);
  color: #ecfdf3;
  border-color: #22c55e;
}
.feed-page.is-dark .click-stats-group-title.is-reward-none {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #fef2f2;
  border-color: #f87171;
}
.feed-page.is-dark .click-stats-reward.is-earned {
  color: #bbf7d0;
  background: #14532d;
  border-color: #22c55e;
}
.feed-page.is-dark .click-stats-reward.is-none {
  color: #fecaca;
  background: #7f1d1d;
  border-color: #dc2626;
}
.feed-page.is-dark .click-stats-group-subtitle {
  color: #9fb0c7;
}
.feed-page.is-dark .click-stats-warning {
  color: #fdba74;
}
.feed-page.is-dark .promo-card-blue {
  background: linear-gradient(180deg, #102f86, #08173f);
  border-color: transparent;
}
.feed-page.is-dark .promo-card-gold {
  background: #161f31;
}
.feed-page.is-dark .feed-empty-state {
  background: #111a2b;
  border-color: #24324a;
}
@media (max-width: 1280px) {
  .feed-shell {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }
  .feed-right-rail {
    grid-column: 1 / -1;
    position: static;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}
@media (max-width: 980px) {
  .feed-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .feed-shell-topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .feed-topbar-center {
    justify-content: flex-start;
  }
  .feed-topbar-actions {
    flex-wrap: wrap;
  }
  .feed-shell {
    width: min(100vw - 24px, 920px);
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .feed-sidebar,
  .feed-right-rail {
    position: static;
    height: auto;
    overflow: visible;
  }
  .feed-right-rail {
    grid-template-columns: 1fr;
  }
  .feed-main {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }
  .session-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .feed-page {
    height: auto;
  }
  .feed-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    padding: 12px;
  }
  .feed-toast-mark {
    width: 38px;
    height: 38px;
  }
  .feed-shell-topbar {
    padding: 14px;
  }
  .feed-shell {
    width: calc(100vw - 16px);
    gap: 16px;
  }
  .feed-score-card,
  .feed-composer,
  .feed-post-card,
  .session-card {
    padding: 16px;
  }
  .feed-score-card,
  .feed-composer,
  .feed-post-toolbar,
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-modal-actions {
    flex-direction: column-reverse;
  }
  .feed-score-divider {
    display: none;
  }
  .feed-composer-side {
    justify-items: start;
  }
  .feed-post-head {
    flex-direction: column;
  }
  .click-stats-row {
    grid-template-columns: 1fr;
  }
  .click-stats-row .feed-avatar.click-stats-avatar {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }
  .click-stats-modal-clock {
    margin-left: 0;
    padding-top: 0;
  }
}
.admin-page {
  background:
    radial-gradient(
      circle at top left,
      rgba(15, 122, 229, 0.12),
      transparent 32rem
    ),
    linear-gradient(180deg, #f7fbff, #eef4fb);
  padding: 28px;
}
.admin-container {
  width: min(96vw, 1720px);
  max-width: none;
  padding-bottom: 40px;
}
.admin-page .app-topbar {
  padding: 22px;
  border: 1px solid rgba(207, 219, 235, 0.9);
  border-radius: 22px;
  background: #ffffffd1;
  box-shadow: 0 20px 55px #1d4e891a;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.admin-denied,
.admin-section,
.admin-metric,
.admin-permission-card {
  background: #fffffff0;
  border: 1px solid #dfe8f4;
  border-radius: 18px;
  box-shadow: 0 18px 46px #1f4a7d14;
}
.admin-denied {
  max-width: 560px;
  margin: 80px auto;
  padding: 32px;
  text-align: center;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
  padding: 8px;
  border: 1px solid #dfe8f4;
  border-radius: 18px;
  background: #ffffffad;
}
.admin-tabs button,
.admin-inline-search button,
.admin-user-form button,
.admin-row-actions button,
.admin-permission-head button {
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.admin-tabs button.active,
.admin-inline-search button,
.admin-user-form button[type="submit"],
.admin-permission-head button {
  background: linear-gradient(135deg, #0878e8, #0b5fd3);
  color: #fff;
  border-color: #0878e8;
  box-shadow: 0 12px 26px #0f7ae538;
}
.admin-tabs button:not(:disabled):hover,
.admin-inline-search button:hover,
.admin-user-form button:hover,
.admin-row-actions button:hover,
.admin-permission-head button:hover {
  transform: translateY(-1px);
}
.admin-tabs button:disabled,
.admin-permission-head button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.admin-metric {
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.admin-metric:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0f7ae5, #35c2ff);
}
.admin-metric:after {
  content: "";
  position: absolute;
  right: -28px;
  top: -32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #0f7ae514;
}
.admin-metric:nth-child(2):before {
  background: linear-gradient(90deg, #7c3aed, #38bdf8);
}
.admin-metric:nth-child(3):before {
  background: linear-gradient(90deg, #16a34a, #86efac);
}
.admin-metric:nth-child(4):before {
  background: linear-gradient(90deg, #f59e0b, #fde68a);
}
.admin-metric:nth-child(5):before {
  background: linear-gradient(90deg, #ec4899, #f9a8d4);
}
.admin-metric:nth-child(6):before {
  background: linear-gradient(90deg, #0f766e, #5eead4);
}
.admin-metric-label,
.admin-metric-hint,
.admin-table small,
.admin-permission-head span {
  color: #68758a;
}
.admin-metric-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.admin-metric-value {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  color: #111827;
  margin-top: 8px;
}
.admin-metric-hint {
  margin-top: 6px;
  font-weight: 700;
}
.admin-section {
  padding: 22px;
  margin-bottom: 20px;
}
.admin-section h2 {
  margin: 0 0 12px;
  color: #172033;
}
.admin-section p {
  margin: 4px 0 0;
  color: #68758a;
  font-weight: 700;
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.admin-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-inline-search {
  display: flex;
  gap: 8px;
  min-width: min(420px, 100%);
}
.admin-inline-search input,
.admin-user-form input,
.admin-user-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 12px;
  color: #111827;
  font-weight: 700;
}
.admin-user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  background: #fbfdff;
}
.admin-form-actions {
  display: flex;
  gap: 8px;
}
.admin-form-actions button {
  width: 100%;
}
.admin-table-wrap {
  width: 100%;
  overflow: auto;
  max-height: min(62vh, 720px);
  border: 1px solid #e7edf6;
  border-radius: 16px;
  background: #fff;
}
.admin-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e7edf6;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
  color: #6b778c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.admin-table tbody tr {
  transition: background 0.16s ease;
}
.admin-table tbody tr:hover {
  background: #f8fbff;
}
.admin-user-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-user-cell img,
.admin-user-cell > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}
.admin-user-cell > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f7ae5, #35c2ff);
  color: #fff;
  font-weight: 900;
}
.admin-user-cell strong {
  display: block;
  color: #172033;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-row-actions button {
  min-height: 34px;
  padding: 0 10px;
}
.admin-row-actions button.danger {
  color: #ad1f2b;
  border-color: #ffd6da;
  background: #fff5f6;
}
.admin-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef4ff;
  color: #2859c7;
  font-weight: 900;
}
.admin-pill-active,
.admin-pill-completed {
  background: #e9f8ef;
  color: #11753b;
}
.admin-pill-banned,
.admin-pill-invalid,
.admin-pill-blocked,
.admin-pill-archived {
  background: #fff0f2;
  color: #b42331;
}
.admin-pill-started,
.admin-pill-pending,
.admin-pill-paused {
  background: #fff7df;
  color: #8a5b00;
}
.admin-chart-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #e3eaf4;
  border-radius: 999px;
  padding: 0 10px;
  background: #fbfdff;
  color: #536176;
  font-size: 13px;
  font-weight: 800;
}
.admin-chart-legend b {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.admin-traffic-chart {
  display: grid;
  gap: 14px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
}
.admin-traffic-row {
  display: grid;
  grid-template-columns: 130px minmax(260px, 1fr) 90px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e7edf6;
  border-radius: 16px;
  background: #fbfdff;
}
.admin-traffic-day strong,
.admin-traffic-day span,
.admin-traffic-total strong,
.admin-traffic-total span {
  display: block;
}
.admin-traffic-day strong,
.admin-traffic-total strong {
  color: #172033;
  font-weight: 900;
}
.admin-traffic-day span,
.admin-traffic-total span {
  color: #68758a;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}
.admin-traffic-bar-track {
  height: 20px;
  border-radius: 999px;
  background: #e9f0f8;
  overflow: hidden;
  box-shadow: inset 0 1px 2px #0f172a14;
}
.admin-traffic-bar {
  display: flex;
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  overflow: hidden;
}
.admin-traffic-bar span {
  height: 100%;
}
.admin-traffic-total {
  text-align: right;
}
.admin-traffic-breakdown {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-traffic-breakdown span {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}
.is-completed {
  background: #22c55e;
}
.is-running {
  background: #f59e0b;
}
.is-invalid {
  background: #ef4444;
}
.is-cancelled {
  background: #94a3b8;
}
.admin-traffic-breakdown .is-completed {
  background: #e9f8ef;
  color: #11753b;
}
.admin-traffic-breakdown .is-running {
  background: #fff7df;
  color: #8a5b00;
}
.admin-traffic-breakdown .is-invalid {
  background: #fff0f2;
  color: #b42331;
}
.admin-traffic-breakdown .is-cancelled {
  background: #eef3f9;
  color: #536176;
}
.admin-permission-list {
  display: grid;
  gap: 10px;
}
.admin-permission-list {
  max-height: min(68vh, 760px);
  overflow-y: auto;
  padding-right: 6px;
}
.admin-log-table a {
  color: #0f65d8;
  font-weight: 800;
  word-break: break-word;
}
.admin-table-wrap::-webkit-scrollbar,
.admin-traffic-chart::-webkit-scrollbar,
.admin-permission-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.admin-table-wrap::-webkit-scrollbar-track,
.admin-traffic-chart::-webkit-scrollbar-track,
.admin-permission-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
.admin-table-wrap::-webkit-scrollbar-thumb,
.admin-traffic-chart::-webkit-scrollbar-thumb,
.admin-permission-list::-webkit-scrollbar-thumb {
  background: #c7d4e5;
  border-radius: 8px;
}
.admin-permission-card {
  padding: 16px;
}
.admin-permission-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.admin-permission-head strong,
.admin-permission-head span {
  display: block;
}
.admin-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-permission-grid label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e5ecf5;
  border-radius: 12px;
  background: #fbfdff;
  font-weight: 800;
}
.admin-permission-grid label.disabled {
  opacity: 0.7;
}
@media (max-width: 1100px) {
  .admin-user-form,
  .admin-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .admin-page {
    padding: 16px;
  }
  .admin-container {
    width: 100%;
  }
  .admin-metrics-grid,
  .admin-user-form,
  .admin-permission-grid {
    grid-template-columns: 1fr;
  }
  .admin-section-head,
  .admin-section-title-row,
  .admin-inline-search {
    flex-direction: column;
  }
  .admin-chart-legend {
    justify-content: flex-start;
  }
  .admin-traffic-row {
    grid-template-columns: 1fr;
  }
  .admin-traffic-total {
    text-align: left;
  }
  .admin-traffic-breakdown {
    grid-column: auto;
  }
  .admin-inline-search {
    min-width: 0;
    width: 100%;
  }
}
.admin-behavior-wrap {
  margin-top: 8px;
}
.admin-behavior-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-behavior-summary > div {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  padding: 16px;
  border: 1px solid #dfe8f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 12px 30px #1f4a7d0f;
}
.admin-behavior-summary > div:after {
  content: "";
  position: absolute;
  right: -22px;
  top: -28px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #0f7ae514;
}
.admin-behavior-summary span {
  display: block;
  color: #68758a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-behavior-summary strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 28px;
  font-weight: 950;
}
.admin-empty-state {
  padding: 28px;
  border: 1px dashed #cbd8ea;
  border-radius: 16px;
  background: #f8fbff;
  color: #68758a;
  font-weight: 800;
  text-align: center;
}
.admin-behavior-table-wrap {
  width: 100%;
  max-height: min(72vh, 760px);
  overflow: auto;
  border: 1px solid #dfe8f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px #ffffffb3;
}
.admin-behavior-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-behavior-table th,
.admin-behavior-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e7edf6;
  text-align: left;
  vertical-align: top;
}
.admin-behavior-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
  color: #6b778c;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-behavior-table tbody tr {
  transition: background 0.16s ease;
}
.admin-behavior-table tbody tr:hover {
  background: #f8fbff;
}
.admin-behavior-table tbody tr.is-malformed {
  background: #fff7ed;
}
.admin-behavior-time strong,
.admin-behavior-time span,
.admin-behavior-user strong,
.admin-behavior-user span {
  display: block;
}
.admin-behavior-time strong,
.admin-behavior-user strong {
  color: #172033;
  font-weight: 900;
  white-space: nowrap;
}
.admin-behavior-time span,
.admin-behavior-user span {
  margin-top: 4px;
  color: #68758a;
  font-size: 12px;
  font-weight: 800;
}
.admin-event-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: #eef4ff;
  color: #2859c7;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.admin-event-pill.is-route {
  background: #edf7ff;
  color: #075aaa;
}
.admin-event-pill.is-click {
  background: #fff7df;
  color: #8a5b00;
}
.admin-event-pill.is-api {
  background: #e9f8ef;
  color: #11753b;
}
.admin-event-pill.is-admin {
  background: #f3e8ff;
  color: #6d28d9;
}
.admin-event-pill.is-event {
  background: #f1f5f9;
  color: #475569;
}
.admin-behavior-path {
  display: inline-flex;
  max-width: 220px;
  padding: 5px 8px;
  border-radius: 9px;
  background: #eef4ff;
  color: #174ea6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-behavior-target,
.admin-behavior-detail {
  display: block;
  max-width: 360px;
  color: #334155;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.admin-behavior-target {
  max-width: 260px;
  color: #526174;
}
.admin-behavior-json {
  margin: 0;
  max-width: 420px;
  max-height: 160px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  background: #f8fbff;
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.admin-action-detail {
  display: grid;
  gap: 10px;
  min-width: 360px;
  max-width: 620px;
}
.admin-action-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-action-detail-head strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: #eef4ff;
  color: #174ea6;
  font-size: 12px;
  font-weight: 950;
}
.admin-action-detail-head span {
  color: #172033;
  font-weight: 900;
}
.admin-action-summary,
.admin-action-note,
.admin-action-empty {
  color: #526174;
  font-weight: 800;
  line-height: 1.45;
}
.admin-action-note {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7df;
  color: #8a5b00;
}
.admin-action-changes {
  display: grid;
  gap: 8px;
}
.admin-action-change {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dfe8f4;
  border-radius: 12px;
  background: #f8fbff;
}
.admin-action-change > span {
  color: #68758a;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.admin-action-change > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.admin-action-change code {
  max-width: 180px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-action-change b {
  color: #0f7ae5;
  font-weight: 950;
}
.admin-behavior-raw {
  margin-top: 8px;
  color: #68758a;
  font-size: 12px;
}
.admin-behavior-raw summary {
  cursor: pointer;
  font-weight: 900;
}
.admin-behavior-raw code {
  display: block;
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-behavior-table-wrap::-webkit-scrollbar,
.admin-behavior-json::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.admin-behavior-table-wrap::-webkit-scrollbar-track,
.admin-behavior-json::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
.admin-behavior-table-wrap::-webkit-scrollbar-thumb,
.admin-behavior-json::-webkit-scrollbar-thumb {
  background: #c7d4e5;
  border-radius: 8px;
}
@media (max-width: 1100px) {
  .admin-behavior-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .admin-behavior-summary {
    grid-template-columns: 1fr;
  }
  .admin-action-detail {
    min-width: 0;
  }
  .admin-action-change {
    grid-template-columns: 1fr;
  }
}
.auth-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-loading-overlay.is-visible {
  display: flex;
}
.auth-loading-box {
  display: flex;
  min-width: 220px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(219, 230, 245, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  color: #172033;
  font-weight: 900;
}
.auth-loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #dbeafe;
  border-top-color: #0f6ec9;
  border-radius: 999px;
  animation: auth-loading-spin 0.75s linear infinite;
}
.auth-loading-text {
  font-size: 15px;
  white-space: nowrap;
}
@keyframes auth-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 560px) {
  .auth-loading-box {
    min-width: 0;
    width: calc(100% - 48px);
    padding: 16px 18px;
  }
  .auth-loading-text {
    font-size: 14px;
  }
}
.feed-circle-action:disabled,
.feed-toolbar-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: saturate(0.7);
  box-shadow: none;
}
.feed-circle-action:disabled:hover,
.feed-toolbar-btn:disabled:hover {
  transform: none;
}
.feed-action-icon {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  display: block !important;
  max-width: 16px !important;
  max-height: 16px !important;
}
.feed-topbar-center {
  min-width: 0;
}
.feed-mini-chip,
.feed-toolbar-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
.feed-mini-chip {
  min-width: 0;
  min-height: 38px;
  padding: 8px 14px;
}
.feed-mini-chip span,
.feed-toolbar-btn span {
  display: inline !important;
  min-width: 0;
  white-space: nowrap !important;
  overflow: visible;
}
.feed-post-toolbar .feed-toolbar-btn {
  min-height: 50px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
}
.feed-post-toolbar .feed-action-icon {
  width: 15px !important;
  height: 15px !important;
  flex-basis: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
}
.feed-page.is-dark .feed-action-icon {
  color: currentColor;
}
@media (max-width: 980px) {
  .feed-shell-topbar {
    grid-template-columns: 1fr auto;
  }
  .feed-topbar-center {
    display: none;
  }
  .feed-brand {
    font-size: 20px;
  }
  .feed-topbar-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  .feed-composer {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .feed-composer-side {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
  .feed-composer-score {
    width: 100%;
  }
  .feed-post-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  .feed-shell-topbar {
    grid-template-columns: 1fr;
    align-items: center;
  }
  .feed-topbar-actions {
    grid-column: auto;
    gap: 8px;
  }
  .feed-user-pill span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .feed-score-card {
    gap: 10px;
  }
  .feed-composer {
    grid-template-columns: 1fr;
  }
  .feed-composer-avatar {
    display: none;
  }
  .feed-composer-placeholder {
    padding: 12px 16px;
  }
  .feed-composer-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
  }
  .feed-mini-chip {
    min-height: 42px;
    padding: 9px 16px;
  }
  .feed-post-toolbar {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .feed-toolbar-btn {
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
  .feed-action-icon {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
  }
}
@media (max-width: 420px) {
  .feed-shell {
    width: calc(100vw - 12px);
  }
  .feed-score-box strong,
  .feed-composer-score {
    font-size: 28px;
  }
  .feed-topbar-actions .feed-circle-action,
  .feed-topbar-actions .feed-circle-link {
    min-width: 44px;
    height: 44px;
  }
  .feed-user-pill {
    max-width: 100%;
    padding-right: 10px;
  }
  .feed-user-pill span {
    max-width: 120px;
  }
}
/* ---- professional landing/login redesign ---- */
/* Professional landing/login redesign for BUFFTRAFFIC. */
.login-page {
  --bt-navy: #071a35;
  --bt-navy-2: #0a2b57;
  --bt-line: #dfe8f6;
  --bt-muted: #64748b;
  --bt-blue: #2563eb;
  --bt-green: #22c879;
  --bt-orange: #ff8a24;
  --bt-header-height: 82px;
  min-height: 100vh;
  padding: var(--bt-header-height) 0 0;
  background: #ffffff;
  color: #0f172a;
  overflow-x: hidden;
}

.login-page .marketing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 19px 64px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(7, 26, 53, 0.98);
  color: #ffffff;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(0);
  transition:
    background-color 0.24s ease,
    box-shadow 0.32s ease,
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-page .marketing-header.is-scrolled {
  animation: bt-header-drop 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: rgba(7, 26, 53, 0.94);
  box-shadow: 0 18px 44px rgba(2, 10, 24, 0.26);
}

.login-page .marketing-brand {
  gap: 12px;
}

.login-page .marketing-brand::before {
  content: "";
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: #ffffff url("/favicon.png") center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.34);
}

.login-page .marketing-brand-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-page .marketing-brand-subtitle {
  display: none;
}

.feed-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.feed-brand::before {
  content: "";
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: #ffffff url("/favicon.png") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.login-page .marketing-nav {
  gap: 10px;
}

.login-page .marketing-nav a,
.login-page .marketing-nav button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 237, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
  padding: 10px 14px;
  box-shadow: none;
}

.login-page .marketing-nav a:hover,
.login-page .marketing-nav button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
}

.login-page .marketing-header-actions {
  gap: 12px;
}

.login-page .marketing-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
  padding: 0 20px;
}

.login-page .marketing-pill-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-page .marketing-pill-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #22c879, #16b56d);
  box-shadow:
    0 18px 34px rgba(34, 200, 121, 0.28),
    0 0 0 0 rgba(34, 200, 121, 0.34);
  position: relative;
  overflow: hidden;
  animation: bt-primary-pulse 2.8s ease-in-out infinite;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.login-page .marketing-pill-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
  transform: translateX(-130%);
  animation: bt-button-shine 3.4s ease-in-out infinite;
}

.login-page .marketing-pill-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 22px 44px rgba(34, 200, 121, 0.38),
    0 0 0 6px rgba(34, 200, 121, 0.12);
}

.login-page .marketing-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.login-page .hero-panel {
  position: relative;
  width: 100%;
  margin-top: -1px;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  gap: 36px;
  align-items: center;
  padding: 78px 64px 96px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #071a35 0%, #0a2b57 58%, #06142a 100%);
  background-size:
    84px 84px,
    84px 84px,
    auto;
  color: #ffffff;
}

.login-page .hero-panel::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -70px;
  height: 140px;
  background: #ffffff;
  border-radius: 50% 50% 0 0;
}

.login-page .hero-copy,
.login-page .hero-visual {
  position: relative;
  z-index: 1;
}

.login-page .hero-copy {
  padding: 0;
}

.login-page .hero-eyebrow {
  color: #22c879;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.login-page .hero-title {
  max-width: 720px;
  margin: 18px 0;
  color: #ffffff;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: 0;
}

.login-page .hero-title strong,
.login-page .hero-title em {
  color: #22c879;
  font-style: normal;
}

.login-page .hero-description {
  max-width: 650px;
  color: #c8d7ef;
  font-size: 18px;
  line-height: 1.75;
}

.login-page .hero-actions {
  margin-top: 32px;
  gap: 16px;
}

.login-page .hero-cta {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.login-page .hero-cta-primary {
  background: linear-gradient(135deg, #23ce80, #16b56d);
  color: #ffffff;
}

.login-page .hero-cta-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-page .hero-warning {
  display: none;
}

.login-page .hero-highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  margin-top: 34px;
  gap: 14px;
}

.login-page .hero-highlight-card {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 8px 0 8px 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #c8d7ef;
  font-size: 14px;
  line-height: 1.45;
}

.login-page .hero-highlight-card::before {
  content: "";
  position: absolute;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-page .hero-highlight-card::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 16px;
  height: 16px;
}

.login-page .hero-highlight-card:nth-child(1)::after {
  border: 2px solid #93c5fd;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 45%, #93c5fd 46% 54%, transparent 55%),
    linear-gradient(0deg, transparent 45%, #93c5fd 46% 54%, transparent 55%);
}

.login-page .hero-highlight-card:nth-child(2)::after {
  border: 2px solid #93c5fd;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 48%, #93c5fd 49% 58%, transparent 59%)
      50% 30% / 12px 12px no-repeat,
    linear-gradient(28deg, transparent 48%, #93c5fd 49% 58%, transparent 59%)
      56% 52% / 12px 12px no-repeat;
}

.login-page .hero-highlight-card:nth-child(3)::after {
  background: #93c5fd;
  clip-path: polygon(50% 0, 92% 16%, 84% 70%, 50% 100%, 16% 70%, 8% 16%);
}

.login-page .hero-orbit,
.login-page .hero-device-glow {
  display: none;
}

.login-page .hero-visual {
  min-height: 590px;
  animation: bt-hero-rise 0.8s ease both;
}

.login-page .hero-device {
  position: absolute;
  inset: 0;
}

.login-page .hero-device-screen {
  inset: 0 -26px 0 -6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #0f172a;
  overflow: visible;
}

.login-page .hero-device-screen::before {
  display: none;
}

.login-page .hero-device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: url("/assets/dashboard-preview.png") center / contain no-repeat;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.26));
  transform-origin: center;
  animation: bt-dashboard-pop 0.55s 0.08s ease-out both;
}

.login-page .hero-chip {
  display: none;
}

.login-page .hero-device-title {
  display: none;
}

.login-page .hero-device-grid {
  display: none;
}

.login-page .hero-device-grid div {
  display: grid;
  align-content: start;
  gap: 8px;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e7eef8;
  color: #0f172a;
}

.login-page .hero-device-grid div:nth-child(1),
.login-page .hero-device-grid div:nth-child(2),
.login-page .hero-device-grid div:nth-child(3),
.login-page .hero-device-grid div:nth-child(4) {
  min-height: 96px;
}

.login-page .hero-device-grid div:nth-child(5) {
  grid-column: 1 / -1;
  min-height: 210px;
  background:
    linear-gradient(
      170deg,
      transparent 0 38%,
      rgba(37, 99, 235, 0.18) 39% 41%,
      transparent 42%
    ),
    linear-gradient(
      190deg,
      transparent 0 42%,
      rgba(34, 200, 121, 0.22) 43% 45%,
      transparent 46%
    ),
    #ffffff;
}

.login-page .hero-device-grid div:nth-child(n + 6) {
  min-height: 70px;
}

.login-page .hero-device-grid strong {
  color: #0f172a;
  font-size: 24px;
}

.login-page .hero-device-grid span {
  color: #64748b;
  font-size: 12px;
}

.login-page .marketing-lower {
  width: min(1180px, calc(100% - 48px));
  margin: 68px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 34px;
  align-items: start;
}

.login-page .guide-panel,
.login-page .login-card,
.login-page .marketing-info-section,
.login-page .marketing-footer-note {
  border: 1px solid var(--bt-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.login-page .guide-panel,
.login-page .marketing-info-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-page .section-kicker {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.login-page .guide-panel h2,
.login-page .marketing-section-title {
  color: #071a35;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: 0;
}

.login-page .marketing-section-intro {
  color: #60708a;
  font-size: 16px;
  line-height: 1.8;
}

.login-page .workflow-list {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.login-page .workflow-card,
.login-page .results-card,
.login-page .faq-card {
  border: 1px solid var(--bt-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.login-page .workflow-card {
  min-height: 0;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.login-page .workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.login-page .workflow-card h3,
.login-page .faq-card h3 {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0 0;
}

.login-page .workflow-card p,
.login-page .results-card p,
.login-page .faq-card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.login-page .login-card {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.login-page .login-card-top {
  margin-bottom: 8px;
}

.login-page .login-title {
  color: #071a35;
  font-size: 26px;
}

.login-page .login-badge {
  display: none;
}

.login-page .login-subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 8px 0 20px;
}

.login-page .auth-mode-tabs {
  border-radius: 12px;
  border-color: #dbe6f5;
  background: #f8fbff;
}

.login-page .auth-mode-tabs button {
  border-radius: 10px;
}

.login-page .auth-mode-tabs button.active,
.login-page .login-submit {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.login-page .app-input {
  min-height: 48px;
  border-radius: 12px;
  border-color: #d8e2f0;
  box-shadow: none;
}

.login-page .forgot-password-link {
  color: #2563eb;
  font-size: 13px;
}

.login-page .login-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-page .login-stats div {
  border: 1px solid #e6edf7;
  border-radius: 14px;
  background: #f8fbff;
}

.login-page .marketing-info-section {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto 0;
}

.login-page .results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.login-page .faq-list {
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 920px;
}

.login-page .results-card,
.login-page .faq-card {
  padding: 24px;
}

.login-page .results-card {
  padding: 6px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ffffff;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.login-page .results-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.14);
}

.login-page .results-card img {
  border-radius: 12px;
}

.login-page .results-card strong {
  color: #2563eb;
  font-size: 26px;
  line-height: 1.25;
}

.login-page .marketing-footer-note {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-page .faq-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 54px;
}

.login-page .faq-copy .marketing-section-title {
  color: #1976d2;
  font-size: 34px;
  line-height: 1.16;
}

.login-page .faq-copy .marketing-section-intro {
  color: #334155;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
  margin-top: 10px;
}

.login-page .faq-card {
  padding: 0;
  border: 1.5px solid #1976d2;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(25, 118, 210, 0.08);
}

.login-page .faq-card.is-open {
  box-shadow: 0 16px 34px rgba(25, 118, 210, 0.14);
}

.login-page .faq-trigger {
  min-height: 64px;
  padding: 15px 20px;
}

.login-page .faq-question {
  color: #1976d2;
  font-size: 17px;
}

.login-page .faq-answer p {
  margin: 0 20px 20px 68px;
  padding: 16px 18px;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.bt-traffic-benefits,
.bt-network-effect,
.bt-contact-section,
.bt-final-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto 0;
}

.bt-section-head {
  max-width: none;
}

.bt-section-head span {
  display: block;
  color: #2563eb;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bt-section-head h2 {
  margin: 10px 0 0;
  color: #071a35;
  font-size: 42px;
  line-height: 1.08;
}

.bt-section-head p {
  margin: 16px 0 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.75;
}

.bt-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.bt-benefit-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid #dbe6f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.bt-benefit-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eaf2ff;
  color: #2563eb;
  font-weight: 950;
}

.bt-benefit-grid article strong {
  display: block;
  margin-top: 18px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
}

.bt-benefit-grid article p {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.65;
}

.bt-network-effect {
  display: block;
}

.bt-network-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  overflow: hidden;
}

.bt-network-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.bt-network-panel div {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px 18px;
  border: 0;
  border-left: 1px solid #dbe6f5;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.bt-network-panel div:first-child {
  border-left: 0;
}

.bt-network-number {
  display: block;
  color: #2D6BC0;
  font-size: clamp(38px, 3.8vw, 58px);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.bt-network-panel span {
  display: block;
  margin-top: 22px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.bt-contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: stretch;
  padding: 38px;
  border: 1px solid #dbe6f5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.bt-contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bt-contact-copy span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bt-contact-copy h2 {
  margin: 12px 0 0;
  color: #071a35;
  font-size: 38px;
  line-height: 1.12;
}

.bt-contact-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #526174;
  font-size: 17px;
  line-height: 1.8;
}

.bt-contact-card {
  padding: 24px;
  border: 1px solid #d8e5f6;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.1);
}

.bt-contact-card h3 {
  margin: 0 0 18px;
  color: #071a35;
  font-size: 22px;
}

.bt-contact-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e3ecf8;
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.bt-contact-row + .bt-contact-row {
  margin-top: 12px;
}

.bt-contact-row strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.bt-contact-row small {
  display: block;
  margin-top: 4px;
  color: #2563eb;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.bt-contact-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 18px;
  font-weight: 950;
}

.bt-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #071a35 0%, #0b3f83 58%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(37, 99, 235, 0.22);
}

.bt-final-cta-copy span {
  display: inline-flex;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bt-final-cta-copy h2 {
  margin: 12px 0 0;
  font-size: 38px;
  line-height: 1.12;
}

.bt-final-cta-copy p {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(226, 237, 255, 0.84);
  font-size: 17px;
  line-height: 1.75;
}

.bt-final-cta-form {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.bt-final-cta-form label {
  display: block;
  margin-bottom: 10px;
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 850;
}

.bt-final-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.bt-final-input-row input {
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 15px;
  outline: none;
}

.bt-final-input-row button,
.bt-final-login {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.bt-final-input-row button {
  padding: 0 18px;
  background: #16c784;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(22, 199, 132, 0.28);
}

.bt-final-login {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bt-pro-footer {
  width: 100%;
  margin-top: 64px;
  padding: 42px 64px 26px;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 36px;
  border-top: 1px solid #e6edf7;
  background: #fbfdff;
  color: #475569;
}

.bt-pro-footer strong {
  display: block;
  margin-bottom: 12px;
  color: #071a35;
  font-size: 16px;
}

.bt-pro-footer-brand > strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.bt-pro-footer-brand > strong::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: #ffffff url("/favicon.png") center / cover no-repeat;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.bt-pro-footer p {
  max-width: 330px;
  margin: 0;
  line-height: 1.7;
}

.bt-pro-footer a,
.bt-pro-footer span {
  display: block;
  margin: 8px 0;
  color: #64748b;
  font-size: 14px;
}

.bt-pro-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.bt-pro-socials span {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 0;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.bt-pro-socials span::before {
  font-size: 16px;
  line-height: 1;
}

.bt-pro-socials span[data-icon="facebook"]::before {
  content: "f";
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.bt-pro-socials span[data-icon="youtube"] {
  color: #ffffff;
  background: #ef4444;
}

.bt-pro-socials span[data-icon="youtube"]::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid currentColor;
  transform: translateX(1px);
}

.bt-pro-socials span[data-icon="telegram"] {
  color: #ffffff;
  background: #229ed9;
}

.bt-pro-socials span[data-icon="telegram"]::before {
  content: "";
  width: 17px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(0 48%, 100% 0, 72% 100%, 47% 62%, 26% 78%);
  transform: translateX(-1px);
}

.bt-pro-socials span[data-icon="x"] {
  color: #ffffff;
  background: #0f172a;
}

.bt-pro-socials span[data-icon="x"]::before {
  content: "X";
  font-size: 15px;
}

.bt-pro-footer small {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid #e6edf7;
  color: #94a3b8;
  text-align: center;
}

@keyframes bt-hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bt-header-drop {
  from {
    opacity: 0.78;
    transform: translateY(-26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bt-primary-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 34px rgba(34, 200, 121, 0.28),
      0 0 0 0 rgba(34, 200, 121, 0.26);
  }
  50% {
    box-shadow:
      0 20px 40px rgba(34, 200, 121, 0.36),
      0 0 0 8px rgba(34, 200, 121, 0.08);
  }
}

@keyframes bt-button-shine {
  0%,
  42% {
    transform: translateX(-130%);
  }
  70%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes bt-dashboard-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .login-page {
    --bt-header-height: 132px;
  }

  .login-page .marketing-header {
    padding: 16px 28px;
    grid-template-columns: 1fr auto;
  }

  .login-page .marketing-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .login-page .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 58px 36px 90px;
  }

  .login-page .hero-title {
    font-size: 52px;
  }

  .login-page .hero-visual {
    min-height: 460px;
  }

  .login-page .marketing-lower {
    grid-template-columns: 1fr;
  }

  .login-page .login-card {
    position: static;
  }

  .bt-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-contact-section {
    grid-template-columns: 1fr;
  }

  .bt-final-cta {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 820px) {
  .login-page {
    --bt-header-height: 178px;
  }

  .login-page .marketing-header {
    padding: 14px 18px;
  }

  .login-page .marketing-brand-name {
    font-size: 20px;
  }

  .login-page .marketing-header-actions {
    width: 100%;
    grid-column: 1 / -1;
  }

  .login-page .marketing-pill {
    flex: 1;
  }

  .login-page .marketing-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .login-page .marketing-nav a,
  .login-page .marketing-nav button {
    flex: 0 0 auto;
  }

  .login-page .hero-panel {
    padding: 44px 20px 72px;
    gap: 30px;
  }

  .login-page .hero-title {
    font-size: 40px;
  }

  .login-page .hero-description {
    font-size: 16px;
  }

  .login-page .hero-highlights,
  .login-page .workflow-list,
  .login-page .results-grid,
  .login-page .faq-list,
  .login-page .login-stats,
  .login-page .auth-two-cols {
    grid-template-columns: 1fr;
  }

  .login-page .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-page .faq-copy {
    min-height: auto;
  }

  .login-page .hero-visual {
    min-height: 410px;
  }

  .login-page .hero-device-screen {
    inset: 0;
  }

  .login-page .hero-device-grid {
    left: 20px;
    right: 20px;
    top: 118px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 92px) 150px;
  }

  .login-page .hero-device-grid div:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 130px;
  }

  .login-page .hero-device-grid div:nth-child(n + 6) {
    display: none;
  }

  .login-page .hero-device-title {
    left: 160px;
  }

  .login-page .marketing-lower,
  .login-page .marketing-info-section,
  .bt-traffic-benefits,
  .bt-network-effect,
  .bt-contact-section,
  .bt-final-cta {
    width: min(100% - 28px, 1180px);
  }

  .login-page .guide-panel h2,
  .login-page .marketing-section-title,
  .bt-section-head h2 {
    font-size: 32px;
  }

  .bt-benefit-grid {
    grid-template-columns: 1fr;
  }

  .bt-network-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-network-panel div:nth-child(odd) {
    border-left: 0;
  }

  .bt-pro-footer {
    grid-template-columns: 1fr;
  }

  .bt-network-card {
    padding: 12px 0 0;
  }

  .bt-benefit-grid article {
    min-height: auto;
  }

  .bt-pro-footer {
    padding: 34px 22px 24px;
  }

  .bt-contact-section {
    padding: 26px 20px;
  }

  .bt-final-cta {
    padding: 26px 20px;
  }

  .bt-contact-copy h2 {
    font-size: 30px;
  }

  .bt-final-cta-copy h2 {
    font-size: 30px;
  }

  .bt-contact-copy p {
    font-size: 15px;
  }

  .bt-final-cta-copy p {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .login-page {
    --bt-header-height: 226px;
  }

  .login-page .marketing-header {
    grid-template-columns: 1fr;
  }

  .login-page .marketing-brand::before {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .login-page .hero-title {
    font-size: 34px;
  }

  .login-page .hero-actions {
    display: grid;
  }

  .login-page .hero-cta {
    width: 100%;
  }

  .login-page .hero-visual {
    min-height: 360px;
  }

  .login-page .hero-chip {
    left: 16px;
    top: 58px;
  }

  .login-page .hero-device-title {
    left: 16px;
    top: 108px;
  }

  .login-page .hero-device-grid {
    left: 14px;
    right: 14px;
    top: 148px;
    bottom: 14px;
    gap: 10px;
    padding: 12px;
  }

  .login-page .hero-device-grid div {
    padding: 12px;
  }

  .login-page .hero-device-grid strong {
    font-size: 19px;
  }

  .login-page .login-card,
  .login-page .workflow-card,
  .login-page .results-card,
  .login-page .faq-card,
  .bt-benefit-grid article,
  .bt-network-panel div {
    padding: 20px;
  }

  .login-page .faq-card p {
    padding-left: 0;
    padding-right: 0;
  }

  .login-page .faq-card {
    padding: 0;
  }

  .login-page .faq-trigger {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 58px;
    padding: 13px 14px;
  }

  .login-page .faq-number {
    width: 30px;
    height: 30px;
  }

  .login-page .faq-question {
    font-size: 15px;
  }

  .login-page .faq-answer p {
    margin: 0 14px 16px;
    padding: 14px;
    font-size: 14px;
  }

  .bt-network-number {
    font-size: 46px;
  }

  .bt-contact-card {
    padding: 16px;
  }

  .bt-contact-row {
    padding: 14px;
  }

  .bt-final-input-row {
    grid-template-columns: 1fr;
  }

  .bt-final-cta-form {
    padding: 16px;
  }

  .bt-network-panel {
    grid-template-columns: 1fr;
  }

  .bt-network-panel div {
    min-height: 120px;
    border-left: 0;
    border-top: 1px solid #dbe6f5;
  }

  .bt-network-panel div:first-child {
    border-top: 0;
  }
}

/* Feed action cleanup: remove buy-point gaps, keep icons compact beside text. */
.feed-topbar-center {
  display: none !important;
}

.feed-shell-topbar {
  grid-template-columns: auto 1fr auto !important;
}

.feed-topbar-actions {
  grid-column: 3 !important;
  justify-self: end !important;
  margin-left: auto !important;
}

.feed-action-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  display: block !important;
}

.feed-mini-chip,
.feed-toolbar-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.feed-mini-chip {
  min-height: 38px;
  padding: 8px 16px;
}

.feed-mini-chip.is-success,
.feed-mini-chip .feed-action-icon {
  display: none !important;
}

.feed-mini-chip span,
.feed-toolbar-btn span {
  display: inline !important;
  min-width: 0;
  white-space: nowrap !important;
}

.feed-post-toolbar .feed-toolbar-btn {
  min-height: 50px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
}

.feed-post-toolbar .feed-action-icon {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex-basis: 15px !important;
}

@media (max-width: 980px) {
  .feed-shell-topbar {
    grid-template-columns: auto 1fr auto !important;
  }

  .feed-topbar-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    margin-left: auto !important;
    flex-wrap: wrap;
  }

  .feed-composer {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .feed-composer-side {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .feed-composer-score {
    width: 100%;
  }

  .feed-post-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .feed-shell-topbar {
    grid-template-columns: 1fr !important;
  }

  .feed-topbar-actions {
    grid-column: 1 !important;
    justify-self: end !important;
    margin-left: auto !important;
  }

  .feed-composer {
    grid-template-columns: 1fr;
  }

  .feed-composer-avatar {
    display: none;
  }

  .feed-composer-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  .feed-mini-chip {
    min-height: 42px;
    padding: 9px 16px;
  }

  .feed-post-toolbar {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .feed-toolbar-btn {
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
  }

  .feed-action-icon {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    flex-basis: 15px !important;
  }
}

/* Feed sidebar polish: community chat + ads rail. */
.feed-sidebar,
.feed-ad-rail-card {
  border-radius: 22px !important;
  border: 1px solid rgba(204, 217, 236, 0.86) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 251, 255, 0.94)
  ) !important;
  box-shadow: 0 18px 52px rgba(25, 49, 86, 0.08) !important;
}

.chat-thread-head,
.right-rail-card-head {
  min-height: 74px;
  padding: 20px 22px 16px !important;
  border-bottom: 1px solid rgba(220, 230, 244, 0.9) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(246, 250, 255, 0.76)
  ) !important;
}

.chat-thread-copy strong,
.right-rail-card-head strong {
  color: #132039 !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.right-rail-card-head span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #46617f !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  background: #eef4ff;
  border: 1px solid #dbe7f7;
}

.feed-sidebar-list {
  gap: 14px !important;
  padding: 18px 18px 20px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfdff, #f7faff) !important;
}

.chat-message {
  position: relative;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px !important;
  align-items: start !important;
}

.chat-message.is-own {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.chat-message.is-own .chat-avatar {
  grid-column: 2;
}

.chat-message.is-own .chat-bubble {
  grid-column: 1;
  grid-row: 1;
}

.chat-avatar {
  width: 42px !important;
  height: 42px !important;
  border: 2px solid #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13) !important;
}

.chat-bubble {
  position: relative;
  padding: 14px 16px 13px !important;
  border-radius: 16px !important;
  color: #172033 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(218, 228, 242, 0.95) !important;
  box-shadow: 0 10px 26px rgba(24, 45, 78, 0.055) !important;
}

.chat-bubble:before {
  content: "";
  position: absolute;
  left: -6px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(218, 228, 242, 0.95);
  border-bottom: 1px solid rgba(218, 228, 242, 0.95);
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.chat-message.is-own .chat-bubble:before {
  left: auto;
  right: -6px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid rgba(218, 228, 242, 0.95);
  border-top: 1px solid rgba(218, 228, 242, 0.95);
}

.chat-author {
  margin-bottom: 6px;
  color: #101a31 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25;
}

.chat-bubble > div:not(.chat-author):not(.chat-time) {
  color: #1f2b43;
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.chat-time {
  margin-top: 8px !important;
  color: #8da0ba !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.chat-footer {
  padding: 16px 18px !important;
  border-top: 1px solid rgba(220, 230, 244, 0.9) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.chat-input-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px !important;
  align-items: center;
}

.chat-input {
  height: 46px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  color: #172033 !important;
  background: #f5f8fc !important;
  border: 1px solid #dce7f4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.chat-input:focus {
  outline: none;
  border-color: #8db4ef !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.chat-send-btn {
  height: 46px !important;
  min-width: 64px;
  padding: 0 16px !important;
  border-radius: 14px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #14b8a6) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2) !important;
}

.chat-send-btn:disabled {
  opacity: 0.52;
  box-shadow: none !important;
}

.feed-ad-rail-card {
  padding: 0 !important;
  overflow: hidden !important;
}

.feed-ad-list {
  gap: 16px !important;
  padding: 18px !important;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(20, 184, 166, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #fbfdff, #f8fbff) !important;
}

.feed-ad-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 16px !important;
  border: 1px solid rgba(210, 222, 238, 0.9) !important;
  background: #111827 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.feed-ad-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.34) !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18) !important;
}

.feed-ad-card img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.01);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
  z-index: -2;
}

.feed-ad-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.feed-ad-card:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(10, 18, 33, 0.04) 22%,
      rgba(8, 15, 30, 0.82) 100%
    ),
    linear-gradient(90deg, rgba(8, 15, 30, 0.58), transparent 74%);
}

.feed-ad-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid !important;
  gap: 7px !important;
  color: #fff !important;
}

.feed-ad-copy strong {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.feed-ad-copy span {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.feed-page.is-dark .feed-sidebar,
.feed-page.is-dark .feed-ad-rail-card {
  background: linear-gradient(180deg, #111a2b, #0d1525) !important;
  border-color: #263650 !important;
}

.feed-page.is-dark .chat-thread-head,
.feed-page.is-dark .right-rail-card-head,
.feed-page.is-dark .chat-footer {
  background: rgba(15, 24, 39, 0.96) !important;
  border-color: #263650 !important;
}

.feed-page.is-dark .chat-thread-copy strong,
.feed-page.is-dark .right-rail-card-head strong {
  color: #f8fbff !important;
}

.feed-page.is-dark .feed-sidebar-list,
.feed-page.is-dark .feed-ad-list {
  background: linear-gradient(180deg, #0f1828, #0c1422) !important;
}

.feed-page.is-dark .chat-bubble,
.feed-page.is-dark .chat-bubble:before {
  background: #152238 !important;
  border-color: #263650 !important;
}

.feed-page.is-dark .chat-author,
.feed-page.is-dark .chat-bubble > div:not(.chat-author):not(.chat-time) {
  color: #edf4ff !important;
}

@media (max-width: 1280px) {
  .feed-right-rail .feed-ad-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .feed-sidebar {
    max-height: 520px;
  }

  .feed-right-rail .feed-ad-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .chat-thread-head,
  .right-rail-card-head {
    min-height: 64px;
    padding: 16px !important;
  }

  .feed-sidebar-list,
  .feed-ad-list {
    padding: 14px !important;
  }

  .chat-message {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px !important;
  }

  .chat-avatar {
    width: 36px !important;
    height: 36px !important;
  }

  .chat-bubble {
    padding: 12px 13px !important;
    border-radius: 14px !important;
  }

  .chat-input-form {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .chat-send-btn {
    min-width: 58px;
    padding: 0 12px !important;
  }

  .feed-ad-card {
    min-height: 164px;
  }
}
