html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

:root {
  --app-bg: #f7f5ff;
  --app-surface: rgba(255, 255, 255, 0.94);
  --app-border: rgba(91, 92, 240, 0.14);
  --app-text: #17203f;
  --app-muted: #5d6785;
  --app-primary: #5b5cf0;
  --app-primary-dark: #7c3aed;
  --app-accent: #17203f;
  --app-shadow: 0 20px 50px rgba(67, 56, 202, 0.12);
}

body.app-body {
  margin-bottom: 0;
  color: var(--app-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 28%),
    var(--app-bg);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.03em;
}

.btn {
  border-radius: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.05rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

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

.btn-sm {
  border-radius: 0.8rem;
  padding: 0.48rem 0.82rem;
}

.btn-lg {
  border-radius: 1.05rem;
  padding: 0.95rem 1.35rem;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success {
  background: rgba(255, 255, 255, 0.82);
  border-width: 1px;
}

.btn-outline-primary {
  color: var(--app-primary-dark);
  border-color: rgba(37, 99, 235, 0.24);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(37, 99, 235, 0.1);
  color: var(--app-primary-dark);
  border-color: rgba(37, 99, 235, 0.32);
}

.btn-outline-secondary {
  color: #334155;
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(148, 163, 184, 0.12);
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.45);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.form-control,
.form-select,
.form-control[type="date"],
.form-control[type="text"],
.form-control[type="email"],
.form-control[type="number"],
.form-control[type="password"],
textarea.form-control {
  min-height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  padding: 0.78rem 0.95rem;
}

textarea.form-control {
  min-height: auto;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.12);
}

.form-label {
  margin-bottom: 0.55rem;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-check-input {
  border-radius: 0.45rem;
  border-color: rgba(148, 163, 184, 0.5);
}

.table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.72);
}

.table > :not(caption) > * > * {
  padding: 0.95rem 1rem;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.table thead th {
  background: linear-gradient(180deg, rgba(91, 92, 240, 0.10), rgba(37, 99, 235, 0.05));
  color: #39446b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table tbody tr {
  transition: background-color 0.16s ease;
}

.table tbody tr:hover {
  background: rgba(37, 99, 235, 0.035);
}

.card-footer,
.card-header {
  background: rgba(248, 250, 252, 0.68) !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}

.alert {
  border: 1px solid rgba(91, 92, 240, 0.18);
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.app-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.app-footer-link {
  color: var(--app-muted);
  text-decoration: none;
}

.app-footer-link:hover,
.app-footer-link:focus {
  color: var(--app-primary-dark);
}

.cookie-banner {
  position: fixed;
  left: 50% !important;
  right: auto !important;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), 52rem);
  padding: 1rem 1.15rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.admin-panel-card {
  position: relative;
  overflow: hidden;
}

.admin-panel-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -35% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 65%);
  pointer-events: none;
}

.admin-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.22));
  font-size: 1.4rem;
}

.admin-panel-icon-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.24));
}

.admin-panel-icon-success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(134, 239, 172, 0.24));
}

details.card > summary {
  cursor: pointer;
  list-style: none;
}

details.card > summary::marker {
  content: "";
}

.tarief-price-preview {
  display: none;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 0.9rem;
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
  font-size: 0.95rem;
}

.tarief-price-preview-old {
  color: #64748b;
  font-size: 0.86rem;
  text-decoration: line-through;
}

.tarief-price-preview-new {
  margin-top: 0.15rem;
  font-size: 1rem;
  font-weight: 700;
}

.tarief-price-preview-validity {
  margin-top: 0.2rem;
  color: #0f766e;
  font-size: 0.82rem;
}

.tarief-coupon-preview {
  display: none;
  padding: 0.5rem 0.65rem;
  border-radius: 0.75rem;
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
}

.tarief-coupon-row-inactive {
  opacity: 0.55;
  background: rgba(148, 163, 184, 0.06);
}

.account-plan-card {
  height: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.account-plan-card-starter {
  max-width: 28rem;
}

.account-plan-card-plus {
  position: relative;
  overflow: hidden;
  border-color: rgba(91, 92, 240, 0.34);
  background:
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.3), transparent 34%),
    linear-gradient(145deg, rgba(79, 70, 229, 0.18), rgba(255, 255, 255, 0.98) 42%, rgba(124, 58, 237, 0.18));
  box-shadow: 0 24px 48px rgba(91, 92, 240, 0.2);
}

