@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #000000;
  --dark: #111111;
  --gray-900: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #737373;
  --gray-600: #5c5c5c;
  --gray-300: #cccccc;
  --gray-200: #e8e8e8;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-muted: #fafafa;
  --page-bg: #e6e6e6;
  --page-bg-soft: #ececec;
  --border: #e0e0e0;
  --card-radius: 14px;
  --border-strong: #999999;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 24px 64px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.04);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
  --radius-sm: 4px;
  --btn-radius: 9px;
  --btn-radius-sm: 7px;
  --btn-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --btn-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.14);
  --btn-solid-bg: var(--black);
  --btn-solid-hover: #1a1a1a;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 0, 0, 0.1);
  color: var(--black);
}

body.page-form {
  background: var(--gray-100);
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.page-form .site-footer {
  display: none;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--gray-900);
}

.site-header--compact {
  padding: 0.85rem 2rem;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo--compact {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* Main Layout */
.main-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.main-container--form {
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}

.form-viewport {
  flex: 1;
  min-height: auto;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.form-grid-layout {
  flex: none;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(300px, 34%) 1fr;
  gap: 1rem;
  overflow: visible;
  align-items: start;
}

.form-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: auto;
}

.section-card--fit {
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.section-card--fit::before {
  height: 3px;
  background: var(--black);
}

.section-card--items {
  min-width: 0;
}

.section-card--items .section-card-body {
  flex: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.section-card-head--compact {
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  align-items: center;
  gap: 0.6rem;
}

.section-card-head--compact .section-label {
  font-size: 0.92rem;
  margin: 0;
}

.section-card-head--compact .section-number {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.section-card--fit .form-top-split {
  grid-template-columns: 1fr;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
}

.section-card--fit .form-panel {
  padding: 0.75rem 0.85rem;
  background: var(--white);
  border-color: var(--border);
}

.section-card--fit .form-panel--customer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.section-card--fit .form-group--details {
  flex: 1;
  min-height: 0;
}

.section-card--fit .customer-details-box {
  flex: 1;
  min-height: 60px;
  max-height: none;
  height: 100%;
  resize: none;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.section-card--fit .date-fixed,
.section-card--fit .date-input {
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
}

.section-card--fit .installments-wrap {
  margin-top: 0.4rem;
  gap: 0.25rem;
}

.section-card--fit .installments-input {
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

.section-card--fit .installment-result {
  padding: 0.45rem 0.6rem;
}

.section-card--fit .installment-result .installment-value {
  font-size: 0.82rem;
}

.section-card--items .website-items-ui {
  margin-bottom: 0.45rem;
  gap: 0.45rem;
}

.section-card--items .website-toolbar {
  gap: 0.45rem;
}

.section-card--items .website-optional-item {
  padding: 0.5rem 0.65rem;
  min-width: 0;
}

.section-card--items .website-optional-label {
  font-size: 0.72rem;
}

.section-card--items .website-toolbar .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.65rem;
}

.section-card--items .table-wrapper--premium {
  flex: none;
  min-height: auto;
  max-height: none;
  overflow: visible;
  margin-bottom: 0.4rem;
}

.section-card--items .data-table th,
.section-card--items .data-table td {
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
}

.section-card--items .data-table td.item-name {
  font-size: 0.72rem;
  line-height: 1.35;
  max-width: none;
  white-space: normal;
  word-break: break-word;
}

.section-card--items .qty-input {
  width: 44px;
  padding: 0.2rem;
  font-size: 0.72rem;
}

.section-card--items .empty-state--compact {
  padding: 0.65rem;
  margin-bottom: 0.4rem;
}

.section-card--items .empty-state-title,
.section-card--items .empty-state-text {
  font-size: 0.72rem;
}

.section-card--items .empty-state-graphic {
  margin-bottom: 0.35rem;
}

.totals-panel--compact {
  margin-top: 0;
  flex-shrink: 0;
}

.totals-panel--compact .totals-panel-body--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.totals-panel--compact .totals-row {
  padding: 0.2rem 0;
  font-size: 0.68rem;
  border-bottom: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.totals-panel--compact .totals-row .label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.totals-panel--compact .totals-row .value {
  font-size: 0.75rem;
  font-weight: 600;
}

.totals-panel--compact .totals-row--input {
  flex-direction: column;
  align-items: flex-start;
}

.totals-panel--compact .totals-input {
  width: 100%;
  padding: 0.25rem 0.35rem;
  font-size: 0.72rem;
}

.totals-panel--compact .totals-row--span {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-top: 2px solid var(--black);
  border-radius: 4px;
}

.totals-panel--compact .totals-row--span .label,
.totals-panel--compact .totals-row--span .value {
  color: var(--black);
  font-size: 0.72rem;
}

.totals-panel--compact .totals-row--span .value {
  font-size: 0.88rem;
  font-weight: 700;
}

.totals-panel--compact .totals-row.total-final {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-top: 2px solid var(--black);
  border-radius: 4px;
  background: var(--gray-100);
}

.form-actions--bar {
  flex-shrink: 0;
  margin-top: 0.5rem;
  padding: 0;
}

.form-actions--bar .btn-lg {
  width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  border-radius: 6px;
}

.section-card--items > .section-card-head--actions {
  flex-shrink: 0;
}

.section-card--items > #website-items-ui,
.section-card--items > #pos-services-ui,
.section-card--items > #add-line-form {
  flex-shrink: 0;
}

.items-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.pos-contract-ui {
  position: relative;
}

.contract-picker {
  position: relative;
}

/* Contract picker visuals — see dropdowns.css */

.section-card--items {
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: auto;
}

/* Cards / Sections */
.section-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--card-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.section-card h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-700);
}

.form-group label .required {
  color: var(--black);
}

.form-group input,
.form-group textarea {
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--btn-radius);
  background: var(--white);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--dark);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--border-strong);
}

.customer-details-box {
  line-height: 1.5;
}

.customer-details-display {
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--dark);
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Buttons — unified premium system */
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.2rem;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary,
.btn-premium {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--btn-solid-bg) 100%);
  color: var(--white);
  border-color: var(--btn-solid-bg);
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    var(--btn-shadow);
}

