﻿:root {
  --accent: #ff5c54;
  --accent-strong: #b83230;
  --accent-soft: rgba(255, 92, 84, 0.12);
  --accent-border: rgba(255, 92, 84, 0.35);
  --accent-focus: rgba(255, 92, 84, 0.18);
  --dark: #050505;
  --gray-100: #f6f6fb;
  --gray-200: #ededf5;
  --gray-300: #dedee7;
  --gray-500: #9ea2b0;
  --gray-700: #3b3d4c;
  --card-bg: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #111;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  background: #e9ecf4;
  color: #222;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body:not([data-app-ready="ready"]) .app-shell {
  opacity: 0;
  pointer-events: none;
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.75), rgba(233, 236, 244, 0.95));
  z-index: 9999;
  transition: opacity 200ms ease;
}

.app-loading-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 0 24px 80px rgba(15, 18, 40, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: #1f2130;
}

.app-loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(31, 33, 48, 0.15);
  border-top-color: var(--accent, #ff5c54);
  animation: appLoadingSpin 0.8s linear infinite;
}

@keyframes appLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

body:not([data-app-ready="ready"]) .app-loading-overlay {
  display: flex;
}

body[data-app-ready="ready"] .app-loading-overlay {
  display: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2.5rem;
  padding: 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar {
  width: 250px;
  height: calc(100vh - 4rem);
  background: #050505;
  border-radius: 32px;
  padding: 2rem 1.5rem;
  color: #f5f5ff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
  border-radius: 18px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

.sidebar-greeting {
  font-size: 0.95rem;
  line-height: 1.3;
}

.sidebar-greeting span {
  display: inline-block;
  font-weight: 700;
}

.brand-tag {
  background: rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  color: #c7b3ff;
  display: inline-flex;
  align-self: flex-start;
}
.brand-tag.free-pill {
  background: rgba(76, 201, 240, 0.2);
  color: #1994c5;
}

.nav-section {
  margin-top: 1.5rem;
}

.nav-section + .nav-section {
  margin-top: 0.5rem;
}

.nav-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.7rem;
}

.nav-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-section li {
  border-radius: 16px;
  border-radius: 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  color: inherit;
  text-decoration: none;
  width: 100%;
  border-radius: inherit;
}

.nav-section li.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.nav-section li:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
}

.nav-section li.active:hover {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.support-btn {
  width: 100%;
  justify-content: center;
  gap: 0.4rem;
}

.workspace {
  flex: 1;
  background: #fefefe;
  border-radius: 36px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(10, 10, 30, 0.15);
  display: flex;
  flex-direction: column;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6e7388;
  font-weight: 500;
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(260px, 1fr);
  gap: 1.8rem;
}

.support-layout {
  display: block;
}

.support-stack {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.templates-disabled {
  position: relative;
}
.templates-disabled .templates-content {
  filter: blur(6px);
  pointer-events: none;
}
.coming-soon-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(233, 236, 244, 0.9);
  border-radius: 32px;
  text-align: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.plan-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.plan-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.plan-summary-card {
  min-width: 260px;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 1.1rem 1.3rem;
  background: #f8f8fd;
}
.plan-summary-card h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.35rem;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.plan-card {
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
}
.plan-card.active,
.plan-card.highlighted {
  border-color: var(--accent);
  box-shadow: 0 25px 45px rgba(10, 10, 30, 0.12);
}
.plan-card[data-plan="free"].active {
  border-color: var(--gray-200);
  box-shadow: none;
}
.plan-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
}
.plan-price span {
  font-size: 0.9rem;
  color: #777b90;
  margin-left: 0.35rem;
}
.plan-limit {
  color: #5d6074;
}
.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plan-feature {
  position: relative;
  padding-left: 1.4rem;
  color: #33364c;
  font-weight: 600;
}
.plan-feature::before {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  color: var(--accent);
}
.plan-cta {
  margin-top: auto;
}
.support-ticket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.4rem;
}
.ticket-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ticket-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.ticket-form-grid .full-span {
  grid-column: 1 / -1;
}
.ticket-form input,
.ticket-form select,
.ticket-form textarea {
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  padding: 0.85rem 1rem;
  background: #fdfdff;
  font: inherit;
  color: #1e2134;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-focus);
}
.ticket-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, #7c8198 50%), linear-gradient(135deg, #7c8198 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 2px), calc(100% - 0.8rem) calc(50% - 2px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}
.ticket-form label {
  font-size: 0.85rem;
  color: #606379;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ticket-form textarea {
  min-height: 140px;
  resize: vertical;
}
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ticket-row {
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #fcfdff;
}
.ticket-row.compact {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}
.ticket-row.compact:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.ticket-code {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #5b6075;
}
.ticket-snippet {
  font-size: 0.85rem;
  color: #7e8298;
}
.ticket-row-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.ticket-row-heading h4 {
  font-size: 1.05rem;
  color: #1f2236;
}
.ticket-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  font-size: 0.85rem;
  color: #62667a;
}
.ticket-meta span strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8fa4;
}
.ticket-actions {
  display: none;
}
.empty-state {
  padding: 1rem;
  border-radius: 18px;
  background: #f5f6fb;
  border: 1px dashed var(--gray-200);
  text-align: center;
  color: #7a7f94;
  font-size: 0.9rem;
}