.account-plan-card-plus::after {
  content: "";
  position: absolute;
  inset: auto -3.5rem -4rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
  pointer-events: none;
}

.account-plan-card-plus .pricing-option-title {
  color: #312e81;
}

.account-plan-card-plus .pricing-option-price {
  color: #4338ca;
  text-shadow: 0 6px 20px rgba(67, 56, 202, 0.16);
}

.account-plan-card-plus .feature-list li {
  color: #312e81;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(168, 85, 247, 0.2));
  color: #312e81;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-plan-highlight {
  margin-bottom: 1rem;
  color: #312e81;
  font-weight: 600;
}

.account-plan-price-discounted {
  color: #4338ca;
}

.account-plan-price-previous {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.95rem;
  text-decoration: line-through;
}

.account-plan-discount-note {
  margin-top: 0.35rem;
  color: #4338ca;
  font-size: 0.88rem;
  font-weight: 700;
}

.account-plan-current {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: #312e81;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 991.98px) {
  .account-plan-card-starter {
    max-width: none;
  }
}

.admin-panel-icon-dark {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.16), rgba(71, 85, 105, 0.26));
}

.app-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-status-badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.app-status-badge-success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.admin-rank-badge {
  border: 1px solid transparent;
}

.admin-rank-badge-gold {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.98));
  border-color: rgba(234, 179, 8, 0.4);
  color: #a16207;
}

.admin-rank-badge-bronze {
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.14), rgba(255, 255, 255, 0.98));
  border-color: rgba(180, 83, 9, 0.32);
  color: #92400e;
}

.admin-user-row-gold td:first-child {
  border-left: 4px solid #d4af37;
}

.admin-user-row-bronze td:first-child {
  border-left: 4px solid #b87333;
}

.admin-user-row-gold {
  background: linear-gradient(90deg, rgba(254, 249, 195, 0.38), transparent 18%);
}

.admin-user-row-bronze {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), transparent 18%);
}

.admin-user-actions-cell {
  white-space: nowrap;
}

.admin-user-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.app-pagination .page-link {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--app-primary-dark);
  margin-right: 0.35rem;
}

.app-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
  border-color: transparent;
}

.app-admin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.admin-detail-card {
  overflow: hidden;
}

.admin-detail-card-primary {
  border-top: 4px solid rgba(91, 92, 240, 0.7);
}

.admin-detail-card-danger {
  border-top: 4px solid rgba(239, 68, 68, 0.7);
}

.admin-remote-card {
  border-top: 4px solid rgba(34, 197, 94, 0.7);
}

.maintenance-body {
  min-height: 100vh;
}

.maintenance-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.maintenance-card {
  width: min(100%, 38rem);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.maintenance-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.maintenance-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--app-primary), #60a5fa);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.maintenance-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.maintenance-text {
  color: var(--app-muted);
  font-size: 1.05rem;
}

.maintenance-subtext {
  color: #64748b;
}

.maintenance-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.app-confirm-modal .modal-dialog {
  max-width: 460px;
}

.app-confirm-modal .modal-content {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.98);
}

.app-confirm-modal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 1.35rem 0.9rem;
  border-bottom: none;
}

.app-confirm-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 23, 42, 0.08));
  color: var(--app-primary-dark);
  font-size: 1.1rem;
  font-weight: 800;
}

.app-confirm-modal .modal-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-confirm-modal-body {
  padding: 0.15rem 1.35rem 1rem;
  color: #475569;
  font-size: 0.98rem;
}

.app-confirm-modal-footer {
  padding: 0 1.35rem 1.25rem;
  border-top: none;
  gap: 0.75rem;
}

.app-confirm-modal .btn-close {
  margin-left: auto;
}

.homepage-admin-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 1.25rem;
}

.homepage-admin-accordion .accordion-button {
  border-radius: 1.25rem;
  font-weight: 700;
  background: rgba(248, 250, 252, 0.8);
}

.homepage-admin-accordion .accordion-button:not(.collapsed) {
  color: var(--app-accent);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: none;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 92, 240, 0.22);
  box-shadow: 0 24px 44px rgba(67, 56, 202, 0.14);
}

