:root {
  --bg: #f3f6f1;
  --panel: #ffffff;
  --panel-soft: #f1f5ef;
  --primary: #6f8d6d;
  --primary-dark: #557253;
  --primary-soft: rgba(111, 141, 109, 0.14);
  --accent: #8aa786;
  --text: #26352b;
  --muted: #718071;
  --border: rgba(70, 95, 70, 0.14);
  --shadow: 0 18px 48px rgba(65, 88, 67, 0.12);
  --success: #4d8a5b;
  --warning: #e59d21;
  --danger: #db4d5b;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143, 166, 138, 0.16), transparent 30%),
    linear-gradient(180deg, #eef4ec 0%, var(--bg) 100%);
  color: var(--text);
}

body.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

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

button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

button:active {
  transform: translateY(0);
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(16px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

nav div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
}

nav a:hover {
  background: rgba(47, 111, 237, 0.06);
  color: var(--primary-dark);
}

#logoutButton,
button[type='submit'],
#saveShippingRateButton,
#saveProductButton,
#saveLedger,
#saveItemButton {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 12px 20px rgba(47, 111, 237, 0.2);
}

button.secondary {
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

button.danger {
  background: rgba(219, 77, 91, 0.1);
  color: var(--danger);
  border: 1px solid rgba(219, 77, 91, 0.18);
}

button.warn {
  background: rgba(229, 157, 33, 0.12);
  color: var(--warning);
  border: 1px solid rgba(229, 157, 33, 0.2);
}

.container {
  width: min(1200px, calc(100% - 28px));
  margin: 28px auto 60px;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin-bottom: 14px;
}

.card,
.auth-box,
.product-card,
.mini-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
  margin-top: 18px;
}

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

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

.mini-stat {
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mini-stat strong {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-stat h3 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.mini-stat ul {
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--muted);
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.report-filters {
  align-items: end;
  margin: 18px 0 22px;
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.report-actions {
  display: flex;
  align-items: end;
}

.report-meta {
  margin: 12px 0 18px;
  color: var(--muted);
}

.report-summary {
  margin-bottom: 24px;
}

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

  body.printing-ledger-report {
    background: white;
    color: #1f2937;
    font-family: Arial, sans-serif;
    font-size: 10pt;
  }

  body.printing-ledger-report .sidebar,
  body.printing-ledger-report .topbar,
  body.printing-ledger-report .page-heading,
  body.printing-ledger-report .page-footer,
  body.printing-ledger-report #dashboard,
  body.printing-ledger-report #products,
  body.printing-ledger-report #users,
  body.printing-ledger-report #companies,
  body.printing-ledger-report #ledger,
  body.printing-ledger-report #settings,
  body.printing-ledger-report #announcements,
  body.printing-ledger-report .report-filters,
  body.printing-ledger-report #printLedgerReport {
    display: none !important;
  }

  body.printing-ledger-report .app-main,
  body.printing-ledger-report .container,
  body.printing-ledger-report #ledger-report {
    display: block !important;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: white;
    box-shadow: none;
    overflow: visible;
  }

  body.printing-ledger-report #ledger-report .report-header {
    display: block;
    padding-bottom: 12px;
    border-bottom: 2px solid #1f2937;
  }

  body.printing-ledger-report #ledger-report .report-header::before {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    content: 'TEDARIK PORTAL';
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.16em;
  }

  body.printing-ledger-report #ledger-report .eyebrow {
    display: none;
  }

  body.printing-ledger-report #ledger-report h2 {
    margin: 0;
    color: #111827;
    font-size: 20pt;
    letter-spacing: normal;
  }

  body.printing-ledger-report #ledger-report .report-header p:not(.eyebrow) {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 9pt;
  }

  body.printing-ledger-report #ledger-report .report-meta {
    margin: 14px 0 10px;
    color: #4b5563;
    font-size: 9pt;
  }

  body.printing-ledger-report #ledger-report .report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
  }

  body.printing-ledger-report #ledger-report .mini-stat {
    min-height: 0;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    box-shadow: none;
  }

  body.printing-ledger-report #ledger-report .mini-stat strong {
    color: #6b7280;
    font-size: 7pt;
    text-transform: uppercase;
  }

  body.printing-ledger-report #ledger-report .mini-stat h3 {
    margin: 5px 0 0;
    color: #111827;
    font-size: 11pt;
  }

  body.printing-ledger-report #ledger-report h3 {
    margin: 18px 0 5px;
    color: #111827;
    font-size: 11pt;
    page-break-after: avoid;
  }

  body.printing-ledger-report #ledger-report .table-wrap {
    overflow: visible;
  }

  body.printing-ledger-report #ledger-report table {
    width: 100%;
    margin: 0 0 14px;
    border-collapse: collapse;
    font-size: 8.5pt;
  }

  body.printing-ledger-report #ledger-report th,
  body.printing-ledger-report #ledger-report td {
    padding: 7px 6px;
    border: 1px solid #d1d5db;
    color: #1f2937;
    vertical-align: top;
  }

  body.printing-ledger-report #ledger-report th {
    background: #f3f4f6;
    color: #374151;
    font-size: 7pt;
  }

  body.printing-ledger-report #ledger-report tr {
    page-break-inside: avoid;
  }

  body.printing-ledger-report #ledger-report h2 {
    margin-top: 0;
  }
}