.support-hero {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--gray-200);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.support-hero.simple {
  padding: 2rem;
}
.support-hero.simple p {
  color: #565a6d;
  max-width: 640px;
}
.support-hero.simple .support-search {
  width: 100%;
}

.ticket-detail-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 30px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.ticket-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.message-bubble {
  border-radius: 20px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gray-200);
  background: #f9f9ff;
}
.message-bubble .message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #84879c;
  margin-bottom: 0.4rem;
}

.support-hero h2 {
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
}

.support-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  background: #f8f8fb;
  width: 100%;
  flex-wrap: wrap;
}

.support-search input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
}

.support-search button {
  flex-shrink: 0;
}

.support-search input:focus {
  outline: none;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.support-hero .hero-copy p {
  max-width: 520px;
}

.support-search .pill-btn {
  padding: 0.65rem 1.2rem;
}

.support-card {
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--gray-200);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-card.dark-header h3 {
  background: #08090f;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  margin: -0.4rem -0.2rem 0;
}

.support-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.support-panels.simple-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.support-panels.knowledge-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.support-panels.status-updates {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #8a8ea5;
  margin-bottom: 0.2rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.card-heading {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.accent-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-list,
.ticket-list,
.link-list,
.article-list,
.status-grid,
.updates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-list li,
.ticket-list li,
.link-list li,
.article-list li,
.status-grid li,
.updates-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.link-list strong {
  display: block;
  color: #1f2334;
}

.link-list span {
  font-size: 0.82rem;
  color: #7a7f94;
}

.article-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.1rem;
  color: #1f2334;
}

.article-list span {
  font-size: 0.85rem;
  color: #6c7087;
}

.status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #55596c;
}
.status-list .status-pill {
  min-width: 84px;
  justify-content: center;
}

.category-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.ticket-list li .status-pill {
  min-width: 90px;
  justify-content: center;
}

.status-card {
  gap: 0.8rem;
}

.status-grid strong {
  margin-bottom: 0.1rem;
  display: block;
}

.contact-block {
  border: 1px dashed var(--gray-200);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  font-weight: 600;
  color: #1f2236;
}
.contact-block span {
  font-size: 0.9rem;
  color: #6a6f83;
  font-weight: 500;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.status-history {
  background: #f5f6fc;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #6b6f84;
}

.updates-list span:last-child {
  color: #8a8ea5;
  font-size: 0.8rem;
  white-space: nowrap;
}

.updates-list strong {
  display: block;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .support-panels.status-updates {
    grid-template-columns: 1fr;
  }
  .support-hero {
    padding: 1.4rem;
  }
  .support-ticket-grid {
    grid-template-columns: 1fr;
  }
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.support-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #565a6d;
}

.support-form input,
.support-form textarea,
.modal-section select {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  font: inherit;
}

.invoice-card {
  background: #fff;
  border-radius: 28px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border: 1px solid var(--gray-200);
}
#invoice-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.section-heading {
  font-size: 1.6rem;
  font-weight: 600;
}

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

.invoice-meta .number-block {
  grid-column: 1 / -1;
}

.search-input {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  background: #f8f8fb;
}

.search-input input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fdfdfd;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4e5163;
  cursor: pointer;
}

.chip-btn.ghost {
  background: transparent;
  border-color: rgba(78, 81, 99, 0.25);
}

.chip-btn.soft {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 18px var(--accent-focus);
}

.meta-block {
  background: #f7f8fd;
  border-radius: 20px;
  padding: 0.9rem;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-block label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6c6f83;
}

.meta-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 0.55rem 0.85rem;
  background: #fff;
}

.meta-input .material-symbols-outlined {
  color: #9a9db1;
  font-size: 1.1rem;
}