.dashboard-card::after {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 92, 240, 0.12), transparent 68%);
  pointer-events: none;
}

.dashboard-card .card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem;
}

.dashboard-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.dashboard-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.22));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
  font-size: 1.45rem;
}

.dashboard-card-account .dashboard-card-icon {
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.16), rgba(129, 140, 248, 0.24));
}

.dashboard-card-company .dashboard-card-icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(125, 211, 252, 0.24));
}

.dashboard-card-customers .dashboard-card-icon {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(134, 239, 172, 0.24));
}

.dashboard-card-quotes .dashboard-card-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(253, 224, 71, 0.24));
}

.dashboard-card-news .dashboard-card-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(244, 114, 182, 0.24));
}

.homepage-admin-accordion .accordion-body {
  padding: 1.35rem;
}

.logo-preview-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.logo-preview {
  max-width: 100%;
  max-height: 6rem;
  object-fit: contain;
}

.homepage-logo-preview-wrap {
  width: 100%;
  min-height: 10rem;
}

.homepage-logo-preview {
  max-height: 8rem;
}

.homepage-color-input {
  width: 100%;
  min-width: 5rem;
  height: 3rem;
  padding: 0.35rem;
}

.homepage-editor-shell {
  display: grid;
  gap: 1.5rem;
}

.homepage-editor-shell-wide {
  width: 100%;
  margin-inline: auto;
}

body:has(.homepage-editor-shell-wide) .app-container {
  max-width: min(calc(100vw - 1.5rem), 1800px);
}

.homepage-split-layout {
  display: grid;
  gap: 1.5rem;
}

.homepage-editor-grid {
  display: grid;
  gap: 1.5rem;
}

.homepage-editor-pair {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1200px) {
  .homepage-split-layout {
    grid-template-columns: minmax(22rem, 0.95fr) minmax(26rem, 1.15fr);
    align-items: start;
  }

  .homepage-editor-pair {
    grid-template-columns: minmax(22rem, 0.95fr) minmax(24rem, 1.05fr);
  }
}

.homepage-editor-column {
  min-width: 0;
}

.homepage-preview-column {
  min-width: 0;
}

.homepage-preview-panel {
  position: sticky;
  top: 8.5rem;
  border: 1px solid rgba(91, 92, 240, 0.14);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.homepage-preview-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.88);
}

.homepage-preview-surface {
  padding: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 28%),
    var(--app-bg);
}

.homepage-preview-surface .hero-section,
.homepage-preview-surface .showcase-section,
.homepage-preview-surface .comparison-section,
.homepage-preview-surface .feature-overview-section {
  margin-top: 0;
}

.homepage-preview-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.homepage-editor-toolbar {
  position: sticky;
  top: 5.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(91, 92, 240, 0.14);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.homepage-editor-toolbar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-muted);
}

.homepage-editor-toolbar-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.homepage-editor-toolbar-links a {
  color: var(--app-primary-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(91, 92, 240, 0.08);
}

.homepage-editor-toolbar-links a:hover,
.homepage-editor-toolbar-links a:focus {
  background: rgba(91, 92, 240, 0.14);
}

.homepage-editor-brand-card,
.homepage-editor-section {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.homepage-editor-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  vertical-align: middle;
}

.homepage-editor-nav-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(91, 92, 240, 0.14);
  border-radius: 1.15rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 255, 0.88));
}

.homepage-editor-brand-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.homepage-editor-input {
  background: rgba(255, 255, 255, 0.96);
}

.homepage-editor-input-light {
  min-height: auto;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.homepage-editor-input-light::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.homepage-editor-input-light:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.18);
}

.homepage-editor-badge-input {
  max-width: 10rem;
}

.homepage-editor-section .form-label {
  margin-bottom: 0.4rem;
}

.homepage-editor-section .hero-card,
.homepage-editor-section .comparison-card {
  background: rgba(255, 255, 255, 0.96);
}

.homepage-editor-live-preview {
  padding: 1.35rem;
  border: 1px solid rgba(91, 92, 240, 0.14);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.92));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.homepage-editor-form-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
}

.homepage-editor-static-button {
  pointer-events: none;
}

.homepage-editor-structured-table {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
}

