.dashboard-page,
.admin-page {
  --sidebar-width: 252px;
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #f3f4f0;
}

.admin-page {
  --primary: #6d55df;
  --primary-dark: #5941c7;
  --primary-soft: #efecff;
  --secondary: #ef5b3f;
  --secondary-soft: #fff0eb;
}

.app-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

[dir="ltr"] .app-shell {
  direction: ltr;
}

.app-sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 120;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  background: #171a17;
  box-shadow: 8px 0 25px rgba(17, 20, 17, 0.05);
  transition: width 220ms ease, transform 240ms ease;
}

[dir="rtl"] .app-sidebar {
  box-shadow: -8px 0 25px rgba(17, 20, 17, 0.05);
}

.admin-page .app-sidebar {
  background: #151524;
}

.app-sidebar::before {
  position: absolute;
  inset-block-start: -110px;
  inset-inline-end: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  opacity: 0.26;
  background: radial-gradient(circle, var(--primary), transparent 68%);
  content: "";
  pointer-events: none;
}

.app-sidebar__header {
  position: relative;
  display: flex;
  height: 78px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
}

.app-sidebar .brand {
  min-width: 0;
}

.app-sidebar .brand strong {
  color: #fff;
  font-size: 18px;
}

.app-sidebar .brand small {
  color: rgba(255, 255, 255, 0.42);
}

.app-sidebar__collapse {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.app-sidebar__restaurant {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.app-sidebar__restaurant img {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.app-sidebar__restaurant div {
  min-width: 0;
  flex: 1;
}

.app-sidebar__restaurant strong,
.app-sidebar__restaurant small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__restaurant strong {
  color: #fff;
  font-size: 11px;
}

.app-sidebar__restaurant small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.app-sidebar__restaurant .status-dot {
  position: absolute;
  inset-block-end: 9px;
  inset-inline-start: 38px;
  width: 8px;
  height: 8px;
  border: 2px solid #252825;
  border-radius: 50%;
  background: #32bd84;
}

.app-sidebar__nav {
  min-height: 0;
  flex: 1;
  padding: 1px 10px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.13) transparent;
  scrollbar-width: thin;
}

.app-sidebar__section-label {
  display: block;
  margin: 14px 10px 7px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-nav-link {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 11px;
  margin-bottom: 2px;
  padding: 8px 11px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  transition: color var(--transition), background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.app-nav-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  opacity: 0.85;
}

.app-nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(-2px);
}

[dir="ltr"] .app-nav-link:hover {
  transform: translateX(2px);
}

.app-nav-link.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 24%, transparent);
}

.app-nav-link__badge {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  margin-inline-start: auto;
  padding: 0 5px;
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 8px;
  font-weight: 800;
}

.app-nav-link:not(.is-active) .app-nav-link__badge {
  color: #ffb9a9;
  background: rgba(239, 91, 63, 0.13);
}

.app-sidebar__footer {
  padding: 11px 12px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-plan {
  position: relative;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-plan::after {
  position: absolute;
  inset-block-start: -30px;
  inset-inline-end: -24px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(239, 91, 63, 0.15);
  content: "";
}

.sidebar-plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sidebar-plan__top strong {
  color: #fff;
  font-size: 10px;
}

.sidebar-plan__top span {
  color: #ffc3b5;
  font-size: 8px;
}

.sidebar-plan .progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-plan small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 8px;
}

.app-main {
  min-width: 0;
  grid-column: 2;
}

.app-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 90;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 2.5vw, 35px);
  border-bottom: 1px solid rgba(220, 223, 216, 0.82);
  background: rgba(248, 249, 246, 0.89);
  backdrop-filter: blur(18px);
}

.app-topbar__start,
.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-topbar__menu {
  display: none;
}

.app-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.app-breadcrumbs strong {
  color: var(--ink);
  font-size: 11px;
}

.topbar-search {
  width: min(28vw, 290px);
}

.topbar-search .input {
  min-height: 38px;
  border-color: transparent;
  background: #eef0eb;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 5px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

[dir="rtl"] .topbar-user {
  padding: 4px 9px 4px 5px;
}

.topbar-user__info {
  min-width: 0;
}

.topbar-user strong,
.topbar-user small {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user strong {
  font-size: 10px;
}

.topbar-user small {
  color: var(--muted);
  font-size: 8px;
}

.app-content {
  width: min(100%, 1560px);
  margin-inline: auto;
  padding: 27px clamp(18px, 2.5vw, 35px) 50px;
}

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

.page-heading__content {
  min-width: 0;
}

.page-heading h1 {
  margin-bottom: 4px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

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

.page-heading__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.trial-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid #e6dcc5;
  border-radius: 15px;
  background: linear-gradient(105deg, #fff8e9, #fffdf7);
}

.trial-banner::after {
  position: absolute;
  inset-block-start: -55px;
  inset-inline-end: 5%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  opacity: 0.3;
  background: #f0b649;
  content: "";
}

.trial-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trial-banner__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #a66d09;
  background: #ffe8b8;
}

.trial-banner strong,
.trial-banner small {
  display: block;
}

.trial-banner strong {
  font-size: 11px;
}

.trial-banner small {
  color: #886f3d;
  font-size: 9px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.metric-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.metric-card__icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--metric-color, var(--primary));
  background: var(--metric-soft, var(--primary-soft));
}

.metric-card__spark {
  width: 55px;
  height: 24px;
}

.metric-card__label {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card__value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.metric-card__value strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 0.8fr);
  gap: 17px;
  margin-bottom: 17px;
}

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

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

.chart-card {
  min-width: 0;
}

.chart-card canvas {
  width: 100%;
  height: 260px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--legend-color, var(--primary));
}

.menu-status-card {
  position: relative;
  min-height: 315px;
  padding: 21px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.65);
  background: #1b1e1a;
}

