﻿:root {
  --navy: #1f2a2e;
  --navy-deep: #162023;
  --cyan: #42c7a8;
  --purple: #f2b84b;
  --soft: #f1fbf8;
  --text: #1f2a2e;
  --muted: #666f7d;
  --line: #dfe5ed;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --shadow: 0 24px 70px rgba(31, 42, 46, 0.12);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

/* Professional admin workspace */
.status-pill.approved,
.status-pill.ready,
.payment-pill.paid {
  background: #dcfce7;
  color: #166534;
}

.status-pill.designing,
.status-pill.manufacturing,
.status-pill.quality-check {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill.delivered {
  background: #e0f2fe;
  color: #0369a1;
}

.status-pill.cancelled,
.payment-pill.unpaid {
  background: #fee2e2;
  color: #b91c1c;
}

.payment-pill.partial {
  background: #fef3c7;
  color: #92400e;
}

.payment-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 10px;
}

body.admin-page {
  background: #f6f8fb;
  color: #0f172a;
  display: flex;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  width: 260px;
}

.admin-brand {
  align-items: center;
  color: #0f172a;
  display: flex;
  font-weight: 850;
  gap: 12px;
  text-decoration: none;
}

.admin-brand img {
  height: 38px;
  width: auto;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav .tab-btn,
.admin-logout {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 12px 14px;
  text-align: left;
}

.admin-nav .tab-btn.active,
.admin-nav .tab-btn:hover {
  background: #e7f7f5;
  color: #0f766e;
}

.admin-logout {
  color: #b91c1c;
  margin-top: auto;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 32px;
}

.admin-topbar,
.surface-heading,
.modal-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-kicker {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.admin-topbar h1,
.surface-heading h2,
.modal-title-row h2 {
  margin: 0;
}

.admin-content {
  display: none;
  margin-top: 28px;
}

.admin-content.active {
  display: block;
}

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

.admin-stat-card,
.admin-surface {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.admin-stat-card {
  padding: 18px;
}

.admin-stat-card span {
  color: #64748b;
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 8px;
}

.admin-stat-card.warning strong {
  color: #dc2626;
}

.admin-stat-card.success strong {
  color: #16a34a;
}

.admin-dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  margin-top: 18px;
}

.admin-surface {
  padding: 20px;
}

.surface-heading {
  margin-bottom: 16px;
}

.surface-heading p {
  color: #64748b;
  margin: 4px 0 0;
}

.admin-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  margin-bottom: 16px;
}

.admin-filters input,
.admin-filters select,
.admin-edit-grid input,
.admin-edit-grid select,
.comment-form textarea {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  padding: 11px 12px;
}

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

.admin-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #64748b;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table small {
  color: #64748b;
  display: block;
  margin-top: 4px;
}

.priority-chip {
  background: #fee2e2;
  border-radius: 999px;
  color: #b91c1c;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 850;
  margin-left: 8px;
  padding: 3px 7px;
}

.icon-action {
  background: #0f172a;
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
}

.admin-modal {
  background: rgba(15, 23, 42, 0.46);
  display: none;
  inset: 0;
  padding: 24px;
  place-items: center;
  position: fixed;
  z-index: 1000;
}

.admin-modal-panel {
  background: #ffffff;
  border-radius: 8px;
  max-height: 92vh;
  max-width: 980px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(980px, 100%);
}

.modal-close {
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 34px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.detail-grid,
.admin-edit-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.detail-grid section,
.file-section,
.comments-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.admin-edit-grid {
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.admin-edit-grid label {
  color: #475569;
  display: grid;
  font-weight: 750;
  gap: 6px;
}

.file-section,
.comments-section {
  margin-top: 16px;
}

.file-row,
.comment-item,
.message-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.file-row small,
.comment-item small,
.message-card small {
  color: #64748b;
  display: block;
  margin-top: 4px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

/* Client order workspace */
body.orders-page {
  background: #f8fafc;
  color: #334155;
  display: flex;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

.orders-page .app-sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  width: 260px;
}

.orders-page .sidebar-header {
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 12px;
  padding: 24px;
}

.orders-page .sidebar-header img {
  height: 32px;
}

.orders-page .sidebar-nav {
  flex-grow: 1;
  padding: 20px 12px;
}

.orders-page .nav-link {
  align-items: center;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  font-weight: 700;
  gap: 12px;
  margin-bottom: 4px;
  padding: 12px 16px;
  text-decoration: none;
}

.orders-page .nav-link:hover,
.orders-page .nav-link.active {
  background: #eef8f7;
  color: #0f766e;
}

.orders-page .nav-link span {
  display: inline-grid;
  font-weight: 900;
  place-items: center;
  width: 20px;
}

.orders-page .profile-summary {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 20px;
}

.orders-page .profile-summary strong {
  color: #0f172a;
  display: block;
  font-size: 0.92rem;
}

.orders-page .profile-summary small {
  color: #64748b;
  display: block;
  font-size: 0.82rem;
  margin-top: 4px;
}

.orders-page .app-main {
  flex-grow: 1;
  margin-left: 260px;
  padding: 42px 48px;
}

.orders-page .page-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.orders-page .page-header h1 {
  color: #0f172a;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.orders-page .page-header p {
  color: #64748b;
  margin: 6px 0 0;
}

.orders-page .orders-card {
  border-radius: 8px;
}

.orders-page .orders-toolbar {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  padding: 16px 18px;
}

.orders-page .selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.orders-page .selects select,
.orders-page .orders-search {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  min-height: 42px;
}

.orders-page .selects select {
  background: #ffffff;
  color: #334155;
  font: inherit;
  padding: 0 36px 0 12px;
}

.orders-page .orders-search {
  align-items: center;
  background: #ffffff;
  display: flex;
  padding: 0 12px;
  width: min(360px, 100%);
}

.orders-page .orders-search input {
  border: 0;
  font: inherit;
  outline: 0;
  padding-left: 8px;
  width: 100%;
}

.orders-page .table-wrap {
  border: 0;
  border-radius: 0;
}

.orders-page .orders-table {
  min-width: 860px;
}

.orders-page .orders-table th,
.orders-page .orders-table td {
  padding: 16px 20px;
}

.orders-page .table-footer {
  border-top: 1px solid #e2e8f0;
  margin: 0;
  padding: 14px 20px;
}

@media (max-width: 980px) {
  body.admin-page {
    display: block;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
    width: auto;
  }

  .admin-stat-grid,
  .admin-dashboard-grid,
  .detail-grid,
  .admin-edit-grid,
  .admin-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.orders-page {
    display: block;
  }

  .orders-page .app-sidebar {
    height: auto;
    position: static;
    width: auto;
  }

  .orders-page .app-main {
    margin-left: 0;
    padding: 24px 16px;
  }

  .orders-page .page-header,
  .orders-page .orders-toolbar {
    align-items: stretch;
    display: grid;
  }

  .orders-page .orders-search {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
}

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

img {
  display: block;
  max-width: 100%;
}

/* Custom Scrollbar for Pro feel */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Toast Notifications */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: grid; gap: 12px; }
.toast { 
  padding: 16px 24px; border-radius: 12px; background: var(--navy); color: white; 
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); font-weight: 600; font-size: 0.9rem;
  animation: slideIn 0.3s ease-out forwards; min-width: 300px;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 86px;
  padding: 12px clamp(24px, 9vw, 180px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 35, 70, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  font-weight: 900;
}

.brand-logo {
  width: 172px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-icon {
  width: 76px;
  height: 64px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 28px);
  color: #182846;
  font-size: 0.94rem;
  white-space: nowrap;
}

.main-nav a {
  font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
  color: #1b8f91;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-light {
  color: #111;
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(15, 35, 70, 0.04);
}

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

.btn-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

.menu-button {
  display: none;
}

.section-soft {
  background: linear-gradient(180deg, #f8fffc 0%, #eefaf6 55%, #ffffff 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1fr);
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
  padding: 52px clamp(24px, 9vw, 182px) 66px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: #1b8f91;
  font-size: 1rem;
  font-weight: 700;
}

.mini-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--navy);
  font-size: clamp(2.25rem, 3.1vw, 3.55rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy p:not(.kicker) {
  max-width: 760px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-cta {
  min-width: 240px;
}

.hero-image img {
  width: 100%;
  height: min(540px, 46vw);
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section-title {
  max-width: 980px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.85rem, 2.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-title p {
  color: var(--muted);
  font-size: 1rem;
}

.steps {
  padding: 18px clamp(24px, 9vw, 186px) 72px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  align-items: center;
}

.step-card {
  position: relative;
  min-height: 450px;
  padding: 32px;
  overflow: hidden;
  text-align: center;
  background: var(--white);
  border: 1px solid #cfd3d8;
  border-radius: 38px;
}

.step-large {
  min-height: 500px;
}

.step-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.42rem;
}

.step-card p {
  max-width: 670px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.config-mockup {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  align-items: center;
  min-height: 320px;
  padding: 24px 46px;
  text-align: left;
}

.config-mockup strong {
  color: var(--navy);
  font-size: 1.25rem;
}

.config-mockup ul {
  margin: 0;
  padding: 0;
  color: #20242a;
  font-size: 1.18rem;
  line-height: 1.55;
  list-style: none;
}

.config-mockup li:nth-child(1),
.config-mockup li:nth-child(6) {
  color: #9c9c9c;
}

.floating-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(16, 35, 72, 0.1);
}

.note-green {
  top: 130px;
  right: 8px;
  color: #12804d;
  background: #d8f9df;
  transform: rotate(4deg);
}

.note-green b {
  font-size: 1.2rem;
}

.note-purple {
  bottom: 18px;
  left: 6px;
  color: #3e3360;
  background: #fff0c9;
  transform: rotate(2deg);
}

.folder-mockup {
  position: relative;
  display: grid;
  width: min(520px, 90%);
  height: 240px;
  place-items: center;
  margin: 48px auto 28px;
  color: rgba(255, 255, 255, 0.55);
  background: #8ddfcf;
  border-radius: 20px 20px 34px 34px;
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.2);
}

.folder-mockup span {
  position: absolute;
  top: -46px;
  width: 72%;
  height: 72px;
  border-radius: 18px 18px 0 0;
}

.folder-mockup span:nth-child(1) {
  background: #57bca7;
  transform: translateX(-34px);
}

.folder-mockup span:nth-child(2) {
  background: #1b8f91;
  transform: translateX(0);
}

.folder-mockup span:nth-child(3) {
  background: #f2b84b;
  transform: translateX(36px);
}

.folder-mockup strong {
  position: relative;
  z-index: 2;
  font-size: 2.8rem;
}

.upload-trigger {
  min-height: 56px;
  margin: 0 auto;
  padding-inline: 24px;
  border: 0;
}

.delivery-mockup {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
}

.tooth-badge {
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  border-radius: 44px;
  background: var(--cyan);
  box-shadow: 0 0 46px rgba(66, 199, 168, 0.45);
  font-size: 3.7rem;
}

.delivery-note,
.confirm-note {
  position: absolute;
  padding: 17px 26px;
  border-radius: 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(16, 35, 72, 0.08);
}

.delivery-note {
  top: 30px;
  left: 0;
  color: #236b3f;
  background: #d9fde4;
  transform: rotate(-7deg);
}

.confirm-note {
  right: 8px;
  bottom: 28px;
  color: var(--navy);
  background: #e8eefc;
  transform: rotate(1deg);
}

.technology {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
  padding: 78px clamp(24px, 9vw, 182px);
  color: var(--white);
  background: var(--navy-deep);
}

.technology h2 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
}

.technology p {
  max-width: 780px;
  margin-bottom: 48px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.technology img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
}

.cases {
  padding: 58px clamp(24px, 9vw, 186px) 84px;
}

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

.case-grid article {
  height: 250px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.case-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 48px clamp(24px, 9vw, 182px);
  background: #f7fbff;
  border-top: 1px solid var(--line);
}

.contact-band h2 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
}

.contact-copy {
  display: grid;
  gap: 18px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  max-width: 820px;
}

.contact-details article {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(27, 143, 145, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-details span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-details strong {
  color: var(--navy);
  line-height: 1.35;
}

.contact-actions {
  display: flex;
  gap: 14px;
}

.contact-page {
  display: grid;
  gap: 56px;
  padding: 46px clamp(20px, 9vw, 184px) 80px;
  background:
    radial-gradient(circle at 50% 20%, rgba(27, 143, 145, 0.1), transparent 32%),
    #fbfdfc;
}

.contact-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(10, 31, 68, 0.86), rgba(10, 31, 68, 0.42)),
    url("assets/lab-workflow.png") center / cover;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.contact-hero .kicker {
  color: #8fe7e1;
}

.contact-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.contact-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
}

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

.contact-info-grid article {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
  border: 1px solid rgba(0, 174, 185, 0.32);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(31, 42, 46, 0.06);
}

.contact-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #61e2e4, #4c7df0);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
}

.contact-info-grid h2 {
  margin: 16px 0 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.contact-info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.45;
}

.contact-form-section {
  display: grid;
  gap: 30px;
}

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

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--navy);
  font-weight: 900;
}

.contact-form strong {
  color: #e02222;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(31, 42, 46, 0.04);
}

.contact-form input {
  min-height: 56px;
  padding: 0 16px;
}

.contact-form textarea {
  min-height: 170px;
  padding: 16px;
  resize: vertical;
}

.contact-form .wide-field,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form button {
  justify-self: end;
}

.auth-page {
  min-height: 100vh;
  background: #fbfdfc;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
  gap: clamp(34px, 5vw, 88px);
  padding: 34px 38px;
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  padding: clamp(34px, 5vw, 60px);
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(66, 199, 168, 0.36), transparent 28%),
    linear-gradient(145deg, #162023 0%, #20363b 58%, #1b8f91 130%);
  border-radius: 26px;
}

.signup-visual {
  background:
    radial-gradient(circle at 82% 22%, rgba(242, 184, 75, 0.22), transparent 26%),
    radial-gradient(circle at 12% 76%, rgba(66, 199, 168, 0.28), transparent 32%),
    linear-gradient(145deg, #162023 0%, #223135 60%, #30645e 130%);
}

.login-visual::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.login-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-weight: 900;
}

.login-logo img {
  width: 62px;
  height: 58px;
  object-fit: contain;
}

.login-logo span {
  font-size: 1.05rem;
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.login-chip {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #d8fff6;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

.login-visual h1 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.13;
}

.login-visual p {
  margin: 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.login-footer {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.9rem !important;
}

.login-content {
  display: grid;
  align-content: center;
  padding: 28px clamp(10px, 5vw, 84px);
}

.support-line {
  position: absolute;
  top: 44px;
  right: clamp(34px, 6vw, 76px);
  color: var(--navy);
  font-size: 0.96rem;
}

.support-line a {
  color: #1b8f91;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-form {
  width: min(520px, 100%);
}

.signup-form {
  width: min(560px, 100%);
}

.login-form h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.login-form > p {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.signup-form > p {
  margin-bottom: 22px;
}

.login-form label {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  color: #151a1c;
  font-size: 0.92rem;
  font-weight: 850;
}

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

.form-row label {
  margin-bottom: 0;
}

.field-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.field-title strong {
  color: #c64848;
}

.login-form input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(31, 42, 46, 0.04);
  color: var(--text);
  font: inherit;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #6b7378;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover {
  background: #eef4f2;
  color: var(--navy);
}

.password-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.password-toggle span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle.is-hidden span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-38deg);
}

.login-form input:focus {
  outline: 3px solid rgba(66, 199, 168, 0.2);
  border-color: var(--cyan);
}

.login-options {
  margin: -2px 0 28px;
}

.login-options a,
.login-switch a {
  color: #1b8f91;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #2f464b);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(31, 42, 46, 0.16);
}

.login-switch {
  margin: 26px 0 0;
  color: #151a1c;
  text-align: center;
  font-size: 0.95rem;
}

.signup-form .google-button {
  margin-top: 2px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(22px, 7vw, 120px);
}

.auth-brand img {
  width: 70px;
  height: 62px;
  object-fit: contain;
}

.auth-back {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 98px);
  place-items: center;
  padding: 24px clamp(18px, 6vw, 96px) 60px;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 440px);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  width: min(1120px, 100%);
}