.btn-primary:hover:not(:disabled),
.btn-premium:hover:not(:disabled) {
  background: linear-gradient(180deg, #2a2a2a 0%, var(--btn-solid-hover) 100%);
  border-color: var(--btn-solid-hover);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
}

.btn-outline,
.btn-premium-outline {
  background: linear-gradient(180deg, var(--white) 0%, #f8f8f8 100%);
  color: var(--black);
  border-color: var(--gray-300);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover:not(:disabled),
.btn-premium-outline:hover:not(:disabled) {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.82rem 1.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-lg:hover:not(:disabled) {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.btn-sm {
  min-height: 2.125rem;
  padding: 0.52rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border-radius: 8px;
  align-self: flex-end;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-icon-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.04);
  color: var(--black);
  border: 1px solid var(--gray-300);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 4px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary .btn-icon-plus,
.btn-premium .btn-icon-plus,
.admin-add-contract-btn .btn-icon-plus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover .btn-icon-plus,
.btn-premium-outline:hover .btn-icon-plus {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-primary:hover .btn-icon-plus,
.btn-premium:hover .btn-icon-plus,
.admin-add-contract-btn:hover .btn-icon-plus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--btn-radius-sm);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-icon:hover {
  color: var(--black);
  border-color: var(--black);
  background: var(--gray-100);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Items Table */
.items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th {
  text-align: left;
  padding: 0.72rem 0.9rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: none;
  background: var(--black);
}

.data-table td {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.data-table .text-right {
  text-align: right;
}

.data-table .text-center {
  text-align: center;
}

.qty-input {
  width: 70px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  text-align: center;
  font-family: inherit;
}

.item-name {
  font-weight: 500;
}

.gesamt-cell {
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 2.25rem 1.5rem;
  color: var(--gray-500);
  font-size: 0.82rem;
  border: 1px dashed var(--gray-300);
  border-radius: var(--card-radius);
  background: var(--surface-muted);
}

/* Totals */
.totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.totals-summary {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  background: var(--surface-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.totals-row:last-child {
  border-bottom: none;
}

.totals-row.total-final {
  border-top: 1px solid var(--black);
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.totals-row .label {
  color: var(--gray-700);
}

.totals-row .value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rabatt-input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Signature */
.signature-section {
  margin-top: 1rem;
}

.sig-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sig-tab {
  padding: 0.62rem 1.2rem;
  background: transparent;
  border: none;
  border-radius: var(--btn-radius-sm) var(--btn-radius-sm) 0 0;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.sig-tab:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.03);
}

.sig-tab.active {
  color: var(--black);
  background: rgba(0, 0, 0, 0.04);
  border-bottom-color: var(--black);
}

.sig-tab:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.signature-canvas-wrap {
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.signature-canvas-wrap canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

.sig-hint {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 0.7rem;
  color: var(--gray-300);
  pointer-events: none;
}

.sig-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 2rem;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h2 {
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--btn-radius-sm);
  color: var(--white);
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.04);
}

.modal-close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

.modal-category {
  margin-bottom: 2rem;
}

.modal-category h3 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-category .category-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.collapsible-category {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all var(--transition);
}

.collapse-toggle:hover,
.collapse-toggle.is-open {
  background: var(--white);
  border-color: var(--black);
}

.collapse-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.collapse-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.collapse-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.collapse-optional-tag {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.collapsible-category--optional {
  margin-bottom: 0.5rem;
}

.collapsible-category--optional .collapse-toggle.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: var(--border);
}

.collapsible-category--optional .collapse-content:not(.hidden) {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1rem;
  background: var(--white);
  max-height: 320px;
  overflow-y: auto;
}

.services-grid--displays {
  margin-top: 0;
}

.collapse-toggle .category-desc {
  margin-bottom: 0;
}

.collapse-icon {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gray-700);
  min-width: 24px;
  text-align: center;
}

.collapse-content {
  margin-top: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow);
}

.service-card.selected {
  border-color: var(--black);
  background: var(--gray-100);
}

.service-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.service-price {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.service-unit {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card .add-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.58rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border-radius: var(--btn-radius-sm);
}

/* Link Result */
.link-result {
  background: var(--gray-100);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.link-result h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.link-result p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.link-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.link-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--white);
}

.link-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contract View Page */
.contract-document {
  border: 1px solid var(--border);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.contract-doc-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--black);
}

.contract-doc-header h1 {
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.contract-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contract-block {
  margin-bottom: 2rem;
}

.contract-block h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.contract-terms-intro {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 62ch;
}

.contract-terms-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.terms-section {
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--border);
}

.terms-section:first-child {
  padding-top: 0;
  border-top: none;
}

.terms-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.terms-section-lead {
  font-size: 0.86rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

.terms-product-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.85rem;
}

.terms-table {
  font-size: 0.82rem;
}

.terms-table th {
  font-size: 0.68rem;
}

.terms-text {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin: 0;
}

.terms-date-highlight {
  color: var(--black);
  font-weight: 600;
}

.terms-services-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.terms-service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.terms-service-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
}

.terms-service-body strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.2rem;
}

.terms-service-body p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}

.contract-terms-footer {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.detail-grid dt {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-grid dd {
  font-weight: 400;
}

.contract-totals {
  margin-top: 1.5rem;
  max-width: 400px;
  margin-left: auto;
}

.sig-preview {
  max-width: 200px;
  max-height: 70px;
  margin-top: 0.5rem;
}

.signed-banner {
  background: var(--black);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.signed-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.pdf-preview-wrap {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.pdf-preview {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Loading & Error */
.loading-state,
.error-state {
  text-align: center;
  padding: 5rem 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-100);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
  max-width: 360px;
}

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

.toast.error {
  background: var(--gray-900);
  border-left: 3px solid var(--white);
}

.toast.success {
  background: var(--black);
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: none;
  background: var(--black);
  letter-spacing: 0.05em;
}

/* Premium Form Page */
.site-header--premium {
  padding: 0;
  background: var(--black);
  position: relative;
}

.site-header--premium .header-inner {
  max-width: 960px;
  padding: 1rem 1.5rem;
}

.site-header--slim .header-inner {
  padding: 0.3rem 1rem;
}

body.page-form .site-header--slim .header-inner:not(.header-inner--form) {
  padding: 0.28rem 1rem;
}

.site-header--slim .btn-header-logout,
.site-header--slim .btn-header-back {
  padding: 0.35rem 0.7rem;
  font-size: 0.6rem;
}

.site-header--slim .header-accent {
  height: 1px;
}

.header-inner--actions {
  justify-content: flex-end;
}

.header-inner--form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: none;
  width: 100%;
  min-height: 52px;
  padding: 0.5rem 1.5rem;
  column-gap: 1rem;
}

.form-type-badge {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  min-width: 0;
  line-height: 1.25;
}

.logo--premium {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
}

.header-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  opacity: 0.25;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-user {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding-right: 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.section-card--premium {
  padding: 1.65rem 1.85rem;
  margin-bottom: 1.35rem;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.section-card--premium:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 14px 36px rgba(0, 0, 0, 0.07);
}

.section-card--premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--black);
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--black);
  text-transform: none;
  line-height: 1.3;
}

.form-panel {
  background: var(--surface-muted);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.form-panel-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.form-panel--date {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-panel--customer {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.date-fixed {
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--black);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.installments-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.installments-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-700);
}

.installments-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--black);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  transition: border-color var(--transition);
}

.installments-input::-webkit-outer-spin-button,
.installments-input::-webkit-inner-spin-button {
  opacity: 1;
  height: 28px;
}

.installments-input:hover {
  border-color: var(--gray-700);
}

.installments-input:focus {
  outline: none;
  border-color: var(--black);
  border-left-color: var(--black);
}

.installment-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 0.15rem;
}

.installment-result .installment-label {
  color: var(--gray-700);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.installment-result .installment-value {
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 700;
}

.installment-label {
  font-size: 0.72rem;
  color: var(--gray-700);
}

.installment-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.totals-panel--premium {
  margin-top: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.totals-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.totals-panel-tag {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.totals-panel-body {
  padding: 0.5rem 1.15rem 0.75rem;
  background: var(--surface-muted);
}

.totals-panel--premium .totals-row {
  padding: 0.45rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.totals-panel--premium .totals-row:last-child {
  border-bottom: none;
}

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

.totals-input {
  width: 110px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.82rem;
  text-align: right;
  background: var(--white);
}

.totals-input:focus {
  outline: none;
  border-color: var(--black);
}

.totals-panel--premium .totals-row.total-final {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 2px solid var(--black);
  font-size: 0.9rem;
}

.totals-panel--premium .totals-row.total-final .value {
  color: var(--black);
  font-weight: 700;
}

.page-form .data-table th {
  background: var(--black);
  color: var(--white);
  border-bottom: none;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.page-form .data-table td {
  border-bottom: 1px solid var(--border);
}

.page-form .section-collapse-toggle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.page-form .form-actions .btn-lg {
  padding: 0.95rem 2rem;
  font-weight: 600;
}

.page-form .link-result {
  border-top: 3px solid var(--black);
}

/* Compact Form Layout */
.section-card--compact {
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.section-card--compact h2,
.section-card--compact .items-header h2 {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
}

.form-top-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  min-width: 0;
}

.form-panel--customer .form-group--details {
  flex: 1;
  height: 100%;
}

.form-group--date,
.form-group--details {
  min-width: 0;
}

.form-group--details {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.form-group--details .customer-details-box {
  flex: 1 1 auto;
  width: 100%;
  min-height: 120px;
  max-height: 220px;
  height: auto;
  resize: vertical;
  box-sizing: border-box;
}

.form-group--date input {
  width: 100%;
}

.items-header {
  margin-bottom: 0.75rem;
}

.items-header .btn {
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
}

.empty-state--compact {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.totals-grid--compact {
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.totals-summary--compact {
  padding: 0.65rem 0.85rem;
}

.totals-summary--compact .totals-row {
  padding: 0.3rem 0;
  font-size: 0.8rem;
}

.totals-summary--compact .totals-row.total-final {
  padding-top: 0.5rem;
  font-size: 0.85rem;
}

.section-card--collapsible {
  padding: 0;
  overflow: hidden;
}

.section-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.78rem 1.15rem;
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-700);
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.section-collapse-toggle:hover,
.section-collapse-toggle.is-open {
  background: var(--gray-100);
  color: var(--black);
}

.section-collapse-toggle:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

.section-collapse-toggle .optional-tag {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-500);
  font-size: 0.7rem;
}

.section-card--collapsible .collapse-content {
  padding: 0 1.15rem 1rem;
}

.signature-canvas-wrap--compact {
  height: 80px;
}

.sig-actions--compact {
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.sig-actions--compact .form-group {
  flex: 1;
}

.typed-sig-input {
  font-size: 1rem !important;
  font-style: italic;
  font-family: Georgia, serif !important;
}

.form-actions {
  margin-top: 0.25rem;
}

.form-actions .btn-lg {
  margin-top: 0;
  padding: 0.75rem 1.5rem;
}

.site-footer--compact {
  padding: 0.75rem;
  font-size: 0.68rem;
}

.site-header--compact {
  padding: 0.6rem 1.25rem;
}

.main-container--form .data-table th,
.main-container--form .data-table td {
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
}

.main-container--form .data-table th {
  font-size: 0.62rem;
}

.main-container--form .qty-input {
  width: 56px;
  padding: 0.3rem;
  font-size: 0.8rem;
}

.main-container--form .link-result {
  padding: 1.25rem;
  margin-top: 0.75rem;
}

/* Login Page */
body.page-login {
  min-height: 100vh;
  background: var(--white);
}

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

.login-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 4rem;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.login-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.login-aside::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55%;
  height: 70%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.login-aside-inner {
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--white);
}

.login-brand-title {
  font-family: var(--font-display);
  font-size: 3.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.login-brand-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 340px;
}

.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}

.login-aside-footer {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--page-bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.login-card-accent {
  height: 3px;
  background: var(--black);
}

.login-card-header {
  padding: 2.25rem 2.25rem 0.5rem;
}

.login-card-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--black);
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--black);
}

.login-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.login-card-header p {
  font-size: 0.86rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.login-form {
  padding: 1.25rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-field label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.input-wrap input {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrap input::placeholder {
  color: var(--gray-300);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.login-error {
  font-size: 0.78rem;
  color: var(--black);
  padding: 0.65rem 0.9rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--black);
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.9rem 1.35rem;
  margin-top: 0.5rem;
  background: var(--btn-solid-bg);
  color: var(--white);
  border: 1px solid var(--btn-solid-bg);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-login .btn-arrow {
  font-size: 0.95rem;
  opacity: 0.85;
  transition: transform var(--transition);
}

.btn-login:hover:not(:disabled) {
  background: var(--btn-solid-hover);
  border-color: var(--btn-solid-hover);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.btn-login:hover:not(:disabled) .btn-arrow {
  transform: translateX(4px);
}

.btn-login:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form Page Enhancements */
.header-inner--spread {
  justify-content: space-between;
  max-width: 960px;
}

.btn-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-header-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.logout-icon {
  font-size: 0.9rem;
  transition: transform var(--transition);
}

.btn-header-logout:hover .logout-icon {
  transform: translateX(2px);
}

.form-page-hero {
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.form-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--black);
}

.form-page-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.form-page-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
  padding: 0.3rem 0.65rem;
  background: var(--gray-100);
  border-radius: 2px;
}

.form-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-step {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.form-step em {
  font-style: normal;
  font-weight: 700;
  margin-right: 0.25rem;
  color: var(--gray-300);
}

.form-step--active {
  color: var(--black);
}

.form-step--active em {
  color: var(--black);
}

.form-step-divider {
  width: 20px;
  height: 1px;
  background: var(--border);
}

.form-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.form-page-desc {
  font-size: 0.88rem;
  color: var(--gray-700);
  max-width: 560px;
  line-height: 1.65;
}

.section-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-card-head--actions {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-card-head-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.section-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: 2px solid var(--black);
}

.section-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}

.empty-state--compact {
  padding: 2rem 1.5rem;
  background: var(--surface-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.empty-state-graphic {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.empty-state-graphic span {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.empty-state-graphic span:nth-child(2) {
  width: 40px;
  background: var(--gray-300);
}

.empty-state-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.empty-state-text {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.table-wrapper--premium {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--white);
}

.page-form .data-table tbody tr {
  transition: background var(--transition);
}

body.page-form .data-table tbody tr:nth-child(odd) td {
  background: var(--gray-100);
}

body.page-form .data-table tbody tr:nth-child(even) td {
  background: var(--white);
}

body.page-form .data-table tbody tr:hover td {
  background: var(--gray-100);
}

.page-form .data-table td.item-name {
  line-height: 1.5;
  max-width: 320px;
  font-size: 0.82rem;
}

.page-form .data-table th {
  padding: 0.55rem 0.65rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.page-form .data-table td {
  padding: 0.75rem 0.9rem;
}

.form-actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 50;
  margin-top: 0.75rem;
  padding: 1.25rem 0 0.75rem;
  background: var(--gray-100);
}

.form-actions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.form-actions-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  max-width: 320px;
  line-height: 1.5;
}

.form-actions--sticky .btn-lg {
  width: auto;
  min-width: 280px;
  margin-top: 0;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
}

.link-result {
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem;
}

.link-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
}

.page-form .form-group label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  margin-bottom: 0.3rem;
}

.section-card--fit .form-group label {
  margin-bottom: 0.2rem;
}

.page-form .customer-details-box {
  border: 1px solid var(--border);
  border-left: 3px solid var(--black);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.9rem 1.05rem;
  min-height: 160px;
  font-size: 0.88rem;
  line-height: 1.65;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.page-form .customer-details-box:focus {
  outline: none;
  border-color: var(--black);
  border-left-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.modal--premium .modal-header {
  padding: 0.5rem 1rem;
  min-height: 0;
  flex-shrink: 0;
}

.modal--premium .modal-header > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.modal--premium .modal-header h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
}

.modal--premium .modal-close {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  flex-shrink: 0;
}

.modal-badge {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  padding: 0.15rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 1.2;
}

.modal--premium {
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.service-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow);
}

.service-card.selected {
  border-color: var(--black);
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--black);
}

/* Dashboard — professional split layout */
body.page-dashboard {
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--page-bg);
}

html:has(body.page-dashboard) {
  overflow: hidden;
  height: 100%;
}

.dashboard-split {
  display: grid;
  grid-template-columns: 178px 1fr;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.dashboard-sidebar {
  background: #000000;
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.dashboard-sidebar::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -30%;
  width: 70%;
  height: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-sidebar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.85rem 0.5rem 0.75rem 0.6rem;
}

.dashboard-sidebar-brand-block {
  flex-shrink: 0;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-tagline {
  margin: 0.85rem 0 0;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
}

.dashboard-sidebar-nav {
  flex: 1;
  min-height: 0;
}

.dashboard-sidebar-label {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.55rem;
  padding-left: 0.1rem;
}

.dashboard-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  width: 100%;
}

.dashboard-sidebar-bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dashboard-sidebar-footer {
  margin: 0;
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

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

.dashboard-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.dashboard-brand-sub {
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.logo-mark--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black);
  color: var(--black);
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.logo-mark--light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  width: 30px;
  height: 30px;
  font-size: 0.88rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.dashboard-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--black);
}

.dashboard-brand-text--light {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.15;
}

.btn-header-logout--sidebar {
  width: 100%;
  justify-content: center;
  gap: 0.3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.65rem;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-header-logout--sidebar:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 18px rgba(0, 0, 0, 0.28);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
  min-height: 0;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  background: var(--page-bg);
}

.dashboard-main--active {
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
}

.dashboard-welcome.is-hidden,
.dashboard-welcome[hidden] {
  display: none !important;
}

.dashboard-frame-wrap {
  display: none;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: var(--page-bg);
}

.dashboard-frame-wrap.is-visible,
.dashboard-frame-wrap:not([hidden]) {
  display: flex;
}

.dashboard-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 0px);
  border: none;
  background: var(--page-bg);
}

.dash-util-card--sidebar.is-active {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.dash-util-card--sidebar.is-active .dash-util-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.dash-util-card--sidebar.is-active .dash-util-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-welcome {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 2.75rem 2.25rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.dashboard-welcome::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--black);
}

.dashboard-welcome .dashboard-main-header {
  margin-bottom: 0.75rem;
}

.dashboard-welcome-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.dashboard-welcome-hint strong {
  color: var(--black);
  font-weight: 600;
}

.dashboard-main-header {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  padding-top: 0;
}

.dashboard-eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  padding: 0.35rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.dashboard-main-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.dashboard-main-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.55;
  max-width: none;
  white-space: normal;
  margin: 0 auto;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}

.dashboard-create {
  width: 100%;
  max-width: 1080px;
  margin: auto auto 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  min-height: 0;
}

.dashboard-create-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  margin: 0;
}

.dashboard-create-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.dash-create-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
  min-height: 88px;
}

.dash-create-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.dash-create-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.dash-create-btn-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.dash-create-btn-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.dash-create-btn-body strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.dash-create-btn-body span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.35;
}