.homepage-editor-item-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.homepage-editor-card-grid {
  display: grid;
  gap: 1rem;
}

.homepage-editor-card-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

@media (min-width: 768px) {
  .homepage-editor-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .homepage-editor-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.comparison-editor-row td {
  vertical-align: top;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  cursor: grab;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.8rem;
  background: rgba(248, 250, 252, 0.92);
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.comparison-editor-row.dragging,
.homepage-editor-item-card.dragging {
  opacity: 0.55;
}

.homepage-editor-item-card {
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.homepage-editor-item-card .form-control {
  min-height: 2.6rem;
}

.homepage-editor-item-card .feature-card-text-input {
  min-height: 7rem;
}

.comparison-row-actions {
  white-space: nowrap;
}

.homepage-editor-item-card .card-body {
  padding: 0.9rem;
}

.homepage-editor-item-card .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.homepage-editor-item-card .feature-card-text-input {
  min-height: 5.5rem;
}

.homepage-editor-readonly-value {
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.9);
  font-weight: 600;
}

.homepage-editor-item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.homepage-editor-item-card-header .feature-card-remove {
  flex-shrink: 0;
}

.homepage-editor-section-card {
  height: 100%;
}

.homepage-editor-section-card .form-text {
  margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
  body:has(.homepage-editor-shell-wide) .app-container {
    max-width: calc(100vw - 1rem);
  }

  .homepage-preview-panel {
    position: static;
  }

  .homepage-editor-toolbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .app-admin-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem;
    width: auto;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-chart-row {
    grid-template-columns: 4.25rem 1fr 3rem;
    gap: 0.6rem;
  }
}

.app-container {
  max-width: 1180px;
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 255, 0.88));
  border-bottom: 1px solid rgba(91, 92, 240, 0.12);
  box-shadow: 0 10px 30px rgba(91, 92, 240, 0.08);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--app-accent) !important;
}

.app-brand-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.app-nav-list,
.navbar-nav {
  gap: 0.25rem;
}

.navbar .nav-link {
  color: var(--app-muted) !important;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.6rem 0.95rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--app-accent) !important;
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.12), rgba(34, 197, 94, 0.10));
}

.app-primary-btn,
.btn-primary {
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(91, 92, 240, 0.24);
}

.app-primary-btn:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
}

.app-alert,
.card,
.table,
.list-group,
.dropdown-menu {
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}

.card,
.hero-card,
.dashboard-hero,
.metric-card,
.alert,
.table {
  border-radius: 1.25rem;
}

.card,
.hero-card,
.dashboard-hero,
.metric-card {
  background: var(--app-surface);
}

.hero-section {
  padding-top: 1rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.14), rgba(34, 197, 94, 0.12));
  color: #4338ca;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-text {
  max-width: 42rem;
  color: var(--app-muted);
}

.hero-card {
  overflow: hidden;
}

.pricing-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 244, 255, 0.88));
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .pricing-card {
    height: 100%;
  }
}

.package-preview-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.package-preview-card-plus {
  background: rgba(248, 255, 251, 0.92);
}

.package-preview-topbar,
.showcase-browser-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.85);
}

.package-preview-topbar span,
.showcase-browser-bar::before,
.showcase-browser-bar::after,
.showcase-browser-bar {
  position: relative;
}

.package-preview-topbar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.package-preview-body {
  padding: 1rem;
}

.package-preview-doc-title {
  margin-bottom: 0.7rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.package-preview-line,
.package-preview-total,
.package-preview-summary,
.showcase-browser-content::before,
.showcase-browser-content::after {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), rgba(203, 213, 225, 0.68));
}

.package-preview-line {
  height: 0.55rem;
  margin-bottom: 0.6rem;
}

.package-preview-line-lg {
  width: 72%;
}

.package-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.package-preview-panel {
  height: 3rem;
  border-radius: 0.8rem;
  background: rgba(241, 245, 249, 0.9);
}

.package-preview-table {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 0;
}

.package-preview-table div {
  height: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(226, 232, 240, 0.95);
}

.package-preview-table-plus div:last-child {
  width: 68%;
}

.package-preview-summary {
  width: 54%;
  height: 2.2rem;
  margin-left: auto;
  margin-bottom: 0.7rem;
}

.package-preview-total {
  width: 42%;
  height: 0.9rem;
  margin-left: auto;
}