.menu-status-card::before {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-end: -95px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(239, 91, 63, 0.18);
  content: "";
}

.menu-status-card::after {
  position: absolute;
  inset-block-end: -100px;
  inset-inline-start: -75px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(116, 87, 232, 0.13);
  content: "";
}

.menu-status-card__top,
.menu-status-card__body,
.menu-status-card__actions {
  position: relative;
  z-index: 1;
}

.menu-status-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-status-card h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.menu-status-card__body {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

.menu-status-card__logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
}

.menu-status-card__body strong,
.menu-status-card__body small {
  display: block;
}

.menu-status-card__body strong {
  color: #fff;
  font-size: 14px;
}

.menu-status-card__body small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.menu-status-card__url {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 8px;
  color: #f5c3b8;
  font-size: 8px;
}

.menu-status-card__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.menu-status-card__actions .button--ghost {
  border-color: rgba(255, 255, 255, 0.13);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.popular-list {
  display: grid;
  gap: 3px;
}

.popular-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 7px;
  border-radius: 11px;
  transition: background var(--transition);
}

.popular-item:hover {
  background: var(--surface-2);
}

.popular-item__rank {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 8px;
  font-weight: 800;
}

.popular-item:nth-child(1) .popular-item__rank {
  color: #80520b;
  background: #ffebb8;
}

.popular-item img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.popular-item__info {
  min-width: 0;
}

.popular-item__info strong,
.popular-item__info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-item__info strong {
  font-size: 10px;
}

.popular-item__info small {
  color: var(--muted);
  font-size: 8px;
}

.popular-item__value {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.activity-list {
  display: grid;
}

.activity-item {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 8px 0 15px;
}

.activity-item:not(:last-child)::after {
  position: absolute;
  inset-block-start: 35px;
  inset-block-end: -2px;
  inset-inline-start: 15px;
  width: 1px;
  background: var(--line);
  content: "";
}

.activity-item__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}

.activity-item strong,
.activity-item small {
  display: block;
}

.activity-item strong {
  font-size: 10px;
}

.activity-item small {
  color: var(--muted);
  font-size: 8px;
}

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

.quick-action {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quick-action:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quick-action__icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--action-color, var(--primary));
  background: var(--action-soft, var(--primary-soft));
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action strong {
  font-size: 10px;
}

.quick-action small {
  color: var(--muted);
  font-size: 8px;
}

/* Menu builder and categories */
.menu-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 17px;
}

.sortable-list {
  display: grid;
  gap: 8px;
}

.sortable-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.sortable-item[draggable="true"] {
  cursor: grab;
}

.sortable-item.is-dragging {
  opacity: 0.45;
  box-shadow: var(--shadow-md);
  transform: scale(0.99);
}

.sortable-item.is-drag-over {
  border-color: var(--primary);
  transform: translateY(3px);
}

.sortable-item__handle {
  color: #a2a7a0;
  cursor: grab;
}

.sortable-item__image {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.sortable-item__image img {
  width: 100%;
  height: 100%;
}

.sortable-item__info {
  min-width: 0;
}

.sortable-item__info strong,
.sortable-item__info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sortable-item__info strong {
  font-size: 11px;
}

.sortable-item__info small {
  color: var(--muted);
  font-size: 8px;
}

.sortable-item__count {
  min-width: 68px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.category-insights {
  display: grid;
  gap: 13px;
}

.category-insight {
  position: relative;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.category-insight h3 {
  margin-bottom: 8px;
  font-size: 12px;
}

.category-insight p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
}

.category-insight__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-insight__stats div {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

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

.category-insight__stats strong {
  font-size: 16px;
}

.category-insight__stats small {
  color: var(--muted);
  font-size: 8px;
}

/* Products */
.product-view-toggle {
  flex: 0 0 auto;
}

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

.admin-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.admin-product-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.admin-product-card__image {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: var(--surface-2);
}

.admin-product-card__image img {
  width: 100%;
  height: 100%;
  transition: transform 400ms ease;
}

.admin-product-card:hover .admin-product-card__image img {
  transform: scale(1.04);
}

.admin-product-card__status {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
}

.admin-product-card__menu {
  position: absolute;
  inset-block-start: 9px;
  inset-inline-end: 9px;
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(7px);
}

.admin-product-card__body {
  padding: 13px;
}

.admin-product-card__category {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 8px;
  font-weight: 700;
}

.admin-product-card h3 {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-card p {
  display: -webkit-box;
  min-height: 29px;
  margin-bottom: 11px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-product-card__price {
  font-size: 12px;
  font-weight: 800;
}

.product-flags {
  display: flex;
  gap: 4px;
}

.product-flag {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: var(--warning);
  background: var(--warning-soft);
}

.product-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 20px;
}

.product-form-main,
.product-form-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.form-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.form-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.form-section__heading h3 {
  margin: 0;
  font-size: 12px;
}

.form-section__heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.repeatable-list {
  display: grid;
  gap: 8px;
}

.repeatable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.35fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.product-image-preview {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-2);
}

.product-image-preview img {
  width: 100%;
  height: 100%;
}

.product-image-preview__action {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
}

/* Extras and offers */
.extras-grid,
.offers-grid,
.branches-grid,
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.extra-group-card,
.offer-admin-card,
.branch-card,
.staff-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.extra-group-card__header,
.branch-card__header,
.staff-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.extra-group-card__header h3,
.branch-card__header h3,
.staff-card__header h3 {
  margin: 0 0 2px;
  font-size: 12px;
}

.extra-group-card__header p,
.branch-card__header p,
.staff-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.extra-items {
  padding: 8px 16px 14px;
}

.extra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 10px;
}

.extra-item:last-child {
  border: 0;
}

.extra-item strong {
  color: var(--primary-dark);
  font-size: 9px;
}

.extra-group-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #fafbf8;
}

.offer-admin-card__image {
  position: relative;
  height: 155px;
}

.offer-admin-card__image img {
  width: 100%;
  height: 100%;
}

.offer-admin-card__image .status {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
}

.offer-admin-card__body {
  padding: 15px;
}

.offer-admin-card__body h3 {
  margin-bottom: 4px;
  font-size: 13px;
}

.offer-admin-card__body p {
  min-height: 33px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9px;
}

.offer-admin-card__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.offer-admin-card__price strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.offer-admin-card__price del {
  color: var(--muted);
  font-size: 9px;
}

.offer-admin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

/* Orders */
.order-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 17px;
}

