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

:root {
  --bg-0: #f5f7fb;
  --bg-1: #eef2f7;
  --bg-2: #ffffff;
  --bg-3: #e8eef7;
  --ink: #0d1b2a;
  --muted: #5b6473;
  --primary: #1f6f5c;
  --primary-dark: #155244;
  --accent: #f2a65a;
  --accent-2: #2f6fb0;
  --card: #ffffff;
  --border: rgba(13, 27, 42, 0.12);
  --shadow: 0 18px 38px rgba(13, 27, 42, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --glass: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 111, 176, 0.16), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(242, 166, 90, 0.2), transparent 44%),
    linear-gradient(160deg, var(--bg-2), var(--bg-0) 45%, var(--bg-1) 100%);
  min-height: 100vh;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(0);
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(47, 111, 176, 0.22), transparent 70%);
}

body::after {
  bottom: -200px;
  left: -160px;
  background: radial-gradient(circle, rgba(31, 111, 92, 0.2), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: 'Sora', sans-serif;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.app-shell {
  --sidenav-expanded: 300px;
  --sidenav-collapsed: 96px;
  --sidenav-width: var(--sidenav-expanded);
  display: grid;
  grid-template-columns: var(--sidenav-width) 1fr;
  grid-template-areas: 'sidenav main';
  min-height: 100vh;
  transition: grid-template-columns 0.25s ease;
}

.app-shell.nav-collapsed {
  --sidenav-width: var(--sidenav-collapsed);
}

.side-nav {
  grid-area: sidenav;
  padding: 26px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 251, 0.98));
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--border);
  box-shadow: 12px 0 30px rgba(13, 27, 42, 0.06);
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(12px);
  width: var(--sidenav-width);
  transition: width 0.25s ease, padding 0.25s ease;
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.side-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.nav-overlay {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 4;
  display: none;
}

.nav-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: none;
}

.nav-toggle:hover {
  background: rgba(31, 111, 92, 0.08);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(31, 111, 92, 0.4);
  outline-offset: 2px;
}

.nav-pin {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
}

.nav-pin:hover {
  background: rgba(31, 111, 92, 0.08);
}

.nav-pin:focus-visible {
  outline: 2px solid rgba(31, 111, 92, 0.4);
  outline-offset: 2px;
}

.nav-pin-short {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(31, 111, 92, 0.12);
  color: var(--primary-dark);
  font-size: 10px;
  letter-spacing: 0.08em;
  display: grid;
  place-items: center;
}

.nav-pin-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 0.2s ease, max-width 0.2s ease;
  max-width: 120px;
  overflow: hidden;
  min-width: 0;
}

.side-nav.nav-locked .nav-pin {
  background: rgba(31, 111, 92, 0.12);
  border-color: rgba(31, 111, 92, 0.25);
  color: var(--primary-dark);
}

.side-nav.nav-locked .nav-pin-label {
  color: var(--primary-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text {
  display: grid;
  gap: 2px;
  max-width: 180px;
  transition: opacity 0.2s ease, max-width 0.2s ease;
  overflow: hidden;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 111, 92, 0.9), rgba(242, 166, 90, 0.9));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  flex: 1;
  align-items: stretch;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: 0.2s ease;
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: 12px;
  position: relative;
  font-weight: 600;
  min-height: 44px;
  width: 100%;
  min-width: 0;
}

.nav-link::before {
  content: none;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(31, 111, 92, 0.12);
  color: var(--primary-dark);
  border-color: rgba(31, 111, 92, 0.18);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(31, 111, 92, 0.4);
  outline-offset: 2px;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--icon-bg, rgba(31, 111, 92, 0.12));
  color: var(--icon-color, var(--primary-dark));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(13, 27, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-icon svg * {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2;
  transition: opacity 0.2s ease, max-width 0.2s ease;
  min-width: 0;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 22px rgba(13, 27, 42, 0.16);
}

.side-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}