.package-preview-total-plus {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), rgba(134, 239, 172, 0.7));
}

.pricing-card-active {
  border-color: rgba(91, 92, 240, 0.32);
  background: linear-gradient(180deg, rgba(91, 92, 240, 0.12), rgba(255, 255, 255, 0.98));
}

.pricing-card-plus {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.10), rgba(255, 255, 255, 0.98));
}

.pricing-label {
  color: var(--app-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-amount {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--app-accent);
}

.pricing-text {
  color: var(--app-muted);
}

.pricing-option-card {
  height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.56);
}

.pricing-option-card-active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.pricing-option-title {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.pricing-option-price {
  margin-bottom: 0.85rem;
  color: var(--app-accent);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #312e81, #5b5cf0 55%, #10b981);
  color: #fff;
}

.hero-badge {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.feature-list {
  padding-left: 1.2rem;
}

.feature-list li + li {
  margin-top: 0.65rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.9));
}

.metric-card span {
  color: var(--app-muted);
  font-size: 0.92rem;
}

.feature-overview-section {
  margin-top: 1rem;
}

.showcase-section {
  margin-top: 0.5rem;
}

.comparison-section {
  margin-top: 0.5rem;
}

.comparison-card {
  overflow: hidden;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-check,
.comparison-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 999px;
  font-weight: 800;
}

.comparison-check {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.comparison-cross {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.stats-chart-list {
  display: grid;
  gap: 0.9rem;
}

.stats-chart-row {
  display: grid;
  grid-template-columns: 5rem 1fr 4rem;
  align-items: center;
  gap: 0.9rem;
}

.stats-chart-label,
.stats-chart-value {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
}

.stats-chart-value {
  text-align: right;
}

.stats-chart-track {
  overflow: hidden;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.85);
}

.stats-chart-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(96, 165, 250, 0.95));
}

.showcase-browser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.showcase-browser-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.9));
  box-shadow: 0 20px 42px rgba(91, 92, 240, 0.12);
}

.showcase-browser-card-offset {
  transform: translateY(1.5rem);
}

.showcase-browser-bar::before,
.showcase-browser-bar::after {
  content: "";
}

.showcase-browser-bar,
.showcase-browser-bar::before,
.showcase-browser-bar::after {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.showcase-browser-content {
  position: relative;
  min-height: 16rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.92));
}

.showcase-browser-content-offer {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.92));
}

.showcase-browser-content-invoice {
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.92));
}

.showcase-browser-content::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  width: 48%;
  height: 0.8rem;
}

.showcase-browser-content::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1.2rem;
  width: 34%;
  height: 2.6rem;
  border-radius: 1rem;
}

@media (max-width: 991.98px) {
  .showcase-browser-grid {
    grid-template-columns: 1fr;
  }

  .showcase-browser-card-offset {
    transform: none;
  }
}

.feature-overview-card,
.identity-shell {
  border: 1px solid var(--app-border);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.92));
  box-shadow: var(--app-shadow);
}

.homepage-admin-accordion .accordion-item:nth-child(1) .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.16), rgba(129, 140, 248, 0.12));
}

.homepage-admin-accordion .accordion-item:nth-child(2) .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(96, 165, 250, 0.12));
}

.homepage-admin-accordion .accordion-item:nth-child(3) .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(74, 222, 128, 0.12));
}

.homepage-admin-accordion .accordion-item:nth-child(4) .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(251, 191, 36, 0.12));
}

.homepage-admin-accordion .accordion-item:nth-child(5) .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(244, 114, 182, 0.12));
}

.feature-overview-card {
  height: 100%;
  padding: 1.35rem;
}

.feature-overview-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.feature-overview-card p {
  margin-bottom: 0;
  color: var(--app-muted);
}

.identity-shell {
  overflow: hidden;
}

.identity-shell-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--app-border);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.03));
}

.identity-shell-body {
  padding: 1.75rem;
}

.logo-preview-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  min-width: 180px;
  padding: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.85);
}

.logo-preview {
  max-height: 72px;
  max-width: 220px;
  object-fit: contain;
}

.quote-sheet {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem;
  border: 1px solid var(--app-border);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--app-shadow);
  position: relative;
  overflow: hidden;
}