.meta-input input {
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
}

.meta-block input:focus {
  outline: none;
}

.meta-chip {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 0.65rem 0.9rem;
  background: #fff;
  color: #2a2c3c;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.meta-chip .material-symbols-outlined {
  color: var(--accent);
  font-size: 1.1rem;
}

input,
textarea,
button,
.select,
.input-chip,
.meta-chip {
  font-family: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #fdfdff;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-focus);
}

.input-chip {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #fdfdff;
  color: #27282f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dot-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.4;
  margin: 0 0.4rem;
  vertical-align: middle;
}

.party-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.stat-pill {
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 1rem;
  background: #f8f8fd;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-pill p {
  font-size: 0.88rem;
  color: #676b7d;
}

.stat-pill strong {
  font-size: 1.5rem;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6f7384;
}

.stat-trend.up {
  color: #3ba86d;
}

.stat-trend.warn {
  color: #d96b34;
}

.party-card {
  background: #faf9ff;
  border-radius: 20px;
  padding: 1.4rem;
  border: 1px solid var(--gray-200);
  color: #4a5161;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #717794;
  font-size: 0.9rem;
}

.party-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #1f2336;
}
.client-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.client-info-card {
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: #f9f9ff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.client-info-card h4 {
  font-size: 0.95rem;
  color: #6b6f84;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.client-info-card span {
  font-size: 0.8rem;
  color: #8a8ea5;
  display: block;
}

.clients-card,
.catalog-card {
  background: #fff;
  border-radius: 28px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--gray-200);
}

.clients-top,
.catalog-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.sort-control {
  position: relative;
}

.sort-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 15, 40, 0.15);
  padding: 0.4rem;
  display: none;
  min-width: 210px;
  z-index: 10;
}