.user-name {
  transition: opacity 0.2s ease, max-width 0.2s ease;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.user-dot {
  width: 8px;
  height: 8px;
  background: #2ecf9a;
  border-radius: 999px;
}

.logout-button {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.button-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(31, 111, 92, 0.16);
  color: var(--primary-dark);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.button-label {
  display: inline-flex;
}

.app-shell.nav-collapsed .side-nav {
  padding: 22px 12px;
}

.app-shell.nav-collapsed .side-top {
  flex-direction: column;
  align-items: center;
}

.app-shell.nav-collapsed .side-controls {
  width: 100%;
  justify-content: center;
  gap: 0;
}

.app-shell.nav-collapsed .brand-text {
  max-width: 0;
  opacity: 0;
}

.app-shell.nav-collapsed .nav-pin {
  padding: 6px;
}

.app-shell.nav-collapsed .nav-pin-label {
  max-width: 0;
  opacity: 0;
}

.app-shell.nav-collapsed .nav-list {
  padding: 6px;
  gap: 10px;
}

.app-shell.nav-collapsed .nav-link {
  grid-template-columns: auto;
  justify-items: center;
  padding: 6px;
  min-height: 52px;
  column-gap: 0;
}

.app-shell.nav-collapsed .nav-label {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.app-shell.nav-collapsed .nav-icon {
  width: 40px;
  height: 40px;
}

.app-shell.nav-collapsed .nav-icon svg {
  width: 20px;
  height: 20px;
}

.app-shell.nav-collapsed .side-footer {
  padding: 10px 8px;
  justify-items: center;
}

.app-shell.nav-collapsed .user-name {
  max-width: 0;
  opacity: 0;
}

.app-shell.nav-collapsed .logout-button {
  width: auto;
  padding: 10px;
}

.app-shell.nav-collapsed .logout-button .button-label {
  display: none;
}

.app-shell.nav-collapsed .logout-button .button-icon {
  display: inline-flex;
}

.main {
  grid-area: main;
  padding: 32px 36px 48px;
  animation: fadeUp 0.45s ease;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.page-actions {
  display: flex;
  gap: 12px;
}

.page-body {
  display: grid;
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 253, 0.98));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 4px solid rgba(31, 111, 92, 0.16);
  pointer-events: none;
}

.table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table-card th,
.table-card td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

.table-card th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(31, 111, 92, 0.08);
}

.table-card tbody tr:hover {
  background: rgba(31, 111, 92, 0.05);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.form {
  display: grid;
  gap: 14px;
}

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

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.form label.required::after {
  content: '*';
  color: var(--accent);
  margin-left: 6px;
  font-size: 12px;
}

.form input,
.form textarea,
.form select {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: rgba(31, 111, 92, 0.5);
  box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.12);
}

.form input:disabled,
.form textarea:disabled,
.form select:disabled {
  background: rgba(27, 26, 23, 0.04);
  color: var(--muted);
}

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

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

.form .checkbox {
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.form-hint {
  color: #c23616;
  font-size: 13px;
}

.button {
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 111, 92, 0.18);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0f3f33);
}

.button.ghost {
  background: rgba(31, 111, 92, 0.08);
  border-color: rgba(31, 111, 92, 0.2);
  color: var(--primary-dark);
}

.button.small {
  padding: 6px 12px;
  font-size: 12px;
}

.button.icon-button {
  padding: 6px 10px;
}