.seller-ledger-print {
  margin: 12px 0;
}

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

  body.printing-seller-ledger {
    background: white;
    color: #1f2937;
    font-family: Arial, sans-serif;
  }

  body.printing-seller-ledger .sidebar,
  body.printing-seller-ledger .topbar,
  body.printing-seller-ledger .page-heading,
  body.printing-seller-ledger .page-footer,
  body.printing-seller-ledger #home,
  body.printing-seller-ledger #catalog,
  body.printing-seller-ledger #saved,
  body.printing-seller-ledger .seller-ledger-print {
    display: none !important;
  }

  body.printing-seller-ledger .app-main,
  body.printing-seller-ledger .container,
  body.printing-seller-ledger #ledger {
    display: block !important;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: white;
    box-shadow: none;
    overflow: visible;
  }

  body.printing-seller-ledger #ledger::before {
    display: block;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1f2937;
    color: #6b7280;
    content: 'TEDARIK PORTAL  |  CARI HESAP EKSTRESI';
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  body.printing-seller-ledger #ledger h2 {
    margin: 0;
    color: #111827;
    font-size: 20pt;
  }

  body.printing-seller-ledger #ledger > p {
    color: #4b5563;
    font-size: 10pt;
  }

  body.printing-seller-ledger #ledger table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 9pt;
  }

  body.printing-seller-ledger #ledger th,
  body.printing-seller-ledger #ledger td {
    padding: 8px 7px;
    border: 1px solid #d1d5db;
    color: #1f2937;
    text-align: left;
    vertical-align: top;
  }

  body.printing-seller-ledger #ledger th {
    background: #f3f4f6;
    color: #374151;
    font-size: 7pt;
    text-transform: uppercase;
  }

  body.printing-seller-ledger #ledger tr {
    page-break-inside: avoid;
  }
}

.auth-box {
  width: min(460px, 100%);
  padding: clamp(22px, 4vw, 30px);
  background: rgba(255, 255, 255, 0.95);
}

.auth-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
  text-align: center;
}

.auth-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 18px;
}

.auth-toggle button {
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.auth-toggle button.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

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

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fbfcff;
  border-radius: 12px;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(47, 111, 237, 0.6);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.08);
  background: white;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.inline-error {
  min-height: 22px;
  margin-top: 16px;
  color: var(--danger);
  font-weight: 600;
}

.product-card {
  padding: 18px;
}

.product-image,
.product-detail-image {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--panel-soft);
}

.product-image {
  height: 150px;
  margin: -2px 0 14px;
}

.product-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.product-detail-image {
  height: 220px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.33rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: capitalize;
}

.badge.active {
  background: rgba(16, 158, 103, 0.12);
  color: var(--success);
}

.badge.pending {
  background: rgba(229, 157, 33, 0.12);
  color: var(--warning);
}

.badge.suspended {
  background: rgba(72, 76, 95, 0.12);
  color: #475569;
}

.badge.rejected {
  background: rgba(219, 77, 91, 0.12);
  color: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(47, 111, 237, 0.03);
}

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

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

@media (max-width: 900px) {
  .grid-4,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .container {
    width: min(100% - 18px, 1200px);
  }

  .card,
  .auth-box {
    padding: 16px;
  }
}

/* Shared SaaS workspace and authentication layouts */
:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f7f8fc;
  --primary: #5a63e8;
  --primary-dark: #474fc9;
  --primary-soft: rgba(90, 99, 232, 0.1);
  --text: #20243a;
  --muted: #7b8197;
  --border: #eaecf3;
  --shadow: 0 8px 28px rgba(32, 36, 58, 0.045);
  --radius: 16px;
}