.sort-menu.open {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sort-menu button {
  border: none;
  background: transparent;
  padding: 0.55rem 0.8rem;
  text-align: left;
  font: inherit;
  border-radius: 12px;
  cursor: pointer;
  color: #3c3f53;
}

.sort-menu button:hover,
.sort-menu button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.clients-stats,
.catalog-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.clients-table,
.catalog-table {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  overflow: hidden;
}

.settings-heading h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.settings-heading p {
  color: #6d7084;
  max-width: 360px;
}

.chip-stack {
  display: flex;
  gap: 0.75rem;
}

.gst-toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gst-toggle .gst-option {
  flex: 1;
  justify-content: center;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-grid {
  position: relative;
  min-height: 320px;
}

.settings-pane {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.settings-pane:not(.active) {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transform: translateY(20px);
}

.settings-pane.active {
  opacity: 1;
  transform: translateY(0);
}

.settings-card {
  background: #fcfcff;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-card.full-width-card {
  grid-column: 1 / -1;
}

.settings-card h4 {
  font-size: 1rem;
  color: #1c1f33;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #565a6d;
}

.input-hint {
  font-size: 0.75rem;
  color: #a0a4b8;
}

.bank-inputs {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bank-inputs input {
  width: 100%;
  max-width: 60px;
  text-align: center;
  letter-spacing: 0.05em;
}

.bank-inputs input[data-segment="1"] {
  max-width: 80px;
}

.bank-inputs input[data-segment="2"] {
  max-width: 120px;
}

.bank-inputs .dash {
  color: #c6cad9;
  user-select: none;
}

.late-fee-control {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.late-fee-control input[type="text"] {
  width: 100%;
}

.logo-hint {
  color: #7b7f94;
  font-size: 0.85rem;
}

.logo-dropzone {
  margin-top: 0.8rem;
  border: 2px dashed var(--accent);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  cursor: pointer;
  color: var(--accent);
  background: rgba(255, 92, 84, 0.08);
}

.logo-dropzone .logo-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.logo-dropzone strong {
  color: var(--accent);
}

.logo-dropzone .material-symbols-outlined {
  font-size: 2rem;
  color: var(--accent);
}

.logo-preview {
  display: none;
  width: 100%;
  max-width: 180px;
  height: 120px;
  border-radius: 16px;
  background: #fff center / contain no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.logo-dropzone[data-has-logo="true"] {
  background: #fff;
  border-style: solid;
}

.logo-dropzone[data-has-logo="true"] .logo-preview {
  display: block;
}

.logo-dropzone[data-has-logo="true"] .logo-prompt {
  display: none;
}

.settings-column {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.logo-card {
  margin-top: 0;
}

.logo-actions {
  margin-top: 0.6rem;
  text-align: center;
}

.logo-actions .ghost-link {
  font-size: 0.85rem;
  color: #d34545;
}

.logo-actions .ghost-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.settings-form input,
.settings-form select,
.settings-form textarea {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  font: inherit;
  color: #1c1f33;
  background: #fff;
}

.settings-form textarea {
  resize: none;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.setting-row p {
  font-weight: 600;
  color: #23263d;
}

.setting-row span {
  display: block;
  font-size: 0.82rem;
  color: #7a7f94;
}

.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.team-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-list strong {
  display: block;
  font-size: 0.95rem;
  color: #1f2338;
}

.team-list span {
  font-size: 0.82rem;
  color: #72768a;
}
.team-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #8e93a8;
}

.archive-table {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.archive-head,
.archive-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 0.9fr 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
}

.archive-head {
  background: #0c0c12;
  color: #fdfdfd;
  font-weight: 600;
  font-size: 0.85rem;
}

.archive-row {
  border-top: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.archive-row:hover {
  background: #f8f8fc;
  transform: translateY(-2px);
}

.archive-row small {
  display: block;
  color: #8a8ea5;
  font-size: 0.8rem;
}
.archive-row.invoice-empty {
  display: block;
  text-align: center;
  padding: 1.8rem 1rem;
  color: #6b6f80;
  font-size: 0.95rem;
  background: rgba(233, 236, 244, 0.6);
  border-top: 1px dashed rgba(145, 150, 170, 0.4);
  cursor: default;
}

.status-col {
  text-align: center;
}

.archive-title {
  font-weight: 600;
  color: #1d2035;
}

.invoice-code {
  font-weight: 600;
  color: #272a40;
}

.items-list.static-list .item-row {
  align-items: center;
}

.items-list.static-list .item-row span {
  padding: 0.2rem 0;
}

.notes-block {
  background: #fff;
  border-radius: 24px;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--gray-200);
}

.payment-info-card {
  margin-top: 1.2rem;
}
.payment-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.payment-info-col {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.payment-info-col .label {
  font-size: 0.82rem;
  color: #797d91;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.payment-info-col strong {
  font-size: 1.1rem;
  color: #1f2236;
}
.payment-info-col p {
  margin: 0;
}


.notes-block h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: #1f2236;
}

.notes-block p {
  color: #6d7084;
  font-size: 0.9rem;
  line-height: 1.6;
}

.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pagination .chip-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.page-btn {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #4e5163;
  cursor: pointer;
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-ellipsis {
  color: #8a8ea5;
  font-weight: 600;
}

.status-metrics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-metrics li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.status-metrics strong {
  display: block;
  color: #1f2034;
}

.status-metrics span {
  font-size: 0.82rem;
  color: #7a7f94;
}

.badge {
  min-width: 48px;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: #f1f1f5;
  color: #2f3247;
  font-weight: 700;
}

.badge.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.warning {
  background: rgba(255, 197, 112, 0.2);
  color: #c06a00;
}

.badge.success {
  background: rgba(90, 219, 181, 0.2);
  color: #056e4b;
}

.party-modal {
  max-width: 520px;
  width: min(520px, 90vw);
  position: relative;
}
.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.toggle .slider::before {
  content: \"\";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .slider {
  background: var(--accent);
}

.toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.clients-table .table-head,
.catalog-table .table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  background: #0c0c12;
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: #fdfdfd;
  font-weight: 600;
}

.actions-col {
  text-align: right;
}

.table-body {
  display: flex;
  flex-direction: column;
}

.client-row,
.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  padding: 1rem 1.2rem;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-200);
}
.client-row.client-empty,
.catalog-row.catalog-empty {
  display: block;
  text-align: center;
  color: #6b6f80;
  background: rgba(233, 236, 244, 0.6);
  border-top: 1px dashed rgba(145, 150, 170, 0.4);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.client-row .ghost-link,
.catalog-row .ghost-link {
  justify-self: end;
}

.client-meta,
.catalog-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.avatar::after {
  content: attr(data-initial);
}

.client-name,
.catalog-name {
  font-weight: 600;
  color: #1c2034;
}

.client-mail,
.catalog-detail {
  font-size: 0.85rem;
  color: #7b7f94;
}
.clients-table.compact .table-head {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
}
.clients-table.compact .client-row {
  padding: 0.75rem 1rem;
}
.clients-table.compact .client-mail {
  font-size: 0.8rem;
}
.clients-table.compact .avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 0.9rem;
}

.invoice-list-card {
  padding: 1.5rem;
  gap: 1.2rem;
}

.invoice-table {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  overflow: hidden;
}

.invoice-table .table-head {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 120px 1fr 1fr 120px;
  background: #f3f4fb;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  color: #727689;
  font-weight: 600;
}

.invoice-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 120px 1fr 1fr 120px;
  padding: 0.75rem 0.9rem;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.invoice-row .ghost-link {
  justify-self: end;
}

.invoice-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-pill.success {
  background: rgba(58, 168, 109, 0.15);
  color: #2f8c62;
}

.status-pill.warning {
  background: rgba(255, 170, 43, 0.16);
  color: #b86416;
}

.status-pill.dormant {
  background: rgba(148, 150, 168, 0.2);
  color: #5b5f72;
}

.ghost-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.items-card {
  background: #0f0f15;
  border-radius: 26px;
  padding: 1.3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.items-head {
  display: grid;
  grid-template-columns: 2.2fr 0.85fr 0.9fr 1fr 0.25fr;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.item-row {
  display: grid;
  grid-template-columns: 2.2fr 0.85fr 0.9fr 1fr 0.25fr;
  gap: 0.7rem;
}

.item-row input {
  border-radius: 14px;
  border: none;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.item-row input:focus {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.item-row input[data-total] {
  background: rgba(255, 255, 255, 0.08);
}

.item-remove-head {
  text-indent: -9999px;
}

.line-remove {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  cursor: pointer;
  align-self: center;
  transition: background 0.2s ease, opacity 0.2s ease;
  padding: 0;
}

.line-remove::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.line-remove:hover {
  background: rgba(255, 255, 255, 0.35);
}

.line-remove:hover::after {
  background: #fff0f0;
}

.line-remove:active::after {
  transform: translateX(4px);
}

.line-remove.hidden {
  opacity: 0;
  pointer-events: none;
}

.dashed-btn {
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.payment-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.select {
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

textarea {
  resize: none;
}

.totals {
  background: #f6f6ff;
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.terms-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.terms-block textarea {
  min-height: 110px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #5c5f73;
}

.totals strong {
  font-size: 1.1rem;
  color: #1e2135;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid var(--gray-200);
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.activity-list strong {
  display: block;
  font-size: 0.95rem;
  color: #1f2236;
}

.activity-list span {
  font-size: 0.82rem;
  color: #72768a;
}

.activity-list .amount {
  font-weight: 700;
  color: #202236;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
  gap: 1.8rem;
}

.overview-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.summary-card {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 1.2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.summary-card p {
  font-size: 0.9rem;
  color: #676b7d;
}

.summary-card h2 {
  font-size: 2rem;
}

.summary-card span {
  font-size: 0.85rem;
  color: #7b8195;
}

.overview-panel {
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  background: #fff;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cashflow .chart-placeholder {
  background: #f6f7fc;
  border-radius: 24px;
  padding: 1rem;
}

.chart-placeholder {
  position: relative;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 180px;
}

.chart-month {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.chart-month .bar-group {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 140px;
}

.chart-bar {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
  transition: opacity 0.2s ease;
}

.chart-bar.outstanding {
  background: rgba(38, 38, 57, 0.25);
}

.chart-month small {
  font-size: 0.75rem;
  color: #8a8ea5;
}

.chart-legend {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #73788f;
}

.chart-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.3rem;
}

.chart-legend span.alt i {
  background: rgba(38, 38, 57, 0.25);
}

.chart-tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--gray-200);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  box-shadow: 0 15px 30px rgba(10, 10, 30, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.chart-tooltip strong {
  display: block;
  font-size: 0.85rem;
  color: #1f2236;
}

.recent-invoices ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.recent-invoices li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  border-radius: 18px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.recent-invoices li:hover,
.recent-invoices li:focus {
  background: #f5f5fb;
  transform: translateY(-2px);
  outline: none;
}

.overview-side .panel-card {
  margin-bottom: 1rem;
}

.overview-side .activity-list li .status-pill {
  min-width: 70px;
  justify-content: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 25, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 99;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-section label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c6f83;
  margin-bottom: 0.3rem;
}

.modal-section input,
.modal-section textarea {
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.modal-section.hidden {
  display: none;
}

.modal-hint {
  margin: 0;
  font-size: 0.9rem;
  color: #6c6f83;
}

.item-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  padding: 0.4rem 0;
}

.item-detail-grid span {
  font-size: 0.8rem;
  color: #777d93;
}

.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dropdown:last-child {
  margin-bottom: 0;
}

.dropdown button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.6rem 0.9rem;
  background: #f8f8fb;
  cursor: pointer;
}

.panel-label {
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-dot {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--dot);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.color-dot.active {
  border-color: var(--accent);
  transform: scale(1.05);
}

.color-dot.add-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed var(--gray-300);
  color: #6e7388;
}

.template-card {
  text-align: center;
}

.template-preview {
  height: 220px;
  border-radius: 26px;
  background: #fff;
  border: 3px solid var(--accent);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.template-preview .preview-header {
  height: 40px;
  border-radius: 14px;
  background: var(--accent);
}

.template-preview .preview-body {
  flex: 1;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
}

.template-preview .preview-body div {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}

.template-preview .preview-footer {
  height: 40px;
  border-radius: 16px;
  border: 2px solid var(--accent);
}

.template-btn {
  margin-top: 1rem;
  width: 100%;
}

button {
  border: none;
  outline: none;
  font-weight: 600;
}

.pill-btn {
  border-radius: 24px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  min-width: 130px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pill-btn:disabled,
.pill-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pill-btn.ghost {
  background: #f4f4f6;
  color: #62657a;
}

.pill-btn.soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.pill-btn.solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  padding: 0.85rem 1.6rem;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.primary-btn.outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
  width: 100%;
}

.ghost-btn {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.7rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--accent-border);
  cursor: pointer;
}

.icon-btn {
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
}

.ghost-link,
.dashed-btn,
.color-dot,
.dropdown button,
.primary-btn,
.ghost-btn {
  transition: transform 0.15s ease;
}

button:hover,
.color-dot:hover {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .app-shell {
    flex-direction: column;
    padding: 1.5rem;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .workspace-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .party-cards {
    grid-template-columns: 1fr;
  }
}
.status-pill.warning {
  background: rgba(255, 197, 112, 0.2);
  color: #c06a00;
}

.status-pill.dormant {
  background: rgba(111, 113, 132, 0.16);
  color: #5a5e73;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent, #ff4d4f);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
  font-weight: 600;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.warn {
  background: #ffb020;
  color: #111;
}

.toast.success {
  background: #16a34a;
}
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: linear-gradient(145deg, #eef1fb 0%, #e2e8ff 100%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f1016;
}
.auth-shell {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.auth-hero {
  padding: 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  color: #161927;
  position: relative;
  overflow: hidden;
}
.auth-hero > * {
  position: relative;
  z-index: 1;
}
.auth-hero::after {
  content: '';
  position: absolute;
  inset: 32px 24px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.auth-hero .hero-content h1 {
  font-size: 42px;
  margin: 12px 0;
}
.auth-hero .hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #8388a8;
  margin-bottom: 8px;
}
.auth-hero .hero-content p {
  max-width: 520px;
  line-height: 1.6;
}
.auth-hero .hero-content p + ul {
  margin-top: 16px;
}
.auth-hero ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-hero li {
  display: flex;
  align-items: center;
  font-weight: 500;
}
.auth-hero li::before {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  margin-right: 10px;
  color: #6f5bff;
  font-size: 18px;
}
.auth-hero .brand-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-hero .brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #0c0d16;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 18px 45px rgba(12, 13, 22, 0.35);
}
.auth-hero .brand-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111, 91, 255, 0.15);
  color: #6f5bff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-panel {
  background: #fff;
  border-radius: 48px 0 0 48px;
  box-shadow: -32px 0 80px rgba(15, 16, 22, 0.08);
  padding: 80px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(20, 21, 26, 0.08);
  border: 1px solid rgba(108, 115, 134, 0.15);
}
.auth-card header h2 {
  margin: 0 0 8px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #212335;
}
.auth-form input {
  border-radius: 16px;
  border: 1px solid #e1e3ef;
  padding: 12px 16px;
  font-size: 16px;
  background: #fff;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #5f6479;
}
.auth-submit {
  width: 100%;
  margin-top: 12px;
}
.auth-meta {
  text-align: center;
  font-size: 14px;
  color: #5f6479;
}
.auth-meta a {
  color: #6f5bff;
  font-weight: 600;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.toggle span {
  white-space: nowrap;
}
.toggle input {
  width: 16px;
  height: 16px;
}
@media (max-width: 960px) {
  .auth-panel {
    border-radius: 48px 48px 0 0;
    padding: 48px 24px;
  }
  .auth-hero {
    padding: 48px 24px;
  }
}

/* Marketing homepage */
.marketing-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef1fb 0%, #dde3ff 70%, #f7f9ff 100%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0b0c14;
  display: flex;
  flex-direction: column;
}
.marketing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 64px;
  gap: 24px;
}
.marketing-nav nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
}
.marketing-nav nav a {
  color: #4d5166;
}
.marketing-nav .nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.marketing-nav .brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
}
.marketing-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 40px 64px 60px;
  gap: 48px;
  align-items: center;
}
.marketing-hero .hero-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 16px 0;
}
.marketing-hero .hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}
.marketing-hero .hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}
.marketing-hero .hero-metrics strong {
  font-size: 26px;
}
.hero-preview .preview-card {
  background: #fff;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 35px 80px rgba(16, 17, 26, 0.15);
  border: 1px solid rgba(111, 91, 255, 0.08);
}
.preview-chart {
  margin: 16px 0;
}
.hero-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.preview-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(111, 91, 255, 0.15);
  color: #5a41ff;
  font-size: 12px;
  font-weight: 600;
}
.preview-metric {
  margin-bottom: 16px;
}
.preview-metric strong {
  display: block;
  font-size: 36px;
}
.preview-chart.cashflow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.cashflow-graph {
  background: #f4f5fb;
  border-radius: 32px;
  padding: 24px;
  position: relative;
}
.cashflow-axis {
  position: absolute;
  right: 24px;
  top: 24px;
  bottom: 24px;
  width: 14px;
  border-radius: 12px;
  background: #d8dae8;
}
.cashflow-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 14px;
}
.cash-bar {
  position: relative;
  height: 48px;
  border-radius: 999px;
  background: rgba(123, 97, 255, 0.1);
  overflow: hidden;
  padding-top: 56px;
  text-align: center;
  font-size: 12px;
  color: #6a7089;
}
.cash-bar::before,
.cash-bar::after {
  content: '';
  position: absolute;
  left: 0;
  border-radius: 999px;
  width: calc(var(--collected, 20%));
  height: 20px;
}
.cash-bar::before {
  top: 8px;
  background: linear-gradient(90deg, #7b61ff, #b08bff);
}
.cash-bar::after {
  top: 28px;
  width: calc(var(--outstanding, 10%));
  background: rgba(198, 202, 217, 0.9);
}
.cashflow-legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #5f6479;
}
.cashflow-legend .dot {
  margin-right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cashflow-legend .dot.collected {
  background: #7b61ff;
}
.cashflow-legend .dot.outstanding {
  background: rgba(198, 202, 217, 0.9);
}
.preview-rows {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.preview-rows div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 16px;
  border: 1px solid rgba(12, 13, 22, 0.08);
  border-radius: 18px;
  padding: 12px 16px;
}
.preview-rows strong {
  font-size: 18px;
}
.preview-rows p {
  grid-column: span 2;
  margin: 0;
  font-size: 13px;
  color: #62667c;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px 64px;
}
.features-grid article {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid rgba(20, 21, 26, 0.05);
  box-shadow: 0 15px 40px rgba(15, 16, 22, 0.08);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 64px 40px;
}
.plan-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(20, 21, 26, 0.08);
  box-shadow: 0 20px 45px rgba(15, 16, 22, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-card.highlight {
  border-color: rgba(111, 91, 255, 0.4);
  box-shadow: 0 30px 60px rgba(111, 91, 255, 0.2);
}
.plan-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-header strong {
  font-size: 32px;
}
.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card ul li::before {
  content: 'check_circle';
  font-family: 'Material Symbols Outlined';
  margin-right: 6px;
  color: var(--accent, #ff4d4f);
}
.knowledge-support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 64px 48px;
}
.knowledge-card,
.support-card {
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  border: 1px solid rgba(20, 21, 26, 0.08);
  box-shadow: 0 20px 45px rgba(15, 16, 22, 0.07);
}
.knowledge-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.knowledge-card li strong {
  display: block;
}
.support-card h3 {
  margin: 8px 0;
}
.support-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cta-panel {
  margin: 32px 64px 64px;
  border-radius: 32px;
  padding: 32px 40px;
  background: #14151a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.marketing-footer {
  padding: 32px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-top: 1px solid rgba(12, 13, 22, 0.08);
}
.marketing-footer a {
  color: #4d5166;
  margin-left: 12px;
}
@media (max-width: 768px) {
  .marketing-nav,
  .marketing-hero,
  .features-grid,
  .plans-grid,
  .knowledge-support,
  .cta-panel,
  .marketing-footer {
    padding: 24px;
  }
  .cta-panel {
    flex-direction: column;
    text-align: center;
  }
  .marketing-nav nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.color-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 18, 31, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1.5rem;
}
.color-modal-card {
  background: #fff;
  border-radius: 32px;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(13, 16, 31, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.color-modal-card h3 {
  margin: 0;
  font-size: 1.4rem;
}
.color-modal-card p {
  margin: 0;
  color: #6b6f80;
  font-size: 0.95rem;
}
.color-modal-preview {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto;
  border: 6px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.color-modal-card input[type="color"] {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 16px;
  padding: 0;
  background: none;
  cursor: pointer;
}
.onboarding-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(245, 247, 255, 0.7), rgba(233, 235, 245, 0.9));
  display: flex;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.onboarding-sidebar {
  width: 360px;
  background: #0c0f1d;
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 20px 0 60px rgba(5, 6, 12, 0.35);
}
.onboarding-sidebar .brand {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 32px;
}
.onboarding-intro h1 {
  font-size: 32px;
  margin: 8px 0 12px;
}
.onboarding-intro p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.pill.note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.onboarding-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.onboarding-stepper li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
.onboarding-stepper li .step-index {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.onboarding-stepper li.active,
.onboarding-stepper li.completed {
  background: rgba(255, 255, 255, 0.18);
}
.onboarding-stepper li.completed .step-index {
  background: #20c997;
  color: #0c0f1d;
}
.onboarding-stepper li.active .step-index {
  background: rgba(255, 255, 255, 0.95);
  color: #0c0f1d;
}
.onboarding-stepper li p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.onboarding-tip {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.onboarding-content {
  flex: 1;
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.onboarding-stage {
  display: none;
  background: #fff;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(11, 12, 18, 0.08);
}
.onboarding-stage.active {
  display: block;
}
.stage-meta p {
  margin: 0;
  color: #7c8093;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.stage-meta h2 {
  margin: 6px 0 8px;
  font-size: 30px;
  color: #14151a;
}
.stage-meta span {
  color: #616579;
}
.onboarding-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.onboarding-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #45485b;
}
.onboarding-field input,
.onboarding-field textarea {
  border-radius: 18px;
  border: 1px solid rgba(12, 13, 22, 0.12);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.onboarding-field input:focus,
.onboarding-field textarea:focus {
  outline: none;
  border-color: var(--accent, #ff4d4f);
  box-shadow: 0 0 0 3px var(--accent-focus, rgba(255, 77, 79, 0.2));
}
.address-field {
  grid-column: span 2;
}
.onboarding-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.onboarding-option {
  border: 1px solid rgba(11, 12, 18, 0.12);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.onboarding-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.onboarding-option strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.onboarding-option:hover,
.onboarding-option.selected,
.onboarding-option:has(input:checked) {
  border-color: var(--accent-border, rgba(255, 77, 79, 0.35));
  box-shadow: 0 15px 30px rgba(14, 17, 27, 0.1);
}
[data-referral-note] {
  display: none;
}
[data-referral-note].visible {
  display: flex;
}
.onboarding-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}
.onboarding-summary {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.onboarding-stage[data-onboarding-step="3"] .onboarding-actions {
  margin-top: 32px;
}
.onboarding-summary .summary-card {
  border: 1px solid rgba(11, 12, 18, 0.08);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fafbff;
}
.onboarding-summary .summary-card span.material-symbols-outlined {
  font-size: 28px;
  color: var(--accent, #ff4d4f);
  background: rgba(255, 77, 79, 0.12);
  border-radius: 16px;
  padding: 8px;
}
.onboarding-summary .summary-card strong {
  display: block;
  margin-bottom: 4px;
}
@media (max-width: 1024px) {
  .onboarding-shell {
    flex-direction: column;
  }
  .onboarding-sidebar {
    width: 100%;
    border-radius: 0 0 32px 32px;
  }
  .onboarding-content {
    padding: 32px 24px 64px;
  }
  .address-field {
    grid-column: span 1;
  }
}
.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 23, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.settings-modal-card {
  background: #fff;
  border-radius: 32px;
  width: min(480px, 100%);
  padding: 2rem;
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settings-modal-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #101320;
}
.settings-modal-card p {
  margin: 0;
  color: #6b6f80;
  font-size: 0.95rem;
}
.settings-modal-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settings-modal-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #1f2338;
}
.settings-modal-card input[type="password"] {
  border: 1px solid #dfe3f0;
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}
.settings-modal-card .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.settings-modal-card .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6b6f80;
}