.button.icon-button .planet-icon {
  font-size: 14px;
  line-height: 1;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: capitalize;
  background: rgba(31, 111, 92, 0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(31, 111, 92, 0.18);
}

.badge.draft {
  background: rgba(110, 107, 102, 0.2);
  color: #4f4b46;
}

.badge.planned {
  background: rgba(47, 111, 176, 0.12);
  color: var(--accent-2);
}

.badge.scheduled {
  background: rgba(242, 184, 91, 0.25);
  color: #8a5b11;
}

.badge.in_progress {
  background: rgba(88, 225, 185, 0.2);
  color: #1c6f56;
}

.badge.active {
  background: rgba(31, 111, 92, 0.18);
  color: var(--primary-dark);
}

.badge.completed {
  background: rgba(31, 122, 95, 0.2);
  color: #1f7a5f;
}

.badge.paid {
  background: rgba(31, 122, 95, 0.18);
  color: #1f7a5f;
}

.badge.pending_payment {
  background: rgba(242, 166, 90, 0.22);
  color: #8a5b11;
}

.badge.pending_professional {
  background: rgba(47, 111, 176, 0.14);
  color: var(--accent-2);
}

.badge.on_hold {
  background: rgba(242, 166, 90, 0.22);
  color: #8a5b11;
}

.badge.cancelled,
.badge.inactive {
  background: rgba(194, 54, 22, 0.15);
  color: #a13016;
}

.badge.photo {
  background: rgba(28, 111, 214, 0.15);
  color: var(--accent-2);
}

.badge.video {
  background: rgba(242, 184, 91, 0.3);
  color: #8a5b11;
}

.badge.drone {
  background: rgba(88, 225, 185, 0.2);
  color: #1c6f56;
}

.badge.tour {
  background: rgba(27, 26, 23, 0.08);
  color: #3c3833;
}

.badge.edit {
  background: rgba(31, 122, 95, 0.15);
  color: var(--primary-dark);
}

.badge.uploaded {
  background: rgba(47, 111, 176, 0.12);
  color: var(--accent-2);
}

.badge.editing {
  background: rgba(242, 166, 90, 0.22);
  color: #8a5b11;
}

.badge.delivered {
  background: rgba(31, 111, 92, 0.22);
  color: var(--primary-dark);
}

.badge.low {
  background: rgba(31, 111, 92, 0.12);
  color: var(--primary-dark);
}

.badge.medium {
  background: rgba(47, 111, 176, 0.14);
  color: var(--accent-2);
}

.badge.high,
.badge.urgent {
  background: rgba(194, 54, 22, 0.16);
  color: #a13016;
}

.badge.open {
  background: rgba(47, 111, 176, 0.14);
  color: var(--accent-2);
}

.badge.in_review {
  background: rgba(242, 166, 90, 0.22);
  color: #8a5b11;
}

.badge.resolved {
  background: rgba(31, 111, 92, 0.22);
  color: var(--primary-dark);
}

.stat {
  display: grid;
  gap: 8px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-drop {
  border: 2px dashed rgba(31, 111, 92, 0.3);
  background: rgba(31, 111, 92, 0.06);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.upload-drop strong {
  color: var(--primary-dark);
}

.upload-drop input[type='file'] {
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
}

.file-meta {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filters input,
.filters select {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  min-width: 200px;
  background: #fff;
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s ease;
}

.option-card:hover {
  border-color: rgba(31, 111, 92, 0.4);
  box-shadow: 0 12px 22px rgba(31, 111, 92, 0.08);
}

.card-inline {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(13, 27, 42, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.form-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  background: rgba(31, 111, 92, 0.08);
  color: var(--primary-dark);
}

.pill.checkbox input {
  accent-color: var(--primary);
}

.media-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.option-card input {
  margin-top: 4px;
}

.option-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.wizard-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.step {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 92, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.step.active {
  background: var(--primary);
  color: #fff;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.request-wizard {
  --wizard-ink: #0b1220;
  --wizard-muted: #5a6676;
  --wizard-primary: #0f766e;
  --wizard-primary-2: #0ea5e9;
  --wizard-accent: #f59e0b;
  --wizard-card: #ffffff;
  --wizard-border: rgba(15, 23, 42, 0.12);
  --wizard-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #eef2f6 100%);
  overflow: hidden;
}

.request-wizard::before,
.request-wizard::after {
  content: '';
  position: absolute;
  inset: -30%;
  pointer-events: none;
}

.request-wizard::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.2), transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(245, 158, 11, 0.2), transparent 40%),
    radial-gradient(circle at 82% 82%, rgba(15, 118, 110, 0.18), transparent 42%);
}

.request-wizard::after {
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.22;
  transform: translateY(-6%);
}

.request-wizard .wizard-stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  animation: wizard-rise 0.55s ease both;
}

.request-wizard .wizard-hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.request-wizard .wizard-hero-text {
  display: grid;
  gap: 10px;
}

.request-wizard .wizard-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  color: var(--wizard-muted);
}

.request-wizard .wizard-title {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 0;
  color: var(--wizard-ink);
}

.request-wizard .wizard-subtitle {
  font-size: 15px;
  margin: 0;
  color: var(--wizard-muted);
}

.request-wizard .wizard-hero-side {
  display: grid;
}

.request-wizard .wizard-hero-card {
  background: linear-gradient(140deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.12));
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 10px;
  color: var(--wizard-ink);
}

.request-wizard .wizard-hero-card.intro {
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.12));
  border-color: rgba(15, 118, 110, 0.22);
}

.request-wizard .wizard-hero-card h3 {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: 18px;
  margin: 0;
}

.request-wizard .wizard-hero-card strong {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: 16px;
}

.request-wizard .wizard-hero-card p {
  margin: 0;
  font-size: 14px;
  color: var(--wizard-muted);
}

.request-wizard .wizard-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 118, 110, 0.14);
  color: #0f3d36;
  font-weight: 600;
  width: fit-content;
}

.request-wizard .wizard-list {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--wizard-muted);
}

.request-wizard .wizard-panel {
  background: var(--wizard-card);
  border-radius: 26px;
  padding: 24px;
  border: 1px solid var(--wizard-border);
  box-shadow: var(--wizard-shadow);
  display: grid;
  gap: 18px;
  animation: wizard-rise 0.65s ease 0.08s both;
}

.request-wizard .wizard-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.request-wizard .wizard-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.request-wizard .wizard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wizard-primary), var(--wizard-primary-2));
  transition: width 0.35s ease;
}