.order-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.order-stat__icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  color: var(--stat-color, var(--primary));
  background: var(--stat-soft, var(--primary-soft));
}

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

.order-stat strong {
  font-size: 17px;
}

.order-stat small {
  color: var(--muted);
  font-size: 8px;
}

.order-id {
  color: var(--primary-dark);
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.order-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 9px;
}

.order-details {
  display: grid;
  gap: 17px;
}

.order-details__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.order-details__summary div {
  padding: 11px;
  border-radius: 11px;
  background: var(--surface-2);
}

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

.order-details__summary strong {
  font-size: 11px;
}

.order-details__summary small {
  color: var(--muted);
  font-size: 8px;
}

/* Design editor */
.design-editor {
  display: grid;
  height: calc(100dvh - 126px);
  min-height: 650px;
  grid-template-columns: minmax(300px, 365px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.design-controls {
  min-height: 0;
  border-inline-end: 1px solid var(--line);
  background: #fff;
}

.design-controls__header {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.design-controls__header h2 {
  margin: 0;
  font-size: 14px;
}

.design-controls__body {
  height: calc(100% - 65px);
  overflow-y: auto;
}

.design-accordion {
  border-bottom: 1px solid var(--line);
}

.design-accordion__toggle {
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: start;
}

.design-accordion__toggle > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.design-accordion__toggle > span svg {
  color: var(--muted);
}

.design-accordion__toggle > svg:last-child {
  color: var(--muted);
  transition: transform var(--transition);
}

.design-accordion.is-open .design-accordion__toggle > svg:last-child {
  transform: rotate(180deg);
}

.design-accordion__panel {
  display: none;
  padding: 3px 16px 17px;
}

.design-accordion.is-open .design-accordion__panel {
  display: grid;
  gap: 13px;
  animation: accordion-in 200ms ease;
}

@keyframes accordion-in {
  from { opacity: 0; transform: translateY(-4px); }
}

.design-preview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #e9ebe6;
}

.design-preview__toolbar {
  display: flex;
  min-height: 65px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #daddd6;
  background: rgba(255, 255, 255, 0.65);
}

.design-preview__stage {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: start center;
  padding: 24px;
  overflow: auto;
  background-image: radial-gradient(#c9cdc5 1px, transparent 1px);
  background-size: 18px 18px;
}

.design-phone {
  width: 370px;
  min-height: 720px;
  padding: 8px;
  border-radius: 40px;
  background: #161816;
  box-shadow: 0 30px 70px rgba(23, 26, 22, 0.22);
  transition: width 300ms ease, border-radius 300ms ease;
}

.design-phone[data-device="tablet"] {
  width: min(720px, 100%);
  border-radius: 28px;
}

.design-phone[data-device="desktop"] {
  width: min(1100px, 100%);
  border-radius: 17px;
}

.design-phone__screen {
  height: 100%;
  min-height: 704px;
  overflow: hidden;
  border-radius: 33px;
  background: #fff;
}

.design-phone[data-device="tablet"] .design-phone__screen {
  border-radius: 22px;
}

.design-phone[data-device="desktop"] .design-phone__screen {
  border-radius: 11px;
}

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

.design-color-item label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.layout-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.layout-option {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}

.layout-option.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

.layout-option__visual {
  display: grid;
  height: 50px;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 5px;
  border-radius: 6px;
  background: var(--surface-2);
}

.layout-option__visual i {
  border-radius: 3px;
  background: #cfd3cc;
}

.layout-option[data-layout="list"] .layout-option__visual,
.layout-option[data-layout="sections"] .layout-option__visual {
  grid-template-columns: 1fr;
}

.layout-option small {
  display: block;
  padding-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

/* Theme dashboard */
.dashboard-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-theme-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.dashboard-theme-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.dashboard-theme-card.is-current {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.dashboard-theme-card__preview {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--theme-bg), color-mix(in srgb, var(--theme-primary) 12%, var(--theme-bg)));
}

.dashboard-theme-card__phone {
  width: 145px;
  height: 230px;
  margin: 18px auto 0;
  padding: 5px;
  border-radius: 21px 21px 0 0;
  background: #191b18;
  box-shadow: 0 15px 30px rgba(18, 21, 18, 0.18);
}

.dashboard-theme-card__screen {
  height: 100%;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  color: var(--theme-text);
  background: var(--theme-bg);
}

.dashboard-theme-card__cover {
  height: 65px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

.dashboard-theme-card__body {
  padding: 11px 8px;
}

.dashboard-theme-card__body > i {
  display: block;
  width: 48%;
  height: 5px;
  margin-bottom: 8px;
  border-radius: 5px;
  background: var(--theme-text);
}

.dashboard-theme-card__mini-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.dashboard-theme-card__mini-products i {
  height: 54px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius, 7px);
  background: var(--theme-card);
}

.dashboard-theme-card__current {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-size: 8px;
  font-weight: 800;
}

.dashboard-theme-card__meta {
  padding: 13px;
}

.dashboard-theme-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.dashboard-theme-card__title strong,
.dashboard-theme-card__title small {
  display: block;
}

.dashboard-theme-card__title strong {
  font-size: 11px;
}

.dashboard-theme-card__title small {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-theme-card__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

/* QR */
.qr-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 17px;
}

.qr-generator-card {
  padding: 22px;
}

.qr-preview-box {
  position: relative;
  display: grid;
  width: min(100%, 320px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto 20px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qr-preview-box::before,
.qr-preview-box::after {
  position: absolute;
  width: 65px;
  height: 65px;
  border-color: var(--primary);
  border-style: solid;
  content: "";
}

.qr-preview-box::before {
  inset-block-start: 13px;
  inset-inline-start: 13px;
  border-width: 2px 0 0 2px;
  border-radius: 13px 0 0;
}

[dir="rtl"] .qr-preview-box::before {
  border-width: 2px 2px 0 0;
  border-radius: 0 13px 0 0;
}

.qr-preview-box::after {
  inset-block-end: 13px;
  inset-inline-end: 13px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 13px;
}

[dir="rtl"] .qr-preview-box::after {
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 13px;
}

.qr-preview-box svg,
.qr-preview-box img {
  width: 100%;
  height: 100%;
}

.qr-logo-overlay {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  transform: translate(-50%, -50%);
}

[dir="rtl"] .qr-logo-overlay {
  transform: translate(50%, -50%);
}

.qr-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.qr-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}

[dir="rtl"] .qr-link-box {
  padding: 8px 12px 8px 8px;
}

.qr-link-box span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-designs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.print-design {
  position: relative;
  min-height: 225px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.print-design:hover,
.print-design.is-selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.print-design__canvas {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 15px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #1a1d19;
  text-align: center;
}

.print-design:nth-child(2) .print-design__canvas {
  color: #2d281f;
  background: #f0e5d1;
}

.print-design:nth-child(3) .print-design__canvas {
  background: linear-gradient(145deg, #ee6043, #8539c7);
}

.print-design__canvas i {
  display: block;
  width: 74px;
  height: 74px;
  margin: 8px auto;
  border: 8px solid #fff;
  background: repeating-conic-gradient(#151815 0 25%, #fff 0 50%) 0 / 12px 12px;
}

.print-design:nth-child(2) .print-design__canvas i {
  border-color: #fff;
}

.print-design__canvas strong,
.print-design__canvas small {
  display: block;
}

.print-design__canvas strong {
  font-size: 10px;
}

.print-design__canvas small {
  opacity: 0.65;
  font-size: 7px;
}

.print-design > strong {
  display: block;
  padding-top: 8px;
  font-size: 9px;
  text-align: center;
}

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

.table-qr-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.table-qr-card__mini {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 4px solid #fff;
  border-radius: 6px;
  background: repeating-conic-gradient(#191b18 0 25%, #fff 0 50%) 0 / 7px 7px;
  box-shadow: 0 0 0 1px var(--line);
}

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

.table-qr-card strong {
  font-size: 9px;
}

.table-qr-card small {
  color: var(--muted);
  font-size: 7px;
}

/* Analytics */
.analytics-filters {
  margin-bottom: 17px;
}

.analytics-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 17px;
}

.donut-layout {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(120px, 1fr);
  align-items: center;
  gap: 15px;
}

.donut-layout canvas {
  width: 100%;
  height: 170px;
}

.legend-list {
  display: grid;
  gap: 9px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.legend-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color);
}

.legend-item strong {
  color: var(--ink);
  font-size: 9px;
}

.horizontal-bars {
  display: grid;
  gap: 13px;
}

.horizontal-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 9px;
}

.horizontal-bar__top span {
  color: var(--ink-soft);
}

.horizontal-bar__top strong {
  font-size: 9px;
}

.horizontal-bar .progress {
  height: 6px;
}

/* Branches and staff */
.branch-card__visual {
  position: relative;
  height: 100px;
  overflow: hidden;
  background: #e5eae3;
}

.branch-card__visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image: linear-gradient(30deg, transparent 48%, #c5cdc2 48%, #c5cdc2 52%, transparent 52%), linear-gradient(-30deg, transparent 48%, #d2d8cf 48%, #d2d8cf 52%, transparent 52%);
  background-size: 40px 40px;
  content: "";
}

.branch-card__pin {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 9px 20px rgba(239, 91, 63, 0.27);
  transform: translate(-50%, -60%) rotate(-45deg);
}

[dir="rtl"] .branch-card__pin {
  transform: translate(50%, -60%) rotate(-45deg);
}

.branch-card__pin svg {
  transform: rotate(45deg);
}

.branch-card__body {
  padding: 15px;
}

.branch-card__detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
}

.branch-card__detail svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.branch-card__footer,
.staff-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: #fafbf8;
}

.staff-card__header {
  align-items: center;
}

.staff-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.staff-card__identity > div:last-child {
  min-width: 0;
}

.staff-card__identity h3,
.staff-card__identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-card__body {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.staff-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
}

.staff-card__row strong {
  color: var(--ink-soft);
  font-size: 9px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 9px;
}

/* Settings */
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 17px;
}

.settings-nav {
  position: sticky;
  inset-block-start: 92px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.settings-nav button {
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  text-align: start;
}

.settings-nav button:hover,
.settings-nav button.is-active {
  color: var(--ink);
  background: var(--surface-2);
}

.settings-nav button.is-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
  animation: settings-in 230ms ease;
}

@keyframes settings-in {
  from { opacity: 0; transform: translateY(5px); }
}

.settings-card {
  margin-bottom: 15px;
}

.settings-card__header {
  padding: 18px 20px 13px;
  border-bottom: 1px solid var(--line);
}

.settings-card__header h2 {
  margin: 0 0 2px;
  font-size: 14px;
}

.settings-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.settings-card__body {
  padding: 20px;
}

.profile-media-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
}

.profile-media {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}

.profile-media--logo {
  display: grid;
  place-items: center;
}

.profile-media--logo img {
  width: 90px;
  height: 90px;
  border-radius: 24px;
}

.profile-media--cover img {
  width: 100%;
  height: 100%;
}

.profile-media__button {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 8px;
}

.working-hours {
  display: grid;
  gap: 7px;
}

.working-hours__row {
  display: grid;
  grid-template-columns: 100px 80px minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}

.working-hours__row strong {
  font-size: 10px;
}

.working-hours__row .input {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 10px;
}

/* Subscriptions */
.subscription-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 17px;
  margin-bottom: 20px;
}