.auth-copy h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3.15rem);
}

.auth-copy p:not(.kicker) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  color: var(--navy);
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--text);
  font: inherit;
}

.auth-card input:focus {
  outline: 2px solid rgba(66, 199, 168, 0.26);
  border-color: var(--cyan);
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.google-button img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  object-fit: contain;
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-options a,
.auth-switch a {
  color: #1b8f91;
  font-weight: 800;
}

.check-line {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 600 !important;
}

.check-line input {
  width: 16px;
  min-height: 16px;
}

.auth-submit {
  width: 100%;
  border: 0;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eaf8f1;
  color: #0a7340;
  font-weight: 800;
  line-height: 1.35;
}

.form-message[data-type="error"] {
  background: #fff0f0;
  color: #b42318;
}

.form-message[data-type="info"] {
  background: #eef5ff;
  color: #244f9f;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 18px 28px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .header-actions {
    gap: 10px;
  }

  .btn {
    min-height: 58px;
    padding-inline: 20px;
  }

  .hero,
  .technology {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: 520px;
  }

  .step-grid {
    gap: 26px;
  }

  .login-layout {
    grid-template-columns: 0.82fr 1fr;
    gap: 28px;
    padding: 24px;
  }

  .login-visual {
    padding: 34px;
  }

  .support-line {
    position: static;
    margin-bottom: 34px;
    text-align: right;
  }

  .contact-info-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 145px;
    height: 50px;
  }

  .brand-logo-icon {
    width: 62px;
    height: 54px;
  }

  .header-actions,
  .main-nav {
    width: 100%;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 46px 20px 60px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .hero-copy p:not(.kicker) {
    margin-bottom: 32px;
    font-size: 1.05rem;
  }

  .hero-image img,
  .technology img {
    height: 340px;
    border-radius: 20px;
  }

  .steps,
  .cases,
  .technology,
  .contact-band {
    padding-inline: 20px;
  }

  .step-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .step-large {
    min-height: auto;
    padding: 28px 18px;
    border-radius: 24px;
  }

  .config-mockup {
    grid-template-columns: 1fr;
    min-height: 360px;
    padding: 24px;
    text-align: center;
  }

  .config-mockup ul {
    font-size: 1.25rem;
  }

  .folder-mockup {
    height: 220px;
  }

  .contact-band,
  .contact-actions {
    display: block;
  }

  .contact-actions .btn {
    width: 100%;
    margin-top: 12px;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-options {
    display: grid;
  }

  .login-layout {
    display: block;
    padding: 18px;
  }

  .login-visual {
    min-height: 360px;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 22px;
  }

  .login-visual h1 {
    font-size: 2rem;
  }

  .login-content {
    padding: 0 4px 34px;
  }

  .support-line {
    margin-bottom: 22px;
    text-align: left;
  }

  .login-form h2 {
    font-size: 2rem;
  }
}

.app-page {
  min-height: 100vh;
  background: #f7f9f8;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(31, 42, 46, 0.06);
}

.app-brand img {
  width: 64px;
  height: 54px;
  object-fit: contain;
}

.app-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--navy);
  font-size: 0.95rem;
}