.dash-create-btn-arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.dash-create-btn:hover .dash-create-btn-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1100px) {
  .dashboard-create-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

.dash-card {
  text-decoration: none;
  color: inherit;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  min-height: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.dash-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.dash-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 65%;
  height: 75%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.28s ease;
}

.dash-card-accent {
  display: none;
}

.dash-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.dash-card:hover::after {
  opacity: 1.35;
}

.dash-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1.1rem 1.05rem 0.95rem;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  transition: border-color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.dash-card:hover .dash-card-icon {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.04);
}

.dash-card-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.32rem 0.65rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.dash-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.dash-card-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.dash-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
}

.dash-card-features li {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.62);
  padding-left: 1.15rem;
  position: relative;
  line-height: 1.45;
}

.dash-card-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  opacity: 0.35;
  font-size: 0.65rem;
  letter-spacing: 0;
}

.dash-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: background 0.28s ease, border-color 0.28s ease;
}

.dash-card-cta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.dash-card-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.9rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.28s ease, background 0.28s ease;
}

.dash-card:hover .dash-card-action {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.dash-card:hover .dash-card-cta-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.dash-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.dash-card--website .dash-card-icon {
  border-color: rgba(255, 255, 255, 0.28);
}

.dash-card--pos .dash-card-icon {
  border-color: rgba(255, 255, 255, 0.28);
}

.dash-card--invoice .dash-card-icon {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-header-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Website Contract Items */
.website-items-ui {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.website-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.website-toolbar .website-optional-item {
  flex: 1;
  min-width: 260px;
}

.website-toolbar .btn {
  align-self: stretch;
  white-space: nowrap;
}

.website-optional-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.website-optional-tag {
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  background: var(--gray-100);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.website-optional-item:hover {
  border-color: var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.website-optional-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.website-optional-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gray-700);
  border-radius: 2px;
  background: var(--white);
  position: relative;
  transition: all var(--transition);
}

.website-optional-item input:checked + .website-optional-check {
  background: var(--black);
  border-color: var(--black);
}

.website-optional-item input:checked + .website-optional-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.website-optional-label {
  flex: 1;
  font-size: 0.82rem;
  color: var(--dark);
  line-height: 1.45;
}

.website-optional-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.add-line-form {
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.add-line-fields {
  display: grid;
  grid-template-columns: 1fr 120px 80px;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.add-line-field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}

.add-line-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--white);
}

.add-line-field input:focus {
  outline: none;
  border-color: var(--black);
}

.add-line-actions {
  display: flex;
  gap: 0.5rem;
}

.qty-fixed {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  font-weight: 500;
}

.data-table tr.row-locked td.item-name {
  font-weight: 500;
}

.totals-panel--premium {
  border-radius: 6px;
}

.totals-panel--premium:not(.totals-panel--compact) .totals-row.total-final {
  background: var(--gray-100);
  margin: 0.5rem -1.15rem -0.75rem;
  padding: 0.85rem 1.15rem;
  border-top: 2px solid var(--black);
  border-radius: 0 0 6px 6px;
}

.totals-panel--premium:not(.totals-panel--compact) .totals-row.total-final .value {
  font-size: 1.05rem;
}

.link-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.link-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.link-modal-overlay.hidden {
  display: none;
}

.link-modal-overlay.open:not(.hidden) {
  display: flex;
}

body.link-modal-open {
  overflow: hidden;
}

.link-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.link-modal-overlay.open .link-modal {
  transform: translateY(0) scale(1);
}

.link-modal-top {
  padding: 1rem 1.25rem 0;
}

.link-modal-back {
  font-size: 0.72rem;
  padding: 0.5rem 1rem;
  letter-spacing: 0.04em;
}

.link-modal .link-result {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0.5rem 2rem 2rem;
}

.link-result {
  border-radius: 8px;
}

.link-result h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Form + admin header — clean bar with styled nav buttons */
body.page-form .site-header--premium,
body.page-admin-list .site-header--premium {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  overflow: visible;
}

body.page-form .site-header--slim .header-inner,
body.page-admin-list .site-header--slim .header-inner {
  max-width: none;
  width: 100%;
  overflow: visible;
}

body.page-form .site-header--slim .header-inner.header-inner--form,
body.page-admin-list .site-header--slim .header-inner.header-inner--form {
  padding: 0.55rem 1rem;
  box-sizing: border-box;
  min-height: 56px;
}

body.page-form .header-accent,
body.page-admin-list .header-accent {
  display: none;
}

body.page-form .form-type-badge,
body.page-admin-list .form-type-badge {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.01em;
  justify-self: center;
  align-self: center;
  text-align: center;
  padding: 0 0.5rem;
  max-width: min(26rem, 68vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

body.page-form .btn-header-nav,
body.page-admin-list .btn-header-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-width: 7.25rem;
  height: 36px;
  padding: 0 1.15rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 9px;
  box-sizing: border-box;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.page-form .btn-header-back,
body.page-admin-list .btn-header-back {
  grid-column: 1;
  justify-self: start;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-300);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.page-form .btn-header-back::before,
body.page-admin-list .btn-header-back::before {
  content: '←';
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.65;
  margin-right: 0.1rem;
}

body.page-form .btn-header-back:hover,
body.page-admin-list .btn-header-back:hover {
  background: var(--gray-100);
  border-color: var(--black);
  color: var(--black);
  transform: translateX(-1px);
}

body.page-form .btn-header-logout,
body.page-admin-list .btn-header-logout {
  grid-column: 3;
  justify-self: end;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.page-form .btn-header-logout:hover,
body.page-admin-list .btn-header-logout:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

body.page-form .site-header--slim .btn-header-nav,
body.page-admin-list .site-header--slim .btn-header-nav {
  min-width: 7.25rem;
  height: 36px;
  padding: 0 1.15rem;
  font-size: 0.78rem;
  text-transform: none;
}

body.page-form .btn-header-nav:focus-visible,
body.page-admin-list .btn-header-nav:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

body.page-form .section-card--premium::before {
  background: var(--black);
}

body.page-form .section-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.page-form .table-wrapper--premium {
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

body.page-form .data-table th {
  background: var(--black);
  color: var(--white);
  border-bottom: none;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.65rem;
}

body.page-form .data-table td {
  border-bottom: none;
}

body.page-form .form-actions--bar .btn-lg {
  letter-spacing: 0.12em;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.page-form .form-actions--bar .btn-lg:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Form page — visual polish (no font changes) */
body.page-form .form-viewport {
  padding: 1rem 1.5rem 1rem;
  max-width: none;
  margin: 0;
  width: 100%;
}

body.page-form .form-grid-layout {
  gap: 1rem;
}

body.page-form .section-card--fit {
  height: auto;
  min-height: auto;
}

body.page-form .section-card--fit .form-top-split {
  height: auto;
  min-height: auto;
}

body.page-form .section-card--fit .form-panel--customer {
  flex: none;
  min-height: auto;
}

body.page-form .section-card--fit .form-group--details {
  flex: none;
  min-height: auto;
}

body.page-form .section-card--fit .customer-details-box {
  flex: none;
  min-height: 120px;
  max-height: none;
  height: auto;
}

body.page-form .section-card--items {
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

body.page-form .section-card--items .table-wrapper--premium:not(.is-empty) {
  flex: none;
  min-height: auto;
  max-height: none;
}

body.page-form .section-card--fit {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.1rem;
  background: var(--white);
}

body.page-form .section-card--fit::before {
  height: 2px;
  background: var(--black);
}

body.page-form .form-top-split {
  gap: 0.7rem;
}

body.page-form .form-panel {
  background: var(--surface-muted);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.page-form .form-group label {
  color: var(--gray-900);
}

body.page-form .date-fixed {
  background: var(--white);
  border-color: var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.page-form .date-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--black);
  border-radius: 6px;
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
}

body.page-form .date-input:hover {
  border-color: var(--border-strong);
}

body.page-form .date-input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

body.page-form .customer-details-box {
  border-color: var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.page-form .section-card-head--compact {
  padding-bottom: 0.6rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.page-form .section-card--items .table-wrapper--premium {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: visible;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

body.page-form .section-card--items .table-wrapper--premium.is-empty {
  display: none;
}

body.page-form::-webkit-scrollbar,
body.page-form .customer-details-box::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.page-form::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 4px;
}

body.page-form::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

body.page-form::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

body.page-form .section-card--items .data-table tbody tr:nth-child(odd) td {
  background: var(--gray-100);
}

body.page-form .section-card--items .data-table tbody tr:nth-child(even) td {
  background: var(--white);
}

body.page-form .section-card--items .data-table tbody tr:hover td {
  background: var(--border);
}

body.page-form .qty-input {
  border-radius: 4px;
  border-color: var(--gray-300);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

body.page-form .qty-input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

body.page-form .totals-panel--compact {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.page-form .totals-panel--compact .totals-panel-body--grid {
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--white) 100%);
  border-top: none;
  padding: 0.55rem 0.85rem;
}

body.page-form .totals-panel--compact .totals-row--span,
body.page-form .totals-panel--compact .totals-row.total-final {
  background: var(--gray-100);
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

body.page-form .totals-panel--compact .totals-input {
  border-radius: 4px;
  border-color: var(--gray-300);
}

body.page-form .totals-panel--compact .totals-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

body.page-form .website-toolbar {
  padding: 0.55rem;
  background: var(--gray-100);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

body.page-form .website-optional-item {
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.page-form .website-optional-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.page-form .form-actions--bar {
  margin-top: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

body.page-form .site-header--premium {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.page-form .add-line-form {
  border-radius: 8px;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .main-container {
    padding: 2rem 1rem 3rem;
  }

  .section-card {
    padding: 1.25rem;
  }

  .contract-document {
    padding: 1.5rem;
  }

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

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

  .link-input-group {
    flex-direction: column;
  }

  .form-top-split {
    grid-template-columns: 1fr;
  }

  .form-group--details .customer-details-box {
    min-height: 140px;
    height: auto;
    flex: none;
    resize: vertical;
  }

  .totals-grid--compact {
    grid-template-columns: 1fr;
  }

  .header-inner--spread {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .section-card-head--actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-card-head--actions .btn {
    width: 100%;
    justify-content: center;
  }

  .form-page-title {
    font-size: 1.45rem;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-aside {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .login-brand-title {
    font-size: 2.25rem;
  }

  .login-features {
    display: none;
  }

  .login-main {
    padding: 1.5rem;
  }

  .form-page-hero {
    padding: 1.25rem;
  }

  .form-page-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .header-inner--form {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0.5rem;
    min-height: 48px;
  }

  body.page-form .site-header--slim .header-inner.header-inner--form {
    padding: 0.45rem 1rem;
  }

  body.page-form .form-type-badge {
    grid-column: 2;
    font-size: 0.9rem;
    max-width: 10.5rem;
  }

  body.page-form .btn-header-nav,
  body.page-admin-list .btn-header-nav {
    min-width: 6rem;
    height: 34px;
    padding: 0 0.9rem;
    font-size: 0.72rem;
  }

  body.page-form .btn-header-back,
  body.page-admin-list .btn-header-back {
    grid-column: 1;
    justify-self: start;
  }

  body.page-form .btn-header-logout,
  body.page-admin-list .btn-header-logout {
    grid-column: 3;
    justify-self: end;
  }

  .website-toolbar {
    flex-direction: column;
  }

  .website-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .form-actions--sticky .btn-lg,
  .form-actions--bar .btn-lg {
    width: 100%;
    min-width: 0;
  }

  body.page-form {
    height: auto;
    overflow: auto;
  }

  .form-viewport {
    overflow: visible;
    padding: 0.75rem 1rem 1.5rem;
  }

  .form-grid-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .section-card--fit {
    overflow: visible;
  }

  .section-card--items .table-wrapper--premium {
    overflow: visible;
    max-height: none;
  }

  .totals-panel--compact .totals-panel-body--grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-user {
    display: none;
  }

  body.page-dashboard {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .dashboard-split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .dashboard-sidebar-inner {
    padding: 1.5rem 1.15rem 1.5rem 1.65rem;
  }

  .dashboard-sidebar-links {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .dash-util-card--sidebar {
    flex: none;
    width: 100%;
  }

  .dashboard-main {
    padding: 1.5rem 1.25rem 2rem;
  }

  .dashboard-main-desc {
    white-space: normal;
  }

  .dashboard-main-title {
    font-size: 1.65rem;
  }

  .dashboard-create-grid {
    max-width: none;
  }

  .btn-header-back {
    font-size: 0.6rem;
    padding: 0.4rem 0.65rem;
  }

  .add-line-fields {
    grid-template-columns: 1fr;
  }
}

/* Location gate — before contract signing */
body.page-location {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-100);
}

.location-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.location-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--card-radius);
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.location-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--black);
}

.location-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.location-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--black);
}

.location-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  padding: 0.35rem 0.75rem;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.location-card h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.location-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.location-info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.location-info-list li {
  font-size: 0.82rem;
  color: var(--gray-700);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}

.location-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--black);
  border-radius: 50%;
  opacity: 0.35;
}

.location-status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--gray-100);
}

.location-status--success {
  background: var(--gray-100);
  border-color: var(--border-strong);
}

.location-status--error {
  background: var(--white);
  border-color: var(--border-strong);
}

.location-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--black);
  color: var(--white);
}

.location-status--error .location-status-icon {
  background: var(--black);
}

.location-status p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.location-coords {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.location-coords-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

#location-coords-value {
  font-size: 0.85rem;
  color: var(--black);
  font-weight: 500;
}

.location-btn {
  width: 100%;
  justify-content: center;
}

.location-error {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--black);
  line-height: 1.5;
}

.location-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.spinner--sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* Contract review — step header & proceed */
.contract-page-header {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.contract-step-badge,
.sign-step-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  padding: 0.35rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.contract-page-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.contract-page-desc,
.sign-page-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

.contract-proceed-wrap {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
}

.contract-proceed-btn {
  min-width: 280px;
  justify-content: center;
}

.signed-notice {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: var(--gray-100);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.signed-notice p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--gray-900);
}

/* Sign page */
body.page-sign {
  background: var(--gray-100);
}

.sign-page-header {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.sign-page-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.sign-back-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--gray-500);
  text-decoration: none;
}

.sign-back-link:hover {
  color: var(--black);
}

.sign-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.85rem;
}

.sign-submit-btn {
  width: 100%;
  margin-top: 1.5rem;
  justify-content: center;
}

.sign-success-card {
  max-width: 800px;
  margin: 0 auto;
}

.sign-success-card p {
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.sign-pdf-btn {
  margin-bottom: 1rem;
  min-width: 12rem;
}

/* ── Monochrome theme — international contract system ── */
body.page-sign,
body.page-location {
  background: var(--gray-100);
}

.contract-document {
  background: var(--white);
  border-color: var(--black);
}

.contract-doc-header {
  border-bottom-color: var(--black);
}

.location-status--success,
.location-status--error,
.signed-notice {
  background: var(--gray-100);
  border-color: var(--border-strong);
}

.location-status--error {
  border-color: var(--black);
  border-width: 1px;
}

.location-status--error .location-status-icon {
  background: var(--black);
}

.location-error {
  color: var(--gray-900);
}

.signed-notice p {
  color: var(--gray-900);
}

.toast.error {
  background: var(--gray-900);
  border-left: 3px solid var(--white);
}

.toast.success {
  background: var(--black);
}

.link-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

.link-modal {
  border: 1px solid var(--border);
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.modal--premium .modal-header {
  background: var(--black);
  color: var(--white);
  border-bottom-color: var(--gray-900);
}

.service-card.selected {
  background: var(--gray-100);
  border-color: var(--black);
}

/* Contract review page — full professional layout */
body.page-contract {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-100);
}

body.page-contract .site-header--compact,
body.page-sign .site-header--compact {
  padding: 0.32rem 1.25rem;
  flex-shrink: 0;
}

body.page-contract .site-header--compact .logo--compact,
body.page-sign .site-header--compact .logo--compact {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

body.page-contract .site-header--compact .header-inner,
body.page-sign .site-header--compact .header-inner {
  min-height: 0;
}

body.page-contract .site-footer--contract {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  font-size: 0.68rem;
}

body.page-contract .main-container--contract {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 1rem;
}

.contract-review-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contract-review-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.35rem 0 0.65rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.contract-review-hero-main {
  flex: 1;
  min-width: 0;
}

.contract-review-heading {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contract-review-hero-meta {
  text-align: right;
  flex-shrink: 0;
  line-height: 1.3;
}

.contract-review-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

body.page-contract .contract-step-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.55rem;
  padding: 0.22rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.page-contract .contract-page-title {
  font-size: 1.25rem;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--black);
  line-height: 1.2;
}

body.page-contract .contract-page-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray-500);
  margin: 0;
  max-width: 36rem;
}

body.page-contract .contract-meta {
  font-size: 0.72rem;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  line-height: 1.3;
}

.contract-review-sheet {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.contract-customer-bar {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--black);
  border-radius: var(--radius);
}

.contract-customer-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--black);
  line-height: 1.5;
  min-width: 6rem;
}

body.page-contract .customer-details-display--inline {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--gray-700);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.contract-review-upper {
  display: block;
}

.contract-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.contract-panel h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--black);
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.contract-panel--full {
  width: 100%;
}

body.page-contract .data-table {
  font-size: 0.76rem;
}

body.page-contract .data-table th {
  font-size: 0.65rem;
  padding: 0.4rem 0.55rem;
}

body.page-contract .data-table td {
  padding: 0.45rem 0.55rem;
}

body.page-contract .contract-totals {
  max-width: 100%;
  margin-top: 0.65rem;
  margin-left: auto;
  width: min(100%, 280px);
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
}

body.page-contract .contract-totals .totals-row {
  font-size: 0.76rem;
  padding: 0.3rem 0;
}

body.page-contract .contract-totals .totals-row.total-final {
  font-size: 0.8rem;
}

.contract-panel--terms {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.9rem 1rem 1rem;
}

.contract-panel-head {
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--black);
}

.contract-panel-head h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}