body.app-shell {
  min-height: 100vh;
  display: flex;
  background: #f3f6f1;
  color: var(--text);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 254px;
  padding: 27px 17px 18px;
  background: #354638;
  color: #fff;
}

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

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #91ab8d, #668663);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(80, 112, 78, 0.25);
}

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

.brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: #a5a9c0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.sidebar-label {
  margin: 47px 10px 13px;
  color: #858aa5;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 10px;
  color: #b7bbce;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.16s ease, background 0.16s ease;
}

.side-link:hover,
.side-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.side-link.active {
  box-shadow: inset 3px 0 #b7d0b2;
}

.nav-icon {
  display: grid;
  width: 21px;
  place-items: center;
  color: #aeb2ca;
  font-size: 1rem;
}

.side-link.active .nav-icon {
  color: #c2d9bd;
}

.sidebar-bottom {
  display: grid;
  gap: 19px;
  margin-top: auto;
}

.sidebar-help,
.profile-chip {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidebar-help {
  padding: 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.help-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(177, 208, 170, 0.2);
  color: #cfe4ca;
  font-weight: 800;
}

.sidebar-help strong,
.profile-chip strong {
  color: #f2f3f8;
  font-size: 0.76rem;
}

.sidebar-help small,
.profile-chip small {
  margin-top: 3px;
  color: #a3a8bf;
  font-size: 0.67rem;
}

.profile-chip {
  padding: 0 7px;
}

.avatar {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: #f3c98b;
  color: #54412c;
  font-weight: 800;
}

.seller-avatar {
  background: #b9d2b2;
  color: #355a39;
}

.app-main {
  width: calc(100% - 254px);
  min-width: 0;
  margin-left: 254px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(22px, 4vw, 54px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-eyebrow,
.topbar-title {
  display: block;
}

.topbar-eyebrow {
  margin-bottom: 4px;
  color: #969bae;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.topbar-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #687087;
  font-size: 0.76rem;
  font-weight: 600;
}

.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31b87a;
  box-shadow: 0 0 0 4px rgba(49, 184, 122, 0.12);
}

.logout-button {
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--border);
  background: white;
  color: #596078;
  font-size: 0.77rem;
  box-shadow: none;
}

.logout-button span {
  margin-left: 4px;
  color: #9a9fb1;
}

.container {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 36px clamp(22px, 4vw, 54px) 20px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 2px 0 27px;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.page-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--primary);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.heading-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 10px 13px;
  border: 1px solid #e4e6f4;
  border-radius: 10px;
  background: white;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-section {
  scroll-margin-top: 92px;
}

.app-shell .grid-4 {
  gap: 14px;
}

.app-shell .mini-stat {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.app-shell .mini-stat::after {
  position: absolute;
  right: -22px;
  bottom: -33px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-soft);
  content: "";
}

.app-shell .mini-stat strong {
  color: #858ba0;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

.app-shell .mini-stat h3 {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  color: #292e49;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.app-shell .card {
  scroll-margin-top: 94px;
  margin-top: 18px;
  padding: clamp(18px, 2.5vw, 25px);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.app-shell .card h2,
.app-shell #dashboard h3 {
  color: #292e49;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.app-shell .card h3 {
  margin-top: 24px;
  font-size: 0.92rem;
}

.app-shell table {
  border-collapse: separate;
  border-spacing: 0;
}

.app-shell th {
  padding: 12px 13px;
  background: #f8f9fc;
  color: #81879b;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
}

.app-shell td {
  padding: 13px;
  color: #555c72;
  font-size: 0.82rem;
}

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

.app-shell tbody tr:hover td {
  background: #fafbfe;
}

.app-shell input,
.app-shell select,
.app-shell textarea {
  border-color: #e5e7ef;
  border-radius: 10px;
  background: #fbfcfe;
}

.app-shell button,
.auth-page button {
  border-radius: 10px;
}

.app-shell button:not(.secondary):not(.danger):not(.warn):not(.logout-button) {
  box-shadow: 0 5px 12px rgba(90, 99, 232, 0.16);
}

.app-shell button.secondary {
  background: #f6f7fb;
  border-color: #e9eaf2;
  color: #565d74;
}

.page-footer {
  padding: 28px 0 8px;
  color: #9a9fb0;
  font-size: 0.72rem;
}

.page-footer span,
.auth-copyright span {
  padding: 0 5px;
  color: #c2c5d0;
}

.seller-shell #home .grid-4 {
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2fr);
}

