:root {
  --red: #f04438;
  --red-dark: #d92d20;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f7f8fa;
  --white: #fff;
  --green: #039855;
  --blue: #1570ef;
  --sidebar: #0c111d;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f5f6f8;
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}
body,
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  border: 0;
}
button,
select {
  cursor: pointer;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand > span:last-child {
  display: grid;
  line-height: 1.05;
}
.brand b {
  font:
    800 20px/1 "Manrope",
    sans-serif;
  letter-spacing: -0.04em;
}
.brand small {
  color: #98a2b3;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.brand-mark {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  border: 8px solid var(--red);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 8px;
  right: -9px;
  bottom: -4px;
  background: var(--white);
}
.brand-mark i {
  position: absolute;
  width: 6px;
  height: 6px;
  right: -7px;
  bottom: -3px;
  border-radius: 50%;
  background: var(--red);
}
.eyebrow {
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.primary-button,
.secondary-button,
.small-button {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}
.primary-button:hover {
  background: var(--red-dark);
}
.secondary-button {
  color: #344054;
  background: #fff;
  border: 1px solid #d0d5dd;
}
.small-button {
  min-height: 36px;
  padding: 0 14px;
  background: var(--ink);
}
.alert,
.flash {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
}
.alert.error,
.flash.error {
  color: #912018;
  background: #fef3f2;
  border: 1px solid #fecdca;
}
.alert.success,
.flash.success {
  color: #05603a;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 76px !important;
}
.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  padding: 5px 8px;
  color: #475467;
  background: transparent;
  font-size: 10px;
  transform: translateY(-50%);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef0f3;
}
.auth-shell {
  width: min(980px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(16, 24, 40, 0.16);
}
.auth-brand {
  position: relative;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #182230, #0c111d 75%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  top: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.03),
    0 0 0 140px rgba(240, 68, 56, 0.06);
}
.auth-brand .brand {
  position: relative;
  z-index: 1;
}
.auth-brand .brand-mark::after {
  background: #182230;
}
.auth-brand .brand small {
  color: #98a2b3;
}
.auth-brand > div {
  position: relative;
  z-index: 1;
}
.auth-brand h1 {
  max-width: 420px;
  margin: 15px 0;
  font:
    800 45px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.045em;
}
.auth-brand p {
  max-width: 410px;
  color: #98a2b3;
  font-size: 14px;
}
.auth-brand > small {
  position: relative;
  z-index: 1;
  color: #667085;
  font-size: 10px;
}
.auth-form {
  padding: 65px;
  display: grid;
  align-items: center;
}
.auth-form form {
  display: grid;
  gap: 16px;
}
.form-head {
  margin-bottom: 7px;
}
.form-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.form-head h2 {
  margin: 6px 0 2px;
  font:
    800 29px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -0.035em;
}
.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.auth-form label,
.setup-card label,
.editor-form label,
.settings-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
}
.auth-form input,
.setup-card input,
.editor-form input,
.editor-form select,
.editor-form textarea,
.settings-form input,
.settings-form textarea,
.order-update input,
.order-update select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  outline: 0;
}
.auth-form input:focus,
.setup-card input:focus,
.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus,
.settings-form input:focus,
.settings-form textarea:focus,
.order-update input:focus,
.order-update select:focus {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.08);
}
.setup-link {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.setup-link:hover {
  color: var(--red);
}
.setup-page {
  min-height: 100vh;
  padding: 40px 20px;
  display: grid;
  place-items: center;
  background: #eef0f3;
}
.setup-card {
  width: min(520px, 100%);
  padding: 38px;
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 25px 65px rgba(16, 24, 40, 0.14);
}
.setup-card .brand {
  margin-bottom: 35px;
}
.setup-card .eyebrow {
  display: block;
}
.setup-card h1 {
  margin: 8px 0;
  font:
    800 32px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -0.04em;
}
.setup-card > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
}
.setup-card form {
  display: grid;
  gap: 14px;
}