.request-wizard .wizard-steps-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.request-wizard .step {
  background: rgba(15, 118, 110, 0.1);
  color: var(--wizard-primary);
  border: 1px solid rgba(15, 118, 110, 0.2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-wizard .step.active {
  background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.request-wizard .card-inline {
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(248, 250, 252, 0.9);
}

.request-wizard .wizard-share .wizard-actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.request-wizard .share-result {
  background: rgba(15, 118, 110, 0.12);
  color: var(--wizard-primary);
  border-radius: 999px;
  padding: 8px 12px;
  max-width: 100%;
  word-break: break-all;
}

.request-wizard .option-card {
  border-radius: 18px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-wizard .option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.request-wizard .muted {
  color: var(--wizard-muted);
}

@keyframes wizard-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .request-wizard {
    padding: 22px;
  }

  .request-wizard .wizard-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .request-wizard {
    padding: 18px;
  }

  .request-wizard .wizard-panel {
    padding: 18px;
  }
}

.login-shell,
.public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}

.login-grid {
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.login-card,
.public-card {
  width: min(420px, 92vw);
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
  animation: fadeUp 0.4s ease;
}

.login-grid .login-card {
  width: 100%;
}

.login-panel {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(140deg, rgba(31, 111, 92, 0.12), rgba(47, 111, 176, 0.18));
  border: 1px solid rgba(13, 27, 42, 0.12);
  display: grid;
  gap: 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.login-panel h2 {
  margin: 0;
}

.login-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.login-panel li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(13, 27, 42, 0.12);
}

.login-brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.login-footer {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.public-header {
  display: grid;
  gap: 8px;
}

.public-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.public-info {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 16px 0;
}

.share-result {
  font-size: 13px;
  color: var(--primary-dark);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.detail-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.request-detail {
  display: grid;
  gap: 20px;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(31, 111, 92, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.detail-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(31, 111, 92, 0.18);
}

.detail-tab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.2);
}

.detail-tab-panels {
  display: grid;
  gap: 20px;
}

.detail-tab-panel {
  display: none;
}

.detail-tab-panel.active {
  display: block;
}

.asset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.asset-stage {
  display: grid;
  gap: 4px;
  text-align: right;
}

.asset-uploads {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}

.asset-upload-section {
  display: grid;
  gap: 12px;
}

.asset-upload-section.is-disabled {
  opacity: 0.6;
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-grid {
  display: grid;
  gap: 12px;
}

.asset-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.06);
}

.asset-icon {
  width: 48px;
  height: 56px;
  border-radius: 12px;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
}

.asset-icon::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-bottom: 16px solid rgba(255, 255, 255, 0.9);
}

.asset-icon.photo {
  background: #e6f5f0;
  color: #0f766e;
}

.asset-icon.video {
  background: #ffe4e6;
  color: #be123c;
}

.asset-icon.drone {
  background: #e0f2fe;
  color: #0369a1;
}

.asset-icon.tour {
  background: #f0fdf4;
  color: #15803d;
}

.asset-icon.edit {
  background: #ffedd5;
  color: #c2410c;
}

.asset-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.asset-title {
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.asset-meta {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.asset-size {
  font-size: 12px;
  color: var(--muted);
}

.asset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .asset-card {
    grid-template-columns: 1fr;
  }

  .asset-actions {
    justify-content: flex-start;
  }

  .asset-stage {
    text-align: left;
  }
}

.request-detail .detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.request-detail .detail-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 6px;
  min-height: 70px;
}

.request-detail .detail-item.wide {
  grid-column: span 2;
}

.request-detail .detail-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.request-detail .detail-value {
  font-size: 14px;
  color: var(--ink);
  word-break: break-word;
}

.request-detail .detail-value .badge {
  display: inline-flex;
  align-items: center;
}

.request-detail .detail-list {
  display: grid;
  gap: 10px;
}

.request-detail .detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
}

.request-detail .detail-list li.empty {
  display: block;
  text-align: center;
  border: 0;
  padding: 8px 0;
  background: transparent;
}

.request-detail .service-name {
  font-weight: 600;
  color: var(--ink);
}

.request-detail .service-price {
  font-weight: 600;
  color: var(--primary-dark);
}

.payment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.approval-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.payment-module {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(236, 245, 255, 0.88));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-list {
  display: grid;
  gap: 16px;
}

.payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.08);
}

.payment-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.payment-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.payment-info {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.payment-right {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.payment-amount {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.payment-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-date {
  font-size: 12px;
  color: var(--muted);
}

.payment-card .payment-actions {
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 980px) {
  .payment-card {
    grid-template-columns: 1fr;
  }

  .payment-card .payment-actions {
    justify-content: flex-start;
  }
}

.stage-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.stage-item {
  flex: 0 0 auto;
  min-width: 190px;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(13, 27, 42, 0.08);
  animation: stage-rise 0.6s ease both;
  animation-delay: calc(var(--stage-index, 0) * 0.04s);
  scroll-snap-align: start;
}

.stage-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-status {
  font-size: 11px;
  color: var(--muted);
}

.stage-item.in_progress {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.2);
}

.stage-item.current {
  border-color: rgba(14, 165, 233, 0.4);
}

.stage-item.completed {
  opacity: 0.85;
}

@keyframes stage-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proposal-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.88));
  box-shadow: var(--shadow);
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.proposal-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.proposal-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.proposal-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.proposal-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
}

.proposal-values strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.proposal-services {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
}