body.page-contract .contract-terms-intro {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--gray-500);
  margin: 0;
}

.contract-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  flex: 1;
  align-content: start;
}

body.page-contract .terms-card {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin: 0;
}

body.page-contract .terms-card--wide {
  grid-column: 1 / -1;
}

body.page-contract .terms-section-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.35rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

body.page-contract .terms-pos-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 0 0.4rem;
}

body.page-contract .terms-text {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--gray-700);
  margin: 0;
}

body.page-contract .terms-table {
  font-size: 0.72rem;
}

body.page-contract .terms-table th {
  font-size: 0.62rem;
  padding: 0.35rem 0.45rem;
  background: var(--white);
}

body.page-contract .terms-table td {
  padding: 0.35rem 0.45rem;
  background: var(--white);
}

body.page-contract .terms-services-list {
  gap: 0.45rem;
  margin-top: 0.4rem;
}

body.page-contract .terms-service-body strong {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  margin-bottom: 0.1rem;
}

body.page-contract .terms-service-body p {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--gray-500);
}

body.page-contract .contract-terms-footer {
  margin-top: 0.65rem;
  padding: 0.6rem 0.75rem;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

body.page-contract .terms-closing-line {
  font-size: 0.72rem;
  color: var(--gray-700);
  line-height: 1.45;
  margin: 0 0 0.25rem;
}

body.page-contract .terms-closing-line:last-child {
  font-style: italic;
  color: var(--black);
  margin-bottom: 0;
}

.contract-review-actions {
  flex-shrink: 0;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
}

body.page-contract .contract-proceed-wrap {
  margin: 0;
  width: 100%;
  text-align: center;
}

body.page-contract .contract-proceed-btn {
  display: inline-flex;
  min-width: min(100%, 320px);
  font-size: 0.78rem;
  padding: 0.75rem 1.5rem;
  justify-content: center;
}

body.page-contract .signed-notice {
  margin: 0;
  width: 100%;
  max-width: none;
}

body.page-contract .admin-sig-name {
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

@media (max-width: 860px) {
  .contract-review-hero {
    flex-direction: column;
    gap: 0.65rem;
  }

  .contract-review-hero-meta {
    text-align: left;
  }

  body.page-contract .contract-meta {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .contract-customer-bar {
    flex-direction: column;
    gap: 0.35rem;
  }

  .contract-customer-label {
    min-width: 0;
  }

  .contract-terms-grid {
    grid-template-columns: 1fr;
  }

  body.page-contract .terms-card--wide {
    grid-column: auto;
  }
}

/* Dashboard utility links */
.dashboard-util {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  max-width: 1080px;
  margin: 0.15rem auto 0;
  flex-shrink: 0;
}

.dashboard-util-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  align-self: flex-start;
}

.dashboard-util-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.dash-util-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  min-width: 168px;
  max-width: 200px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dash-util-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.dash-util-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.dash-util-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  font-family: var(--font-display);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.dash-util-card:hover .dash-util-icon {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.dash-util-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.dash-util-body strong {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}

.dash-util-body span {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-util-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.dash-util-card:hover .dash-util-arrow {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.14);
}

.dash-util-card--sidebar {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  padding: 0.42rem 0.4rem;
  gap: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 18px rgba(0, 0, 0, 0.22);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.dash-util-card--sidebar::before {
  background: radial-gradient(ellipse at 0% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 62%);
  opacity: 0.85;
  transition: opacity 0.28s ease;
}

.dash-util-card--sidebar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%);
  transition: height 0.28s ease;
  pointer-events: none;
}

.dash-util-card--sidebar:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 26px rgba(0, 0, 0, 0.32);
  transform: translateX(3px);
}

.dash-util-card--sidebar:hover::before {
  opacity: 1;
}

.dash-util-card--sidebar:hover::after {
  height: 58%;
}

.dash-util-card--sidebar .dash-util-body span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.dash-util-card--sidebar .dash-util-icon {
  width: 26px;
  height: 26px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.dash-util-card--sidebar:hover .dash-util-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.25);
}