.quote-top-bar {
  height: 12px;
  margin: -2.5rem -2.5rem 2rem;
  background: linear-gradient(90deg, #0f172a, #2563eb 55%, #60a5fa);
}

.quote-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.quote-company {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.quote-company > img,
.quote-company-mark {
  flex-shrink: 0;
}

.quote-company-logo {
  max-width: 180px;
  max-height: 88px;
  object-fit: contain;
  padding: 0.35rem;
  border-radius: 1rem;
  background: #fff;
}

.quote-company-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.quote-document-label {
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-company-name {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.quote-company-meta,
.quote-address-card,
.quote-meta-card {
  color: var(--app-muted);
  font-size: 0.98rem;
}

.quote-meta-card {
  min-width: 260px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.85));
}

.quote-meta-card-title {
  margin-bottom: 0.75rem;
  color: var(--app-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-meta-card div + div {
  margin-top: 0.5rem;
}

.quote-title-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.03));
}

.quote-title-caption {
  margin-bottom: 0.35rem;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-title {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}

.quote-title-number {
  color: #1d4ed8;
  font-size: 1rem;
  font-weight: 700;
}

.quote-intro-bar {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #2563eb;
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0));
  color: #334155;
}

.quote-intro-bar div + div {
  margin-top: 0.35rem;
}

.quote-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.quote-address-card,
.quote-text-section,
.quote-total-card,
.quote-acceptance-box {
  padding: 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.56);
}

.quote-address-card h3,
.quote-text-section h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--app-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-subject-title {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--app-text);
}

.quote-table-section {
  margin-bottom: 1.75rem;
}

.quote-print-table {
  border-radius: 1rem;
  overflow: hidden;
}

.quote-summary-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.quote-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.quote-total-row + .quote-total-row {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.quote-total-row-grand {
  margin-top: 0.35rem;
  font-size: 1.08rem;
}

.quote-acceptance-box {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.quote-footer-bar {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 0.92rem;
}

.quote-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .quote-sheet-header,
  .quote-address-grid,
  .quote-summary-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .quote-sheet-header {
    gap: 1rem;
  }

  .quote-sheet {
    padding: 1.5rem;
  }

  .quote-top-bar {
    margin: -1.5rem -1.5rem 1.5rem;
  }

  .quote-title-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-footer-grid {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body.app-body {
    background: #fff;
  }

  header,
  footer,
  .no-print,
  .app-alert {
    display: none !important;
  }

  .container,
  .app-container,
  main[role="main"] {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .quote-sheet,
  .quote-address-card,
  .quote-text-section,
  .quote-total-card,
  .quote-acceptance-box,
  .quote-meta-card {
    box-shadow: none !important;
    background: #fff !important;
    border-color: #d1d5db !important;
  }

  .quote-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
  }

  .quote-top-bar {
    margin: 0 0 14px;
    height: 8px;
  }

  .quote-print-table thead th {
    background: #f3f4f6 !important;
    color: #334155 !important;
  }

  .quote-table-section,
  .quote-address-card,
  .quote-text-section,
  .quote-total-card,
  .quote-acceptance-box,
  .quote-intro-bar {
    page-break-inside: avoid;
  }

  .quote-footer-bar {
    margin-top: 1rem;
    font-size: 0.85rem;
  }
}

.dashboard-hero {
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--app-border);
}

.feature-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.accent-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.92));
}

.table {
  overflow: hidden;
  background: var(--app-surface);
}

.table > :not(caption) > * > * {
  padding: 1rem 1rem;
  border-color: rgba(148, 163, 184, 0.2);
}

.table thead th {
  background: rgba(148, 163, 184, 0.08);
  color: var(--app-muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control,
.form-select,
.input-group-text,
textarea {
  border-radius: 0.9rem !important;
  border-color: rgba(148, 163, 184, 0.34);
  padding: 0.75rem 0.95rem;
}

.form-control,
.form-select,
textarea,
.card,
.alert,
.list-group-item {
  background-color: rgba(255, 255, 255, 0.92);
}

.btn {
  border-radius: 0.9rem;
  font-weight: 600;
}

.app-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
}

main[role="main"] {
  padding-bottom: 5rem;
}

.app-footer a {
  color: var(--app-muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--app-accent);
}

.white-space-pre {
  white-space: pre-line;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}