.proposal-services-header {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.proposal-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.proposal-service-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.proposal-service-name {
  font-weight: 600;
  color: var(--ink);
}

.proposal-service-price {
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.proposal-services-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-weight: 600;
  color: var(--ink);
}

.proposal-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.proposal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.proposal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.chat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.88));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.chat-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent-2), var(--primary));
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.chat-body {
  display: grid;
  gap: 10px;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.chat-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.chat-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-preview {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.chat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-side {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.faq-module {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 111, 176, 0.16), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(242, 166, 90, 0.18), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.94));
  border: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: 0 28px 60px rgba(13, 27, 42, 0.1);
  backdrop-filter: blur(10px);
}

.faq-module::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(47, 111, 176, 0), rgba(47, 111, 176, 0.6), rgba(31, 111, 92, 0.6), rgba(242, 166, 90, 0.5), rgba(47, 111, 176, 0));
  opacity: 0.9;
  pointer-events: none;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(13, 27, 42, 0.12);
  box-shadow: 0 12px 20px rgba(13, 27, 42, 0.08);
}

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

.faq-card {
  position: relative;
  --faq-accent: var(--primary);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
  box-shadow: 0 18px 36px rgba(13, 27, 42, 0.08);
  display: grid;
  gap: 14px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-card::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -40%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 111, 92, 0.18), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}

.faq-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--faq-accent), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.faq-card > * {
  position: relative;
  z-index: 1;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(13, 27, 42, 0.12);
}

.faq-card.alt {
  --faq-accent: var(--accent-2);
}

.faq-card.alt::before {
  background: radial-gradient(circle, rgba(47, 111, 176, 0.18), transparent 62%);
}

.faq-title {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faq-accent);
  box-shadow: 0 0 0 6px rgba(31, 111, 92, 0.12);
}

.faq-card.alt .faq-title::before {
  box-shadow: 0 0 0 6px rgba(47, 111, 176, 0.12);
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: faq;
}

.faq-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.faq-list li::before {
  counter-increment: faq;
  content: counter(faq);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(31, 111, 92, 0.14);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid rgba(31, 111, 92, 0.22);
  box-shadow: 0 10px 18px rgba(31, 111, 92, 0.14);
}

.faq-card.alt .faq-list li::before {
  background: rgba(47, 111, 176, 0.16);
  color: var(--accent-2);
  border-color: rgba(47, 111, 176, 0.24);
  box-shadow: 0 10px 18px rgba(47, 111, 176, 0.14);
}

@keyframes chat-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chat-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-shell {
  --chat-surface: rgba(255, 255, 255, 0.95);
  --chat-surface-soft: rgba(246, 250, 255, 0.92);
  --chat-border: rgba(13, 27, 42, 0.12);
  --chat-accent: #2f6fb0;
  --chat-accent-soft: rgba(47, 111, 176, 0.18);
  --chat-primary: #1f6f5c;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
  position: relative;
  isolation: isolate;
  align-items: stretch;
  min-height: 0;
}

.chat-shell::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 111, 176, 0.2), transparent 70%);
  top: -90px;
  right: 18%;
  pointer-events: none;
  z-index: 0;
}

.chat-shell::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 111, 92, 0.18), transparent 70%);
  bottom: -120px;
  left: 8%;
  pointer-events: none;
  z-index: 0;
}

.chat-page {
  display: grid;
  gap: 16px;
}

.chat-sidebar,
.chat-panel {
  position: relative;
  z-index: 1;
}

.chat-sidebar {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.93));
  border: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: 0 22px 50px rgba(13, 27, 42, 0.12);
  animation: chat-rise 0.45s ease both;
  min-height: 0;
}

.chat-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.94));
  border: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: 0 26px 60px rgba(13, 27, 42, 0.12);
  animation: chat-rise 0.5s ease both;
}

.chat-sidebar::after,
.chat-panel::after {
  border-top-color: rgba(47, 111, 176, 0.22);
}

.chat-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chat-sidebar-header h3 {
  font-size: 16px;
}

.chat-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(13, 27, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-filters:focus-within {
  border-color: rgba(47, 111, 176, 0.4);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.12), 0 12px 26px rgba(13, 27, 42, 0.1);
}

#chat-search {
  flex: 1.4;
  width: auto;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 8px 12px 8px 34px;
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2020%2020' fill='none' stroke='%235b6473' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='9' r='6'/><line x1='13.5' y1='13.5' x2='18' y2='18'/></svg>");
  background-repeat: no-repeat;
  background-position: 10px 50%;
  background-size: 13px 13px;
  font-size: 12px;
  font-family: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#chat-search:focus {
  outline: none;
  border-color: rgba(47, 111, 176, 0.45);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(47, 111, 176, 0.12);
}

#chat-search::placeholder {
  color: rgba(91, 100, 115, 0.8);
}

#chat-status {
  flex: 1;
  width: auto;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 8px 32px 8px 12px;
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6473' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 8 10 12 14 8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  font-size: 12px;
  font-family: inherit;
  color: var(--ink);
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#chat-status:focus {
  outline: none;
  border-color: rgba(47, 111, 176, 0.45);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(47, 111, 176, 0.12);
}

