:root {
  --ink: #17212b;
  --muted: #627084;
  --line: #dbe2ea;
  --panel: #ffffff;
  --bg: #f6f8fb;
  --navy: #10233f;
  --teal: #0f8f8c;
  --green: #2f9e63;
  --gold: #c2872b;
  --red: #bd4c5b;
  --shadow: 0 24px 70px rgba(21, 37, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Noto Sans Lao", system-ui, sans-serif;
  line-height: 1.65;
}

.content-protected,
.content-protected :not(input):not(textarea):not(select):not(option) {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.content-protected img,
.content-protected svg,
.content-protected picture {
  pointer-events: none;
  -webkit-user-drag: none;
}

.content-protected input,
.content-protected textarea,
.content-protected select,
.content-protected option {
  -webkit-user-select: text;
  user-select: text;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(246, 248, 251, 0.92);
  border-bottom: 1px solid rgba(219, 226, 234, 0.86);
  backdrop-filter: blur(18px);
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #232323;
  box-shadow: 0 12px 30px rgba(15, 24, 34, 0.18);
}

.market-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: #fff;
}

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

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

.market-brand small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.market-actions {
  color: rgba(255, 255, 255, 0.76);
}

.market-actions a,
.client-menu-button {
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-login-link {
  color: #fff !important;
  background: var(--teal) !important;
}

.account-summary {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.account-summary strong,
.account-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-summary small {
  color: var(--muted);
  font-weight: 500;
}

.client-dropdown .account-logout {
  color: var(--red);
  border-top: 1px solid var(--line);
}

.market-actions a:hover,
.client-menu-button:hover {
  color: #fff;
}

.seller-link {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.products-link::before {
  content: "▦";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.56);
}

.cart-link::before {
  content: "🛒";
  margin-right: 7px;
}

.client-menu {
  position: relative;
}

.client-menu-button {
  color: #fff;
}

.client-menu-button::before {
  content: "◖";
  margin-right: 8px;
}

.client-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: min(300px, 86vw);
  padding: 18px 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.client-menu.open .client-dropdown {
  display: grid;
}

.client-dropdown strong,
.client-dropdown a {
  padding: 10px 22px;
}

.client-dropdown a {
  color: var(--ink);
  font-weight: 600;
}

.client-dropdown a:hover {
  color: var(--teal);
  background: #f4f8fb;
}

.client-dropdown a:last-child {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.market-category-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  padding: 0 clamp(18px, 5vw, 72px);
  min-height: 58px;
  color: rgba(255, 255, 255, 0.56);
  background: #282828;
}

.market-category-bar a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  font-weight: 800;
}

.market-category-bar a:hover,
.market-category-bar a.active {
  color: #fff;
}

.market-category-bar a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #82bd3d;
  border-radius: 4px 4px 0 0;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 8px;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344255;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
}

.nav-links a:hover {
  color: #08736f;
}

.nav-links .nav-cta {
  color: #344255;
  background: transparent;
}

.nav-links .login-link {
  color: #fff;
  background: var(--navy);
}

.nav-links .login-link:hover {
  color: #fff;
  background: #0f8f8c;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 72px) 36px;
  background:
    linear-gradient(120deg, rgba(16, 35, 63, 0.94), rgba(15, 92, 99, 0.86)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0f8f8c;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #90e2dc;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 920px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  line-height: 1.25;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(15, 143, 140, 0.28);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button.ghost {
  color: var(--navy);
  border-color: var(--line);
  background: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span,
.tags span,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.trust-row span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.hero-product {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  color: var(--muted);
  background: #edf2f6;
}

.window-bar span {
  width: 10px;
  height: 10px;
  background: #bdc7d2;
  border-radius: 50%;
}

.window-bar b {
  margin-left: 8px;
  font-size: 12px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 18px;
}

.preview-panel {
  min-height: 168px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.preview-panel.wide {
  grid-row: span 2;
  min-height: 350px;
}

.preview-panel.dark {
  color: #fff;
  background: var(--navy);
}

.status {
  color: #28536f;
  background: #e9f1f6;
}

.status.success {
  color: #1c6b43;
  background: #e9f7ef;
}

.status.accent {
  color: #fff;
  background: var(--red);
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 150px;
  margin-top: 38px;
}

.mini-chart i {
  flex: 1;
  min-width: 34px;
  background: linear-gradient(180deg, var(--teal), #8cd0b1);
  border-radius: 8px 8px 2px 2px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  transform: translateY(-18px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.metrics div {
  padding: 24px;
  background: #fff;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 30px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  margin-top: 8px;
}

.section,
.detail-section,
.dashboard-section,
.roadmap,
.contact {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

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

.section-heading h2 {
  max-width: 860px;
  margin-bottom: 0;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  color: #354357;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

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

.product-card,
.service-grid article,
.dashboard-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(25, 42, 61, 0.06);
}

.product-card {
  overflow: hidden;
}

.product-visual {
  display: grid;
  height: 154px;
  place-items: center;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.product-visual.shop { background: linear-gradient(135deg, #154d7f, #24a094); }
.product-visual.pos { background: linear-gradient(135deg, #2f5f44, #d9a441); }
.product-visual.school { background: linear-gradient(135deg, #36516b, #5aa2c7); }
.product-visual.mobile { background: linear-gradient(135deg, #723d46, #e07963); }
.product-visual.ai { background: linear-gradient(135deg, #2c315a, #7a78d8); }
.product-visual.erp { background: linear-gradient(135deg, #4d5d33, #b8a349); }

.product-body,
.service-grid article,
.dashboard-grid article {
  padding: 20px;
}

.category {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.tags span {
  color: #405064;
  background: #eef3f6;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.product-foot strong {
  font-size: 22px;
}

.product-foot a {
  color: var(--teal);
  font-weight: 800;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  background: #fff;
}

.detail-copy p:not(.eyebrow),
.dashboard-copy p,
.contact p {
  color: var(--muted);
}

.detail-board {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 16px;
}

.board-main,
.feature-list {
  min-height: 330px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.board-main {
  color: #fff;
  background: var(--navy);
}

.screen-lines {
  display: grid;
  gap: 12px;
  margin-top: 54px;
}

.screen-lines span {
  height: 24px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.feature-list {
  display: grid;
  align-content: center;
  gap: 14px;
  margin: 0;
  background: #f8fafc;
}

.request-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.file-drop {
  display: grid;
  place-items: center;
  min-height: 86px;
  color: var(--muted);
  border: 1px dashed #9cafc2;
  border-radius: 8px;
  background: #f8fafc;
}

.file-drop input {
  display: none;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--red);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.admin-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef3f6;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: var(--navy);
  color: #fff;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.admin-logo small {
  color: rgba(255, 255, 255, 0.62);
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.admin-menu a {
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  font-weight: 800;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.admin-menu .logout-link {
  margin-top: 14px;
  color: #ffd8d8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-menu .logout-link:hover {
  color: #fff;
  background: rgba(189, 76, 91, 0.38);
}

.admin-main {
  padding: 28px clamp(18px, 4vw, 44px);
}

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

.admin-topbar h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
}

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

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

.admin-stat-grid article,
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(25, 42, 61, 0.06);
}

.admin-stat-grid article {
  padding: 20px;
}

.admin-stat-grid span,
.admin-stat-grid small,
.panel-note,
.customer-list span {
  color: var(--muted);
}

.admin-stat-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
  line-height: 1;
}

.admin-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-panel {
  min-height: 250px;
  padding: 20px;
}

.admin-panel.wide {
  grid-column: span 3;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.panel-head button {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--teal);
  background: #e8f4f3;
  border: 1px solid #cce6e3;
  border-radius: 8px;
  font-weight: 800;
}

.admin-table,
.hosting-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.admin-table span,
.admin-table b,
.hosting-grid span,
.hosting-grid strong,
.plan-row,
.order-queue li,
.customer-list div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.admin-table b,
.order-queue b {
  color: var(--green);
}

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

.customer-list strong,
.customer-list span {
  display: block;
}

.order-queue {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-queue li,
.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.payment-meter {
  height: 18px;
  margin: 30px 0 14px;
  overflow: hidden;
  background: #e7edf3;
  border-radius: 999px;
}

.payment-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.hosting-grid strong {
  font-size: 22px;
}

.analytics-bars {
  display: flex;
  align-items: end;
  gap: 18px;
  min-height: 260px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-bars i {
  flex: 1;
  min-width: 34px;
  background: linear-gradient(180deg, var(--teal), #8cd0b1);
  border-radius: 8px 8px 2px 2px;
}

.admin-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.admin-panel.page-card {
  min-height: 0;
  margin-top: 18px;
}

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

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.settings-main,
.settings-side {
  display: grid;
  gap: 24px;
}

.settings-side {
  position: sticky;
  top: 24px;
}

.settings-card {
  padding: 24px;
}

.settings-card h2 {
  margin: 0;
}

.settings-card-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.settings-grid label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.settings-grid label small {
  color: var(--muted);
  font-weight: 500;
}

.settings-grid input,
.settings-grid textarea,
.settings-grid select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.settings-grid input:focus,
.settings-grid textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 143, 140, 0.12);
}

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

.full-button {
  width: 100%;
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 130px;
  margin-top: 16px;
  padding: 18px;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.setting-switches {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.setting-switches label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.setting-switches label > span,
.setting-switches strong,
.setting-switches small {
  display: block;
}

.setting-switches small {
  color: var(--muted);
}

.setting-switches input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.brand-logo-image {
  display: block;
  width: auto;
  max-width: 58px;
  height: 46px;
  object-fit: contain;
}

[data-setting-hidden="true"] {
  display: none !important;
}

.product-publish {
  display: flex !important;
  align-items: center;
}

.product-publish input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

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

.product-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.product-admin-item h3,
.product-admin-item p {
  margin: 0;
}

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

.product-admin-meta,
.product-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-admin-meta {
  margin-top: 8px;
}

.product-admin-meta span {
  padding: 3px 8px;
  color: var(--teal);
  background: rgba(15, 143, 140, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.product-admin-actions {
  justify-content: flex-end;
}

.product-admin-actions button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.product-admin-actions .danger {
  color: var(--red);
}

.page-table {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.6fr) minmax(90px, 0.4fr);
  gap: 0 14px;
}

.page-table span,
.page-table b,
.page-table em {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.page-table span {
  color: var(--ink);
  font-weight: 800;
}

.page-table b {
  color: var(--green);
}

.page-table em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.client-body .admin-sidebar {
  background: linear-gradient(180deg, #123a45, #0f5f5c);
}

.seller-body .admin-sidebar {
  background: linear-gradient(180deg, #263852, #2f5f44);
}

.client-thread {
  display: grid;
  gap: 14px;
}

.client-thread p {
  margin: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-thread strong,
.client-thread span {
  display: block;
}

.client-thread span {
  color: var(--muted);
  margin-top: 4px;
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(16, 35, 63, 0.92), rgba(15, 95, 92, 0.78)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.auth-shell.single {
  grid-template-columns: minmax(320px, 620px);
  justify-content: center;
}

.auth-panel,
.auth-aside {
  border-radius: 12px;
}

.auth-panel {
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.auth-heading {
  margin: 34px 0 22px;
}

.auth-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
}

.auth-heading p:not(.eyebrow),
.auth-switch {
  color: var(--muted);
}

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

.auth-form .button {
  width: 100%;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--teal);
  font-weight: 800;
}

.social-auth {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.social-button.google {
  color: #283544;
  background: #fff;
  border: 1px solid var(--line);
}

.social-button.facebook {
  color: #fff;
  background: #1877f2;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.auth-aside {
  padding: clamp(24px, 5vw, 56px);
  color: #fff;
}

.auth-aside .eyebrow {
  color: #90e2dc;
}

.auth-aside h2 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 64px);
}

.stack-hero {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(16, 35, 63, 0.94), rgba(47, 95, 68, 0.78)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.stack-hero div {
  max-width: 900px;
}

.stack-hero .eyebrow {
  color: #90e2dc;
}

.stack-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.stack-card {
  min-height: 360px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(25, 42, 61, 0.06);
}

.stack-card.wide {
  grid-column: span 4;
  min-height: 240px;
}

.stack-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 8px;
  font-weight: 900;
}

.stack-card h2 {
  font-size: 28px;
}

.stack-card p:not(.eyebrow),
.stack-card li {
  color: var(--muted);
}

.stack-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.stack-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stack-pipeline span {
  padding: 16px;
  text-align: center;
  color: var(--navy);
  background: #eef3f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.dashboard-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  background: #eef3f6;
}

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

.progress {
  height: 12px;
  margin: 22px 0 12px;
  background: #e7edf3;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.admin-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  color: var(--muted);
}

.admin-list b {
  color: var(--ink);
}

.service-grid article {
  min-height: 190px;
}

.roadmap {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  background: #fff;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline strong {
  color: var(--teal);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--navy);
}

.contact .eyebrow {
  color: #90e2dc;
}

.contact p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

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

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

  .settings-side {
    position: static;
  }

  .hero,
  .detail-section,
  .request-section,
  .dashboard-section,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .service-grid,
  .metrics,
  .admin-stat-grid,
  .admin-panel-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

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

  .auth-aside {
    display: none;
  }

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

  .admin-panel.wide {
    grid-column: span 2;
  }

  .admin-page-grid {
    grid-template-columns: 1fr;
  }

  .stack-card.wide {
    grid-column: span 2;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 760px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .market-topbar {
    position: relative;
  }

  .market-actions {
    top: 74px;
    background: #232323;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .client-menu,
  .client-menu-button,
  .market-actions a {
    width: 100%;
    text-align: left;
  }

  .client-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .preview-grid,
  .detail-board,
  .dashboard-grid,
  .request-form,
  .product-grid,
  .service-grid,
  .metrics,
  .admin-stat-grid,
  .admin-panel-grid,
  .stack-grid,
  .stack-pipeline {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: block;
  }

  .admin-actions {
    margin-top: 16px;
  }

  .admin-panel.wide {
    grid-column: span 1;
  }

  .admin-form,
  .page-table {
    grid-template-columns: 1fr;
  }

  .page-table em {
    text-align: left;
  }

  .stack-card.wide {
    grid-column: span 1;
  }

  .preview-panel.wide,
  .board-main,
  .feature-list {
    min-height: 250px;
  }

  .metrics {
    transform: none;
    margin-top: 18px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact,
  .site-footer {
    display: block;
  }

  .contact .button {
    margin-top: 18px;
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  .hero-actions .button,
  .detail-actions .button {
    width: 100%;
  }
}