.app-nav a:hover {
  color: #1b8f91;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #eaf5f2;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu div {
  position: absolute;
  top: 64px;
  right: 0;
  display: grid;
  min-width: 220px;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-menu small {
  color: var(--muted);
}

.danger-link {
  color: #c64848;
}

.orders-shell,
.detail-shell {
  padding: 34px clamp(18px, 4vw, 48px) 70px;
}

.orders-title,
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow-app {
  margin-bottom: 6px;
  color: #1b8f91;
  font-weight: 900;
  font-size: 0.84rem;
}

.orders-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.new-order,
.invoice-button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.orders-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(31, 42, 46, 0.04);
}

.orders-card {
  padding: 20px;
}

.orders-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

.selects select,
.orders-search input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: #53647a;
  font: inherit;
}

.selects select {
  padding: 0 38px 0 14px;
}

.orders-search {
  display: flex;
  align-items: center;
  width: min(380px, 100%);
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.orders-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding-left: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.orders-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.orders-table th {
  background: #fbfcfc;
  color: var(--navy);
  font-size: 0.9rem;
}

.orders-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 0.85rem;
}

.status-pill.shipped {
  color: #08703c;
  background: #d8f9df;
}

.status-pill.progress {
  color: #7b5200;
  background: #fff0c9;
}