.seller-shell #home .mini-stat:last-child {
  grid-column: span 1;
}

.seller-shell #home .mini-stat ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding-left: 17px;
  font-size: 0.82rem;
}

.seller-shell #catalog > .grid:not(.grid-4) {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.seller-shell .product-card {
  display: flex;
  min-height: 235px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(160deg, #fff 20%, #fafaff);
  box-shadow: none;
}

.seller-shell .product-card button {
  align-self: flex-start;
  margin-top: auto;
}

.seller-price-breakdown {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, #f8faff);
}

.seller-price-breakdown p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
}

.seller-price-breakdown p strong {
  color: var(--text);
  text-align: right;
}

.seller-price-breakdown .seller-recommended-price {
  margin: 14px -4px 10px;
  padding: 12px 4px 0;
  border-top: 1px solid var(--border);
  color: var(--primary-dark);
  font-weight: 700;
}

.seller-price-breakdown .seller-recommended-price strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.seller-price-breakdown .seller-remaining-profit {
  margin: 10px -4px;
  padding: 12px 4px;
  border-radius: 8px;
  background: #edf8f1;
  color: #216b3a;
  font-weight: 700;
}

.seller-price-breakdown .seller-remaining-profit strong {
  color: #216b3a;
  font-size: 1.05rem;
}

.seller-price-breakdown small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
}

.auth-intro {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  background:
    radial-gradient(circle at 80% 78%, rgba(139, 144, 255, 0.25), transparent 27%),
    radial-gradient(circle at 12% 95%, rgba(51, 193, 166, 0.13), transparent 32%),
    #20243a;
  color: white;
}

.auth-intro::before,
.auth-intro::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-intro::before {
  right: -160px;
  bottom: 65px;
  width: 460px;
  height: 460px;
}

.auth-intro::after {
  right: -80px;
  bottom: 145px;
  width: 300px;
  height: 300px;
}

.auth-brand {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: 1.03rem;
}

.intro-copy {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin: auto 0;
  padding: 55px 0;
}

.intro-copy .eyebrow {
  color: #aeb2ff;
}

.intro-copy h1 {
  max-width: 510px;
  margin: 0 0 19px;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.intro-copy > p:not(.eyebrow) {
  max-width: 440px;
  color: #c2c5d6;
  font-size: 1rem;
  line-height: 1.75;
}

.intro-points {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  color: #e6e7ef;
  font-size: 0.88rem;
}

.intro-points span {
  display: flex;
  align-items: center;
  gap: 11px;
}

.intro-points i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(75, 201, 158, 0.15);
  color: #68d7b0;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.intro-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5e6ef;
  font-size: 0.82rem;
  font-weight: 600;
}

.intro-foot small {
  display: block;
  margin-top: 4px;
  color: #9da2bb;
  font-size: 0.72rem;
  font-weight: 400;
}

.intro-orb {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #b9bbff;
}

.auth-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(24px, 6vw, 90px) 25px;
}

