/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #f4efe7;
  --panel: #fffdf9;
  --line: #ddcfbf;
  --text: #1d1f1e;
  --muted: #66625b;
  --dark: #16222a;
  --olive: #637a3a;
  --sand: #e7dccd;
  --accent: #c96f38;
  --shadow: 0 18px 45px rgba(29, 31, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body.flowpulse-body {
  margin: 0;
  color: var(--text);
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(201, 111, 56, 0.08), transparent 22%),
    radial-gradient(circle at left 20%, rgba(99, 122, 58, 0.08), transparent 26%),
    var(--bg);
}

.home-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(221, 207, 191, 0.8);
  box-shadow: 0 10px 25px rgba(29, 31, 30, 0.04);
  backdrop-filter: blur(8px);
}

.sub-nav {
  justify-content: flex-start;
  margin-top: -4px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

.sub-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sub-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(221, 207, 191, 0.8);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.sub-nav-links a:hover {
  color: var(--text);
  background: #f5f0e8;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.top-nav-links a:hover {
  color: var(--text);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--dark);
  color: white !important;
}

.user-menu {
  position: relative;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.user-trigger::-webkit-details-marker {
  display: none;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 5;
}

.user-dropdown a,
.user-menu-button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-menu-button:hover {
  background: #f5f0e8;
}

.auth-shell,
.dashboard-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.app-sidebar {
  background: linear-gradient(180deg, #18232b 0%, #111920 100%);
  border: 1px solid rgba(221, 207, 191, 0.22);
  border-radius: 28px;
  padding: 22px 18px;
  color: white;
  box-shadow: var(--shadow);
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.app-sidebar-brand h2 {
  margin: 0;
  font-size: 1.1rem;
}

.app-sidebar-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-sidebar-nav {
  display: grid;
  gap: 18px;
}

.sidebar-group {
  display: grid;
  gap: 6px;
  padding-left: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.14);
}

.sidebar-group-traveler {
  border-left-color: #d3b38b;
}

.sidebar-group-creator {
  border-left-color: #8db06f;
}

.sidebar-group-professionals {
  border-left-color: #6f93b8;
}

.sidebar-group-superadmin {
  border-left-color: #d37d57;
}

.sidebar-group-space {
  border-left-color: #7f8b99;
}

.sidebar-group-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-group a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
}

.sidebar-group a:hover,
.sidebar-group a.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-group form {
  margin: 0;
}

.sidebar-button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 22px;
}

.auth-copy,
.auth-card,
.dashboard-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-copy-inline {
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.auth-copy h1,
.dashboard-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.96;
  max-width: 10ch;
}

.auth-copy p,
.dashboard-card p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--text);
  font: inherit;
}

.text-input {
  min-height: 46px;
  padding: 0 14px;
}

.text-area {
  padding: 12px 14px;
  resize: vertical;
}

.readonly-field {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f3ec;
  color: var(--muted);
  font-weight: 700;
}

.text-input:focus,
.text-area:focus {
  outline: 2px solid rgba(201, 111, 56, 0.18);
  border-color: var(--accent);
}

.auth-submit {
  width: 100%;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.auth-links a,
.auth-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.flash-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
}

.flash-card strong,
.flash-card p {
  margin: 0;
}

.flash-card p {
  margin-top: 4px;
}

.flash-alert {
  background: #fff1ed;
  border: 1px solid #f2c5b6;
}

.flash-notice {
  background: #eef7f0;
  border: 1px solid #cfe4d2;
}

.status-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.status-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fcfaf7;
}

.request-creator-box {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f6f0e7;
  border: 1px solid var(--line);
}

.request-creator-box-success {
  background: #edf5ea;
  border-color: #c9ddbf;
}

.request-creator-box p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.request-price {
  color: var(--text) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

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

.tree-panel {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fcfaf7;
}

.tree-title {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-section {
  margin-top: 24px;
}

.admin-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfaf7;
}

.admin-list-copy strong,
.admin-list-copy p {
  margin: 0;
}

.admin-list-copy p {
  color: var(--muted);
  line-height: 1.45;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-meta {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.dashboard-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fcfaf7;
}

.dashboard-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.dashboard-section {
  margin: 22px 0;
}

.dashboard-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.dashboard-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fcfaf7;
}

.dashboard-panel-blue {
  background: #eaf2fb;
}

.dashboard-panel-green {
  background: #edf6ec;
}

.dashboard-panel-red {
  background: #f9ece8;
}

.dashboard-panel-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-panel h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.dashboard-panel p {
  margin: 0;
}

.dashboard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.dashboard-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fcfaf7;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
}

.dashboard-tab-link:hover {
  background: #f5f0e8;
}