.status-pill.pending {
  color: #43536a;
  background: #edf1f5;
}

.view-link {
  color: #1b8f91;
  font-size: 1.1rem;
}

.table-footer {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  color: #53647a;
  font-size: 0.9rem;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.info-card {
  padding: 28px;
}

.info-card h2 {
  margin-bottom: 26px;
  color: var(--navy);
  font-size: 1.25rem;
}

.info-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 42px;
  margin: 0;
}

.info-card dt {
  color: #98a0a6;
  font-weight: 800;
}

.info-card dd {
  margin: 8px 0 0;
  color: #101820;
  font-weight: 850;
}

.accent-card {
  background: linear-gradient(145deg, #ffffff, #f4fbf8);
}

.card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.card-heading span {
  color: #1b8f91;
  border-bottom: 2px solid #1b8f91;
  padding-bottom: 12px;
  font-weight: 900;
}

.details-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.details-columns > div + div {
  border-left: 1px solid var(--line);
  padding-left: 46px;
}

.details-columns h3 {
  font-size: 1.15rem;
}

.details-columns p {
  color: #53647a;
  line-height: 1.6;
}

.details-columns b {
  color: var(--navy);
}

.file-chip {
  display: grid;
  width: min(420px, 100%);
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  background: #f0f2f4;
}

.file-chip span {
  color: #7b5200;
  font-weight: 850;
}

.file-chip small {
  color: var(--muted);
}

.account-shell {
  padding: 32px clamp(18px, 4vw, 48px) 72px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 10%, rgba(66, 199, 168, 0.18), transparent 28%),
    var(--white);
  box-shadow: 0 18px 44px rgba(31, 42, 46, 0.04);
}