.auth-box {
  width: min(440px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-heading {
  margin-bottom: 26px;
}

.auth-kicker {
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.auth-heading h2 {
  margin: 12px 0 7px;
  color: #232740;
  font-size: 1.85rem;
  letter-spacing: -0.045em;
  text-align: left;
}

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

.auth-toggle {
  margin-bottom: 23px;
  border: 1px solid #eceef4;
  background: #f7f8fb;
}

.auth-toggle button {
  padding: 0.75rem 0.55rem;
  font-size: 0.8rem;
}

.auth-toggle button.active {
  color: var(--primary-dark);
}

.auth-page form {
  gap: 17px;
}

.auth-page label {
  color: #555c72;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-page input {
  padding: 0.9rem 0.95rem;
  border-color: #e5e7ef;
  border-radius: 10px;
  background: #fff;
  font-size: 0.86rem;
}

.auth-page input::placeholder {
  color: #b1b5c3;
}

.auth-page input:focus {
  border-color: rgba(90, 99, 232, 0.65);
  box-shadow: 0 0 0 4px rgba(90, 99, 232, 0.09);
}

.auth-page .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  padding: 0.92rem 1rem;
  background: linear-gradient(120deg, #696feb, #545bd7);
  color: white;
  box-shadow: 0 9px 18px rgba(90, 99, 232, 0.2);
  font-size: 0.85rem;
}

.auth-page .auth-submit span {
  font-size: 1rem;
}

.auth-page .text-button {
  justify-self: end;
  padding: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: none;
}

.auth-page .inline-error.success-message {
  color: var(--success);
}

.reset-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at top left, rgba(90, 99, 232, 0.1), transparent 34%),
    #f6f7fb;
}

.reset-layout {
  width: min(460px, 100%);
}

.reset-brand {
  margin: 0 0 22px 2px;
  color: var(--text);
}

.reset-page .auth-box {
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.reset-page .auth-heading h1 {
  margin: 12px 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.reset-login-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-register-grid {
  gap: 12px;
}

.auth-page .inline-error {
  min-height: 20px;
  margin-top: 13px;
  font-size: 0.8rem;
}

.auth-security {
  margin: 16px 0 0;
  color: #9298aa;
  font-size: 0.72rem;
  text-align: center;
}

.auth-security span {
  padding-right: 5px;
  color: #31a77d;
}

.auth-copyright {
  margin-top: auto;
  padding-top: 35px;
  color: #a1a6b5;
  font-size: 0.68rem;
}

@media (max-width: 920px) {
  .sidebar {
    width: 214px;
  }

  .app-main {
    width: calc(100% - 214px);
    margin-left: 214px;
  }

  .auth-layout {
    grid-template-columns: minmax(300px, 0.8fr) minmax(410px, 1.2fr);
  }

  .auth-intro {
    padding: 32px;
  }
}

@media (max-width: 700px) {
  body.app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    inset: 0 auto auto;
    width: 100%;
    height: auto;
    padding: 11px 15px 9px;
  }

  .sidebar .brand {
    margin-bottom: 10px;
  }

  .sidebar .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }

  .side-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-link {
    min-height: 36px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 0 10px;
    font-size: 0.73rem;
    white-space: nowrap;
  }

  .side-link.active {
    box-shadow: inset 0 -2px #8c91ff;
  }

  .nav-icon {
    width: auto;
    font-size: 0.84rem;
  }

  .app-main {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    min-height: 60px;
    padding: 10px 16px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .system-status {
    font-size: 0;
  }

  .system-status i {
    width: 8px;
    height: 8px;
  }

  .container {
    padding: 25px 16px 16px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .app-shell .grid-4,
  .seller-shell #home .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .auth-intro {
    min-height: auto;
    padding: 22px 23px;
  }

  .intro-copy {
    margin: 35px 0 19px;
    padding: 0;
  }

  .intro-copy h1 {
    max-width: 560px;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .intro-copy > p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 0.87rem;
  }

  .intro-points,
  .intro-foot,
  .auth-intro::before,
  .auth-intro::after {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    padding: 37px 23px 20px;
  }

  .auth-copyright {
    margin-top: 35px;
    padding-top: 0;
  }
}

@media (max-width: 420px) {
  .app-shell .grid-4,
  .seller-shell #home .grid-4,
  .auth-register-grid {
    grid-template-columns: 1fr;
  }

  .seller-shell #home .mini-stat:last-child {
    grid-column: auto;
  }

  .topbar-title {
    font-size: 0.78rem;
  }
}

/* WoodRetro private partner login */
.auth-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 166, 138, 0.18), transparent 38%),
    #f3f6f1;
  color: #26352b;
}

.auth-page .auth-layout-simple {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.auth-page .auth-panel {
  width: min(100%, 560px);
  min-height: auto;
  padding: 32px 20px;
}

.auth-page .auth-box {
  width: 100%;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid #dbe5d8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(65, 88, 67, 0.12);
}

.auth-simple-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  color: #314936;
}

.auth-simple-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #789276;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
}

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

.auth-simple-brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.auth-simple-brand small {
  margin-top: 3px;
  color: #789276;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.auth-page .auth-kicker {
  color: #6d8a6b;
}

.auth-page .auth-heading h2 {
  color: #26352b;
}

.auth-page .auth-heading p,
.auth-page .auth-security {
  color: #718071;
}

.auth-page .auth-toggle {
  border-color: #dbe5d8;
  background: #f1f5ef;
}

.auth-page .auth-toggle button.active {
  color: #486349;
}

.auth-page input:focus {
  border-color: rgba(120, 146, 118, 0.75);
  box-shadow: 0 0 0 4px rgba(120, 146, 118, 0.14);
}

.auth-page .auth-submit {
  background: #6f8d6d;
  box-shadow: 0 9px 18px rgba(88, 119, 88, 0.2);
}

.auth-page .text-button {
  color: #567354;
}

.auth-page .auth-security span {
  color: #6f8d6d;
}

.auth-page .auth-copyright {
  color: #819080;
}