.dashboard-tab-link.active {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

.home-hero,
.info-card,
.wide-card,
.hero-card {
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 22px;
}

.hero-copy {
  padding: 22px 18px;
}

.eyebrow,
.hero-card-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-copy h1,
.wide-card h2,
.info-card h2 {
  margin: 0 0 14px;
}

.about-step-title {
  margin: 26px 0 10px;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.hero-text,
.info-card p,
.wide-card p,
.small-note,
.hero-list span {
  color: var(--muted);
  line-height: 1.65;
}

.hero-panel {
  display: flex;
}

.hero-card {
  width: 100%;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(231, 220, 205, 0.8), rgba(255, 253, 249, 0.96)),
    var(--panel);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease;
}

form.button_to {
  margin: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-secondary {
  background: var(--sand);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.section-grid,
.split-section {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

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

.info-card,
.wide-card {
  padding: 24px;
}

.split-section {
  grid-template-columns: 1.15fr 0.85fr;
}

.tree-preview {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f2ea;
  border: 1px solid var(--line);
  font-family: "Courier New", monospace;
  line-height: 1.8;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(99, 122, 58, 0.08), rgba(255, 253, 249, 0.96)),
    var(--panel);
}

.journey-list {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.journey-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-weight: 700;
}

.changelog-head {
  display: block;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(221, 207, 191, 0.9);
}

.changelog-stream {
  margin-top: 6px;
  display: grid;
}

.changelog-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(221, 207, 191, 0.68);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  cursor: pointer;
}

.changelog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.changelog-line,
.changelog-modal-text {
  margin: 0;
}

.changelog-item:hover .changelog-line {
  color: var(--accent);
}

.change-pill,
.changelog-modal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
}

.change-pill-update {
  color: var(--dark);
}

.change-pill-ux {
  color: var(--accent);
}

.change-pill-link {
  color: var(--olive);
}

.changelog-modal-pill {
  color: var(--dark);
}

.changelog-line {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.35;
}

.changelog-modal {
  width: min(560px, calc(100% - 24px));
  border: none;
  padding: 0;
  background: transparent;
}

.changelog-modal::backdrop {
  background: rgba(22, 34, 42, 0.42);
  backdrop-filter: blur(4px);
}

.changelog-modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 50px rgba(22, 34, 42, 0.18);
}

.changelog-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.changelog-modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.changelog-modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.changelog-modal-text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .top-nav {
    align-items: flex-start;
    padding: 14px;
  }

  .top-nav-links {
    justify-content: flex-start;
  }

  .user-dropdown {
    right: auto;
    left: 0;
  }

  .changelog-item {
    gap: 6px;
  }
}

@media (max-width: 960px) {
  .app-layout,
  .home-hero,
  .auth-grid,
  .section-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .admin-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .home-shell {
    width: min(100%, calc(100% - 24px));
    padding: 18px 0 36px;
  }

  .auth-shell,
  .dashboard-shell {
    width: min(100%, calc(100% - 24px));
    padding: 24px 0 36px;
  }

  .home-hero,
  .app-sidebar,
  .auth-copy,
  .auth-card,
  .dashboard-card,
  .info-card,
  .wide-card,
  .hero-card {
    border-radius: 22px;
  }

  .home-hero,
  .app-sidebar,
  .auth-copy,
  .auth-card,
  .dashboard-card,
  .info-card,
  .wide-card {
    padding: 18px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card-link {
  color: inherit;
  text-decoration: none;
}

.blog-index-header {
  width: 100%;
  max-width: 1120px;
  padding: 0;
}

.blog-index-shell {
  width: 100%;
  max-width: 1120px;
  padding: 0;
}

.blog-index-title {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111111;
}

.blog-index-intro {
  margin: 0;
  max-width: 72ch;
  color: #5f5953;
  line-height: 1.75;
  font-size: 0.98rem;
}

.blog-index-rule {
  margin: 1.4rem 0 0;
  border: 0;
  border-top: 1px solid rgba(34, 30, 26, 0.09);
}

.blog-index-list {
  margin-top: 0.9rem;
  padding: 0;
  list-style: none;
}

.blog-index-item {
  display: grid;
  grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.75rem 0 1.95rem;
  border-bottom: 1px solid rgba(34, 30, 26, 0.08);
}

.blog-index-item:first-child {
  padding-top: 0.55rem;
}

.blog-index-date p {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #7b746d;
  letter-spacing: 0.01em;
}

.blog-index-copy {
  min-width: 0;
}

.blog-index-item-title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.68rem, 2.7vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #111111;
}

.blog-index-item-title a:hover {
  color: #3f5f52;
}

.blog-index-excerpt {
  margin: 0.45rem 0 0;
  max-width: 74ch;
  line-height: 1.78;
  color: #554f49;
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .blog-index-rule {
    margin-top: 1.25rem;
  }

  .blog-index-item {
    grid-template-columns: 1fr;
    gap: 0.38rem;
    padding: 1rem 0 1.2rem;
  }

  .blog-index-date p {
    margin-top: 0;
  }

  .blog-index-item-title {
    max-width: none;
  }
}

.blog-post {
  max-width: 860px;
}

.blog-post-title,
.blog-content-title {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #111111;
}

.blog-post-date {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: #6f6b66;
}

.blog-content {
  display: grid;
  gap: 0.9rem;
}

.blog-content-heading,
.blog-content-heading-small {
  margin: 1rem 0 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111111;
}

.blog-content-heading {
  font-size: 1.45rem;
}

.blog-content-heading-small {
  font-size: 1.1rem;
}

.blog-content-paragraph,
.blog-content-list {
  margin: 0;
  max-width: 70ch;
  line-height: 1.7;
  color: #2e2a26;
}

.blog-content-list {
  padding-left: 1.15rem;
}