.account-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

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

.account-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fffc;
}

.account-user-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), #1b8f91);
  font-weight: 900;
}

.account-user-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.account-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
}

.account-tabs {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(31, 42, 46, 0.04);
}

.account-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.account-tab span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #eff6f4;
  color: #1b8f91;
}

.account-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #29484d);
}

.account-tab.active span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.account-content {
  min-width: 0;
}

.account-panel {
  display: none;
  min-height: 560px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(31, 42, 46, 0.04);
}

.account-panel.active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.panel-heading h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel-badge {
  padding: 8px 12px;
  border-radius: 999px;
  color: #08703c;
  background: #d8f9df;
  font-size: 0.82rem;
  font-weight: 900;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}

.account-form.single-column {
  grid-template-columns: 1fr;
}

.account-form label,
.modal-grid label {
  display: grid;
  gap: 9px;
  font-weight: 850;
}

.account-form input,
.modal-grid input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  color: var(--text);
  font: inherit;
}

.account-form input:focus,
.modal-grid input:focus {
  outline: 3px solid rgba(66, 199, 168, 0.18);
  border-color: var(--cyan);
}

.account-submit {
  justify-self: end;
  min-width: 170px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #29484d);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-form .account-submit {
  grid-column: 1 / -1;
  margin-top: 260px;
}

.single-column .account-submit {
  margin-top: 120px;
}

.soft-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(27, 143, 145, 0.24);
  border-radius: 12px;
  color: #1b8f91;
  background: #f2fbf8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.address-card {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdfc;
}

.address-card strong {
  display: block;
  margin-bottom: 22px;
  font-size: 1.15rem;
}

.address-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 22px 80px;
  margin: 0;
}

.address-card dt {
  color: var(--muted);
  font-weight: 800;
}

.address-card dd {
  margin: 5px 0 0;
  font-weight: 850;
}

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

.address-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.address-actions .delete {
  color: #c64848;
}

.address-modal {
  width: min(640px, calc(100vw - 32px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(31, 42, 46, 0.28);
}

.address-modal::backdrop {
  background: rgba(22, 32, 35, 0.52);
  backdrop-filter: blur(3px);
}

.address-modal form {
  padding: 28px;
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.modal-heading button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f3f2;
  cursor: pointer;
}

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

.default-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 26px;
  font-weight: 850;
}

.default-address input {
  width: 18px;
  height: 18px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.ghost-button {
  min-width: 130px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.configurator-page {
  background: #f4f7f6;
}

.config-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(31, 42, 46, 0.06);
}

.config-benefits {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  color: var(--navy);
  font-weight: 900;
}

.config-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.config-benefits span::first-letter {
  color: #1b8f91;
}

.call-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
}

.config-shell {
  padding: 30px clamp(18px, 4vw, 48px) 70px;
}

.config-card {
  min-height: calc(100vh - 170px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 15%, rgba(66, 199, 168, 0.11), transparent 30%),
    var(--white);
  box-shadow: 0 24px 60px rgba(31, 42, 46, 0.06);
}

.stepper,
.mini-stepper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 34px;
}

.stepper span,
.mini-stepper span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 900;
}

.stepper b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #d8dcdf;
  color: #596167;
  font-size: 0.82rem;
}

.stepper .active,
.stepper .done,
.mini-stepper .active,
.mini-stepper .done {
  color: #4c25d9;
}

.stepper .active b,
.stepper .done b {
  background: #4c25d9;
  color: var(--white);
}

.config-step {
  display: none;
}

.config-step.active {
  display: block;
}

.config-heading {
  margin-bottom: 34px;
}

.config-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.config-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.technology-picker {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) 1fr;
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
}

.tech-list-single {
  align-content: start;
}

