:root {
  --paper: #f1eee8;
  --surface: #fbfaf7;
  --ink: #211f1c;
  --muted: #716c64;
  --wine: #5c2c2c;
  --wine-soft: #eee1de;
  --line: #ded9d0;
  --sage: #697264;
  --success: #40634d;
  --danger: #9c3f38;
  --shadow: 0 24px 70px rgba(42, 35, 29, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.admin-page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: 260px;
  flex-direction: column;
  padding: 34px 24px 26px;
  background: #20201d;
  color: #f8f4ed;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand > span,
.admin-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  font-family: Georgia, serif;
  letter-spacing: -0.08em;
}

.sidebar-brand strong,
.sidebar-brand small {
  display: block;
}

.sidebar-brand strong {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.sidebar-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 4px;
  margin-top: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-item span {
  color: rgba(255, 255, 255, 0.26);
  font-family: Georgia, serif;
  font-size: 10px;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.nav-item.is-active span {
  color: #d9b57c;
}

.sidebar-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 24px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-foot a {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar-foot a:hover {
  color: white;
}

.admin-main {
  grid-column: 2;
  min-width: 0;
  padding: 0 44px 70px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 126px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar p,
.card-heading small {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-user > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: white;
  font-family: Georgia, serif;
}

.admin-user small,
.admin-user strong {
  display: block;
}

.admin-user small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.admin-user strong {
  font-size: 11px;
}

.mobile-menu {
  display: none;
}

.panel-loading {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 20px;
}

.panel-view {
  display: none;
  padding-top: 34px;
}

.panel-view.is-active {
  display: block;
}

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

.stat-card {
  display: flex;
  min-height: 182px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.stat-card small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  margin: auto 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.stat-card > span {
  color: var(--muted);
  font-size: 10px;
}

.stat-card-dark {
  border-color: #282825;
  background: #282825;
  color: white;
}

.stat-card-dark small,
.stat-card-dark > span {
  color: rgba(255, 255, 255, 0.48);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.card-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.compact-list,
.setup-list {
  display: grid;
}

.compact-row,
.setup-row {
  display: grid;
  width: 100%;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.compact-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 13px;
  padding: 16px 0;
}

.order-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine-soft);
  color: var(--wine);
  font-family: Georgia, serif;
}

.compact-row strong,
.compact-row small {
  display: block;
}

.compact-row strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.compact-row > b {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 400;
}

.setup-row {
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 18px 0;
}

.setup-row > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wine);
}

.setup-row strong {
  font-size: 10px;
}

.setup-row b {
  color: var(--wine);
  font-size: 8px;
  text-transform: uppercase;
}

.setup-row.is-done {
  opacity: 0.55;
}

.setup-row.is-done > span {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ebe8e2;
  color: #5d5851;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.status-active,
.status-paid,
.status-completed {
  background: #e1ece3;
  color: var(--success);
}

.status-new,
.status-awaiting_payment,
.status-preparing {
  background: #f0e6d4;
  color: #775b29;
}

.status-reserved,
.status-shipped {
  background: #e1e7ef;
  color: #405a75;
}

.status-sold,
.status-cancelled {
  background: #efe0de;
  color: var(--danger);
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-wrap {
  width: min(420px, 100%);
}

.search-wrap input,
.action-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  outline: none;
}

.action-bar select {
  width: auto;
}

.search-wrap input:focus,
.action-bar select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--wine);
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-action {
  background: var(--wine);
  color: white;
}

.primary-action:hover {
  background: #482020;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.secondary-action {
  border-color: var(--line);
  background: transparent;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  font-size: 10px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.table-product img {
  width: 50px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.table-product strong,
.table-product small {
  display: block;
}

.table-product strong {
  font-size: 11px;
}

.table-product small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.row-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.row-actions button:hover {
  text-decoration: underline;
}

.row-actions .danger-link {
  color: var(--danger);
}

.empty-state {
  display: grid;
  min-height: 130px;
  place-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.empty-state span {
  font-size: 10px;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.order-card summary {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.order-card summary::-webkit-details-marker {
  display: none;
}

.order-card summary > div small,
.order-card summary > div strong,
.order-card summary > div span {
  display: block;
}

.order-card summary > div small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-card summary > div strong {
  font-size: 11px;
}

.order-card summary > div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.order-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 28px;
  padding: 25px;
  border-top: 1px solid var(--line);
  background: #f7f4ef;
}

.order-items > div,
.order-customer p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.order-items strong,
.order-items small {
  display: block;
}

.order-items strong,
.order-items b,
.order-customer strong {
  font-size: 10px;
}

.order-items small,
.order-customer span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.order-customer strong {
  max-width: 230px;
  text-align: right;
}

.order-status-select span,
.order-status-select select {
  display: block;
  width: 100%;
}

.order-status-select span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-status-select select {
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 10px;
}

.category-list {
  display: grid;
}

.category-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.category-row:last-child {
  border-bottom: 0;
}

.category-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wine);
  font-family: Georgia, serif;
}

.category-row strong,
.category-row small {
  display: block;
}

.category-row strong {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.category-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.section-note {
  color: var(--muted);
  font-size: 11px;
}

.settings-layout {
  display: grid;
  gap: 16px;
}

.settings-card {
  padding: 34px;
}

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

.form-grid label {
  display: block;
}

.form-grid label > span {
  display: block;
  margin-bottom: 8px;
  color: #56514a;
  font-size: 9px;
  font-weight: 800;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.form-grid input,
.form-grid select {
  min-height: 44px;
  padding: 0 12px;
}

.form-grid textarea {
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.field-wide {
  grid-column: 1 / -1;
}

.check-field {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

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

.check-field > span {
  margin: 0 !important;
}

.sticky-save {
  position: sticky;
  bottom: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px 14px 22px;
  border: 1px solid rgba(33, 31, 28, 0.12);
  border-radius: 14px;
  background: rgba(33, 31, 28, 0.94);
  box-shadow: var(--shadow);
  color: white;
  backdrop-filter: blur(12px);
}

.sticky-save span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.sticky-save .primary-action {
  background: white;
  color: var(--ink);
}

.seo-preview {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.seo-preview span {
  color: #237343;
  font-size: 11px;
}

.seo-preview h3 {
  margin: 7px 0;
  color: #1a0dab;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.seo-preview p {
  max-width: 700px;
  margin: 0;
  color: #4d5156;
  font-size: 12px;
  line-height: 1.5;
}

.form-help {
  padding: 16px;
  border-left: 2px solid var(--wine);
  background: var(--wine-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.narrow-card {
  max-width: 700px;
}

.align-start {
  margin-top: 24px;
}

.admin-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
}

.admin-dialog::backdrop {
  background: rgba(24, 22, 20, 0.66);
  backdrop-filter: blur(5px);
}

.admin-dialog form > header,
.admin-dialog form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
}

.admin-dialog form > header {
  border-bottom: 1px solid var(--line);
}

.admin-dialog form > footer {
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.admin-dialog header small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-dialog header h2 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.dialog-body {
  max-height: calc(100vh - 195px);
  overflow-y: auto;
  padding: 26px;
}

.product-form-grid {
  display: grid;
  gap: 24px;
}

.image-upload {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  min-height: 190px;
  padding: 16px;
  border: 1px dashed #c8c0b5;
  border-radius: 13px;
  background: #f6f3ee;
}

.image-upload img {
  display: none;
  width: 180px;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
}

.image-upload img.has-image {
  display: block;
}

.image-upload strong,
.image-upload span {
  display: block;
}

.image-upload strong {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.image-upload span {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 9px;
}

.file-button {
  display: inline-flex;
  width: max-content;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

details summary {
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.details-grid {
  margin-top: 18px;
}

.small-dialog {
  width: min(560px, calc(100% - 28px));
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  max-width: 380px;
  padding: 14px 18px;
  transform: translateY(-20px);
  border-radius: 10px;
  background: var(--success);
  box-shadow: var(--shadow);
  color: white;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.toast.is-error {
  background: var(--danger);
}

.login-page {
  background: #262522;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
  min-height: 100vh;
}

.login-art {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  background:
    radial-gradient(circle at 70% 30%, rgba(174, 120, 77, 0.36), transparent 34%),
    linear-gradient(150deg, #683132, #352523 72%);
  color: white;
}

.login-art::after {
  position: absolute;
  right: -160px;
  bottom: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.login-monogram {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 32px;
  letter-spacing: -0.08em;
}

.login-art small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.login-art h1 {
  margin: 14px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px);
  background: var(--surface);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
}

.admin-brand > span {
  border-color: var(--ink);
}

.admin-brand strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.kicker {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.login-copy {
  max-width: 520px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  max-width: 520px;
  gap: 16px;
}

.login-form label > span {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  outline: none;
}

.login-form button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-alert {
  max-width: 520px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  background: #f4e4e1;
  color: var(--danger);
  font-size: 10px;
}

.back-link {
  width: max-content;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
}

.mobile-api-hero {
  position: relative;
  min-height: 440px;
  margin-bottom: 22px;
  padding: clamp(38px, 6vw, 82px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 70px;
  align-items: center;
  color: #f8f4ed;
  background:
    radial-gradient(circle at 84% 48%, rgba(194, 157, 92, 0.19), transparent 28%),
    linear-gradient(135deg, #15241f 0%, #101815 68%, #0c1210 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.mobile-api-hero::before {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-api-hero > div {
  position: relative;
  z-index: 1;
}

.api-ready {
  width: max-content;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d2bb8e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.api-ready i {
  width: 7px;
  height: 7px;
  background: #75b38a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(117, 179, 138, 0.12);
}

.mobile-kicker {
  margin: 0 0 12px;
  color: rgba(248, 244, 237, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-api-hero h2 {
  max-width: 720px;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 67px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mobile-api-hero p:not(.mobile-kicker) {
  max-width: 660px;
  margin: 0;
  color: rgba(248, 244, 237, 0.68);
  font-size: 12px;
  line-height: 1.8;
}

.api-address {
  max-width: 740px;
  margin-top: 34px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.035);
}

.api-address > span {
  color: #d2bb8e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.api-address code {
  overflow: hidden;
  color: rgba(248, 244, 237, 0.78);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-address button {
  padding: 8px 10px;
  color: #f8f4ed;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.api-monogram {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.api-monogram span {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border: 1px solid #a88953;
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
}

.api-monogram small {
  color: rgba(248, 244, 237, 0.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.mobile-capability-grid {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.mobile-capability-grid article {
  min-height: 200px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.mobile-capability-grid article:last-child {
  border-right: 0;
}

.mobile-capability-grid article > span {
  display: block;
  margin-bottom: 34px;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.mobile-capability-grid strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.mobile-capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.mobile-details {
  align-items: stretch;
}

.api-facts {
  margin: 0;
}

.api-facts div {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.api-facts dt {
  color: var(--muted);
  font-size: 9px;
}

.api-facts dd {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.mobile-roadmap {
  padding: 0;
  margin: 0 0 25px;
  display: grid;
  gap: 12px;
  list-style: none;
}

.mobile-roadmap li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.mobile-roadmap li > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--wine);
  font-size: 9px;
  border-radius: 50%;
}

.mobile-roadmap p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.mobile-roadmap strong {
  color: var(--ink);
}

.api-doc-link {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .order-card summary {
    grid-template-columns: 1fr 1fr 1fr auto;
  }

  .order-card summary > div:nth-child(3) {
    display: none;
  }

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

  .order-status-select {
    grid-column: 1 / -1;
  }

  .mobile-api-hero {
    grid-template-columns: 1fr 180px;
    gap: 40px;
  }

  .api-monogram span {
    width: 140px;
    height: 140px;
    font-size: 58px;
  }

  .mobile-capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .mobile-capability-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

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

  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-main {
    padding-inline: 20px;
  }

  .admin-topbar {
    min-height: 100px;
  }

  .mobile-menu {
    display: grid;
    width: 40px;
    height: 40px;
    margin-right: 14px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }

  .admin-topbar > div:first-of-type {
    margin-right: auto;
  }

  .admin-user div {
    display: none;
  }

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

  .login-art {
    display: none;
  }

  .login-card {
    min-height: 100vh;
  }

  .mobile-api-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .api-monogram {
    display: none;
  }
}

@media (max-width: 620px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    min-height: 150px;
    padding: 18px;
  }

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

  .action-bar select {
    width: 100%;
  }

  .content-card,
  .settings-card {
    padding: 20px;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .order-card summary {
    grid-template-columns: 1fr auto;
  }

  .order-card summary > div:nth-child(2),
  .order-card summary > div:nth-child(3),
  .order-card summary > div:nth-child(4) {
    display: none;
  }

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

  .order-status-select {
    grid-column: auto;
  }

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

  .sticky-save span {
    display: none;
  }

  .image-upload {
    grid-template-columns: 1fr;
  }

  .image-upload img {
    width: 100%;
    height: 240px;
  }

  .login-card {
    padding: 34px 24px;
  }

  .admin-brand {
    margin-bottom: 46px;
  }

  .mobile-api-hero {
    padding: 42px 28px;
  }

  .api-ready {
    margin-bottom: 35px;
  }

  .api-address {
    grid-template-columns: 1fr auto;
  }

  .api-address > span {
    grid-column: 1 / -1;
  }

  .mobile-capability-grid {
    grid-template-columns: 1fr;
  }

  .mobile-capability-grid article,
  .mobile-capability-grid article:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-capability-grid article:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.product-whatsapp-field {
  padding: 16px;
  background: rgba(24, 105, 74, 0.055);
  border: 1px solid rgba(24, 105, 74, 0.2);
}

.product-whatsapp-field > span {
  color: #125b40;
}

.product-whatsapp-field > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

/* V8 — detailed owner panel and SEO command center */
.sidebar-brand > img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32);
}

.sidebar-brand {
  padding-right: 2px;
  padding-left: 2px;
}

.sidebar-brand strong {
  font-size: 17px;
}

.sidebar-brand small {
  font-size: 6px;
}

.panel-intro {
  position: relative;
  min-height: 255px;
  margin-bottom: 18px;
  padding: clamp(34px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  overflow: hidden;
  color: #f8f4ed;
  background:
    radial-gradient(circle at 88% 25%, rgba(194, 157, 92, 0.2), transparent 28%),
    linear-gradient(135deg, #17251f, #111714 72%);
  box-shadow: var(--shadow);
}

.panel-intro::after {
  position: absolute;
  top: -90px;
  right: -65px;
  width: 310px;
  height: 310px;
  content: "";
  border: 1px solid rgba(210, 187, 142, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(210, 187, 142, 0.025),
    0 0 0 68px rgba(210, 187, 142, 0.018);
}

.panel-intro > div,
.panel-intro-index {
  position: relative;
  z-index: 1;
}

.panel-intro small {
  color: #d2bb8e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-intro h2 {
  max-width: 820px;
  margin: 14px 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.panel-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(248, 244, 237, 0.63);
  font-size: 11px;
  line-height: 1.75;
}

.panel-intro-index {
  color: rgba(210, 187, 142, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
}

.form-grid label > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.form-grid label:focus-within > span {
  color: var(--wine);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: rgba(92, 44, 44, 0.7);
  box-shadow: 0 0 0 3px rgba(92, 44, 44, 0.08);
}

.seo-command-hero {
  position: relative;
  min-height: 420px;
  margin-bottom: 18px;
  padding: clamp(40px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  overflow: hidden;
  color: #f8f4ed;
  background:
    radial-gradient(circle at 85% 40%, rgba(189, 151, 82, 0.2), transparent 26%),
    radial-gradient(circle at 6% 110%, rgba(92, 44, 44, 0.38), transparent 32%),
    #0e1915;
  box-shadow: var(--shadow);
}

.seo-command-hero::before {
  position: absolute;
  inset: 16px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.seo-command-hero > div {
  position: relative;
  z-index: 1;
}

.seo-live {
  width: max-content;
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d2bb8e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.seo-live i {
  width: 7px;
  height: 7px;
  background: #75b38a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(117, 179, 138, 0.12);
}

.seo-command-hero h2 {
  max-width: 830px;
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.92;
}

.seo-command-hero > div:first-child > p:last-child {
  max-width: 690px;
  margin: 0;
  color: rgba(248, 244, 237, 0.65);
  font-size: 11px;
  line-height: 1.75;
}

.seo-score-card {
  width: 210px;
  height: 210px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  padding: 30px;
  border: 1px solid rgba(210, 187, 142, 0.48);
  border-radius: 50%;
  text-align: center;
}

.seo-score-card small,
.seo-score-card p {
  grid-column: 1 / -1;
}

.seo-score-card small {
  color: #d2bb8e;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seo-score-card strong {
  justify-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  font-weight: 400;
  line-height: 1;
}

.seo-score-card > span {
  align-self: end;
  margin-bottom: 9px;
  color: rgba(248, 244, 237, 0.42);
  font-size: 12px;
}

.seo-score-card p {
  margin: 5px 0 0;
  color: rgba(248, 244, 237, 0.57);
  font-size: 8px;
  line-height: 1.45;
}

.seo-priority-field {
  padding: 20px;
  background: rgba(64, 99, 77, 0.055);
  border: 1px solid rgba(64, 99, 77, 0.24);
}

.technical-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.technical-links a {
  min-height: 130px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  transition: background 160ms ease;
}

.technical-links a:last-child {
  border-right: 0;
}

.technical-links a:hover {
  background: #f3eee7;
}

.technical-links small {
  color: var(--wine);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.technical-links strong {
  margin-top: 23px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.technical-links span {
  margin-top: auto;
  color: var(--muted);
  font-size: 8px;
}

.field-counter {
  float: right;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.seo-preview {
  position: relative;
  padding-top: 42px;
}

.seo-preview > small {
  position: absolute;
  top: 18px;
  left: 24px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.keyword-total {
  min-width: 105px;
  padding: 10px 13px;
  color: var(--success);
  background: rgba(64, 99, 77, 0.08);
  border: 1px solid rgba(64, 99, 77, 0.2);
  font-size: 9px;
  text-align: center;
}

.keyword-total strong {
  font-size: 17px;
}

.seo-truth-note {
  margin-bottom: 22px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: #f5eee1;
  border-left: 3px solid #a88953;
}

.seo-truth-note strong {
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.seo-truth-note p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.keyword-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.keyword-group-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.keyword-group-grid article {
  min-height: 96px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.keyword-group-grid small {
  color: var(--wine);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.keyword-group-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.1;
}

.seo-guide {
  padding: 34px;
}

.seo-guide-list {
  border-top: 1px solid var(--line);
}

.seo-guide-list details {
  border-bottom: 1px solid var(--line);
}

.seo-guide-list summary {
  padding: 19px 34px 19px 0;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  list-style-position: outside;
}

.seo-guide-list p {
  max-width: 880px;
  margin: -2px 0 22px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.api-monogram img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: 11px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

@media (max-width: 1180px) {
  .keyword-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technical-links {
    grid-template-columns: 1fr;
  }

  .technical-links a {
    min-height: 95px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .technical-links a:last-child {
    border-bottom: 0;
  }

  .technical-links strong {
    margin-top: 12px;
  }
}

@media (max-width: 820px) {
  .seo-command-hero {
    grid-template-columns: 1fr;
  }

  .seo-score-card {
    width: 170px;
    height: 170px;
  }

  .seo-score-card strong {
    font-size: 52px;
  }

  .panel-intro-index {
    display: none;
  }
}

@media (max-width: 620px) {
  .panel-intro,
  .seo-command-hero {
    padding: 36px 25px;
  }

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

  .seo-command-hero h2 {
    font-size: 43px;
  }

  .seo-score-card {
    width: 150px;
    height: 150px;
    padding: 22px;
  }

  .seo-score-card strong {
    font-size: 45px;
  }

  .seo-truth-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .keyword-group-grid {
    grid-template-columns: 1fr;
  }

  .api-monogram img {
    width: 135px;
    height: 135px;
  }
}