.chat-threads {
  display: grid;
  gap: 12px;
  max-height: none;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  padding-right: 18px;
  border-radius: 18px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 255, 0.9));
  box-shadow: inset 0 1px 4px rgba(13, 27, 42, 0.08);
  scrollbar-gutter: stable;
  scroll-padding: 16px;
}

.chat-thread-item {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  padding: 14px 16px;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.92));
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(13, 27, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: chat-rise 0.45s ease both;
  animation-delay: calc(var(--chat-index, 0) * 40ms);
}

.chat-thread-item::before {
  content: none;
}

.chat-thread-item::after {
  content: none;
}

.chat-thread-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(13, 27, 42, 0.14);
}

.chat-thread-item:hover::before {
  opacity: 0.55;
}

.chat-thread-item:focus-visible {
  outline: 2px solid rgba(47, 111, 176, 0.45);
  outline-offset: 2px;
}

.chat-thread-item.active {
  border-color: rgba(47, 111, 176, 0.4);
  background: linear-gradient(150deg, rgba(47, 111, 176, 0.12), rgba(255, 255, 255, 0.98));
  box-shadow: 0 20px 40px rgba(47, 111, 176, 0.2);
  transform: translateY(-2px);
}

.chat-thread-item.active::before {
  opacity: 0.9;
}

.chat-thread-item.active::after {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 12px 22px rgba(47, 111, 176, 0.28);
}

.chat-thread-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-thread-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 111, 176, 0.14), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.chat-panel-main {
  display: grid;
  gap: 6px;
}

.chat-back {
  display: none;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.chat-back:focus-visible {
  outline: 2px solid rgba(47, 111, 176, 0.4);
  outline-offset: 2px;
}

.chat-panel-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.chat-panel-address {
  font-size: 13px;
  color: var(--muted);
}

.chat-panel-meta {
  font-size: 12px;
  color: var(--muted);
}

.chat-panel-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-request {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.9));
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.08);
}