.tech-note {
  padding: 20px;
  border: 1px solid rgba(27, 143, 145, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(76, 37, 217, 0.1), transparent 34%),
    linear-gradient(145deg, #f4fffb, #ffffff);
}

.tech-note p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.tech-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.tech-metrics span {
  display: grid;
  gap: 2px;
  min-height: 62px;
  place-items: center;
  border: 1px solid rgba(27, 143, 145, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.tech-metrics b {
  color: var(--navy);
  font-size: 0.96rem;
}

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

.tech-option,
.product-option,
.selected-product-row,
.upload-line {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.tech-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 16px 18px;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tech-option.active {
  border-color: #4c25d9;
  background: #f1edff;
  box-shadow: 0 16px 34px rgba(76, 37, 217, 0.08);
}

.tech-option small,
.upload-line span,
.selected-product-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.tech-icon,
.product-option span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  font-weight: 900;
}

.tech-icon.purple {
  color: #4c25d9;
  background: #eadfff;
}

.tech-icon.blue {
  color: #2472c9;
  background: #e4f2ff;
}

.tech-icon.amber {
  color: #b55d18;
  background: #fff0df;
}

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

.product-option {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-height: 188px;
  padding: 24px;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(31, 42, 46, 0.08);
}

.product-option::after {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #dce3e7;
  border-radius: 50%;
  color: transparent;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-option.active {
  border-color: #1b8f91;
  background:
    radial-gradient(circle at 100% 0%, rgba(27, 143, 145, 0.12), transparent 30%),
    #f4fffb;
}

.product-option.active::after {
  border-color: #1b8f91;
  color: var(--white);
  background: #1b8f91;
}

.product-option small {
  color: var(--muted);
  font-weight: 700;
}

.product-art {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
}

.crown-art {
  background: #ffe1d2;
}

.crown-art::before {
  width: 32px;
  height: 36px;
  border: 3px solid #83351f;
  border-radius: 46% 46% 40% 40%;
}

.crown-art::after {
  width: 18px;
  height: 20px;
  border: 3px solid #83351f;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  bottom: 15px;
}

.bridge-art {
  background: #fff0b9;
}

.bridge-art::before {
  width: 42px;
  height: 16px;
  border: 3px solid #7b5b08;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  top: 29px;
}

.bridge-art::after {
  width: 8px;
  height: 18px;
  border-radius: 7px;
  background: #7b5b08;
  box-shadow: -16px 0 0 #7b5b08, 16px 0 0 #7b5b08;
  top: 19px;
}

.inlay-art {
  background: #ccefff;
}

.inlay-art::before {
  width: 31px;
  height: 35px;
  border: 3px solid #246b86;
  border-radius: 48% 48% 40% 40%;
  transform: rotate(-12deg);
}

.inlay-art::after {
  width: 18px;
  height: 18px;
  border: 3px dashed #246b86;
  border-radius: 50%;
  right: 11px;
  top: 13px;
}

.bar-art {
  background: #f4cdfc;
}

.bar-art::before {
  width: 42px;
  height: 12px;
  border: 4px solid #843196;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  top: 28px;
}

.bar-art::after {
  width: 32px;
  height: 2px;
  background: #843196;
  top: 35px;
}

.stellite-art {
  background: #d7ffd9;
}

.stellite-art::before {
  width: 38px;
  height: 32px;
  border: 4px solid #21753a;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
}

.stellite-art::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #21753a;
  box-shadow: -12px 9px 0 #21753a, 12px 9px 0 #21753a, -20px 21px 0 #21753a, 20px 21px 0 #21753a;
}

.config-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 64px;
}

.config-next {
  min-width: 150px;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #29484d);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.config-next:disabled {
  background: #9aa3b2;
  cursor: not-allowed;
}

.selected-product-row,
.upload-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 24px 30px;
}

.selected-product-row strong,
.upload-line strong {
  font-size: 1.45rem;
}

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

.product-config-row,
.empty-config-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 118px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 18%, rgba(76, 37, 217, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(66, 199, 168, 0.12), transparent 42%),
    var(--white);
  box-shadow: 0 18px 38px rgba(31, 42, 46, 0.055);
}

.product-row-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-row-icon {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background: #ffe1d2;
}

.product-row-icon::before,
.product-row-icon::after {
  content: "";
  position: absolute;
}

.product-row-icon::before {
  width: 29px;
  height: 33px;
  border: 3px solid #83351f;
  border-radius: 46% 46% 40% 40%;
}

.product-row-icon::after {
  width: 16px;
  height: 17px;
  bottom: 14px;
  border: 3px solid #83351f;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.product-row-icon[data-product-icon="Bridge"] {
  background: #fff0b9;
}

.product-row-icon[data-product-icon="Bridge"]::before {
  width: 38px;
  height: 14px;
  top: 27px;
  border: 3px solid #7b5b08;
  border-top: 0;
  border-radius: 0 0 15px 15px;
}

.product-row-icon[data-product-icon="Bridge"]::after {
  width: 7px;
  height: 16px;
  top: 18px;
  border: 0;
  border-radius: 7px;
  background: #7b5b08;
  box-shadow: -14px 0 0 #7b5b08, 14px 0 0 #7b5b08;
}

.product-row-icon[data-product-icon="Inlay Core"] {
  background: #ccefff;
}

.product-row-icon[data-product-icon="Inlay Core"]::before {
  border-color: #246b86;
  transform: rotate(-10deg);
}

.product-row-icon[data-product-icon="Inlay Core"]::after {
  top: 13px;
  right: 11px;
  width: 15px;
  height: 15px;
  border: 3px dashed #246b86;
  border-radius: 50%;
}

.product-row-icon[data-product-icon="Barre"] {
  background: #f4cdfc;
}

.product-row-icon[data-product-icon="Barre"]::before {
  width: 38px;
  height: 11px;
  top: 28px;
  border: 4px solid #843196;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.product-row-icon[data-product-icon="Barre"]::after {
  width: 30px;
  height: 2px;
  top: 35px;
  border: 0;
  background: #843196;
}

.product-row-icon[data-product-icon="Stellite"] {
  background: #d7ffd9;
}

.product-row-icon[data-product-icon="Stellite"]::before {
  width: 34px;
  height: 29px;
  border: 4px solid #21753a;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
}

.product-row-icon[data-product-icon="Stellite"]::after {
  width: 4px;
  height: 4px;
  border: 0;
  border-radius: 50%;
  background: #21753a;
  box-shadow: -11px 9px 0 #21753a, 11px 9px 0 #21753a, -18px 20px 0 #21753a, 18px 20px 0 #21753a;
}

.product-config-row strong,
.empty-config-state strong {
  font-size: 1.38rem;
}

.product-config-row small,
.empty-config-state span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.config-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-state-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #9b4c00;
  background: #ffe0bd;
  font-size: 0.82rem;
  font-weight: 900;
}

.config-state-pill.done {
  color: #08703c;
  background: #d8f9df;
}

.upload-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.upload-button::before {
  content: "↥";
  font-size: 1.15rem;
}