.current-plan-card {
  position: relative;
  padding: 25px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  background: #191c18;
}

.current-plan-card::before {
  position: absolute;
  inset-block-start: -110px;
  inset-inline-end: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(239, 91, 63, 0.22);
  content: "";
}

.current-plan-card::after {
  position: absolute;
  inset-block-end: -120px;
  inset-inline-start: 10%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(116, 87, 232, 0.14);
  content: "";
}

.current-plan-card > * {
  position: relative;
  z-index: 1;
}

.current-plan-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.current-plan-card__header h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 24px;
}

.current-plan-card__price {
  margin: 25px 0;
}

.current-plan-card__price strong {
  color: #fff;
  font-size: 28px;
}

.current-plan-card__price span {
  font-size: 9px;
}

.plan-usage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.plan-usage div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
}

.plan-usage strong,
.plan-usage small {
  display: block;
}

.plan-usage strong {
  color: #fff;
  font-size: 13px;
}

.plan-usage small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.billing-card {
  padding: 20px;
}

.billing-card__next {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 12px;
  background: var(--surface-2);
}

.billing-card__next-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.billing-card__next strong,
.billing-card__next small {
  display: block;
}

.billing-card__next strong {
  font-size: 11px;
}

.billing-card__next small {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dashboard-plan-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.dashboard-plan-card.is-current {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.dashboard-plan-card__current {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  color: var(--primary);
  font-size: 8px;
  font-weight: 800;
}

.dashboard-plan-card h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.dashboard-plan-card > p {
  min-height: 36px;
  color: var(--muted);
  font-size: 9px;
}

.dashboard-plan-card__price {
  margin: 13px 0 18px;
}

.dashboard-plan-card__price strong {
  font-size: 24px;
}

.dashboard-plan-card__price small {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-plan-card ul {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 9px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.dashboard-plan-card li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 9px;
}

.dashboard-plan-card li svg {
  color: var(--success);
}

/* Super admin */
.admin-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 23px 25px;
  overflow: hidden;
  border-radius: 19px;
  color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(120deg, #19182a, #28224b);
}

.admin-welcome::after {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-end: -35px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(109, 85, 223, 0.32);
  content: "";
}

.admin-welcome__content,
.admin-welcome__actions {
  position: relative;
  z-index: 1;
}

.admin-welcome h1 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 23px;
}

.admin-welcome p {
  margin: 0;
  font-size: 10px;
}

.admin-welcome__actions {
  display: flex;
  gap: 8px;
}

.admin-welcome .button--ghost {
  border-color: rgba(255, 255, 255, 0.13);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

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

.revenue-highlight {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.revenue-highlight strong {
  display: block;
  font-size: 24px;
}

.revenue-highlight small {
  color: var(--muted);
  font-size: 8px;
}

.city-list {
  display: grid;
  gap: 9px;
}

.city-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
}

.city-item__rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 8px;
  font-weight: 800;
}

.city-item__bar {
  min-width: 0;
}

.city-item__bar div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.city-item > strong {
  font-size: 9px;
}

.restaurant-detail-hero {
  position: relative;
  min-height: 150px;
  margin: -21px -22px 60px;
  background: linear-gradient(to top, rgba(20, 22, 20, 0.75), transparent), url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1200&q=80") center / cover;
}

.restaurant-detail-hero__identity {
  position: absolute;
  inset-block-end: -40px;
  inset-inline: 22px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
}

.restaurant-detail-hero__identity img {
  width: 82px;
  height: 82px;
  border: 5px solid #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.restaurant-detail-hero__identity h3 {
  margin-bottom: 3px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.restaurant-detail-hero__identity p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
}

.admin-theme-table-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-theme-swatch {
  position: relative;
  width: 50px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--theme-bg);
}

.admin-theme-swatch::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 14px;
  background: var(--theme-primary);
  content: "";
}