.chat-request-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-request-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.chat-request-toggle {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chat-request-toggle:hover {
  color: var(--ink);
  border-color: rgba(47, 111, 176, 0.35);
  box-shadow: 0 10px 18px rgba(13, 27, 42, 0.12);
}

.chat-request-toggle:focus-visible {
  outline: 2px solid rgba(47, 111, 176, 0.4);
  outline-offset: 2px;
}

.chat-request-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.chat-request-body {
  display: grid;
  gap: 12px;
}

.chat-request.is-collapsed .chat-request-body {
  display: none;
}

.chat-request.is-collapsed .chat-request-toggle-icon {
  transform: rotate(-90deg);
}

.chat-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chat-request-item {
  display: grid;
  gap: 4px;
}

.chat-request-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-request-value {
  font-size: 13px;
  color: var(--ink);
  word-break: break-word;
}

.chat-request-link {
  justify-self: start;
}

.chat-empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(13, 27, 42, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.chat-module {
  display: grid;
  gap: 16px;
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 111, 176, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 252, 0.92));
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chat-header h3 {
  font-size: 16px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: clamp(260px, 40vh, 440px);
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 6% 0%, rgba(47, 111, 176, 0.12), transparent 55%),
    radial-gradient(circle at 95% 0%, rgba(31, 111, 92, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(241, 247, 255, 0.92));
  border: 1px solid rgba(13, 27, 42, 0.08);
}

.chat-message {
  display: flex;
  animation: chat-pop 0.35s ease both;
  animation-delay: calc(var(--chat-index, 0) * 30ms);
}

.chat-message.agency {
  justify-content: flex-end;
}

.chat-message.professional {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 72%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 30px rgba(13, 27, 42, 0.08);
}

.chat-message.agency .chat-bubble {
  background: linear-gradient(140deg, rgba(47, 111, 176, 0.2), rgba(255, 255, 255, 0.98));
  border-color: rgba(47, 111, 176, 0.25);
}

.chat-message.professional .chat-bubble {
  background: linear-gradient(140deg, rgba(31, 111, 92, 0.18), rgba(255, 255, 255, 0.98));
  border-color: rgba(31, 111, 92, 0.22);
}

.chat-sender {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-message.agency .chat-sender {
  color: var(--accent-2);
}

.chat-message.professional .chat-sender {
  color: var(--primary-dark);
}

.chat-text {
  font-size: 14px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}

.chat-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.chat-form label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-form textarea {
  min-height: 110px;
  border-radius: 14px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chat-form textarea:focus {
  outline: none;
  border-color: rgba(47, 111, 176, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.15);
}

.chat-form .chat-actions {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.chat-lock {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(194, 54, 22, 0.28);
  background: linear-gradient(135deg, rgba(194, 54, 22, 0.12), rgba(255, 255, 255, 0.9));
  color: #8a3a2a;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.chat-module.locked .chat-thread {
  opacity: 0.55;
  filter: grayscale(0.2);
}

@media (max-width: 900px) {
  .main.chat-main {
    padding: 0;
    height: calc(100vh - var(--mobile-nav-height, 0px));
    height: calc(100dvh - var(--mobile-nav-height, 0px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .main.chat-main .page-header {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 12px 16px;
    box-shadow: none;
    gap: 8px;
  }

  .main.chat-main .page-body {
    flex: 1;
    min-height: 0;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }

  .main.chat-main .page-header h1,
  .main.chat-main .page-header p {
    display: none;
  }

  .chat-page {
    height: 100%;
    gap: 0;
    grid-template-rows: 1fr;
    min-height: 0;
  }

  .chat-shell {
    height: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .chat-shell::before {
    right: -140px;
  }

  .chat-shell::after {
    left: -140px;
  }

  .chat-shell[data-view='list'] .chat-panel {
    display: none;
  }

  .chat-shell[data-view='panel'] .chat-sidebar {
    display: none;
  }

  .chat-sidebar,
  .chat-panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    padding: 16px;
    min-height: 0;
  }

  .chat-sidebar::after,
  .chat-panel::after {
    border-top-width: 0;
  }

  .chat-sidebar {
    min-height: 0;
    grid-template-rows: auto auto 1fr;
  }

  .chat-threads {
    max-height: none;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 10px;
  }

  .chat-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .chat-panel-header {
    padding: 12px 14px;
  }

  .chat-request {
    padding: 12px 14px;
  }

  .chat-request-grid {
    grid-template-columns: 1fr;
  }

  .chat-module {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .chat-thread {
    max-height: none;
    flex: 1;
    min-height: 0;
  }

  .chat-form {
    margin-top: 8px;
  }

  .chat-back {
    display: inline-flex;
  }

  .chat-thread-item {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .chat-filters {
    flex-direction: column;
  }

  #chat-search,
  #chat-status {
    width: 100%;
    flex: none;
  }

  .chat-card {
    grid-template-columns: 1fr;
  }

  .chat-side {
    justify-items: start;
    text-align: left;
  }

  .proposal-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .stage-item {
    min-width: 160px;
  }

  .request-detail .detail-item.wide {
    grid-column: span 1;
  }
}

.empty-state {
  color: var(--muted);
  font-size: 14px;
  padding: 16px 0;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.status-summary {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.landing-shell {
  --primary: #243b53;
  --primary-dark: #1a2a3c;
  --accent: #f1b27b;
  --accent-2: #8fb2d9;
  --ink: #101820;
  --muted: #5b6572;
  --border: rgba(16, 24, 32, 0.12);
  --card: #ffffff;
  --shadow: 0 20px 42px rgba(16, 24, 32, 0.12);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(143, 178, 217, 0.25), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(241, 178, 123, 0.3), transparent 45%),
    radial-gradient(circle at 80% 78%, rgba(212, 223, 234, 0.4), transparent 40%),
    linear-gradient(165deg, #fdfaf7, #f3f5f8 45%, #eef2f6 100%);
  color: var(--ink);
}

.landing-shell::before,
.landing-shell::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  pointer-events: none;
}

.landing-shell::before {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(241, 178, 123, 0.4), transparent 70%);
  opacity: 0.7;
}

.landing-shell::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(143, 178, 217, 0.3), transparent 70%);
  opacity: 0.6;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 6vw;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
  background: rgba(252, 253, 255, 0.9);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.08);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.landing-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 178, 123, 0.95), rgba(143, 178, 217, 0.85));
  color: #101820;
}

.brand-copy {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.brand-copy strong {
  font-size: 16px;
  color: var(--ink);
}

.landing-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.landing-link {
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
}

.landing-link:hover {
  color: var(--primary-dark);
}

.landing-link.active {
  color: var(--primary-dark);
  border-bottom-color: var(--accent);
}

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

.landing-shell .button.ghost {
  background: rgba(36, 59, 83, 0.12);
  color: var(--primary-dark);
}

.landing-shell .button.ghost:hover {
  background: rgba(36, 59, 83, 0.18);
}

.landing-shell .card::after {
  border-top: 4px solid rgba(241, 178, 123, 0.4);
}

.landing-main {
  padding: 36px 6vw 64px;
}

.landing-request .request-summary {
  display: grid;
  gap: 14px;
}

.landing-request .summary-header {
  display: grid;
  gap: 6px;
}

.landing-request .summary-title {
  font-size: 18px;
}

.landing-request .summary-meta {
  font-size: 12px;
  color: var(--muted);
}

.landing-request .request-summary .detail-list {
  color: var(--muted);
}

.landing-request .request-summary .detail-list strong {
  color: var(--ink);
}

.landing-request .request-summary .badge {
  justify-self: start;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}

.landing-hero.compact {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero-content {
  display: grid;
  gap: 14px;
}

.hero-content h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 6px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(36, 59, 83, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 8px;
}

.stat-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(36, 59, 83, 0.08);
  border: 1px solid rgba(36, 59, 83, 0.14);
  min-width: 120px;
}

.stat-pill strong {
  font-size: 16px;
}

.stat-pill span {
  font-size: 12px;
  color: var(--muted);
}

.hero-specs {
  display: grid;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.spec-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-gallery {
  display: grid;
  gap: 16px;
}

.viewfinder {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.viewfinder::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(27, 26, 23, 0.18);
  pointer-events: none;
}

.viewfinder-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewfinder-header strong {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: normal;
  text-transform: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photo-frame {
  position: relative;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  align-items: end;
  height: 140px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 20px rgba(27, 26, 23, 0.12);
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35));
}

.photo-frame span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f9f4ee;
}

.photo-frame.tall {
  height: 180px;
}

.photo-frame.wide {
  grid-column: span 2;
  height: 120px;
}

.photo-frame.cool {
  background: linear-gradient(135deg, #1f3954, #7aa6cf);
}

.photo-frame.warm {
  background: linear-gradient(135deg, #5c3a28, #e2a070);
}

.photo-frame.sunset {
  background: linear-gradient(135deg, #7b3b2f, #f1a56a);
}

.film-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.strip-frame {
  background: #1e242b;
  color: #f7f2ea;
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-section {
  margin: 40px 0;
}

.landing-section.alt {
  background: rgba(255, 255, 255, 0.65);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-grid,
.steps-grid,
.audience-grid,
.story-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.feature-card,
.step-card,
.audience-card,
.story-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.step-card span,
.story-card span {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 32px;
  border-radius: 999px;
  background: rgba(36, 59, 83, 0.12);
  color: var(--primary-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.info-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-item {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.info-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.stat-card span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  font-size: 26px;
}

.quote-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(36, 59, 83, 0.08);
  border: 1px solid rgba(36, 59, 83, 0.18);
  display: grid;
  gap: 12px;
}

.quote-card strong {
  font-size: 13px;
  color: var(--primary-dark);
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(36, 59, 83, 0.12), rgba(241, 178, 123, 0.25));
  border: 1px solid rgba(36, 59, 83, 0.2);
  box-shadow: var(--shadow);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.registration-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.registration-grid.wide {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.info-card {
  background: rgba(255, 255, 255, 0.7);
}

.registration-visual {
  display: grid;
  gap: 16px;
}

.photo-stack {
  position: relative;
  height: 220px;
}

.photo-stack .photo-frame {
  position: absolute;
  inset: 0;
  height: 180px;
  width: 70%;
}

.photo-stack .photo-frame:nth-child(1) {
  left: 0;
  top: 10px;
  transform: rotate(-2deg);
}

.photo-stack .photo-frame:nth-child(2) {
  right: 0;
  top: 24px;
  transform: rotate(2deg);
  width: 65%;
  height: 160px;
}

.photo-stack .photo-frame:nth-child(3) {
  left: 18%;
  top: 60px;
  transform: rotate(-4deg);
  width: 60%;
  height: 140px;
  opacity: 0.9;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 16px 0;
  list-style: none;
  color: var(--muted);
}

.info-highlight {
  padding: 12px;
  border-radius: 14px;
  background: rgba(36, 59, 83, 0.08);
  display: grid;
  gap: 8px;
}

.landing-footer {
  padding: 32px 6vw 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(27, 26, 23, 0.08);
  font-size: 13px;
  color: var(--muted);
}

.landing-footer strong {
  color: var(--ink);
}

.landing-footer-links {
  display: grid;
  gap: 8px;
}

.badge.pending {
  background: rgba(28, 111, 214, 0.15);
  color: var(--accent-2);
}

.badge.approved {
  background: rgba(88, 225, 185, 0.2);
  color: #1c6f56;
}

.badge.rejected {
  background: rgba(194, 54, 22, 0.15);
  color: #a13016;
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.08s;
}

.reveal.delay-2 {
  animation-delay: 0.16s;
}

.reveal.delay-3 {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      'sidenav'
      'main';
  }

  .side-nav {
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 0;
    z-index: 6;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(13, 27, 42, 0.08);
    width: 100%;
  }

  .nav-overlay {
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-pin {
    display: none;
  }

  .side-menu {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .side-nav.open .side-menu {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
    overflow: auto;
  }

  .side-nav.open + .nav-overlay {
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
  }

  .side-footer {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
  }

  .grid.two,
  .grid.three,
  .form.grid.two,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .table-card table {
    min-width: 640px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters input,
  .filters select {
    min-width: 0;
    width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }

  .landing-links {
    flex-wrap: wrap;
  }

  .landing-hero,
  .landing-hero.compact,
  .login-grid,
  .feature-grid,
  .steps-grid,
  .audience-grid,
  .story-grid,
  .info-strip,
  .stats-grid,
  .registration-grid,
  .registration-grid.wide,
  .photo-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-band,
  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