.dashboard-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: 255px;
  padding: 25px 17px 18px;
  display: flex;
  flex-direction: column;
  color: #98a2b3;
  background: var(--sidebar);
}
.sidebar-head {
  padding: 0 9px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-dark b {
  color: #fff;
}
.brand-dark .brand-mark::after {
  background: var(--sidebar);
}
.sidebar-close {
  display: none;
  color: #fff;
  background: transparent;
  font-size: 24px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-label {
  margin: 21px 11px 7px;
  color: #475467;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sidebar-nav a {
  min-height: 42px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
}
.sidebar-nav a i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #667085;
  font-style: normal;
  font-size: 12px;
}
.sidebar-nav a b {
  min-width: 20px;
  padding: 2px 6px;
  color: #98a2b3;
  background: #1d2939;
  border-radius: 999px;
  font-size: 8px;
  text-align: center;
}
.sidebar-nav a .new-count {
  color: #fff;
  background: var(--red);
}
.sidebar-nav a:hover {
  color: #fff;
  background: #151d2b;
}
.sidebar-nav a.active {
  color: #fff;
  background: #1d2939;
}
.sidebar-nav a.active i {
  color: #ff756b;
}
.sidebar-foot {
  margin-top: auto;
  padding: 15px 8px 0;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #1d2939;
}
.admin-avatar,
.mini-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--red), #ff756b);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.sidebar-foot > div:nth-child(2) {
  display: grid;
}
.sidebar-foot b {
  color: #fff;
  font-size: 10px;
}
.sidebar-foot small {
  color: #667085;
  font-size: 8px;
}
.sidebar-foot > a {
  padding: 7px;
  font-size: 13px;
}
.sidebar-backdrop {
  display: none;
}
.dashboard-main {
  min-height: 100vh;
  margin-left: 255px;
  padding: 0 35px 55px;
}
.dashboard-header {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.dashboard-header > div:nth-child(2) {
  flex: 1;
}
.dashboard-header h1 {
  margin: 0;
  font:
    800 25px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -0.035em;
}
.dashboard-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.header-actions {
  display: flex;
  gap: 10px;
}
.flash {
  position: relative;
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.flash > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.flash button {
  margin-left: auto;
  color: inherit;
  background: transparent;
}
.stats-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stats-grid article {
  padding: 19px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.stat-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 14px;
}
.stat-icon.coral {
  color: var(--red);
  background: #fff1f0;
}
.stat-icon.blue {
  color: #175cd3;
  background: #eff8ff;
}
.stat-icon.green {
  color: #027a48;
  background: #ecfdf3;
}
.stat-icon.purple {
  color: #6938ef;
  background: #f4f3ff;
}
.stats-grid article div {
  display: grid;
}
.stats-grid small {
  color: var(--muted);
  font-size: 9px;
}
.stats-grid strong {
  font:
    800 27px/1.2 "Manrope",
    sans-serif;
}
.stats-grid article a {
  grid-column: 1/-1;
  padding-top: 11px;
  color: #475467;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
}
.content-grid {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}
.overview-grid {
  grid-template-columns: 1.55fr 0.75fr;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.panel-head {
  min-height: 68px;
  padding: 16px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head > div:first-child {
  display: grid;
}
.panel-head span {
  font-size: 13px;
  font-weight: 700;
}
.panel-head small {
  color: var(--muted);
  font-size: 9px;
}
.panel-head a {
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 700;
}
.compact-list article {
  min-height: 64px;
  padding: 11px 19px;
  display: grid;
  grid-template-columns: 34px 1fr auto 80px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.compact-list article:last-child {
  border-bottom: 0;
}
.compact-list article > div:nth-child(2) {
  display: grid;
}
.compact-list b {
  font-size: 10px;
}
.compact-list small {
  color: var(--muted);
  font-size: 8px;
}
.compact-list time {
  color: #98a2b3;
  font-size: 8px;
  text-align: right;
}
.status {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-new {
  color: #b54708;
  background: #fffaeb;
}
.status-contacted {
  color: #175cd3;
  background: #eff8ff;
}
.status-completed {
  color: #027a48;
  background: #ecfdf3;
}
.status-cancelled {
  color: #b42318;
  background: #fef3f2;
}
.quick-panel {
  align-self: start;
}
.quick-panel > a {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.quick-panel > a i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff1f0;
  border-radius: 8px;
  font-style: normal;
}
.quick-panel > a span {
  display: grid;
}
.quick-panel > a b {
  font-size: 10px;
}
.quick-panel > a small {
  color: var(--muted);
  font-size: 8px;
}
.content-reminder {
  margin: 16px;
  padding: 14px;
  color: #854a0e;
  background: #fffaeb;
  border-radius: 10px;
}
.content-reminder b {
  font-size: 10px;
}
.content-reminder p {
  margin: 4px 0 0;
  font-size: 8px;
}
.empty-state {
  min-height: 260px;
  padding: 40px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.empty-state > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff1f0;
  border-radius: 50%;
}
.empty-state b {
  margin-top: 10px;
  font-size: 12px;
}
.empty-state p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 9px;
}

.editor-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 18px;
  align-items: start;
}
.editor-form {
  padding-bottom: 19px;
}
.editor-form > .panel-head {
  margin-bottom: 18px;
}
.form-grid {
  padding: 0 19px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.span-2 {
  grid-column: span 2;
}
.editor-form > label {
  margin: 0 19px 14px;
}
.editor-form textarea,
.settings-form textarea {
  resize: vertical;
}
.editor-form > .primary-button {
  margin: 18px 19px 0;
  width: calc(100% - 38px);
}
.check-label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  align-self: end;
  min-height: 42px;
}
.check-label input {
  width: 17px !important;
  height: 17px;
  accent-color: var(--red);
}
.table-panel {
  min-width: 0;
}
.table-search {
  min-width: 150px;
  height: 34px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #98a2b3;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.table-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 11px 14px;
  color: #667085;
  background: #f9fafb;
  font-size: 8px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  color: #475467;
  border-top: 1px solid var(--line);
  font-size: 9px;
  vertical-align: middle;
}
td:first-child {
  min-width: 150px;
}
td b {
  display: block;
  color: var(--ink);
  font-size: 10px;
}
td small {
  display: block;
  max-width: 260px;
  color: #98a2b3;
  font-size: 8px;
}
.row-actions {
  white-space: nowrap;
}
.row-actions a,
.danger-link {
  padding: 4px;
  color: #175cd3;
  background: transparent;
  font-size: 9px;
}
.row-actions form {
  display: inline;
}
.danger-link {
  color: #b42318;
}

.orders-panel {
  margin-top: 25px;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-list {
  padding: 17px;
  display: grid;
  gap: 12px;
}
.order-card {
  position: relative;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.order-summary {
  display: grid;
  grid-template-columns: 34px 1fr auto 115px;
  align-items: center;
  gap: 10px;
}
.order-summary > div:nth-child(2) {
  display: grid;
}
.order-summary b {
  font-size: 11px;
}
.order-summary small,
.order-summary time {
  color: var(--muted);
  font-size: 8px;
}
.order-summary time {
  text-align: right;
}
.order-detail {
  margin: 14px 0;
  padding: 13px;
  display: grid;
  grid-template-columns: 0.55fr 1.2fr auto;
  gap: 16px;
  background: #f9fafb;
  border-radius: 10px;
}

.order-detail {
  grid-template-columns: 0.55fr 0.7fr 1.2fr auto;
}
.order-detail > div {
  display: grid;
  align-content: start;
}
.order-detail span {
  color: #98a2b3;
  font-size: 8px;
  text-transform: uppercase;
}
.order-detail b {
  font-size: 10px;
}
.order-detail p {
  margin: 2px 0;
  color: #475467;
  font-size: 9px;
}
.whatsapp-link {
  align-self: center;
  color: #027a48;
  font-size: 9px;
  font-weight: 700;
}
.order-update {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 9px;
  align-items: end;
}
.order-update label {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 8px;
}
.delete-order {
  position: absolute;
  right: 10px;
  bottom: -2px;
  transform: translateY(100%);
  display: none;
}
.settings-form {
  margin-top: 25px;
}
.settings-section {
  padding: 25px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.settings-section > div:first-child > span {
  font-size: 12px;
  font-weight: 700;
}
.settings-section > div:first-child > p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 9px;
}
.settings-section .form-grid {
  padding: 0;
}
.settings-actions {
  padding: 20px 25px;
  display: flex;
  justify-content: flex-end;
}
.security-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.security-grid .editor-form {
  padding: 0 0 20px;
}
.security-tips {
  padding: 22px;
}
.security-tips > span {
  font-size: 12px;
  font-weight: 700;
}
.security-tips ul {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}
.security-tips li {
  position: relative;
  padding-left: 24px;
  color: #475467;
  font-size: 10px;
}
.security-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #027a48;
  background: #ecfdf3;
  border-radius: 50%;
  font-size: 8px;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .editor-grid {
    grid-template-columns: 340px 1fr;
  }
  .dashboard-main {
    padding-inline: 24px;
  }
  .settings-section {
    grid-template-columns: 210px 1fr;
    gap: 25px;
  }
}
@media (max-width: 880px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-close,
  .sidebar-toggle {
    display: block;
  }
  .sidebar-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(12, 17, 29, 0.55);
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .dashboard-main {
    margin-left: 0;
  }
  .editor-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .editor-form {
    order: 1;
  }
  .table-panel {
    order: 2;
  }
  .settings-section {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
  .auth-form {
    padding: 45px;
  }
}
@media (max-width: 620px) {
  .dashboard-main {
    padding: 0 14px 40px;
  }
  .dashboard-header {
    min-height: 88px;
  }
  .dashboard-header p {
    display: none;
  }
  .header-actions .secondary-button {
    width: 40px;
    padding: 0;
    font-size: 0;
  }
  .header-actions .secondary-button span {
    font-size: 14px;
  }
  .stats-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-actions {
    width: 100%;
  }
  .table-search {
    flex: 1;
  }
  .compact-list article {
    grid-template-columns: 34px 1fr auto;
  }
  .compact-list time {
    display: none;
  }
  .editor-grid {
    display: block;
  }
  .table-panel {
    margin-top: 16px;
  }
  .order-summary {
    grid-template-columns: 34px 1fr auto;
  }
  .order-summary time {
    display: none;
  }
  .order-detail {
    grid-template-columns: 1fr;
  }
  .order-update {
    grid-template-columns: 1fr;
  }
  .settings-section {
    padding: 19px;
  }
  .auth-page {
    padding: 0;
  }
  .auth-shell {
    min-height: 100vh;
    border-radius: 0;
  }
  .auth-form {
    padding: 30px;
  }
  .setup-page {
    padding: 0;
  }
  .setup-card {
    min-height: 100vh;
    border-radius: 0;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* Modal content management and product media — v1.2 */
body.modal-open {
  overflow: hidden;
}

.content-manager,
.package-manager {
  margin-top: 28px;
}

.manager-head,
.manager-toolbar {
  gap: 20px;
}

.manager-head > div:first-child {
  flex: 1;
}

.manager-head .panel-actions {
  margin-left: auto;
}

.manager-toolbar {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.manager-toolbar h2 {
  margin: 6px 0 3px;
  font:
    800 24px/1.2 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.035em;
}

.manager-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.category-stack {
  display: grid;
  gap: 16px;
}

.package-category-panel .panel-head > div:first-child {
  flex: 1;
}

.item-with-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #dbeafe;
  border-radius: 9px;
}

.table-thumb img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.condition-badge {
  padding: 4px 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
}

.modal-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 24px;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-shell.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.24);
}

.modal-card-wide {
  width: min(840px, 100%);
}

.modal-head {
  position: sticky;
  z-index: 3;
  top: 0;
  padding: 22px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.modal-head h2 {
  margin: 5px 0 2px;
  font:
    800 22px/1.25 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.035em;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.modal-close {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 20px;
}

.modal-form.editor-form {
  padding: 22px 24px 24px;
}

.modal-form .form-grid {
  padding: 0;
}

.modal-actions {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.image-upload {
  margin-bottom: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.image-preview {
  height: 130px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
}

.image-preview img {
  width: 100%;
  height: 100%;
  padding: 7px;
  object-fit: contain;
}

.image-preview span {
  padding: 16px;
  display: grid;
}

.image-preview b {
  color: #334155;
  font-size: 10px;
}

.image-preview small {
  font-size: 8px;
}

.image-upload > div:last-child {
  display: grid;
  gap: 12px;
}

@media (max-width: 620px) {
  .manager-toolbar,
  .manager-head {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-head .panel-actions {
    width: 100%;
    margin-left: 0;
  }

  .manager-head .primary-button,
  .manager-toolbar .primary-button {
    width: 100%;
  }

  .modal-shell {
    padding: 0;
  }

  .modal-card {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .modal-head,
  .modal-form.editor-form {
    padding-inline: 18px;
  }

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

  .image-preview {
    height: 180px;
  }
}

/* Professional Growthive dashboard visual system — v1.1 */
:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #fff;
  --green: #059669;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --sidebar: #ffffff;
}

body {
  color: var(--ink);
  background: #f8fafc;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.brand b,
.auth-brand h1,
.form-head h2,
.setup-card h1,
.dashboard-header h1,
.stats-grid strong {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.brand b {
  color: var(--ink);
  font-size: 19px;
}

.brand small {
  color: #94a3b8;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 33px;
  height: 33px;
  border-width: 7px;
}

.eyebrow {
  color: var(--blue-dark);
}

.primary-button,
.secondary-button,
.small-button {
  min-height: 43px;
  border-radius: 9px;
}

.primary-button {
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.secondary-button {
  color: #334155;
  border-color: #cbd5e1;
}

.small-button {
  background: var(--ink);
}

.auth-page,
.setup-page {
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(37, 99, 235, 0.08),
      transparent 26%
    ),
    #f1f5f9;
}

.auth-shell {
  width: min(1020px, 100%);
  min-height: 610px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.auth-brand {
  padding: 54px;
  background:
    linear-gradient(150deg, rgba(37, 99, 235, 0.9), rgba(15, 23, 42, 0.98)),
    #0f172a;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 44px 44px;
}

.auth-brand::after {
  right: -235px;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.035),
    0 0 0 140px rgba(255, 255, 255, 0.02);
}

.auth-brand .brand,
.auth-brand > div,
.auth-brand > small {
  position: relative;
  z-index: 2;
}

.auth-brand .brand b {
  color: #fff;
}

.auth-brand .brand-mark::after {
  background: #2456ad;
}

.auth-brand h1 {
  font-size: 43px;
  line-height: 1.12;
}

.auth-brand p {
  color: #cbd5e1;
  line-height: 1.7;
}

.auth-brand .eyebrow {
  color: #bfdbfe;
}

.auth-brand > small {
  color: #94a3b8;
}

.auth-form {
  padding: 70px;
}

.form-head span {
  color: var(--blue);
}

.auth-form input,
.setup-card input,
.editor-form input,
.editor-form select,
.editor-form textarea,
.settings-form input,
.settings-form textarea,
.order-update input,
.order-update select {
  background: #fff;
  border-color: #cbd5e1;
  border-radius: 8px;
}

.auth-form input:focus,
.setup-card input:focus,
.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus,
.settings-form input:focus,
.settings-form textarea:focus,
.order-update input:focus,
.order-update select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.setup-link:hover {
  color: var(--blue);
}

.setup-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.dashboard-page {
  background: #f8fafc;
}

.sidebar {
  width: 268px;
  padding: 24px 18px 18px;
  color: #64748b;
  background: #fff;
  border-right: 1px solid var(--line);
}

.sidebar-head {
  padding-bottom: 24px;
}

.brand-dark b {
  color: var(--ink);
}

.brand-dark .brand-mark::after {
  background: #fff;
}

.sidebar-close {
  color: var(--ink);
}

.nav-label {
  color: #94a3b8;
  font-size: 9px;
}

.sidebar-nav {
  gap: 4px;
}

.sidebar-nav a {
  min-height: 43px;
  color: #64748b;
  border-radius: 9px;
  font-size: 11px;
}

.sidebar-nav a i {
  color: #94a3b8;
}

.sidebar-nav a b {
  color: #64748b;
  background: #f1f5f9;
}

.sidebar-nav a:hover {
  color: var(--ink);
  background: #f8fafc;
}

.sidebar-nav a.active {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.sidebar-nav a.active i {
  color: var(--blue);
}

.sidebar-nav a .new-count {
  color: #fff;
  background: var(--blue);
}

.sidebar-foot {
  border-top-color: var(--line);
}

.admin-avatar,
.mini-avatar {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 9px;
}

.sidebar-foot b {
  color: var(--ink);
}

.sidebar-foot small {
  color: #94a3b8;
}

.sidebar-foot > a {
  color: #64748b;
}

.dashboard-main {
  margin-left: 268px;
  padding: 0 38px 60px;
}

.dashboard-header {
  min-height: 104px;
  border-bottom-color: var(--line);
}

.dashboard-header h1 {
  font-size: 25px;
}

.dashboard-header p {
  color: var(--muted);
  font-size: 11px;
}

.sidebar-toggle {
  border-color: var(--line);
  border-radius: 8px;
}

.stats-grid {
  margin-top: 28px;
  gap: 16px;
}

.stats-grid article {
  padding: 21px;
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.stat-icon {
  border-radius: 9px;
}

.stat-icon.coral,
.stat-icon.blue {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.stats-grid article a:hover {
  color: var(--blue);
}

.content-grid {
  gap: 20px;
  margin-top: 20px;
}

.panel {
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.panel-head {
  min-height: 70px;
  padding: 17px 20px;
}

.panel-head a {
  color: var(--blue-dark);
}

.quick-panel > a i {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.content-reminder {
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.editor-grid,
.orders-panel,
.settings-form,
.security-grid {
  margin-top: 28px;
}

.editor-form .primary-button,
.settings-actions .primary-button {
  min-width: 145px;
}

.table-search {
  border-color: #cbd5e1;
  border-radius: 8px;
}

th {
  color: #64748b;
  background: #f8fafc;
}

td {
  color: #475569;
}

.row-actions a {
  color: var(--blue-dark);
}

.order-card {
  border-radius: 11px;
}

.order-detail {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 9px;
}

.settings-section {
  padding: 27px;
}

.security-tips li::before {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

@media (max-width: 1100px) {
  .dashboard-main {
    padding-inline: 24px;
  }
}

@media (max-width: 880px) {
  .sidebar {
    box-shadow: 12px 0 35px rgba(15, 23, 42, 0.12);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .auth-form {
    padding: 48px;
  }
}

@media (max-width: 620px) {
  .auth-shell,
  .setup-card {
    border: 0;
    border-radius: 0;
  }

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