:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-panel: #eef3f7;
  --surface: #ffffff;
  --surface-muted: #f9fbfc;
  --ink: #121826;
  --text: #384354;
  --muted: #6b778c;
  --line: #dfe6ee;
  --line-strong: #cbd6e2;
  --primary: #0f6b68;
  --primary-dark: #0a4848;
  --primary-soft: #e5f4f2;
  --accent: #e36b2c;
  --accent-soft: #fff1e8;
  --success: #16834a;
  --warning: #a36100;
  --danger: #b42318;
  --shadow-sm: none;
  --shadow-md: none;
  --radius: 12px;
  --radius-sm: 9px;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 107, 104, 0.08), rgba(227, 107, 44, 0.045) 48%, transparent 76%),
    linear-gradient(180deg, #ffffff 0, var(--bg) 410px);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: rgba(15, 107, 104, 0.18);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(223, 230, 238, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent),
    #0f6b68;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(15, 107, 104, 0.2);
}

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

.brand strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.page {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.hero {
  padding: clamp(34px, 7vw, 82px) 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 107, 104, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: #48576a;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
}

.feature-grid,
.summary-grid,
.metrics {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 810px;
  margin-top: 28px;
}

.feature,
.metric,
.summary-card,
.list-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.feature {
  position: relative;
  min-height: 170px;
  padding: 18px;
  overflow: hidden;
}

.feature::before {
  content: none;
}

.feature strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(15, 107, 104, 0.16);
  border-radius: 8px;
  background: #f5fbfa;
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.feature:nth-child(2) .step-label {
  border-color: rgba(227, 107, 44, 0.2);
  background: #fff7f1;
  color: #9b461c;
}

.feature:nth-child(3) .step-label {
  border-color: #d9e2ec;
  background: #f8fafc;
  color: #405066;
}

.feature span,
.muted,
.hint {
  color: var(--muted);
}

.feature span,
.hint {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.48;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.auth-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.auth-panel::before {
  content: "";
  display: block;
  height: 4px;
  margin: -22px -22px 20px;
  background: var(--primary);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 25px 26px 0;
}

.panel-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.panel-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.5;
}

.panel-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.panel-body {
  padding: 22px 26px 26px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid #e5ebf2;
  border-radius: 999px;
  background: #f3f6f9;
}

.tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab.active {
  background: #fff;
  color: var(--primary-dark);
  border-color: #d7e0ea;
}

.admin-tabs {
  grid-template-columns: repeat(8, 1fr);
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (max-width: 980px) {
  .admin-tabs {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border-radius: 16px;
  }
  .admin-tabs .tab {
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .admin-tabs {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
}

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

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

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

label {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5868' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 46px !important;
  cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
  background-color: #fcfdff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 107, 104, 0.13);
}

.error {
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
  background: #073738;
  border-color: #073738;
}

.btn-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
}

.btn-danger {
  border-color: #ffd2ca;
  background: #fff3f1;
  color: var(--danger);
}

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

.sidebar {
  position: sticky;
  top: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.identity {
  padding: 16px;
  border: 1px solid rgba(15, 107, 104, 0.14);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(15, 107, 104, 0.085), rgba(227, 107, 44, 0.055)),
    #fff;
}

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

.identity strong {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.identity span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 11px;
  background: transparent;
  color: #4b5868;
  text-align: left;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
  background: var(--surface-muted);
  color: var(--primary-dark);
}

.nav-item.active {
  border-color: rgba(15, 107, 104, 0.18);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 1px solid #d5dee8;
  border-radius: 7px;
  background: #f8fafc;
}

.dot.done {
  border-color: rgba(22, 131, 74, 0.26);
  background: #f0fbf5;
  box-shadow: none;
}

.dot.done::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.metric {
  position: relative;
  padding: 18px;
  overflow: hidden;
}


.metric span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #334155;
  font-weight: 700;
}

.choice input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--primary);
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.list-item {
  padding: 16px;
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.item-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 28px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 5px 10px;
  background: #f8fafc;
  color: #3d4b5d;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.72;
}

.badge.success {
  border-color: #bde8cd;
  background: #f0fbf5;
  color: #157347;
}

.badge.warning {
  border-color: #f3d79b;
  background: #fff8e8;
  color: #946000;
}

.badge.danger {
  border-color: #fac6bf;
  background: #fff3f1;
  color: #b42318;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.summary-card {
  padding: 17px;
}

.summary-card h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.kv {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid #edf2f6;
  color: var(--text);
  font-size: 0.9rem;
}

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

.kv span:first-child {
  color: var(--muted);
  font-weight: 800;
}

.notice {
  padding: 14px 15px;
  border: 1px solid rgba(15, 107, 104, 0.18);
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.notice.warn {
  border-color: #f5d088;
  background: #fff7e6;
  color: #7a4100;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-review-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.admin-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2f6;
}

.admin-detail-head h3 {
  margin: 10px 0 5px;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.25;
}

.admin-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-status-field {
  width: min(230px, 100%);
}

.admin-issue-box {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid #cfe8da;
  border-radius: 11px;
  background: #f3fbf6;
}

.admin-issue-box.has-issues {
  border-color: #f3d79b;
  background: #fff8e8;
}

.admin-issue-box h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.admin-issue-box p,
.admin-issue-box ul {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-issue-box ul {
  padding-left: 18px;
}

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

.admin-section,
.admin-subsection {
  border: 1px solid #edf2f6;
  border-radius: 11px;
  background: var(--surface-muted);
  padding: 15px;
}

.admin-section.wide {
  grid-column: 1 / -1;
}

.admin-section h4,
.admin-subsection h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.admin-subsection {
  margin-top: 14px;
}

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

.admin-list-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.admin-list-item strong {
  color: var(--ink);
  font-size: 0.93rem;
}

.admin-list-item span {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
}

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

.product-review-grid .kv.wide {
  grid-column: 1 / -1;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 14px;
  border-bottom: 1px solid #edf2f6;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

td .btn {
  min-height: 36px;
  padding: 7px 11px;
}

th {
  background: #f8fafc;
  color: #5c697a;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #fbfcfe;
}

.empty {
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
  max-width: 360px;
  border-radius: 12px;
  padding: 14px 16px;
  background: #121826;
  color: #fff;
  border: 1px solid #1c2536;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.toast.show {
  display: block;
}

.hidden {
  display: none !important;
}

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

  .auth-panel,
  .sidebar {
    position: static;
  }

  .feature-grid,
  .metrics,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

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

  .top-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .top-actions .btn {
    flex: 1 1 140px;
  }

  .page {
    width: min(100% - 24px, 1240px);
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(2.1rem, 13vw, 3.25rem);
  }

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

  .panel-head,
  .panel-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .panel-head {
    display: grid;
  }

  .panel-action {
    justify-content: flex-start;
  }

  .auth-panel {
    padding: 18px;
  }

  .auth-panel::before {
    margin: -18px -18px 18px;
  }

  .item-head {
    display: grid;
  }

  .admin-detail-head,
  .admin-section-grid,
  .product-review-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-head {
    display: grid;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