.admin-theme-swatch::after {
  position: absolute;
  inset-block-end: 6px;
  inset-inline-start: 7px;
  width: 21px;
  height: 8px;
  border-radius: 3px;
  background: var(--theme-card);
  box-shadow: 15px 0 0 var(--theme-card);
  content: "";
}

.coupon-code {
  display: inline-block;
  padding: 5px 8px;
  border: 1px dashed var(--primary);
  border-radius: 7px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  height: calc(100dvh - 150px);
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.ticket-list {
  overflow-y: auto;
  border-inline-end: 1px solid var(--line);
}

.ticket-list__header {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ticket-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--transition);
}

.ticket-item:hover,
.ticket-item.is-active {
  background: var(--surface-2);
}

.ticket-item.is-active {
  box-shadow: inset 3px 0 var(--primary);
}

[dir="rtl"] .ticket-item.is-active {
  box-shadow: inset -3px 0 var(--primary);
}

.ticket-item__content {
  min-width: 0;
}

.ticket-item strong,
.ticket-item p,
.ticket-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-item strong {
  font-size: 10px;
}

.ticket-item p,
.ticket-item small {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.ticket-conversation {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ticket-conversation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.ticket-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  background: #fafbf8;
}

.ticket-message {
  max-width: 72%;
  align-self: flex-start;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  font-size: 10px;
}

.ticket-message--agent {
  align-self: flex-end;
  border-color: var(--primary);
  border-radius: 14px 4px 14px 14px;
  color: #fff;
  background: var(--primary);
}

.ticket-message small {
  display: block;
  margin-top: 5px;
  opacity: 0.6;
  font-size: 7px;
}

.ticket-reply {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.ticket-reply .input {
  flex: 1;
}

.notification-list {
  display: grid;
  gap: 9px;
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.notification-card__icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: var(--primary-soft);
}

.notification-card strong,
.notification-card p,
.notification-card small {
  display: block;
  margin: 0;
}

.notification-card strong {
  font-size: 10px;
}

.notification-card p,
.notification-card small {
  color: var(--muted);
  font-size: 8px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  opacity: 0;
  background: rgba(15, 17, 15, 0.5);
  backdrop-filter: blur(3px);
  transition: opacity var(--transition);
}

.mobile-bottom-nav {
  display: none;
}

@media (min-width: 1181px) {
  .dashboard-page.sidebar-collapsed,
  .admin-page.sidebar-collapsed {
    --sidebar-width: 76px;
  }

  .sidebar-collapsed .app-sidebar .brand span,
  .sidebar-collapsed .app-sidebar__restaurant div,
  .sidebar-collapsed .app-sidebar__restaurant > svg,
  .sidebar-collapsed .app-sidebar__section-label,
  .sidebar-collapsed .app-nav-link span:not(.app-nav-link__badge),
  .sidebar-collapsed .app-nav-link__badge,
  .sidebar-collapsed .sidebar-plan {
    display: none;
  }

  .sidebar-collapsed .app-sidebar__header {
    justify-content: center;
    padding-inline: 10px;
  }

  .sidebar-collapsed .app-sidebar__collapse {
    display: none;
  }

  .sidebar-collapsed .app-sidebar__restaurant {
    justify-content: center;
    margin-inline: 10px;
    padding: 7px;
  }

  .sidebar-collapsed .app-sidebar__restaurant .status-dot {
    inset-inline-start: auto;
    inset-inline-end: 8px;
  }

  .sidebar-collapsed .app-sidebar__nav {
    padding-inline: 10px;
  }

  .sidebar-collapsed .app-nav-link {
    justify-content: center;
    padding-inline: 9px;
  }

  .sidebar-collapsed .app-sidebar__footer {
    min-height: 15px;
  }
}

@media (max-width: 1350px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-grid,
  .tables-qr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .app-sidebar {
    width: min(290px, 87vw);
    transform: translateX(-105%);
  }

  [dir="rtl"] .app-sidebar {
    transform: translateX(105%);
  }

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

  .sidebar-backdrop {
    display: block;
    visibility: hidden;
  }

  .sidebar-open .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .app-main {
    width: 100%;
    max-width: 100%;
  }

  .app-topbar__menu {
    display: grid;
  }

  .app-sidebar__collapse {
    display: none;
  }

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

  .extras-grid,
  .offers-grid,
  .branches-grid,
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .topbar-search {
    display: none;
  }

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

  .dashboard-grid,
  .dashboard-grid--equal,
  .dashboard-grid--three,
  .menu-overview-grid,
  .qr-layout,
  .subscription-overview {
    grid-template-columns: 1fr;
  }

  .quick-actions,
  .order-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid,
  .dashboard-theme-grid,
  .dashboard-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .design-editor {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .design-controls {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .design-controls__body {
    height: auto;
    max-height: 500px;
  }

  .design-preview {
    min-height: 780px;
  }

  .analytics-card-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .settings-nav button {
    width: auto;
    flex: 0 0 auto;
  }

  .working-hours__row {
    grid-template-columns: 90px 65px minmax(100px, 1fr) auto minmax(100px, 1fr);
  }

  .support-layout {
    grid-template-columns: 250px minmax(400px, 1fr);
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .dashboard-page,
  .admin-page {
    padding-bottom: 70px;
  }

  .app-topbar {
    height: 62px;
    padding-inline: 13px;
  }

  .app-breadcrumbs span,
  .app-breadcrumbs svg,
  .app-topbar__actions > .button,
  .app-topbar__actions > .language-switcher,
  .topbar-user__info,
  .topbar-user > svg {
    display: none;
  }

  .topbar-user {
    padding: 3px;
    border: 0;
    background: transparent;
  }

  .app-content {
    width: 100%;
    max-width: 100%;
    padding: 20px 13px 30px;
  }

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

  .page-heading h1 {
    font-size: 22px;
  }

  .page-heading__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .page-heading__actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
  }

  .page-heading__actions .segmented {
    width: 100%;
    grid-column: 1 / -1;
  }

  .trial-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .trial-banner > .button {
    width: 100%;
  }

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

  .metric-card {
    padding: 13px;
  }

  .metric-card__top {
    margin-bottom: 11px;
  }

  .metric-card__value {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .metric-card__value strong {
    font-size: 19px;
  }

  .chart-card canvas {
    height: 220px;
  }

  .quick-actions,
  .order-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quick-action {
    min-height: 82px;
    padding: 11px;
  }

  .quick-action small {
    display: none;
  }

  .sortable-item {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .sortable-item__count,
  .sortable-item > .switch {
    display: none;
  }

  .products-grid,
  .dashboard-theme-grid,
  .dashboard-plan-grid,
  .extras-grid,
  .offers-grid,
  .branches-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-product-card__image {
    height: 120px;
  }

  .admin-product-card__body {
    padding: 10px;
  }

  .admin-product-card p,
  .product-flags {
    display: none;
  }

  .admin-product-card__price {
    font-size: 10px;
  }

  .repeatable-row {
    grid-template-columns: 1fr auto;
  }

  .repeatable-row .field:nth-child(2) {
    grid-row: 2;
  }

  .qr-actions,
  .print-designs {
    grid-template-columns: 1fr;
  }

  .print-design {
    min-height: auto;
  }

  .print-design__canvas {
    min-height: 140px;
  }

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

  .design-preview {
    min-height: 710px;
  }

  .design-preview__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .design-preview__toolbar .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .design-preview__stage {
    padding: 14px 4px;
    overflow-x: hidden;
  }

  .design-phone,
  .design-phone[data-device="tablet"],
  .design-phone[data-device="desktop"] {
    width: min(370px, calc(100vw - 36px));
    border-radius: 34px;
  }

  .design-phone__screen,
  .design-phone[data-device="tablet"] .design-phone__screen,
  .design-phone[data-device="desktop"] .design-phone__screen {
    border-radius: 28px;
  }

  .design-color-grid,
  .profile-media-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-nav {
    margin-inline: -13px;
    padding-inline: 13px;
    border-inline: 0;
    border-radius: 0;
  }

  .settings-nav button span {
    display: none;
  }

  .working-hours__row {
    grid-template-columns: 1fr auto;
  }

  .working-hours__row .input,
  .working-hours__row > span {
    grid-column: span 1;
  }

  .plan-usage {
    grid-template-columns: 1fr;
  }

  .admin-welcome {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .admin-welcome__actions {
    width: 100%;
  }

  .admin-welcome__actions .button {
    flex: 1;
  }

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

  .donut-layout canvas {
    width: 190px;
    margin-inline: auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 7px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -10px 30px rgba(17, 20, 17, 0.06);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: grid;
    min-height: 46px;
    place-items: center;
    gap: 1px;
    padding: 3px;
    border-radius: 10px;
    color: var(--muted);
    background: transparent;
    font-size: 7px;
    font-weight: 700;
  }

  .mobile-bottom-nav a.is-active {
    color: var(--primary);
    background: var(--primary-soft);
  }

  .support-layout {
    display: block;
    height: auto;
    min-height: 0;
  }

  .ticket-list {
    max-height: 420px;
    border: 0;
  }

  .ticket-conversation {
    display: none;
  }
}

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

  .metric-card__spark {
    display: none;
  }

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

  .admin-product-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .admin-product-card__image {
    height: 100%;
    min-height: 135px;
  }

  .admin-product-card__body {
    align-self: center;
  }

  .tables-qr-grid {
    grid-template-columns: 1fr;
  }
}

/* Super Admin data views */
.admin-identity__icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #9a87ef);
  box-shadow: 0 8px 18px rgba(109, 85, 223, 0.22);
}

.admin-system-status {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-system-status span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 700;
}

.admin-system-status span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ac28a;
  box-shadow: 0 0 0 4px rgba(58, 194, 138, 0.11);
}

.admin-system-status small {
  color: rgba(255, 255, 255, 0.28);
  font-size: 7px;
}

.avatar--admin {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #9a87ef);
}

.avatar--sm {
  flex: 0 0 auto;
}

.muted-copy,
.table-subtext {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.card__body--flush {
  padding: 0;
}

.table-shell--seamless {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.icon-button--danger {
  color: var(--danger);
}

.icon-button--danger:hover {
  background: var(--danger-soft);
}

.table-empty {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.table-entity__image--initials {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
  font-weight: 900;
}

.plan-label,
.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface-2);
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.plan-label--starter {
  color: #4f6683;
  background: #eef3f8;
}

.plan-label--pro {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.plan-label--business {
  color: #8b6511;
  background: #fff4d8;
}

.admin-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
  box-shadow: var(--shadow-xs);
}

.admin-summary-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: #fff;
}

.admin-summary-strip > div > span {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}

.admin-summary-strip p,
.admin-summary-strip strong,
.admin-summary-strip small {
  display: block;
  margin: 0;
}

.admin-summary-strip strong {
  font-size: 16px;
}

.admin-summary-strip small {
  color: var(--muted);
  font-size: 8px;
}

.admin-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  margin-bottom: 18px;
}

.admin-detail-status > span:not(.status) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.admin-detail-grid {
  margin-bottom: 16px;
}

.detail-tile {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.detail-tile > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}

.detail-tile small,
.detail-tile strong,
.detail-tile p {
  display: block;
  margin: 0;
}

.detail-tile small,
.detail-tile p {
  color: var(--muted);
  font-size: 8px;
}

.detail-tile strong {
  margin: 3px 0;
  font-size: 11px;
}

.audit-mini-list {
  display: grid;
  gap: 2px;
}

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

.audit-mini:last-child {
  border: 0;
}

.audit-mini__icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
}

.audit-mini__icon--success {
  color: var(--success);
  background: var(--success-soft);
}

.audit-mini__icon--warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.audit-mini__icon--error {
  color: var(--danger);
  background: var(--danger-soft);
}

.audit-mini strong,
.audit-mini p {
  display: block;
  margin: 0;
  font-size: 9px;
}

.audit-mini p,
.audit-mini small {
  color: var(--muted);
  font-size: 7px;
}

.payment-receipt {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.payment-receipt__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.payment-receipt__amount {
  display: grid;
  padding: 23px;
  text-align: center;
}

.payment-receipt__amount small,
.payment-receipt__amount span {
  color: var(--muted);
  font-size: 8px;
}

.payment-receipt__amount strong {
  margin: 4px 0;
  color: var(--primary-dark);
  font-size: 27px;
}

.payment-receipt dl,
.log-detail dl {
  margin: 0;
  padding: 0 16px 14px;
}

.payment-receipt dl div,
.log-detail dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 9px;
}

.payment-receipt dt,
.log-detail dt {
  color: var(--muted);
}

.payment-receipt dd,
.log-detail dd {
  margin: 0;
  font-weight: 700;
}

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

.admin-plan-card {
  position: relative;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.admin-plan-card.is-popular {
  border-color: var(--primary);
  box-shadow: 0 15px 36px rgba(109, 85, 223, 0.1);
}

.admin-plan-card__popular {
  position: absolute;
  inset-block-start: -9px;
  inset-inline-end: 16px;
  padding: 4px 9px;
  border-radius: 20px;
  color: #fff;
  background: var(--primary);
  font-size: 7px;
  font-weight: 800;
}

.admin-plan-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-plan-card header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.admin-plan-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0 15px;
}

.admin-plan-card__price strong {
  font-size: 22px;
}

.admin-plan-card__price span,
.admin-plan-card__price small {
  color: var(--muted);
  font-size: 8px;
}

.admin-plan-card__price small {
  width: 100%;
}

.admin-plan-card__subscribers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
}

.admin-plan-card__subscribers span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 15px 0;
  border-block: 1px solid var(--line-soft);
}

.admin-plan-card li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 8px;
}