.files-modal {
  width: min(1060px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(31, 42, 46, 0.3);
  overflow: hidden;
}

.files-modal::backdrop {
  background: rgba(22, 32, 35, 0.55);
  backdrop-filter: blur(2px);
}

.files-modal form {
  display: grid;
  gap: 22px;
  max-height: calc(100vh - 48px);
  padding: 28px 30px;
  overflow: auto;
}

.files-modal-list {
  display: grid;
  gap: 24px;
}

.file-tooth-row {
  display: grid;
  gap: 14px;
}

.file-tooth-row h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.file-tooth-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #9bd594;
}

.file-tooth-dot.lower {
  background: #80aaf8;
}

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

.file-drop {
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.file-drop strong {
  color: var(--navy);
  font-size: 0.94rem;
}

.file-drop b {
  color: #e02222;
}

.file-drop-box {
  min-height: 168px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed #cfd8de;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(27, 143, 145, 0.05), transparent 50%),
    #ffffff;
  color: #4f5d66;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.file-drop:hover .file-drop-box,
.file-drop.has-file .file-drop-box {
  border-color: #00a7b2;
  background: #f2fffd;
  box-shadow: inset 0 0 0 1px rgba(0, 167, 178, 0.08);
}

.file-drop-box i {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-style: normal;
  font-size: 1.2rem;
}

.file-drop-box em {
  font-style: normal;
  line-height: 1.35;
}

.file-name {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  background: #f1f3f5;
  color: #5a6973;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  gap: 30px;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 18px;
}

.review-card,
.payment-panel,
.secure-note,
.amount-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(31, 42, 46, 0.055);
}

.review-card,
.payment-panel {
  padding: 24px 28px;
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.review-card h2,
.payment-panel h2,
.amount-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.review-card-head button {
  border: 0;
  background: transparent;
  color: #008b95;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.review-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.review-section:first-of-type {
  border-top: 0;
}

.review-section h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.05rem;
}

.review-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}

.review-section div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9fa;
}

.review-section dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.review-section dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 900;
}

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

.file-list span {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 12px;
  background: #f0f2f5;
  color: var(--navy);
  font-weight: 850;
}

.amount-card {
  position: sticky;
  top: 18px;
  padding: 24px 22px;
  background: #e4e8ed;
}

.amount-card h2 {
  margin-bottom: 28px;
}

.amount-line,
.amount-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  color: var(--navy);
}

.amount-line.muted {
  color: #465766;
}

.amount-line + .amount-line,
.amount-total {
  border-top: 1px solid rgba(19, 35, 65, 0.12);
}

.amount-total {
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 950;
}

.amount-total strong {
  font-size: 1.42rem;
}

.delivery-choice,
.payment-choice {
  display: grid;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.delivery-choice {
  grid-template-columns: auto 1fr auto;
}

.delivery-choice input,
.payment-choice input {
  width: 22px;
  height: 22px;
  accent-color: #08a7b3;
}

.delivery-choice.active,
.payment-choice.active {
  border-color: #08a7b3;
  box-shadow: 0 14px 34px rgba(8, 167, 179, 0.08);
}

.delivery-choice span {
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 900;
}

.delivery-choice strong {
  color: #08703c;
  font-size: 1.24rem;
}

.client-summary {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #f7f9fa;
}

.payment-panel {
  display: grid;
  gap: 14px;
}

.payment-choice {
  grid-template-columns: auto auto 1fr;
  margin-top: 0;
}

.payment-choice small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.payment-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #eefafa;
  color: #008b95;
  font-size: 0.82rem;
  font-weight: 950;
}

.secure-note {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  background:
    linear-gradient(135deg, rgba(27, 143, 145, 0.1), transparent 38%),
    #fbfdfc;
}

.secure-note strong {
  color: var(--navy);
}

.secure-note span {
  color: var(--muted);
}

.validate-order {
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.teeth-modal {
  width: min(1320px, calc(100vw - 56px));
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(31, 42, 46, 0.3);
  overflow: hidden;
}

.teeth-modal::backdrop {
  background: rgba(22, 32, 35, 0.55);
  backdrop-filter: blur(2px);
}

.teeth-modal form {
  display: grid;
  max-height: calc(100vh - 48px);
  padding: 28px 30px;
  overflow: auto;
}

.modal-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.product-specific-config {
  margin: 18px 0 16px;
}

.product-config-block {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(27, 143, 145, 0.09), transparent 40%),
    #fbfdfc;
}

.product-config-block.stellite-options {
  background:
    linear-gradient(135deg, rgba(27, 143, 145, 0.08), rgba(255, 255, 255, 0.92) 42%),
    #ffffff;
}

.product-config-block.compact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.product-summary-block strong {
  font-size: 1.16rem;
}

.product-summary-block p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-barre-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 44px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(36, 114, 201, 0.08), transparent 28%),
    #ffffff;
}