.dash-util-card--sidebar .dash-util-body {
  flex: 1;
  min-width: 0;
}

.dash-util-card--sidebar .dash-util-body strong {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.dash-util-card--sidebar .dash-util-body span {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: 0.02em;
}

.dash-util-card--sidebar .dash-util-arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  font-size: 0.48rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.dash-util-card--sidebar:hover .dash-util-arrow {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.dash-util-icon--pricing {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ═══ Premium shell (login · dashboard · admin · public — not forms) ═══ */
body.page-login .login-main {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.65) 0%, transparent 50%),
    var(--page-bg);
}

body.page-login .login-brand-mark {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

body.page-login .login-card-badge {
  border-radius: 999px;
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-700);
}

body.page-login .login-features li {
  transition: color var(--transition), padding-left var(--transition);
}

body.page-login .login-features li:hover {
  color: rgba(255, 255, 255, 0.92);
  padding-left: 0.15rem;
}

body.page-login .login-feature-icon {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

body.page-dashboard .dashboard-main {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 58%),
    var(--page-bg);
}

body.page-dashboard .dashboard-welcome {
  position: relative;
  z-index: 1;
}

body.page-dashboard .dashboard-welcome .dashboard-eyebrow {
  margin-bottom: 0.85rem;
}

body.page-dashboard .dashboard-main-title {
  font-size: 2.15rem;
}

@import url('dropdowns.css');