.admin-plan-card li svg {
  color: var(--success);
}

.usage-cell {
  width: min(150px, 18vw);
}

.usage-cell > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 7px;
}

.usage-cell .progress {
  height: 5px;
}

.admin-theme-catalog {
  margin-top: 16px;
}

.catalog-theme-card.is-disabled {
  border-color: #e5cccc;
}

.catalog-theme-card.is-disabled .catalog-theme-card__preview {
  filter: grayscale(0.8);
  opacity: 0.72;
}

.admin-theme-disabled {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-start: 13px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 20px;
  color: #fff;
  background: rgba(134, 45, 45, 0.82);
  font-size: 7px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.admin-theme-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.admin-theme-preview-toolbar small {
  color: var(--muted);
  font-size: 8px;
}

.audit-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 7px;
  font-weight: 800;
}

.audit-level--success {
  color: var(--success);
  background: var(--success-soft);
}

.audit-level--warning {
  color: #946815;
  background: var(--warning-soft);
}

.audit-level--error {
  color: var(--danger);
  background: var(--danger-soft);
}

.ip-code {
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface-2);
  font-size: 8px;
}

.log-detail > .audit-level {
  margin-bottom: 14px;
}

.notification-setting-list {
  display: grid;
  gap: 2px;
}

.notification-setting-list > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.notification-setting-list > label:last-child {
  border: 0;
}