.empty-barre-state strong {
  color: var(--navy);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.empty-barre-state p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.empty-barre-icon {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 24px;
}

.empty-barre-icon::before,
.empty-barre-icon::after {
  content: "";
  position: absolute;
}

.empty-barre-icon::before {
  inset: 18px 24px 14px;
  border: 3px solid #2f65c8;
  border-radius: 8px;
  background:
    linear-gradient(#2f65c8, #2f65c8) 14px 16px / 28px 3px no-repeat,
    linear-gradient(#2f65c8, #2f65c8) 14px 30px / 28px 3px no-repeat,
    linear-gradient(#2f65c8, #2f65c8) 14px 44px / 20px 3px no-repeat,
    #f7fbff;
}

.empty-barre-icon::after {
  left: 18px;
  top: 27px;
  width: 42px;
  height: 56px;
  border: 3px solid #244f9f;
  border-radius: 8px;
  transform: rotate(-7deg);
  background: #f7fbff;
  z-index: -1;
}

.teeth-modal.barre-mode .teeth-modal-grid {
  display: none;
}

.teeth-modal.barre-mode .product-specific-config {
  margin: 22px 0;
}

.config-accordion {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.config-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.config-accordion summary::-webkit-details-marker {
  display: none;
}

.config-accordion-body {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.add-line-button {
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 900;
}

.segmented-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.segmented-options label {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--navy);
  font-weight: 900;
}

.segmented-options .wide-option {
  grid-column: 1 / -1;
}

.option-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
}

.option-title strong {
  color: #e3342f;
}

.option-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.wide-option .option-pills {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.option-pills button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
}

.option-pills button.active {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

.teeth-modal-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(430px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  margin: 14px 0 18px;
}

.chart-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 18px;
  border: 1px solid rgba(27, 143, 145, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(66, 199, 168, 0.08), transparent 55%),
    #fbfdfc;
}

.quick-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.quick-groups button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.quick-groups button:hover {
  border-color: #1b8f91;
  color: #1b8f91;
}

.dental-chart {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  margin: 2px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 37%, rgba(31, 42, 46, 0.035) 38% 39%, transparent 40%),
    radial-gradient(circle, rgba(66, 199, 168, 0.08), transparent 62%);
}

.tooth-dot {
  position: absolute;
  display: grid;
  width: 36px;
  height: 44px;
  place-items: center;
  border: 2px solid rgba(31, 42, 46, 0.11);
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(180deg, #ffffff, #f6f8f8);
  color: rgba(31, 42, 46, 0.54);
  font-size: 0.55rem;
  font-weight: 900;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) scale(var(--tooth-scale, 1));
  box-shadow: 0 10px 20px rgba(31, 42, 46, 0.06);
}

.tooth-dot::after {
  content: attr(data-label);
  transform: rotate(calc(var(--angle, 0deg) * -1));
}

.tooth-dot.selected {
  border-color: var(--dot-color, #1b8f91);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-color, #1b8f91) 26%, transparent), 0 14px 26px rgba(31, 42, 46, 0.12);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dot-color, #1b8f91) 18%, white), #ffffff);
  color: var(--navy);
}

.tooth-dot[data-kind="incisive"] { --dot-color: #ff6b6b; --tooth-scale: 0.9; }
.tooth-dot[data-kind="lateral"] { --dot-color: #ffa657; --tooth-scale: 0.86; }
.tooth-dot[data-kind="canine"] { --dot-color: #ef66c4; --tooth-scale: 1.02; border-radius: 52% 52% 34% 34%; }
.tooth-dot[data-kind="premolar"] { --dot-color: #8bd3c7; --tooth-scale: 0.96; }
.tooth-dot[data-kind="molar"] { --dot-color: #7ca7f8; --tooth-scale: 1.12; border-radius: 42% 42% 46% 46%; }

.tooth-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.tooth-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooth-legend b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-incisive { background: #ff6b6b; }
.legend-lateral { background: #ffa657; }
.legend-canine { background: #ef66c4; }
.legend-premolar { background: #8bd3c7; }
.legend-molar { background: #7ca7f8; }

.teeth-form {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}

.teeth-form label {
  display: grid;
  gap: 10px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 900;
}

.selected-teeth,
.teeth-form select,
.teeth-form textarea {
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  box-shadow: 0 12px 30px rgba(31, 42, 46, 0.045);
}

.selected-teeth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.selected-teeth > span {
  color: var(--muted);
}

.tooth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #e9edf1;
  font-weight: 850;
}

.tooth-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.teeth-form select {
  padding: 0 14px;
}

.teeth-form textarea {
  min-height: 104px;
  padding: 14px;
  resize: vertical;
}

@media (max-width: 980px) {
  .config-header,
  .technology-picker,
  .teeth-modal-grid {
    grid-template-columns: 1fr;
  }

  .config-benefits {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .amount-card {
    position: static;
  }

  .review-section dl,
  .file-list {
    grid-template-columns: 1fr;
  }

  .file-drop-grid {
    grid-template-columns: 1fr;
  }

  .files-modal {
    width: min(720px, calc(100vw - 24px));
  }

  .product-grid-select {
    grid-template-columns: 1fr;
  }

  .segmented-options,
  .wide-option .option-pills {
    grid-template-columns: 1fr;
  }

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

  .selected-product-row,
  .product-config-row,
  .empty-config-state,
  .upload-line,
  .config-actions {
    display: grid;
  }
}

@media print {
  .app-header,
  .invoice-button,
  .back-button {
    display: none !important;
  }

  .app-page {
    background: #fff;
  }

  .detail-shell {
    padding: 0;
  }
}

@media (max-width: 900px) {
  .app-header,
  .orders-title,
  .detail-topbar,
  .orders-toolbar {
    display: block;
  }

  .app-nav,
  .app-actions,
  .selects,
  .orders-search {
    margin-top: 12px;
  }

  .detail-grid,
  .details-columns,
  .info-card dl {
    grid-template-columns: 1fr;
  }

  .details-columns > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .account-hero,
  .account-layout,
  .panel-heading,
  .address-card {
    display: block;
  }

  .account-user-card,
  .account-tabs {
    margin-top: 18px;
  }

  .account-form,
  .modal-grid,
  .address-card dl {
    grid-template-columns: 1fr;
  }

  .account-form .account-submit,
  .single-column .account-submit {
    margin-top: 24px;
    width: 100%;
  }

  .address-actions {
    margin-top: 18px;
  }
}