.notification-setting-list > label > span:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 9px;
}

.notification-setting-list > label > span:first-child > svg {
  grid-row: 1 / span 2;
  color: var(--primary);
}

.notification-setting-list b,
.notification-setting-list small {
  display: block;
}

.notification-setting-list b {
  font-size: 9px;
}

.notification-setting-list small {
  color: var(--muted);
  font-size: 7px;
}

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

.admin-color-grid button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 13px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.admin-color-grid button i {
  position: absolute;
  inset: 4px;
  border-radius: 9px;
  background: var(--color);
}

.admin-color-grid button svg {
  position: relative;
  z-index: 1;
}

.admin-color-grid button.is-active {
  border-color: var(--color);
}

.data-action-grid {
  display: grid;
  gap: 9px;
}

.data-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: start;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.data-action:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.data-action > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.data-action strong,
.data-action small {
  display: block;
}

.data-action strong {
  font-size: 9px;
}

.data-action small {
  color: var(--muted);
  font-size: 7px;
}

@media (max-width: 920px) {
  .admin-summary-strip,
  .admin-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-summary-strip,
  .admin-plan-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-theme-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-cell {
    width: 120px;
  }
}

/* ── manual payment system ─────────────────────────────────────────── */
.pay-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pay-method-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface, #fff); cursor: pointer; text-align: start; transition: border-color .15s, box-shadow .15s; }
.pay-method-card:hover { border-color: var(--primary); }
.pay-method-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pay-method-card img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.pay-method-card__icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.pay-method-card strong { display: block; font-size: 12px; }
.pay-method-card small { color: var(--muted); font-size: 10px; }
.pay-method-card svg { margin-inline-start: auto; color: var(--primary); }
.checkout-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; border-radius: 12px; background: var(--primary-soft); margin-bottom: 16px; }
.checkout-summary strong { display: block; font-size: 15px; margin-top: 2px; }
.checkout-step { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.checkout-step__num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.checkout-step h3 { font-size: 13px; }
.pay-instructions dl { display: grid; gap: 6px; margin-top: 10px; }
.pay-instructions .spread { padding: 7px 10px; border-radius: 8px; background: var(--bg, #f7f7f9); }
.upload-zone.is-drag { border-color: var(--primary); background: var(--primary-soft); }
.pay-timeline { display: grid; gap: 4px; margin: 8px 0; }
.pay-timeline__step { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; position: relative; }
.pay-timeline__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; flex-shrink: 0; }
.pay-timeline__step.is-active .pay-timeline__dot { background: var(--primary); }
.pay-timeline__step.is-done .pay-timeline__dot { background: var(--success, #16865f); }
.pay-timeline__step.is-bad .pay-timeline__dot { background: var(--danger, #c64d4d); }
.pay-timeline__step.is-warn .pay-timeline__dot { background: var(--warning, #d39b2e); }
.pay-timeline__step strong { display: block; font-size: 12px; }
.pay-timeline__step small { color: var(--muted); font-size: 10px; }
.pay-detail-list { display: grid; gap: 6px; }
@media (max-width: 520px) { .checkout-summary { grid-template-columns: 1fr; gap: 6px; } .pay-method-grid { grid-template-columns: 1fr; } }
