:root {
  color-scheme: dark;
  --gk-bg: #080808;
  --gk-surface: rgba(18, 18, 18, 0.88);
  --gk-surface-strong: #141414;
  --gk-surface-soft: rgba(255, 255, 255, 0.035);
  --gk-border: rgba(242, 199, 92, 0.2);
  --gk-border-strong: rgba(242, 199, 92, 0.52);
  --gk-gold: #f2c75c;
  --gk-gold-soft: #ffe29a;
  --gk-text: #f7f3e8;
  --gk-muted: #aaa79f;
  --gk-danger: #ef7b77;
  --gk-sidebar-width: 268px;
  --gk-radius-lg: 22px;
  --gk-radius-md: 15px;
  --gk-shadow: 0 24px 65px rgba(0, 0, 0, 0.48);
}

/* ===== درخواست‌های پشتیبانی و گزارش‌های کاربران ===== */

.gk-admin-filters.gk-admin-report-filters {
  grid-template-columns: minmax(230px, 1.25fr) repeat(2, minmax(155px, 0.65fr)) auto;
  align-items: end;
}

.gk-admin-report-filters > button {
  min-height: 44px;
}

.gk-admin-report-list-status {
  min-height: 22px;
  margin: 0 2px 10px;
  color: #6d7180;
  font-size: 12px;
}

.gk-admin-report-list-status[data-state="success"] {
  color: #23734a;
}

.gk-admin-report-list-status[data-state="error"] {
  color: #a12645;
}

.gk-admin-report-list-status[data-state="loading"] {
  color: #7a5a1f;
}

.gk-admin-reports-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 286px));
  justify-content: start;
  align-items: start;
  gap: 12px;
}

.gk-admin-report-card {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(87, 62, 70, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 100%, rgba(23, 40, 75, 0.045), transparent 12rem),
    rgba(255, 251, 245, 0.94);
  box-shadow: 0 12px 30px rgba(74, 43, 52, 0.07);
}

.gk-admin-report-card-head,
.gk-admin-report-user,
.gk-admin-report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gk-admin-report-card-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.gk-admin-report-card-head strong {
  overflow: hidden;
  color: #17284b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-admin-report-card-head small,
.gk-admin-report-user small,
.gk-admin-report-detail small {
  color: #777986;
  font-size: 11px;
}

.gk-admin-report-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-report-state.is-new {
  color: #9b2449;
  border-color: rgba(155, 36, 73, 0.25);
  background: rgba(155, 36, 73, 0.07);
}

.gk-admin-report-state.is-in_progress {
  color: #886117;
  border-color: rgba(173, 126, 35, 0.27);
  background: rgba(242, 199, 92, 0.13);
}

.gk-admin-report-state.is-resolved {
  color: #23734a;
  border-color: rgba(35, 115, 74, 0.25);
  background: rgba(35, 115, 74, 0.08);
}

.gk-admin-report-user {
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid rgba(23, 40, 75, 0.1);
  border-radius: 10px;
  background: rgba(23, 40, 75, 0.035);
}

.gk-admin-report-user > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gk-admin-report-user strong {
  color: #46516a;
  font-size: 12px;
}

.gk-admin-report-user small[dir="ltr"] {
  text-align: left;
}

.gk-admin-report-message {
  flex: 1 1 58px;
  min-height: 42px;
  max-height: 68px;
  margin: 8px 0;
  overflow-y: auto;
  color: #4f5260;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gk-admin-report-details {
  flex: 0 1 64px;
  display: grid;
  gap: 4px;
  min-height: 0;
  max-height: 64px;
  margin-bottom: 8px;
  padding-inline-end: 3px;
  overflow-y: auto;
}

.gk-admin-report-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px dashed rgba(87, 62, 70, 0.13);
}

.gk-admin-report-detail strong {
  color: #555d70;
  font-size: 11px;
  text-align: left;
  overflow-wrap: anywhere;
}

.gk-admin-report-actions {
  flex: 0 0 auto;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.gk-admin-report-action {
  min-height: 30px;
  padding: 5px 8px;
  color: #17284b;
  border: 1px solid rgba(23, 40, 75, 0.2);
  border-radius: 9px;
  background: rgba(23, 40, 75, 0.045);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: 0.2s ease;
}

.gk-admin-report-action:hover:not(:disabled) {
  color: #fff;
  border-color: #17284b;
  background: #17284b;
}

.gk-admin-report-action.is-resolve {
  color: #23734a;
  border-color: rgba(35, 115, 74, 0.25);
  background: rgba(35, 115, 74, 0.06);
}

.gk-admin-report-action.is-message {
  color: #9b2449;
  border-color: rgba(155, 36, 73, 0.25);
  background: rgba(155, 36, 73, 0.055);
}

.gk-admin-report-action.is-delete {
  margin-inline-start: auto;
  color: #a12645;
  border-color: rgba(161, 38, 69, 0.28);
  background: rgba(161, 38, 69, 0.07);
}

.gk-admin-report-action.is-delete:hover:not(:disabled) {
  color: #fff;
  border-color: #a12645;
  background: #a12645;
}

.gk-admin-report-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.gk-admin-report-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #7d7b80;
  text-align: center;
}

@media (max-width: 1100px) {
  .gk-admin-filters.gk-admin-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gk-admin-filters.gk-admin-report-filters {
    grid-template-columns: 1fr;
  }

  .gk-admin-reports-list {
    grid-template-columns: minmax(0, 286px);
    justify-content: center;
  }

  .gk-admin-report-card-head,
  .gk-admin-report-user {
    align-items: flex-start;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--gk-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--gk-text);
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(242, 199, 92, 0.1),
      transparent 31rem
    ),
    radial-gradient(
      circle at 10% 88%,
      rgba(105, 80, 24, 0.12),
      transparent 28rem
    ),
    linear-gradient(145deg, #070707, #0d0d0d 55%, #080808);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(255, 226, 154, 0.85);
  outline-offset: 3px;
}

.gk-admin-ambient {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}

.gk-admin-ambient-one {
  top: -8rem;
  right: -7rem;
  background: #c79524;
}

.gk-admin-ambient-two {
  bottom: -10rem;
  left: -7rem;
  background: #70531b;
}

/* ورود مدیر */

.gk-admin-login {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(12px, 2.4vh, 24px);
  display: grid;
  place-items: center;
  color: #17223a;
  color-scheme: light;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(122, 33, 57, 0.11),
      transparent 25rem
    ),
    radial-gradient(
      circle at 87% 82%,
      rgba(23, 40, 75, 0.13),
      transparent 29rem
    ),
    linear-gradient(135deg, #edf2f8 0%, #fffdfb 52%, #f6edf0 100%);
}

.gk-admin-login-card {
  position: relative;
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(390px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(23, 40, 75, 0.16);
  border-radius: 28px;
  background: #fffdfb;
  box-shadow:
    0 24px 64px rgba(23, 40, 75, 0.16),
    0 8px 24px rgba(122, 33, 57, 0.07),
    inset 0 1px rgba(255, 255, 255, 0.9);
}

.gk-admin-login-card::before {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #17284b, #7a2139 55%, #b88a2a);
}

.gk-admin-login-intro,
.gk-admin-login-access {
  position: relative;
  min-width: 0;
}

.gk-admin-login-intro {
  padding: 34px 36px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(23, 40, 75, 0.1);
  background:
    linear-gradient(155deg, rgba(23, 40, 75, 0.09), rgba(122, 33, 57, 0.055)),
    #f8fafc;
}

.gk-admin-login-intro::after {
  position: absolute;
  right: -84px;
  bottom: -104px;
  width: 230px;
  height: 230px;
  content: "";
  pointer-events: none;
  border: 38px solid rgba(122, 33, 57, 0.045);
  border-radius: 50%;
}

.gk-admin-login-access {
  padding: 30px 38px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 253, 251, 0.96);
}

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

.gk-admin-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  color: #151004;
  border: 1px solid #ffe099;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffe29a, #c58d19);
  box-shadow: 0 0 20px rgba(242, 199, 92, 0.2);
  font-size: 22px;
  font-weight: 900;
}

.gk-admin-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.gk-admin-brand strong {
  color: var(--gk-gold-soft);
  font-size: 18px;
}

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

.gk-admin-login .gk-admin-brand {
  position: relative;
  z-index: 1;
}

.gk-admin-login .gk-admin-brand-mark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, #243b68, #7a2139);
  box-shadow: 0 10px 24px rgba(23, 40, 75, 0.18);
}

.gk-admin-login .gk-admin-brand strong {
  color: #17284b;
}

.gk-admin-login .gk-admin-brand small {
  color: #747b8a;
}

.gk-admin-login-heading {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}

.gk-admin-lock {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #7a2139;
  border: 1px solid rgba(122, 33, 57, 0.19);
  border-radius: 50%;
  background: rgba(122, 33, 57, 0.07);
  font-size: 24px;
}

.gk-admin-login-heading h1 {
  margin: 14px 0 5px;
  color: #17284b;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.3;
}

.gk-admin-login-heading p {
  margin: 0;
  color: #687185;
  font-size: 14px;
}

.gk-admin-login-access-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  text-align: right;
}

.gk-admin-login-access-head strong {
  color: #17284b;
  font-size: 17px;
}

.gk-admin-login-access-head span {
  color: #7a2139;
  font-size: 12px;
  font-weight: 700;
}

.gk-admin-login-form {
  margin-top: 16px;
  display: grid;
  gap: 7px;
}

.gk-admin-login-form label {
  margin-top: 2px;
  color: #293653;
  font-size: 13px;
  font-weight: 700;
}

.gk-admin-filters input,
.gk-admin-filters select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  color: var(--gk-text);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.gk-admin-filters input::placeholder {
  color: #77746d;
}

.gk-admin-filters input:focus,
.gk-admin-filters select:focus {
  border-color: var(--gk-border-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(242, 199, 92, 0.075);
  outline: none;
}

.gk-admin-login-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  color: #17223a;
  border: 1px solid rgba(23, 40, 75, 0.18);
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(23, 40, 75, 0.035);
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.gk-admin-login-form input::placeholder {
  color: #999fab;
}

.gk-admin-login-form input:focus {
  border-color: rgba(122, 33, 57, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122, 33, 57, 0.075);
  outline: none;
}

.gk-admin-password-field {
  position: relative;
}

.gk-admin-password-field input {
  padding-left: 76px;
}

.gk-admin-password-toggle {
  position: absolute;
  top: 50%;
  left: 7px;
  min-width: 61px;
  height: 34px;
  padding: 0 9px;
  color: #17284b;
  border: 0;
  border-radius: 9px;
  background: rgba(23, 40, 75, 0.07);
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
}

.gk-admin-login-submit,
.gk-admin-preview-box button {
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 900;
}

.gk-admin-login-submit {
  color: #fff;
  border: 1px solid rgba(23, 40, 75, 0.3);
  background: linear-gradient(115deg, #17284b, #7a2139);
  box-shadow: 0 11px 24px rgba(23, 40, 75, 0.18);
}

.gk-admin-login-submit:hover {
  filter: brightness(1.08);
}

.gk-admin-login-submit:disabled,
.gk-admin-password-toggle:disabled {
  cursor: wait;
  filter: saturate(0.55);
  opacity: 0.72;
}

.gk-admin-login-status {
  min-height: 18px;
  margin: 1px 0 0;
  color: #7a2139;
  font-size: 12px;
}

.gk-admin-login-status[data-state="loading"] {
  color: #17284b;
}

.gk-admin-login-status[data-state="error"] {
  color: #a01f42;
  font-weight: 700;
}

.gk-admin-preview-box {
  margin-top: 12px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(122, 33, 57, 0.13);
  border-radius: 12px;
  background: rgba(122, 33, 57, 0.045);
}

.gk-admin-preview-box p {
  margin: 0;
  color: #667084;
  font-size: 12px;
  line-height: 1.55;
}

.gk-admin-preview-box button {
  min-height: 40px;
  margin-top: 0;
  color: #17284b;
  border: 1px solid rgba(23, 40, 75, 0.26);
  background: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
}

.gk-admin-preview-box button:hover {
  color: #7a2139;
  border-color: rgba(122, 33, 57, 0.35);
  background: #fff;
}

.gk-admin-security-note {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding-top: 30px;
  color: #747b88;
  font-size: 12px;
  text-align: right;
}

.gk-admin-security-note span {
  color: #b88a2a;
}

.gk-admin-login :focus-visible {
  outline-color: rgba(122, 33, 57, 0.52);
}

/* داشبورد */

.gk-admin-dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--gk-sidebar-width) minmax(0, 1fr);
  background: rgba(4, 4, 4, 0.38);
}

.gk-admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: var(--gk-sidebar-width);
  height: 100vh;
  padding: 21px 16px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gk-border);
  background: rgba(10, 10, 10, 0.96);
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.26);
}

.gk-admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gk-admin-brand-compact .gk-admin-brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 20px;
}

.gk-admin-sidebar-close {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--gk-gold-soft);
  border: 1px solid var(--gk-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 24px;
}

.gk-admin-nav {
  margin-top: 34px;
  display: grid;
  gap: 7px;
}

.gk-admin-nav button {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #aaa79f;
  text-align: right;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.gk-admin-nav button > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #aaa072;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 16px;
}

.gk-admin-nav button:hover {
  color: var(--gk-text);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(-2px);
}

.gk-admin-nav button.is-active {
  color: var(--gk-gold-soft);
  border-color: var(--gk-border);
  background: linear-gradient(
    90deg,
    rgba(242, 199, 92, 0.12),
    rgba(242, 199, 92, 0.035)
  );
}

.gk-admin-nav button.is-active > span {
  color: #171104;
  background: linear-gradient(145deg, #f7d67b, #b98419);
}

.gk-admin-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.gk-admin-connection-state {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(239, 123, 119, 0.18);
  border-radius: 12px;
  background: rgba(239, 123, 119, 0.045);
}

.gk-admin-connection-state > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--gk-danger);
  box-shadow: 0 0 12px rgba(239, 123, 119, 0.5);
}

.gk-admin-connection-state div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.gk-admin-connection-state strong {
  color: #d8d3c8;
  font-size: 12px;
}

.gk-admin-connection-state small {
  color: #817e77;
  font-size: 11px;
}

.gk-admin-sidebar-foot > a {
  color: #aaa79f;
  font-size: 13px;
  text-align: center;
}

.gk-admin-sidebar-foot > a:hover {
  color: var(--gk-gold-soft);
}

.gk-admin-workspace {
  min-width: 0;
}

.gk-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  padding: 14px clamp(18px, 3vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(242, 199, 92, 0.12);
  background: rgba(8, 8, 8, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gk-admin-topbar-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gk-admin-topbar-title p {
  margin: 0;
  color: #85827a;
  font-size: 12px;
}

.gk-admin-topbar-title h1 {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--gk-text);
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-admin-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--gk-gold-soft);
  border: 1px solid var(--gk-border);
  border-radius: 12px;
  background: rgba(242, 199, 92, 0.055);
  font-size: 21px;
}

.gk-admin-account {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gk-admin-account-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #171104;
  border-radius: 12px;
  background: linear-gradient(145deg, #f5d67d, #af7c19);
  font-size: 16px;
  font-weight: 900;
}

.gk-admin-account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.gk-admin-account-text strong {
  font-size: 13px;
}

.gk-admin-account-text small {
  color: #88857e;
  font-size: 11px;
}

.gk-admin-account button {
  min-height: 38px;
  padding: 7px 12px;
  color: #bbb7ae;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.gk-admin-account button:hover {
  color: var(--gk-text);
  border-color: var(--gk-border);
}

.gk-admin-main {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px);
}

.gk-admin-panel {
  min-width: 0;
}

.gk-admin-panel.is-active {
  animation: gkAdminPanelIn 0.28s ease both;
}

@keyframes gkAdminPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gk-admin-welcome,
.gk-admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.gk-admin-eyebrow {
  color: var(--gk-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.gk-admin-welcome h2,
.gk-admin-section-head h2,
.gk-admin-flow h2 {
  margin: 4px 0;
  color: var(--gk-text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
}

.gk-admin-welcome p,
.gk-admin-section-head p {
  max-width: 700px;
  margin: 0;
  color: var(--gk-muted);
  font-size: 14px;
}

.gk-admin-offline-badge {
  min-height: 38px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #d9b8b5;
  border: 1px solid rgba(239, 123, 119, 0.2);
  border-radius: 999px;
  background: rgba(239, 123, 119, 0.045);
  font-size: 12px;
  font-weight: 700;
}

.gk-admin-offline-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gk-danger);
}

.gk-admin-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.gk-admin-stats article {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--gk-radius-md);
  background:
    linear-gradient(145deg, rgba(242, 199, 92, 0.04), transparent 52%),
    var(--gk-surface);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.gk-admin-stats article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gk-gold), transparent);
  opacity: 0.45;
}

.gk-admin-stats span {
  color: #aaa69c;
  font-size: 13px;
}

.gk-admin-stats strong {
  margin: 7px 0 1px;
  color: var(--gk-gold-soft);
  font-size: 33px;
  line-height: 1.25;
}

.gk-admin-stats small {
  margin-top: auto;
  color: #75726c;
  font-size: 12px;
}

.gk-admin-card {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--gk-radius-lg);
  background: var(--gk-surface);
  box-shadow: 0 17px 40px rgba(0, 0, 0, 0.2);
}

.gk-admin-panel[data-admin-view="overview"] > .gk-admin-card {
  margin-top: 16px;
}

.gk-admin-card-head {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.gk-admin-card-head h2 {
  margin: 0;
  font-size: 17px;
}

.gk-admin-card-head p {
  margin: 3px 0 0;
  color: #85827b;
  font-size: 12px;
}

.gk-admin-text-button {
  min-height: 38px;
  padding: 7px 12px;
  flex: 0 0 auto;
  color: var(--gk-gold-soft);
  border: 1px solid var(--gk-border);
  border-radius: 10px;
  background: rgba(242, 199, 92, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.gk-admin-text-button:hover {
  border-color: var(--gk-border-strong);
  background: rgba(242, 199, 92, 0.1);
}

.gk-admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.gk-admin-table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.gk-admin-table-wrap th {
  padding: 13px 18px;
  color: #8e8a81;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
}

.gk-admin-empty-row td {
  padding: 0;
}

.gk-admin-empty-state {
  min-height: 245px;
  padding: 36px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #85827a;
  text-align: center;
}

.gk-admin-empty-state > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--gk-gold);
  border: 1px solid var(--gk-border);
  border-radius: 16px;
  background: rgba(242, 199, 92, 0.045);
  font-size: 24px;
}

.gk-admin-empty-state strong {
  margin-top: 13px;
  color: #dcd7cc;
  font-size: 15px;
}

.gk-admin-empty-state p {
  max-width: 520px;
  margin: 4px 0 0;
  color: #79766f;
  font-size: 13px;
}

.gk-admin-flow {
  margin-top: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 24px;
  border: 1px solid var(--gk-border);
  border-radius: var(--gk-radius-lg);
  background: linear-gradient(
    120deg,
    rgba(242, 199, 92, 0.07),
    rgba(255, 255, 255, 0.018)
  );
}

.gk-admin-flow h2 {
  font-size: 18px;
}

.gk-admin-flow ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.gk-admin-flow li {
  min-width: 0;
  min-height: 85px;
  padding: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.gk-admin-flow li > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #151005;
  border-radius: 9px;
  background: var(--gk-gold);
  font-size: 12px;
  font-weight: 900;
}

.gk-admin-flow li strong {
  font-size: 13px;
}

.gk-admin-flow li small {
  color: #7f7b73;
  font-size: 11px;
}

/* صفحه‌های داخلی پنل */

.gk-admin-section-head {
  margin-bottom: 23px;
}

.gk-admin-filters {
  margin-bottom: 15px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 0.7fr));
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--gk-radius-md);
  background: var(--gk-surface);
}

.gk-admin-filters label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.gk-admin-filters label > span {
  color: #aaa69d;
  font-size: 12px;
  font-weight: 700;
}

.gk-admin-filters input,
.gk-admin-filters select {
  height: 44px;
}

.gk-admin-filters select {
  color-scheme: dark;
}

.gk-admin-standalone-empty {
  min-height: 390px;
}

.gk-admin-standalone-empty .gk-admin-empty-state {
  min-height: 390px;
}

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

.gk-admin-settings-grid article {
  min-height: 230px;
  padding: 20px;
}

.gk-admin-settings-grid article > span {
  color: var(--gk-gold);
  font-size: 12px;
  font-weight: 900;
}

.gk-admin-settings-grid h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.gk-admin-settings-grid p {
  margin: 0;
  color: var(--gk-muted);
  font-size: 14px;
}

.gk-admin-settings-grid button {
  min-height: 40px;
  margin-top: 26px;
  padding: 8px 13px;
  color: #77736b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  cursor: not-allowed;
  font-size: 12px;
}

.gk-admin-sidebar-overlay {
  display: none;
}

.gk-admin-noscript {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 100;
  margin: 0;
  padding: 12px 15px;
  color: #fff;
  border-radius: 12px;
  background: #8d2828;
  font-size: 14px;
}

/* تم نهایی روشن، گرم و سلطنتی */

.gk-admin-login,
.gk-admin-dashboard {
  --gk-surface: rgba(255, 251, 245, 0.96);
  --gk-surface-strong: #fffaf3;
  --gk-surface-soft: rgba(122, 33, 57, 0.035);
  --gk-border: rgba(87, 62, 70, 0.17);
  --gk-border-strong: rgba(122, 33, 57, 0.43);
  --gk-gold: #b4872c;
  --gk-gold-soft: #c49a45;
  --gk-text: #17284b;
  --gk-muted: #716d70;
  --gk-danger: #b5264d;
  --gk-shadow: 0 22px 58px rgba(74, 43, 52, 0.14);
  color-scheme: light;
}

.gk-admin-login {
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(122, 33, 57, 0.09),
      transparent 26rem
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(23, 40, 75, 0.085),
      transparent 30rem
    ),
    linear-gradient(135deg, #f5eee6 0%, #fffaf3 52%, #f4e8e5 100%);
}

.gk-admin-login-card {
  border: 2px solid transparent;
  background:
    linear-gradient(#fffaf4, #fffaf4) padding-box,
    linear-gradient(105deg, #17284b, #7a2139 72%, #9e3152) border-box;
  box-shadow:
    0 26px 68px rgba(74, 43, 52, 0.16),
    0 8px 24px rgba(23, 40, 75, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.92);
}

.gk-admin-login-card::before {
  right: 3%;
  width: 94%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #17284b, #7a2139 62%, #b4872c);
}

.gk-admin-login-intro {
  min-height: 380px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid rgba(87, 62, 70, 0.18);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(122, 33, 57, 0.1),
      transparent 15rem
    ),
    radial-gradient(
      circle at 0 100%,
      rgba(23, 40, 75, 0.085),
      transparent 16rem
    ),
    linear-gradient(150deg, #fbf5ef, #f8eeeb 62%, #f5f0ed);
}

.gk-admin-login-intro::before {
  position: absolute;
  top: -92px;
  left: -82px;
  width: 220px;
  height: 220px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(122, 33, 57, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(122, 33, 57, 0.035),
    0 0 0 52px rgba(23, 40, 75, 0.025);
}

.gk-admin-login-intro::after {
  right: -96px;
  bottom: -118px;
  width: 250px;
  height: 250px;
  border-color: rgba(23, 40, 75, 0.04);
}

.gk-admin-login-access {
  min-height: 380px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(122, 33, 57, 0.045), transparent 15rem),
    #fffaf4;
}

.gk-admin-login-access::after {
  position: absolute;
  bottom: -105px;
  left: -94px;
  width: 220px;
  height: 220px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(23, 40, 75, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(122, 33, 57, 0.025);
}

.gk-admin-login-access > * {
  position: relative;
  z-index: 1;
}

.gk-admin-login .gk-admin-brand-mark {
  border-color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #9b2449, #17284b 78%);
  box-shadow:
    0 12px 28px rgba(23, 40, 75, 0.2),
    0 0 0 4px rgba(122, 33, 57, 0.055);
}

.gk-admin-login .gk-admin-brand {
  justify-content: center;
}

.gk-admin-login .gk-admin-brand > span:last-child {
  align-items: center;
  text-align: center;
}

.gk-admin-login-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.gk-admin-login-heading p {
  max-width: 330px;
}

.gk-admin-login-heading h1,
.gk-admin-login-access-head strong {
  color: #17284b;
}

.gk-admin-login-access-head strong::after {
  width: 38px;
  height: 3px;
  margin-top: 7px;
  display: block;
  content: "";
  border-radius: 999px;
  background: #8b1f43;
}

.gk-admin-login-form input {
  color: #17284b;
  border-color: rgba(23, 40, 75, 0.26);
  background: rgba(255, 253, 249, 0.95);
  box-shadow:
    inset 0 1px 2px rgba(74, 43, 52, 0.045),
    0 5px 14px rgba(74, 43, 52, 0.025);
}

.gk-admin-login-form input[type="email"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

.gk-admin-login-form input:focus {
  border-color: rgba(122, 33, 57, 0.58);
  box-shadow: 0 0 0 4px rgba(122, 33, 57, 0.075);
}

.gk-admin-password-toggle {
  color: #17284b;
  background: #f1ece8;
}

.gk-admin-login-submit {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(105deg, #17284b, #7a2139 72%, #a42e52);
  box-shadow:
    0 12px 28px rgba(86, 35, 57, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.22);
}

body.gk-admin-preview-open {
  min-height: 100vh;
  padding: 8px;
  color: #17284b;
  background:
    radial-gradient(circle at 0 0, rgba(122, 33, 57, 0.09), transparent 30rem),
    linear-gradient(135deg, #f3e9df, #fbf6ef);
}

.gk-admin-dashboard {
  min-height: calc(100vh - 16px);
  overflow: hidden;
  color: #17284b;
  border: 2px solid transparent;
  border-radius: 27px;
  background:
    linear-gradient(#fbf7f1, #fbf7f1) padding-box,
    linear-gradient(110deg, #17284b, #7a2139 78%, #a12b4e) border-box;
  box-shadow:
    0 22px 55px rgba(74, 43, 52, 0.14),
    0 6px 20px rgba(23, 40, 75, 0.08);
}

.gk-admin-sidebar {
  height: calc(100vh - 20px);
  overflow: hidden auto;
  border-left: 1px solid rgba(122, 33, 57, 0.22);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(122, 33, 57, 0.13),
      transparent 15rem
    ),
    radial-gradient(circle at 0 80%, rgba(23, 40, 75, 0.08), transparent 16rem),
    linear-gradient(165deg, #fbf5ef, #f8ece9 62%, #f5f0ec);
  box-shadow: -16px 0 42px rgba(74, 43, 52, 0.07);
}

.gk-admin-sidebar::before {
  position: absolute;
  top: -82px;
  right: -92px;
  width: 220px;
  height: 220px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(122, 33, 57, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 27px rgba(122, 33, 57, 0.035),
    0 0 0 55px rgba(23, 40, 75, 0.025);
}

.gk-admin-sidebar > * {
  position: relative;
  z-index: 1;
}

.gk-admin-sidebar .gk-admin-brand-mark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, #9b2449, #17284b 78%);
  box-shadow: 0 10px 24px rgba(23, 40, 75, 0.18);
}

.gk-admin-sidebar .gk-admin-brand strong {
  color: #17284b;
}

.gk-admin-sidebar .gk-admin-brand small {
  color: #716d70;
}

.gk-admin-sidebar-close,
.gk-admin-menu-button {
  color: #7a2139;
  border-color: rgba(122, 33, 57, 0.22);
  background: rgba(122, 33, 57, 0.045);
}

.gk-admin-nav {
  margin-top: 27px;
  gap: 5px;
}

.gk-admin-nav button {
  min-height: 44px;
  color: #273858;
  border-color: transparent;
  background: transparent;
}

.gk-admin-nav button > span {
  color: #263b68;
  background: rgba(23, 40, 75, 0.055);
}

.gk-admin-nav button:hover {
  color: #7a2139;
  border-color: rgba(122, 33, 57, 0.1);
  background: rgba(122, 33, 57, 0.045);
}

.gk-admin-nav button.is-active {
  color: #fff;
  border-color: rgba(122, 33, 57, 0.25);
  background: linear-gradient(105deg, #17284b, #7a2139 72%, #a12b4e);
  box-shadow: 0 9px 22px rgba(65, 38, 58, 0.17);
}

.gk-admin-nav button.is-active > span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.gk-admin-nav .gk-admin-assistant-nav {
  color: #17284b;
  border-color: rgba(122, 33, 57, 0.35);
  background:
    linear-gradient(#fbf5ef, #fbf5ef) padding-box,
    linear-gradient(100deg, rgba(23, 40, 75, 0.3), rgba(122, 33, 57, 0.34))
      border-box;
  box-shadow: 0 7px 17px rgba(74, 43, 52, 0.07);
}

.gk-admin-nav .gk-admin-assistant-nav > span {
  color: #9a2448;
  background: rgba(122, 33, 57, 0.07);
}

.gk-admin-nav .gk-admin-assistant-nav.is-active {
  color: #fff;
  background: linear-gradient(105deg, #17284b, #7a2139 72%, #a12b4e);
}

.gk-admin-nav .gk-admin-assistant-nav.is-active > span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.gk-admin-connection-state {
  border-color: rgba(87, 62, 70, 0.15);
  background: rgba(255, 251, 245, 0.5);
}

.gk-admin-connection-state > span {
  background: #aaa3a0;
  box-shadow: none;
}

.gk-admin-connection-state strong {
  color: #2c3953;
}

.gk-admin-connection-state small,
.gk-admin-sidebar-foot > a {
  color: #777174;
}

.gk-admin-sidebar-foot > a:hover {
  color: #7a2139;
}

.gk-admin-workspace {
  background:
    radial-gradient(
      circle at 0 100%,
      rgba(122, 33, 57, 0.045),
      transparent 25rem
    ),
    #fbf7f1;
}

.gk-admin-topbar {
  border-bottom-color: rgba(87, 62, 70, 0.13);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 8px 24px rgba(74, 43, 52, 0.045);
}

.gk-admin-topbar-title p,
.gk-admin-account-text small {
  color: #777174;
}

.gk-admin-topbar-title h1,
.gk-admin-account-text strong {
  color: #17284b;
}

.gk-admin-account-avatar {
  color: #fff;
  background: linear-gradient(145deg, #17284b, #394e78);
  box-shadow: 0 7px 18px rgba(23, 40, 75, 0.15);
}

.gk-admin-account button {
  color: #7a2139;
  border-color: rgba(122, 33, 57, 0.3);
  background: rgba(255, 251, 245, 0.78);
}

.gk-admin-account button:hover {
  color: #fff;
  border-color: #7a2139;
  background: #7a2139;
}

.gk-admin-dashboard :focus-visible {
  outline-color: rgba(122, 33, 57, 0.5);
}

.gk-admin-eyebrow {
  color: #9b2449;
}

.gk-admin-welcome h2,
.gk-admin-section-head h2,
.gk-admin-flow h2,
.gk-admin-card-head h2,
.gk-admin-settings-grid h3 {
  color: #17284b;
}

.gk-admin-welcome p,
.gk-admin-section-head p,
.gk-admin-card-head p,
.gk-admin-settings-grid p {
  color: #716d70;
}

.gk-admin-offline-badge,
.gk-admin-assistant-state {
  color: #a32148;
  border-color: rgba(163, 33, 72, 0.3);
  background: rgba(163, 33, 72, 0.045);
}

.gk-admin-offline-badge i,
.gk-admin-assistant-state i {
  background: #a32148;
  box-shadow: 0 0 10px rgba(163, 33, 72, 0.2);
}

.gk-admin-connection-state.is-online,
.gk-admin-offline-badge.is-online {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.25);
  background: rgba(35, 100, 81, 0.06);
}

.gk-admin-connection-state.is-online > span,
.gk-admin-offline-badge.is-online i {
  background: #2d8067;
  box-shadow: 0 0 10px rgba(45, 128, 103, 0.25);
}

.gk-admin-connection-state.is-online small {
  color: #397563;
}

.gk-admin-stats article {
  min-height: 145px;
  border-color: rgba(87, 62, 70, 0.14);
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(122, 33, 57, 0.055),
      transparent 8rem
    ),
    linear-gradient(145deg, #fffaf4, #faf4ed);
  box-shadow: 0 12px 30px rgba(74, 43, 52, 0.075);
}

.gk-admin-stats article:nth-child(even) {
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(23, 40, 75, 0.055),
      transparent 8rem
    ),
    linear-gradient(145deg, #fffaf4, #f8f3ee);
}

.gk-admin-stats article::after {
  top: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #17284b, #7a2139);
  opacity: 0.9;
}

.gk-admin-stats article:nth-child(even)::after {
  background: linear-gradient(90deg, #7a2139, #17284b);
}

.gk-admin-stats span,
.gk-admin-stats small {
  color: #777174;
}

.gk-admin-stats strong {
  color: #17284b;
}

.gk-admin-card,
.gk-admin-flow {
  border-color: rgba(87, 62, 70, 0.16);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 13px 32px rgba(74, 43, 52, 0.075);
}

.gk-admin-card-head {
  border-bottom-color: rgba(87, 62, 70, 0.11);
}

.gk-admin-text-button {
  color: #9b2449;
  border-color: rgba(155, 36, 73, 0.35);
  background: rgba(255, 251, 245, 0.75);
}

.gk-admin-text-button:hover {
  color: #fff;
  border-color: #7a2139;
  background: #7a2139;
}

.gk-admin-table-wrap th {
  color: #4f596c;
  border-bottom-color: rgba(87, 62, 70, 0.1);
  background: #f2ebe3;
}

.gk-admin-empty-state {
  color: #817b7b;
}

.gk-admin-empty-state > span {
  color: #8a2949;
  border-color: rgba(122, 33, 57, 0.17);
  background: rgba(122, 33, 57, 0.05);
}

.gk-admin-empty-state strong {
  color: #46516a;
}

.gk-admin-empty-state p {
  color: #817b7b;
}

.gk-admin-flow {
  background:
    radial-gradient(
      circle at 0 100%,
      rgba(23, 40, 75, 0.045),
      transparent 14rem
    ),
    rgba(255, 251, 245, 0.9);
}

.gk-admin-flow ol::before {
  background: linear-gradient(
    90deg,
    rgba(23, 40, 75, 0.28),
    rgba(122, 33, 57, 0.3)
  );
}

.gk-admin-flow li {
  border-color: rgba(87, 62, 70, 0.12);
  background: #fffaf4;
}

.gk-admin-flow li > span {
  color: #17284b;
  border-color: rgba(23, 40, 75, 0.16);
  background: #eee9e4;
}

.gk-admin-flow li strong {
  color: #2e3a55;
}

.gk-admin-flow li small {
  color: #817b7b;
}

.gk-admin-filters {
  border-color: rgba(87, 62, 70, 0.15);
  background: rgba(255, 251, 245, 0.82);
}

.gk-admin-filters label > span {
  color: #5d5b62;
}

.gk-admin-filters input,
.gk-admin-filters select {
  color: #17284b;
  border-color: rgba(23, 40, 75, 0.18);
  background: #fffaf4;
}

.gk-admin-filters input:focus,
.gk-admin-filters select:focus {
  border-color: rgba(122, 33, 57, 0.5);
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgba(122, 33, 57, 0.07);
}

.gk-admin-filters select {
  color-scheme: light;
}

.gk-admin-settings-grid article > span {
  color: #9b2449;
}

.gk-admin-settings-grid button {
  color: #827c7c;
  border-color: rgba(87, 62, 70, 0.13);
  background: #f1ebe5;
}

.gk-admin-assistant-head {
  align-items: center;
}

.gk-admin-assistant-state {
  min-height: 38px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.gk-admin-assistant-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.gk-admin-assistant-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 14px;
}

.gk-admin-assistant-chat {
  min-height: 510px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 0 0, rgba(122, 33, 57, 0.055), transparent 17rem),
    rgba(255, 251, 245, 0.94);
}

.gk-admin-assistant-empty {
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #777174;
  text-align: center;
}

.gk-admin-assistant-empty > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(145deg, #17284b, #7a2139);
  box-shadow: 0 12px 25px rgba(74, 43, 52, 0.16);
  font-size: 26px;
}

.gk-admin-assistant-empty strong {
  margin-top: 16px;
  color: #17284b;
  font-size: 18px;
}

.gk-admin-assistant-empty p {
  max-width: 520px;
  margin: 5px 0 0;
  font-size: 14px;
}

.gk-admin-assistant-form {
  margin-top: auto;
  display: grid;
  gap: 7px;
}

.gk-admin-assistant-form label {
  color: #39445c;
  font-size: 14px;
  font-weight: 800;
}

.gk-admin-assistant-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.gk-admin-assistant-form textarea {
  width: 100%;
  min-height: 82px;
  padding: 12px 14px;
  resize: vertical;
  color: #6f6a6d;
  border: 1px solid rgba(23, 40, 75, 0.16);
  border-radius: 13px;
  background: #f3ede7;
  opacity: 1;
  font: inherit;
}

.gk-admin-assistant-form button {
  min-width: 118px;
  padding: 10px 16px;
  color: #8c8687;
  border: 1px solid rgba(87, 62, 70, 0.13);
  border-radius: 13px;
  background: #eee7e1;
  cursor: not-allowed;
  font-weight: 800;
}

.gk-admin-assistant-examples {
  min-height: 510px;
  padding: 22px;
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(23, 40, 75, 0.07),
      transparent 13rem
    ),
    #f9f2ec;
}

.gk-admin-assistant-examples h3 {
  margin: 8px 0 18px;
  color: #17284b;
  font-size: 18px;
}

.gk-admin-assistant-examples ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.gk-admin-assistant-examples li {
  padding: 12px 13px;
  color: #49536a;
  border: 1px solid rgba(87, 62, 70, 0.12);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.72);
  font-size: 13px;
}

.gk-admin-assistant-examples li::before {
  margin-left: 8px;
  color: #9b2449;
  content: "✦";
}

.gk-admin-assistant-examples > p {
  margin: 24px 0 0;
  padding-top: 17px;
  color: #777174;
  border-top: 1px solid rgba(87, 62, 70, 0.12);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .gk-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .gk-admin-assistant-examples {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  body.gk-admin-preview-open {
    padding: 0;
  }

  .gk-admin-dashboard {
    min-height: 100vh;
    display: block;
    border: 0;
    border-radius: 0;
  }

  .gk-admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    height: 100vh;
    border-right: 0;
    transform: translateX(105%);
    transition: transform 0.25s ease;
  }

  .gk-admin-dashboard.is-sidebar-open .gk-admin-sidebar {
    transform: translateX(0);
  }

  .gk-admin-sidebar-close,
  .gk-admin-menu-button {
    display: grid;
    place-items: center;
  }

  .gk-admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    pointer-events: none;
    border: 0;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .gk-admin-dashboard.is-sidebar-open .gk-admin-sidebar-overlay {
    pointer-events: auto;
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .gk-admin-login {
    padding: 12px;
    place-items: start center;
  }

  .gk-admin-login-card {
    width: min(100%, 560px);
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .gk-admin-login-intro {
    min-height: auto;
    padding: 21px 22px 18px;
    border-bottom: 1px solid rgba(23, 40, 75, 0.1);
    border-left: 0;
  }

  .gk-admin-login-access {
    min-height: auto;
  }

  .gk-admin-login-heading {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gk-admin-login-heading .gk-admin-lock {
    grid-row: 1 / 3;
  }

  .gk-admin-login-heading h1 {
    margin: 0;
    font-size: 25px;
  }

  .gk-admin-login-heading p {
    grid-column: 2;
  }

  .gk-admin-security-note {
    margin-top: 14px;
    padding-top: 0;
  }

  .gk-admin-login-access {
    padding: 20px 22px;
  }
}

@media (max-width: 720px) {
  .gk-admin-topbar {
    min-height: 74px;
    padding: 11px 14px;
  }

  .gk-admin-account-text {
    display: none;
  }

  .gk-admin-main {
    padding: 20px 14px 30px;
  }

  .gk-admin-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-admin-stats {
    margin-top: 18px;
  }

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

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

  .gk-admin-assistant-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-admin-assistant-form > div {
    grid-template-columns: 1fr;
  }

  .gk-admin-assistant-form button {
    min-height: 45px;
  }
}

.gk-admin-list-status {
  min-height: 24px;
  margin: 0 0 12px;
  color: #777174;
  font-size: 12px;
  font-weight: 750;
}

/* بکاپ کامل سایت */

.gk-admin-backups-head {
  align-items: center;
}

.gk-admin-backup-warning {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #7c5b19;
  border: 1px solid rgba(180, 135, 44, 0.24);
  border-radius: 13px;
  background: rgba(242, 199, 92, 0.1);
  font-size: 12px;
  font-weight: 750;
}

.gk-admin-backup-warning span {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #9a6d17;
  font-weight: 900;
}

.gk-admin-backup-warning p {
  margin: 0;
}

.gk-admin-card.gk-admin-backup-create-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-color: rgba(35, 115, 74, 0.2);
  background:
    radial-gradient(circle at 0 100%, rgba(35, 115, 74, 0.08), transparent 18rem),
    #fffdf9;
}

.gk-admin-backup-create-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(145deg, #2c7d59, #18533b);
  box-shadow: 0 10px 24px rgba(35, 115, 74, 0.2);
  font-size: 28px;
  font-weight: 900;
}

.gk-admin-backup-create-copy {
  min-width: 0;
}

.gk-admin-backup-create-copy > span {
  color: #23734a;
  font-size: 11px;
  font-weight: 900;
}

.gk-admin-backup-create-copy h3 {
  margin: 3px 0 4px;
  color: #253753;
  font-size: 17px;
}

.gk-admin-backup-create-copy p {
  max-width: 680px;
  margin: 0;
  color: #6b6c73;
  font-size: 12px;
  line-height: 1.9;
}

.gk-admin-backup-create-button,
.gk-admin-backup-download {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #2b7b58, #19523b);
  box-shadow: 0 9px 20px rgba(35, 115, 74, 0.17);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.gk-admin-backup-create-button:hover:not(:disabled),
.gk-admin-backup-download:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gk-admin-backup-create-button:disabled,
#gkAdminBackupsRefresh:disabled {
  cursor: wait;
  filter: saturate(0.5);
  opacity: 0.65;
}

.gk-admin-list-status.gk-admin-backup-status {
  min-height: 24px;
  margin: 12px 2px;
}

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

.gk-admin-backup-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
}

.gk-admin-backup-item-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #7a2139;
  border: 1px solid rgba(122, 33, 57, 0.18);
  border-radius: 13px;
  background: rgba(122, 33, 57, 0.055);
  font-size: 10px;
  font-weight: 950;
}

.gk-admin-backup-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.gk-admin-backup-item-copy strong {
  overflow: hidden;
  color: #273858;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-admin-backup-item-copy small {
  color: #777986;
  font-size: 11px;
}

.gk-admin-backup-download {
  min-width: 90px;
  min-height: 38px;
  background: linear-gradient(135deg, #293651, #7a2139);
  box-shadow: 0 8px 18px rgba(74, 43, 52, 0.14);
}

.gk-admin-backups-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #777986;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 760px) {
  .gk-admin-backup-create-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .gk-admin-backup-create-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .gk-admin-backup-create-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .gk-admin-backup-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .gk-admin-backup-item-icon {
    width: 42px;
    height: 42px;
  }

  .gk-admin-backup-download {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.gk-admin-list-status[data-state="success"] {
  color: #236451;
}

.gk-admin-list-status[data-state="error"] {
  color: #9b274d;
}

.gk-admin-list-status[data-state="loading"] {
  color: #315f91;
}

.gk-admin-ad-identity,
.gk-admin-ad-contact,
.gk-admin-ad-action-wrap {
  display: grid;
  gap: 5px;
}

.gk-admin-ad-identity strong,
.gk-admin-ad-contact strong {
  color: #2e2428;
  font-size: 12px;
}

.gk-admin-ad-identity small,
.gk-admin-ad-contact small,
.gk-admin-ad-action-wrap small {
  color: #777174;
  font-size: 10px;
}

.gk-admin-ad-state {
  width: max-content;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.gk-admin-ad-state.is-pending {
  color: #855d0d;
  border-color: rgba(180, 135, 44, 0.28);
  background: rgba(180, 135, 44, 0.08);
}

.gk-admin-ad-state.is-approved {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.24);
  background: rgba(35, 100, 81, 0.07);
}

.gk-admin-ad-state.is-rejected {
  color: #9b274d;
  border-color: rgba(155, 39, 77, 0.22);
  background: rgba(155, 39, 77, 0.06);
}

.gk-admin-ad-featured-request {
  color: #7a2139 !important;
  font-weight: 800;
}

.gk-admin-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gk-admin-ad-actions button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
}

.gk-admin-ad-actions .is-approve {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.28);
  background: rgba(35, 100, 81, 0.06);
}

.gk-admin-ad-actions .is-delete {
  border-color: #b42318;
  background: #fff5f5;
  color: #b42318;
}

.gk-admin-ad-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.gk-admin-ad-rejection {
  max-width: 220px;
  color: #9b274d !important;
  line-height: 1.75;
}

.gk-admin-ads-table td {
  vertical-align: top;
}

@media (max-width: 720px) {
  .gk-admin-ads-table {
    min-width: 780px;
  }
}

@media (max-width: 540px) {
  .gk-admin-login {
    padding: 8px;
  }

  .gk-admin-login-card {
    border-radius: 18px;
  }

  .gk-admin-login-intro,
  .gk-admin-login-access {
    padding-inline: 17px;
  }

  .gk-admin-login-access-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .gk-admin-preview-box {
    grid-template-columns: 1fr;
  }

  .gk-admin-preview-box button {
    width: 100%;
  }

  .gk-admin-account-avatar {
    display: none;
  }

  .gk-admin-account button {
    padding-inline: 10px;
  }

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

  .gk-admin-stats article {
    min-height: 125px;
  }

  .gk-admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-admin-flow ol {
    grid-template-columns: 1fr;
  }

  .gk-admin-assistant-chat,
  .gk-admin-assistant-examples {
    min-height: auto;
    padding: 17px;
  }

  .gk-admin-assistant-empty {
    min-height: 240px;
    padding-inline: 10px;
  }
}

@media (min-width: 761px) and (max-height: 650px) {
  .gk-admin-login {
    padding: 10px;
  }

  .gk-admin-login-intro {
    padding: 24px 28px 21px;
  }

  .gk-admin-login-access {
    padding: 21px 30px 18px;
  }

  .gk-admin-login-heading {
    margin-top: 21px;
  }

  .gk-admin-security-note {
    padding-top: 20px;
  }

  .gk-admin-login-form {
    margin-top: 11px;
    gap: 5px;
  }

  .gk-admin-login-form input {
    height: 42px;
  }

  .gk-admin-preview-box {
    margin-top: 8px;
    padding-block: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* چرخش آرام لوگوی صفحه ورود */
.gk-admin-login .gk-admin-brand-mark {
  transform-origin: center;
  animation: gkAdminLogoSpin 8s linear infinite;
}

@keyframes gkAdminLogoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* مدیریت مدیران؛ فقط برای حساب مالک */

.gk-admin-managers-head {
  align-items: center;
}

.gk-admin-owner-badge {
  min-height: 38px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #7a2139;
  border: 1px solid rgba(122, 33, 57, 0.25);
  border-radius: 999px;
  background: rgba(122, 33, 57, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.gk-admin-owner-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #17284b, #7a2139);
  box-shadow: 0 0 0 4px rgba(122, 33, 57, 0.07);
}

.gk-admin-managers-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 15px;
}

.gk-admin-manager-create,
.gk-admin-manager-list {
  overflow: hidden;
}

.gk-admin-manager-form {
  padding: 19px 20px 21px;
  display: grid;
  gap: 7px;
}

.gk-admin-manager-form label {
  margin-top: 5px;
  color: #39445c;
  font-size: 13px;
  font-weight: 800;
}

.gk-admin-manager-form input,
.gk-admin-manager-form select {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 13px;
  color: #17284b;
  border: 1px solid rgba(23, 40, 75, 0.2);
  border-radius: 11px;
  background: #fffaf4;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.gk-admin-manager-form input::placeholder {
  color: #989193;
}

.gk-admin-manager-form input:focus,
.gk-admin-manager-form select:focus {
  border-color: rgba(122, 33, 57, 0.55);
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgba(122, 33, 57, 0.07);
  outline: none;
}

.gk-admin-manager-form input[type="email"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

.gk-admin-manager-password-field {
  position: relative;
}

.gk-admin-manager-password-field input {
  padding-left: 78px;
}

.gk-admin-manager-password-toggle {
  position: absolute;
  top: 50%;
  left: 6px;
  min-width: 64px;
  height: 33px;
  padding: 0 9px;
  color: #17284b;
  border: 0;
  border-radius: 8px;
  background: #eee8e4;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 800;
}

.gk-admin-manager-security-note {
  margin: 7px 0 2px;
  padding: 10px 11px;
  color: #71696d;
  border: 1px solid rgba(180, 135, 44, 0.19);
  border-radius: 10px;
  background: rgba(180, 135, 44, 0.055);
  font-size: 11px;
  line-height: 1.75;
}

.gk-admin-manager-submit {
  min-height: 45px;
  margin-top: 6px;
  padding: 9px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  background: linear-gradient(105deg, #17284b, #7a2139 72%, #9e3152);
  box-shadow: 0 10px 23px rgba(74, 43, 52, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.gk-admin-manager-submit:hover {
  filter: brightness(1.06);
}

.gk-admin-manager-submit:disabled,
.gk-admin-manager-password-toggle:disabled,
#gkAdminManagersRefresh:disabled {
  cursor: wait;
  filter: saturate(0.55);
  opacity: 0.65;
}

.gk-admin-manager-status,
.gk-admin-manager-list-status {
  min-height: 21px;
  color: #716d70;
  font-size: 12px;
}

.gk-admin-manager-status {
  margin: 1px 0 0;
}

.gk-admin-manager-list-status {
  margin: 0;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(87, 62, 70, 0.1);
}

.gk-admin-manager-status[data-state="loading"],
.gk-admin-manager-list-status[data-state="loading"] {
  color: #394e78;
}

.gk-admin-manager-status[data-state="success"],
.gk-admin-manager-list-status[data-state="success"] {
  color: #236451;
  font-weight: 700;
}

.gk-admin-manager-status[data-state="error"],
.gk-admin-manager-list-status[data-state="error"] {
  color: #a32148;
  font-weight: 700;
}

.gk-admin-managers-table table {
  min-width: 790px;
}

.gk-admin-managers-table tbody td {
  padding: 14px 18px;
  color: #4f596c;
  border-bottom: 1px solid rgba(87, 62, 70, 0.085);
  font-size: 12px;
  vertical-align: middle;
}

.gk-admin-managers-table tbody tr:last-child td {
  border-bottom: 0;
}

.gk-admin-managers-table tbody tr:hover {
  background: rgba(122, 33, 57, 0.025);
}

.gk-admin-manager-identity {
  min-width: 185px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gk-admin-manager-identity strong {
  color: #273858;
  font-size: 13px;
}

.gk-admin-manager-identity small {
  width: fit-content;
  color: #777174;
  font-size: 11px;
  text-align: left;
  unicode-bidi: plaintext;
}

.gk-admin-role-badge,
.gk-admin-account-state {
  min-height: 28px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.gk-admin-role-badge {
  color: #394e78;
  border-color: rgba(23, 40, 75, 0.19);
  background: rgba(23, 40, 75, 0.05);
}

.gk-admin-role-badge.is-owner {
  color: #7a2139;
  border-color: rgba(122, 33, 57, 0.22);
  background: rgba(122, 33, 57, 0.055);
}

.gk-admin-role-badge.is-moderator {
  color: #775913;
  border-color: rgba(180, 135, 44, 0.24);
  background: rgba(180, 135, 44, 0.06);
}

.gk-admin-account-state.is-active {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.21);
  background: rgba(35, 100, 81, 0.055);
}

.gk-admin-account-state.is-inactive {
  color: #8a2949;
  border-color: rgba(138, 41, 73, 0.2);
  background: rgba(138, 41, 73, 0.05);
}

.gk-admin-manager-date {
  min-width: 122px;
  color: #777174 !important;
}

.gk-admin-manager-action {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid;
  border-radius: 9px;
  background: transparent;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.gk-admin-manager-action.is-deactivate {
  color: #8a2949;
  border-color: rgba(138, 41, 73, 0.24);
  background: rgba(138, 41, 73, 0.045);
}

.gk-admin-manager-action.is-activate {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.24);
  background: rgba(35, 100, 81, 0.05);
}

.gk-admin-manager-action:disabled {
  color: #8b8585;
  border-color: rgba(87, 62, 70, 0.12);
  background: #f0eae4;
  cursor: not-allowed;
  opacity: 0.75;
}

.gk-admin-manager-loading-row {
  height: 150px;
  color: #777174 !important;
  text-align: center;
}

@media (max-width: 1180px) {
  .gk-admin-managers-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gk-admin-managers-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-admin-manager-form,
  .gk-admin-manager-list-status {
    padding-inline: 15px;
  }
}

body.gk-admin-ad-modal-open {
  overflow: hidden;
}

.gk-admin-ad-modal[hidden] {
  display: none !important;
}

.gk-admin-ad-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(21, 27, 45, 0.68);
  direction: rtl;
}

.gk-admin-ad-modal-window {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(122, 33, 57, 0.16);
  border-radius: 24px;
  background: #fffaf6;
  box-shadow: 0 26px 70px rgba(16, 24, 40, 0.32);
}

.gk-admin-ad-modal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(67, 75, 102, 0.12);
  background: rgba(255, 250, 246, 0.97);
}

.gk-admin-ad-modal-head span {
  color: #7a2139;
  font-size: 11px;
  font-weight: 850;
}

.gk-admin-ad-modal-head h2 {
  margin: 5px 0 3px;
  color: #252a43;
  font-size: clamp(18px, 3vw, 25px);
}

.gk-admin-ad-modal-head p {
  margin: 0;
  color: #777174;
  font-size: 11px;
}

.gk-admin-ad-modal-head > button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(67, 75, 102, 0.17);
  border-radius: 12px;
  background: #fff;
  color: #7a2139;
  font: 800 24px/1 Arial, sans-serif;
}

.gk-admin-ad-modal-body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.gk-admin-ad-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.gk-admin-ad-detail-images a {
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(67, 75, 102, 0.13);
  border-radius: 15px;
  background: #eee8e3;
}

.gk-admin-ad-detail-images img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  max-height: 250px;
  object-fit: cover;
}

.gk-admin-ad-detail-summary,
.gk-admin-ad-detail-extra dl {
  display: grid;
  grid-template-columns: minmax(135px, 0.42fr) minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(67, 75, 102, 0.12);
  border-radius: 15px;
  background: #fff;
}

.gk-admin-ad-detail-summary dt,
.gk-admin-ad-detail-summary dd,
.gk-admin-ad-detail-extra dt,
.gk-admin-ad-detail-extra dd {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(67, 75, 102, 0.09);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
}

.gk-admin-ad-detail-summary dt,
.gk-admin-ad-detail-extra dt {
  color: #46506e;
  background: #f7f2ee;
  font-weight: 850;
}

.gk-admin-ad-detail-summary dd,
.gk-admin-ad-detail-extra dd {
  color: #2e2428;
  font-weight: 700;
}

.gk-admin-ad-detail-description,
.gk-admin-ad-detail-extra {
  padding: 18px;
  border: 1px solid rgba(67, 75, 102, 0.12);
  border-radius: 15px;
  background: #fff;
}

.gk-admin-ad-detail-description h3,
.gk-admin-ad-detail-extra h3 {
  margin: 0 0 10px;
  color: #252a43;
  font-size: 14px;
}

.gk-admin-ad-detail-description p {
  margin: 0;
  color: #4e4749;
  white-space: pre-wrap;
  font-size: 12px;
  font-weight: 650;
  line-height: 2;
}

.gk-admin-ad-detail-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(67, 75, 102, 0.2);
  border-radius: 14px;
  color: #777174;
  background: #f8f4f0;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.gk-admin-ad-modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid rgba(67, 75, 102, 0.12);
  background: rgba(255, 250, 246, 0.97);
}

.gk-admin-ad-modal-footer button {
  min-width: 120px;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #293651, #7a2139);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.gk-admin-ad-actions .is-view {
  color: #315f91;
  border-color: rgba(49, 95, 145, 0.25);
  background: rgba(49, 95, 145, 0.06);
}

@media (max-width: 620px) {
  .gk-admin-ad-modal {
    padding: 10px;
  }

  .gk-admin-ad-modal-window {
    max-height: calc(100vh - 20px);
    border-radius: 17px;
  }

  .gk-admin-ad-modal-head,
  .gk-admin-ad-modal-body,
  .gk-admin-ad-modal-footer {
    padding-inline: 15px;
  }

  .gk-admin-ad-detail-summary,
  .gk-admin-ad-detail-extra dl {
    grid-template-columns: 1fr;
  }

  .gk-admin-ad-detail-summary dt,
  .gk-admin-ad-detail-extra dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .gk-admin-ad-detail-summary dd,
  .gk-admin-ad-detail-extra dd {
    padding-top: 4px;
  }
}

/* کاربران سایت */

.gk-admin-users-head {
  align-items: flex-end;
}

.gk-admin-users-filters {
  margin: 24px 0 10px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.34fr);
  gap: 12px;
}

.gk-admin-users-filters label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.gk-admin-users-filters label > span {
  color: #5c5861;
  font-size: 11px;
  font-weight: 850;
}

.gk-admin-users-filters input,
.gk-admin-users-filters select {
  width: 100%;
  min-height: 45px;
  padding: 10px 13px;
  color: #252a43;
  border: 1px solid rgba(67, 75, 102, 0.18);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 251, 247, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.gk-admin-users-filters input:focus,
.gk-admin-users-filters select:focus {
  border-color: rgba(122, 33, 57, 0.55);
  box-shadow: 0 0 0 3px rgba(122, 33, 57, 0.08);
}

.gk-admin-users-list {
  display: grid;
  gap: 11px;
}

.gk-admin-users-placeholder,
.gk-admin-users-empty {
  min-height: 150px;
  padding: 28px;
  display: grid;
  place-items: center;
  color: #777174;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.gk-admin-user-card {
  overflow: hidden;
  border: 1px solid rgba(67, 75, 102, 0.14);
  border-radius: 17px;
  background: rgba(255, 251, 247, 0.94);
  box-shadow: 0 9px 24px rgba(50, 38, 44, 0.055);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.gk-admin-user-card:hover {
  border-color: rgba(122, 33, 57, 0.28);
  box-shadow: 0 12px 28px rgba(50, 38, 44, 0.085);
  transform: translateY(-1px);
}

.gk-admin-user-card.is-expanded {
  border-color: rgba(122, 33, 57, 0.36);
  box-shadow: 0 16px 38px rgba(50, 38, 44, 0.11);
  transform: none;
}

.gk-admin-user-summary {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  color: #252a43;
  background:
    linear-gradient(90deg, rgba(122, 33, 57, 0.035), transparent 44%),
    transparent;
}

.gk-admin-user-summary:hover {
  background:
    linear-gradient(90deg, rgba(122, 33, 57, 0.065), transparent 48%),
    rgba(23, 40, 75, 0.012);
}

.gk-admin-user-expand {
  min-width: 0;
  min-height: 86px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 48px minmax(155px, 0.75fr) minmax(210px, 1fr) 26px;
  align-items: center;
  gap: 13px;
  flex: 1 1 auto;
  color: #252a43;
  border: 0;
  background: transparent;
  text-align: right;
}

.gk-admin-user-summary-actions {
  padding: 15px 17px 15px 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.gk-admin-user-message {
  min-height: 31px;
  padding: 5px 12px;
  color: #273c66;
  border: 1px solid rgba(39, 60, 102, 0.28);
  border-radius: 999px;
  background: rgba(39, 60, 102, 0.07);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.gk-admin-user-message:hover {
  color: #fff;
  border-color: #273c66;
  background: #273c66;
  transform: translateY(-1px);
}

.gk-admin-user-message:focus-visible,
.gk-admin-user-delete:focus-visible {
  outline: 3px solid rgba(175, 124, 54, 0.27);
  outline-offset: 2px;
}

.gk-admin-user-delete {
  min-height: 31px;
  padding: 5px 10px;
  color: #a92745;
  border: 1px solid rgba(169, 39, 69, 0.28);
  border-radius: 999px;
  background: rgba(169, 39, 69, 0.055);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.gk-admin-user-delete:hover {
  color: #fff;
  border-color: #8d203e;
  background: #8d203e;
}

.gk-admin-user-delete:disabled {
  cursor: wait;
  opacity: 0.55;
}

.gk-admin-user-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 14px;
  background: linear-gradient(145deg, #26385d, #842846);
  box-shadow: 0 8px 18px rgba(44, 43, 68, 0.18);
  font-size: 18px;
  font-weight: 900;
}

.gk-admin-user-identity,
.gk-admin-user-overview {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.gk-admin-user-identity strong {
  overflow: hidden;
  color: #252a43;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.gk-admin-user-identity small {
  width: max-content;
  color: #7a2139;
  font-size: 11px;
  font-weight: 800;
}

.gk-admin-user-overview small:first-child {
  color: #3d4660;
  font-size: 11px;
  font-weight: 850;
}

.gk-admin-user-overview small:last-child {
  overflow: hidden;
  color: #777174;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.gk-admin-user-account-state {
  width: max-content;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-user-account-state.is-active {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.24);
  background: rgba(35, 100, 81, 0.07);
}

.gk-admin-user-account-state.is-inactive {
  color: #9b274d;
  border-color: rgba(155, 39, 77, 0.23);
  background: rgba(155, 39, 77, 0.06);
}

.gk-admin-user-chevron {
  color: #7a2139;
  font: 900 22px/1 Arial, sans-serif;
  transition: transform 0.2s ease;
}

.gk-admin-user-card.is-expanded .gk-admin-user-chevron {
  transform: rotate(180deg);
}

.gk-admin-user-expanded {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(340px, 1.15fr);
  gap: 14px;
  border-top: 1px solid rgba(67, 75, 102, 0.11);
  background:
    radial-gradient(circle at 0 100%, rgba(122, 33, 57, 0.055), transparent 18rem),
    #f6f1ec;
}

.gk-admin-user-profile,
.gk-admin-user-ads {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(67, 75, 102, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.gk-admin-user-profile-head,
.gk-admin-user-ads-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gk-admin-user-profile h3,
.gk-admin-user-ads h3 {
  margin: 0;
  color: #17284b;
  font-size: 13px;
}

.gk-admin-user-ads-head > span {
  color: #7a2139;
  font-size: 10px;
  font-weight: 850;
}

.gk-admin-user-details-grid {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gk-admin-user-details-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(67, 75, 102, 0.09);
  border-radius: 10px;
  background: #faf7f4;
}

.gk-admin-user-details-grid dt,
.gk-admin-user-details-grid dd {
  margin: 0;
}

.gk-admin-user-details-grid dt {
  color: #777174;
  font-size: 9px;
  font-weight: 750;
}

.gk-admin-user-details-grid dd {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #2e334b;
  font-size: 11px;
  font-weight: 850;
}

.gk-admin-user-security-note {
  margin: 12px 0 0;
  padding: 9px 11px;
  color: #64606a;
  border-right: 3px solid rgba(23, 40, 75, 0.5);
  border-radius: 7px;
  background: rgba(23, 40, 75, 0.045);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.8;
}

.gk-admin-user-profile-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gk-admin-user-profile-actions button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
}

.gk-admin-user-profile-actions button.is-deactivate {
  color: #9b274d;
  border-color: rgba(155, 39, 77, 0.26);
  background: rgba(155, 39, 77, 0.05);
}

.gk-admin-user-profile-actions button.is-activate {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.27);
  background: rgba(35, 100, 81, 0.06);
}

.gk-admin-user-profile-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.gk-admin-user-profile-actions small {
  color: #777174;
  font-size: 9px;
}

.gk-admin-user-ads-list {
  max-height: 390px;
  margin-top: 14px;
  padding-left: 3px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.gk-admin-user-ad {
  padding: 11px 12px;
  border: 1px solid rgba(67, 75, 102, 0.11);
  border-right: 3px solid #927641;
  border-radius: 11px;
  background: #fcfaf8;
}

.gk-admin-user-ad.is-published,
.gk-admin-user-ad.is-active {
  border-right-color: #2d8067;
}

.gk-admin-user-ad.is-rejected,
.gk-admin-user-ad.is-refunded {
  border-right-color: #9b274d;
}

.gk-admin-user-ad.is-approved-waiting-payment {
  border-right-color: #315f91;
}

.gk-admin-user-ad > div:first-child,
.gk-admin-user-ad > div:last-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gk-admin-user-ad > div:first-child > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gk-admin-user-ad strong {
  overflow: hidden;
  color: #2e334b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.gk-admin-user-ad small {
  color: #777174;
  font-size: 9px;
}

.gk-admin-user-ad-state {
  flex: 0 0 auto;
  color: #7a2139;
  font-size: 9px;
  font-weight: 900;
}

.gk-admin-user-ad p {
  margin: 7px 0;
  color: #615b60;
  font-size: 9px;
  line-height: 1.8;
}

.gk-admin-user-ad button {
  min-height: 29px;
  padding: 5px 9px;
  flex: 0 0 auto;
  color: #315f91;
  border: 1px solid rgba(49, 95, 145, 0.22);
  border-radius: 8px;
  background: rgba(49, 95, 145, 0.05);
  font: inherit;
  font-size: 9px;
  font-weight: 850;
}

.gk-admin-user-ads-empty,
.gk-admin-user-details-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: #777174;
  border: 1px dashed rgba(67, 75, 102, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
  font-size: 11px;
  font-weight: 750;
}

.gk-admin-user-details-message.is-error {
  color: #9b274d;
  border-color: rgba(155, 39, 77, 0.24);
}

body.gk-admin-message-modal-open {
  overflow: hidden;
}

.gk-admin-message-modal[hidden] {
  display: none !important;
}

.gk-admin-message-modal {
  position: fixed;
  z-index: 1250;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
  background: rgba(17, 24, 41, 0.76);
  backdrop-filter: blur(7px);
  direction: rtl;
}

.gk-admin-message-window {
  position: relative;
  width: min(610px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 23px;
  background:
    radial-gradient(circle at 94% 2%, rgba(133, 38, 70, 0.14), transparent 31%),
    linear-gradient(145deg, rgba(255, 252, 249, 0.98), rgba(239, 237, 241, 0.98));
  box-shadow: 0 28px 80px rgba(8, 15, 30, 0.42);
}

.gk-admin-message-window::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 22px;
  left: 22px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #7f2341, #263b66, #7f2341);
  content: "";
}

.gk-admin-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 24px 18px;
  border-bottom: 1px solid rgba(45, 52, 77, 0.12);
}

.gk-admin-message-head span {
  color: #7a2139;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-message-head h2 {
  margin: 4px 0 3px;
  color: #252a43;
  font-size: 21px;
}

.gk-admin-message-head p {
  margin: 0;
  color: #777174;
  font-size: 11px;
}

.gk-admin-message-head > button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #7a2139;
  border: 1px solid rgba(67, 75, 102, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  font: 800 23px/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.gk-admin-message-head > button:hover {
  background: #fff;
  transform: scale(1.06);
}

.gk-admin-message-body {
  display: grid;
  gap: 12px;
  padding: 20px 24px;
}

.gk-admin-message-recipient {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(37, 52, 86, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.gk-admin-message-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #263b66, #842846);
  box-shadow: 0 8px 18px rgba(43, 44, 72, 0.19);
  font-size: 18px;
}

.gk-admin-message-recipient > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gk-admin-message-recipient small {
  color: #80787b;
  font-size: 9px;
  font-weight: 800;
}

.gk-admin-message-recipient strong {
  overflow: hidden;
  color: #252a43;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.gk-admin-message-recipient > div > span {
  width: max-content;
  color: #7a2139;
  font-size: 11px;
  font-weight: 850;
}

.gk-admin-message-mode {
  padding: 5px 9px;
  color: #4c536b;
  border: 1px solid rgba(64, 73, 104, 0.16);
  border-radius: 999px;
  background: rgba(50, 61, 94, 0.06);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.gk-admin-message-label {
  padding: 2px 2px 0;
  color: #313850;
  font-size: 11px;
  font-weight: 900;
}

.gk-admin-message-field {
  padding: 5px;
  border: 1px solid rgba(48, 59, 92, 0.17);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gk-admin-message-field:focus-within {
  border-color: rgba(122, 33, 57, 0.48);
  box-shadow: 0 0 0 3px rgba(122, 33, 57, 0.08);
}

.gk-admin-message-field textarea {
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 10px 11px;
  resize: vertical;
  color: #292e43;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.9;
}

.gk-admin-message-field > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 5px;
  border-top: 1px solid rgba(48, 59, 92, 0.09);
  color: #827a7d;
}

.gk-admin-message-field small,
.gk-admin-message-field output {
  font-size: 9px;
  font-weight: 750;
}

.gk-admin-message-field output {
  direction: ltr;
  color: #5c3a4c;
  white-space: nowrap;
}

.gk-admin-message-notice {
  margin: 0;
  padding: 10px 12px;
  color: #65572d;
  border: 1px solid rgba(158, 121, 39, 0.2);
  border-radius: 11px;
  background: rgba(190, 148, 53, 0.09);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.8;
}

.gk-admin-message-notice[data-state="success"] {
  color: #26714d;
  border-color: rgba(38, 113, 77, 0.22);
  background: rgba(38, 113, 77, 0.08);
}

.gk-admin-message-notice[data-state="error"] {
  color: #942944;
  border-color: rgba(148, 41, 68, 0.22);
  background: rgba(148, 41, 68, 0.07);
}

.gk-admin-message-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 24px 20px;
  border-top: 1px solid rgba(45, 52, 77, 0.1);
}

.gk-admin-message-footer button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 11px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.gk-admin-message-footer .is-secondary {
  color: #5e5961;
  border: 1px solid rgba(55, 63, 90, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.gk-admin-message-footer .is-copy {
  color: #fff;
  border: 1px solid #263b66;
  background: linear-gradient(135deg, #263b66, #7a2139);
  box-shadow: 0 8px 18px rgba(38, 59, 102, 0.18);
}

.gk-admin-message-footer .is-send {
  color: #7e777b;
  border: 1px dashed rgba(79, 82, 101, 0.24);
  background: rgba(102, 102, 115, 0.08);
}

.gk-admin-message-footer .is-send:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

@media (max-width: 560px) {
  .gk-admin-message-modal {
    padding: 10px;
  }

  .gk-admin-message-window {
    max-height: calc(100vh - 20px);
    border-radius: 17px;
  }

  .gk-admin-message-head,
  .gk-admin-message-body,
  .gk-admin-message-footer {
    padding-inline: 15px;
  }

  .gk-admin-message-recipient {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .gk-admin-message-mode {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .gk-admin-message-footer button {
    flex: 1 1 100%;
  }
}

@media (max-width: 1040px) {
  .gk-admin-user-expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gk-admin-users-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-admin-users-filters {
    grid-template-columns: 1fr;
  }

  .gk-admin-user-summary {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .gk-admin-user-expand {
    width: 100%;
    grid-template-columns: 43px minmax(0, 1fr) auto 22px;
    gap: 10px;
    padding-inline: 12px;
    flex-basis: 100%;
  }

  .gk-admin-user-summary-actions {
    width: 100%;
    padding: 0 12px 12px;
    justify-content: flex-end;
  }

  .gk-admin-user-avatar {
    width: 41px;
    height: 41px;
  }

  .gk-admin-user-overview {
    grid-column: 2 / 5;
    padding-top: 2px;
  }

  .gk-admin-user-expanded {
    padding: 11px;
  }
}

@media (max-width: 520px) {
  .gk-admin-user-expand {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
  }

  .gk-admin-user-chevron {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .gk-admin-user-overview {
    grid-column: 1 / -1;
  }

  .gk-admin-user-details-grid {
    grid-template-columns: 1fr;
  }

  .gk-admin-user-profile,
  .gk-admin-user-ads {
    padding: 12px;
  }

  .gk-admin-user-ad > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===== کلیدهای خاموش و روشن بخش‌های عمومی سایت ===== */

.gk-admin-site-features-head {
  align-items: flex-end;
}

.gk-admin-feature-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 10px;
  padding: 11px 13px;
  color: #6c6670;
  border: 1px solid rgba(122, 33, 57, 0.14);
  border-radius: 12px;
  background: rgba(122, 33, 57, 0.045);
  font-size: 12px;
  font-weight: 750;
}

.gk-admin-feature-note.is-owner {
  color: #536174;
  border-color: rgba(23, 40, 75, 0.14);
  background: rgba(23, 40, 75, 0.045);
}

.gk-admin-feature-note > span {
  color: #9b2449;
  font-size: 13px;
}

.gk-admin-feature-note.is-owner > span {
  color: #2c8659;
}

.gk-admin-feature-note p {
  margin: 0;
}

.gk-admin-site-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 13px;
}

.gk-admin-feature-card {
  min-width: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(87, 62, 70, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 100%, rgba(23, 40, 75, 0.065), transparent 11rem),
    rgba(255, 251, 245, 0.96);
  box-shadow: 0 12px 30px rgba(74, 43, 52, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gk-admin-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(74, 43, 52, 0.11);
}

.gk-admin-feature-card.is-enabled {
  border-color: rgba(38, 94, 77, 0.27);
}

.gk-admin-feature-card.is-disabled {
  border-color: rgba(122, 33, 57, 0.22);
}

.gk-admin-feature-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.gk-admin-feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #17284b, #8f2345);
  box-shadow: 0 8px 18px rgba(45, 37, 64, 0.16);
  font-size: 20px;
}

.gk-admin-feature-card-head h3 {
  margin: 0;
  color: #17284b;
  font-size: 15px;
}

.gk-admin-feature-card-head small {
  display: block;
  margin-top: 4px;
  color: #969099;
  direction: ltr;
  font-size: 10px;
  text-align: right;
}

.gk-admin-feature-state {
  padding: 5px 8px;
  color: #9b2449;
  border: 1px solid rgba(155, 36, 73, 0.22);
  border-radius: 999px;
  background: rgba(155, 36, 73, 0.06);
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-feature-card.is-enabled .gk-admin-feature-state {
  color: #23734a;
  border-color: rgba(35, 115, 74, 0.23);
  background: rgba(35, 115, 74, 0.07);
}

.gk-admin-feature-card > p {
  flex: 1;
  margin: 17px 0 14px;
  color: #656873;
  font-size: 12px;
  line-height: 1.85;
}

.gk-admin-feature-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(87, 62, 70, 0.15);
}

.gk-admin-feature-card-footer > small {
  color: #87818a;
  font-size: 10px;
}

.gk-admin-feature-toggle {
  min-width: 114px;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  color: #7a2139;
  border: 1px solid rgba(122, 33, 57, 0.25);
  border-radius: 11px;
  background: rgba(122, 33, 57, 0.055);
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.gk-admin-feature-toggle > span {
  position: relative;
  width: 36px;
  height: 21px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: rgba(122, 33, 57, 0.22);
  direction: ltr;
  transition: 0.2s ease;
}

.gk-admin-feature-toggle > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23, 40, 75, 0.22);
  transition: transform 0.2s ease;
}

.gk-admin-feature-toggle > b {
  min-width: 42px;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-feature-toggle[aria-checked="true"] {
  color: #fff;
  border-color: #24385f;
  background: linear-gradient(105deg, #17284b, #7a2139 80%);
  box-shadow: 0 7px 16px rgba(46, 37, 64, 0.16);
}

.gk-admin-feature-toggle[aria-checked="true"] > span {
  background: rgba(242, 199, 92, 0.72);
}

.gk-admin-feature-toggle[aria-checked="true"] > span::after {
  transform: translateX(15px);
}

.gk-admin-feature-toggle:hover:not(:disabled) {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.gk-admin-feature-toggle:focus-visible {
  outline: 3px solid rgba(242, 199, 92, 0.45);
  outline-offset: 2px;
}

.gk-admin-feature-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.gk-admin-feature-toggle.is-saving {
  cursor: wait;
}

.gk-admin-site-features-placeholder {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #777174;
  text-align: center;
}

@media (max-width: 680px) {
  .gk-admin-site-features-head {
    align-items: stretch;
    flex-direction: column;
  }

  .gk-admin-site-features-grid {
    grid-template-columns: 1fr;
  }

  .gk-admin-feature-card {
    min-height: 205px;
  }
}

/* ===== تنظیم چیدمان هدر سایت ===== */

.gk-admin-header-settings-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  overflow: hidden;
  color-scheme: light;
  border: 1px solid rgba(122, 33, 57, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 4% 100%, rgba(122, 33, 57, 0.12), transparent 15rem),
    linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(240, 239, 244, 0.96));
  box-shadow: 0 15px 35px rgba(43, 38, 59, 0.1);
}

.gk-admin-header-settings-card::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #7a2139, #24385f, #c79b38);
  content: "";
}

.gk-admin-header-settings-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffe29a;
  border: 1px solid rgba(255, 226, 154, 0.35);
  border-radius: 17px;
  background: linear-gradient(145deg, #17284b, #842846);
  box-shadow: 0 10px 22px rgba(40, 40, 69, 0.2);
  font-size: 25px;
}

.gk-admin-header-settings-copy {
  min-width: 0;
}

.gk-admin-header-settings-copy > span {
  color: #8a2747;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-header-settings-copy h3 {
  margin: 4px 0;
  color: #202c49;
  font-size: 15px;
}

.gk-admin-header-settings-copy p {
  margin: 0;
  color: #666b79;
  font-size: 11px;
  line-height: 1.8;
}

.gk-admin-header-setting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.gk-admin-header-setting-tags span {
  padding: 4px 7px;
  color: #4b5369;
  border: 1px solid rgba(36, 56, 95, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.63);
  font-size: 9px;
  font-weight: 800;
}

button.gk-admin-header-settings-open {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  color: #fff;
  border: 1px solid rgba(255, 226, 154, 0.3);
  border-radius: 12px;
  background: linear-gradient(120deg, #17284b, #7a2139);
  box-shadow: 0 9px 20px rgba(43, 40, 67, 0.18);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

button.gk-admin-header-settings-open span {
  color: #ffe29a;
  font-size: 17px;
}

button.gk-admin-header-settings-open:hover {
  filter: brightness(1.1);
  transform: translateY(-2px) scale(1.02);
}

button.gk-admin-header-settings-open:focus-visible,
.gk-admin-header-settings-modal button:focus-visible,
.gk-admin-header-settings-modal input:focus-visible {
  outline: 3px solid rgba(207, 157, 52, 0.34);
  outline-offset: 2px;
}

body.gk-admin-header-settings-modal-open {
  overflow: hidden;
}

.gk-admin-header-settings-modal[hidden] {
  display: none !important;
}

.gk-admin-header-settings-modal {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
  color-scheme: light;
  background: rgba(15, 22, 39, 0.78);
  backdrop-filter: blur(8px);
  direction: rtl;
}

.gk-admin-header-settings-window {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  background:
    radial-gradient(circle at 96% 2%, rgba(126, 31, 64, 0.16), transparent 33%),
    linear-gradient(145deg, rgba(255, 252, 249, 0.985), rgba(236, 237, 243, 0.985));
  box-shadow: 0 30px 90px rgba(4, 11, 26, 0.48);
}

.gk-admin-header-settings-window::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 25px;
  left: 25px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #7a2139, #20345c, #d2a84c, #7a2139);
  content: "";
}

.gk-admin-header-settings-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 25px 18px;
  border-bottom: 1px solid rgba(45, 52, 77, 0.12);
}

.gk-admin-header-settings-modal-head span {
  color: #832441;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-header-settings-modal-head h2 {
  margin: 4px 0 3px;
  color: #202b47;
  font-size: clamp(19px, 3vw, 24px);
}

.gk-admin-header-settings-modal-head p {
  margin: 0;
  color: #72737d;
  font-size: 11px;
}

.gk-admin-header-settings-modal-head > button {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  color: #7a2139;
  border: 1px solid rgba(50, 60, 89, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  font: 800 23px/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.gk-admin-header-settings-modal-head > button:hover {
  background: #fff;
  transform: scale(1.06);
}

.gk-admin-header-settings-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(370px, 1.28fr);
  align-items: start;
  gap: 14px;
  padding: 20px 25px 14px;
}

.gk-admin-header-date-setting,
.gk-admin-header-order-setting {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(48, 58, 88, 0.13);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 9px 24px rgba(39, 39, 63, 0.055);
}

.gk-admin-header-date-setting h3,
.gk-admin-header-order-setting h3 {
  margin: 4px 0 5px;
  color: #26314e;
  font-size: 14px;
}

.gk-admin-header-date-setting > p {
  margin: 0 0 14px;
  color: #74737b;
  font-size: 10px;
  line-height: 1.85;
}

.gk-admin-header-date-setting label {
  display: grid;
  gap: 7px;
  color: #3e465c;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-header-date-setting input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  color: #26314e;
  border: 1px solid rgba(42, 55, 91, 0.2);
  border-radius: 11px;
  background: #fffdfa;
  font: inherit;
  font-size: 12px;
  direction: ltr;
}

.gk-admin-header-date-setting input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.gk-admin-header-preview-note {
  margin-top: 13px;
  padding: 10px 11px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #67572d;
  border: 1px solid rgba(184, 137, 37, 0.2);
  border-radius: 11px;
  background: rgba(211, 166, 66, 0.09);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.7;
}

.gk-admin-header-preview-note span {
  color: #28805a;
}

.gk-admin-header-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.gk-admin-header-order-reset {
  min-height: 32px;
  padding: 5px 10px;
  color: #6f2741;
  border: 1px solid rgba(122, 33, 57, 0.2);
  border-radius: 9px;
  background: rgba(122, 33, 57, 0.055);
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.gk-admin-header-widget-list {
  display: grid;
  gap: 8px;
}

.gk-admin-header-widget-empty {
  min-height: 176px;
  display: grid;
  place-items: center;
  margin: 0;
  color: #73737c;
  border: 1px dashed rgba(48, 58, 88, 0.2);
  border-radius: 12px;
  text-align: center;
  font-size: 10px;
}

.gk-admin-header-widget {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 8px 9px;
  border: 1px solid rgba(42, 55, 91, 0.12);
  border-radius: 13px;
  background: rgba(255, 253, 250, 0.88);
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.gk-admin-header-widget.is-enabled {
  border-color: rgba(39, 107, 78, 0.2);
}

.gk-admin-header-widget.is-disabled {
  opacity: 0.66;
}

.gk-admin-header-widget-position {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: #26385d;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-header-widget-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gk-admin-header-widget-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #ffe29a;
  border-radius: 10px;
  background: linear-gradient(145deg, #24385f, #7a2139);
  font-size: 14px;
}

.gk-admin-header-widget-identity > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gk-admin-header-widget-identity strong {
  overflow: hidden;
  color: #29324b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.gk-admin-header-widget-identity small {
  overflow: hidden;
  color: #79777d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}

.gk-admin-header-widget-move {
  display: flex;
  gap: 3px;
}

.gk-admin-header-widget-move button {
  width: 28px;
  height: 28px;
  color: #334161;
  border: 1px solid rgba(51, 65, 97, 0.17);
  border-radius: 8px;
  background: rgba(239, 241, 246, 0.9);
  font: 900 14px/1 Arial, sans-serif;
  cursor: pointer;
}

.gk-admin-header-widget-toggle {
  min-width: 78px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 7px;
  color: #852743;
  border: 1px solid rgba(133, 39, 67, 0.2);
  border-radius: 9px;
  background: rgba(133, 39, 67, 0.055);
  font: inherit;
  cursor: pointer;
}

.gk-admin-header-widget-toggle > span {
  position: relative;
  width: 27px;
  height: 16px;
  flex: 0 0 27px;
  border-radius: 999px;
  background: rgba(133, 39, 67, 0.26);
  direction: ltr;
}

.gk-admin-header-widget-toggle > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(24, 33, 57, 0.25);
  content: "";
  transition: transform 0.18s ease;
}

.gk-admin-header-widget-toggle b {
  min-width: 29px;
  font-size: 8px;
  font-weight: 900;
}

.gk-admin-header-widget-toggle[aria-checked="true"] {
  color: #fff;
  border-color: #26385d;
  background: linear-gradient(110deg, #26385d, #7a2139);
}

.gk-admin-header-widget-toggle[aria-checked="true"] > span {
  background: rgba(242, 199, 92, 0.72);
}

.gk-admin-header-widget-toggle[aria-checked="true"] > span::after {
  transform: translateX(11px);
}

.gk-admin-header-widget button:disabled,
.gk-admin-header-order-reset:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.gk-admin-header-settings-status {
  min-height: 22px;
  margin: 0;
  padding: 0 25px 11px;
  color: #656975;
  font-size: 10px;
  font-weight: 800;
}

.gk-admin-header-settings-status[data-state="success"] {
  color: #27714f;
}

.gk-admin-header-settings-status[data-state="pending"] {
  color: #805d18;
}

.gk-admin-header-settings-status[data-state="error"] {
  color: #9c2949;
}

.gk-admin-header-settings-status[data-state="readonly"] {
  color: #344b76;
}

.gk-admin-header-settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 25px 21px;
  border-top: 1px solid rgba(45, 52, 77, 0.1);
}

.gk-admin-header-settings-footer button {
  min-height: 41px;
  padding: 8px 15px;
  border-radius: 11px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.gk-admin-header-settings-footer .is-cancel {
  color: #5f6069;
  border: 1px solid rgba(52, 60, 86, 0.15);
  background: rgba(255, 255, 255, 0.72);
}

.gk-admin-header-settings-footer .is-save {
  color: #fff;
  border: 1px solid #25375b;
  background: linear-gradient(120deg, #25375b, #7a2139);
  box-shadow: 0 8px 18px rgba(40, 42, 70, 0.18);
}

.gk-admin-header-settings-footer button:disabled {
  cursor: not-allowed;
  filter: saturate(0.55);
  opacity: 0.58;
}

@media (max-width: 760px) {
  .gk-admin-header-settings-card {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 16px;
  }

  .gk-admin-header-settings-icon {
    width: 50px;
    height: 50px;
  }

  button.gk-admin-header-settings-open {
    grid-column: 1 / -1;
    width: 100%;
  }

  .gk-admin-header-settings-modal {
    padding: 10px;
  }

  .gk-admin-header-settings-window {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .gk-admin-header-settings-modal-head,
  .gk-admin-header-settings-body,
  .gk-admin-header-settings-footer {
    padding-inline: 15px;
  }

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

  .gk-admin-header-settings-status {
    padding-inline: 15px;
  }
}

@media (max-width: 500px) {
  .gk-admin-header-widget {
    grid-template-columns: 25px minmax(0, 1fr) auto;
  }

  .gk-admin-header-widget-move {
    grid-column: 2 / 3;
  }

  .gk-admin-header-widget-toggle {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .gk-admin-header-settings-footer {
    flex-direction: column-reverse;
  }

  .gk-admin-header-settings-footer button {
    width: 100%;
  }
}


/* Full-site view opened from Site Settings: no modal chrome or margins */
.gk-admin-site-preview-modal {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
  backdrop-filter: none;
}

.gk-admin-site-preview-surface {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.gk-admin-site-preview-frame {
  display: block;
  width: 100vw;
  height: 100vh;
  border: 0;
  margin: 0;
  padding: 0;
  background: #fff;
}

.gk-admin-site-preview-close {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #26324c;
  border: 1px solid rgba(38, 50, 76, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 800 24px/1 Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.gk-admin-site-preview-close:hover {
  background: #fff;
  transform: scale(1.04);
}

.gk-admin-site-move-button {
  position: fixed;
  z-index: 2;
  top: 60px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(38, 50, 76, 0.18);
  border-radius: 50%;
  color: #26324c;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 900 20px/1 Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(7px);
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

.gk-admin-site-move-button:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.04);
}

.gk-admin-site-move-button.is-active {
  color: #fff;
  border-color: #26324c;
  background: #26324c;
  box-shadow:
    0 0 0 3px rgba(122, 32, 52, 0.2),
    0 6px 20px rgba(15, 22, 39, 0.22);
}

.gk-admin-site-move-button.is-active:hover:not(:disabled) {
  background: #1d2942;
}

.gk-admin-site-move-button:disabled,
.gk-admin-site-move-button.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.gk-admin-site-move-reset-button {
  position: fixed;
  z-index: 1;
  top: 60px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(38, 50, 76, 0.18);
  border-radius: 50%;
  color: #26324c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 800 22px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0) scale(0.92);
  backdrop-filter: blur(7px);
  transition:
    transform 180ms ease,
    opacity 150ms ease,
    visibility 0s linear 180ms,
    background-color 140ms ease;
}

.gk-admin-site-move-reset-button.is-visible {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(38px) scale(1);
  transition-delay: 0s;
}

.gk-admin-site-move-reset-button.is-visible:hover {
  background: #fff;
  transform: translateY(38px) scale(1.04);
}

.gk-admin-site-move-delete-button {
  position: fixed;
  z-index: 1;
  top: 60px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(122, 32, 52, 0.25);
  border-radius: 50%;
  color: #7a2034;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 800 9px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0) scale(0.92);
  backdrop-filter: blur(7px);
  transition: transform 180ms ease, opacity 150ms ease,
    visibility 0s linear 180ms, background-color 140ms ease, color 140ms ease;
}

.gk-admin-site-move-delete-button.is-visible {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(76px) scale(1);
  transition-delay: 0s;
}

.gk-admin-site-move-delete-button.is-visible:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gk-admin-site-move-delete-button.is-visible.has-selection:not(:disabled):hover {
  color: #fff;
  background: #7a2034;
  transform: translateY(76px) scale(1.04);
}

.gk-admin-site-text-button {
  position: fixed;
  z-index: 4;
  top: 98px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(38, 50, 76, 0.18);
  border-radius: 50%;
  color: #26324c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 800 10px/1 Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(7px);
  transition: top 180ms ease, transform 140ms ease, background-color 140ms ease,
    color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.gk-admin-site-text-button.is-move-shifted {
  top: 174px;
}

.gk-admin-site-text-button:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.04);
}

.gk-admin-site-text-button.is-active {
  color: #fff;
  border-color: #7a2034;
  background: #7a2034;
  box-shadow: 0 0 0 3px rgba(122, 32, 52, 0.18),
    0 6px 20px rgba(15, 22, 39, 0.22);
}

.gk-admin-site-text-button:disabled,
.gk-admin-site-text-button.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.gk-admin-site-text-reset-button {
  position: fixed;
  z-index: 3;
  top: 98px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(38, 50, 76, 0.18);
  border-radius: 50%;
  color: #26324c;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 800 22px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0) scale(0.92);
  backdrop-filter: blur(7px);
  transition: top 180ms ease, transform 180ms ease, opacity 150ms ease,
    visibility 0s linear 180ms, background-color 140ms ease;
}

.gk-admin-site-text-reset-button.is-move-shifted {
  top: 174px;
}

.gk-admin-site-text-reset-button.is-visible {
  z-index: 4;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(38px) scale(1);
  transition-delay: 0s;
}

.gk-admin-site-text-reset-button.is-visible:hover {
  background: #fff;
  transform: translateY(38px) scale(1.04);
}

.gk-admin-site-text-panel {
  position: fixed;
  z-index: 5;
  top: 202px;
  left: 62px;
  width: min(292px, calc(100vw - 80px));
  max-height: calc(100vh - 170px);
  overflow: auto;
  border: 1px solid rgba(31, 52, 88, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px rgba(15, 22, 39, 0.2);
  backdrop-filter: blur(12px);
  direction: rtl;
  color: #26324c;
}

.gk-admin-site-text-panel[hidden] {
  display: none !important;
}

.gk-admin-site-text-panel.is-dragging {
  box-shadow: 0 22px 54px rgba(15, 22, 39, 0.28);
}

.gk-admin-site-text-panel-head {
  padding: 11px 13px;
  display: grid;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, #26324c, #7a2034);
  cursor: move;
  user-select: none;
  touch-action: none;
}

.gk-admin-site-text-panel-head strong {
  font-size: 13px;
}

.gk-admin-site-text-panel-head span {
  font-size: 10px;
  opacity: 0.78;
}

.gk-admin-site-text-panel-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.gk-admin-site-text-selection {
  margin: 0;
  min-height: 38px;
  padding: 8px 9px;
  border-radius: 10px;
  color: #5a6070;
  background: #f4f1ee;
  font-size: 11px;
  line-height: 1.7;
}

.gk-admin-site-text-content-field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.gk-admin-site-text-content-field textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 8px 9px;
  color: #26324c;
  border: 1px solid rgba(38, 50, 76, 0.16);
  border-radius: 9px;
  background: #fff;
  font: 500 11px/1.8 Tahoma, Arial, sans-serif;
  direction: rtl;
}

.gk-admin-site-text-content-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.gk-admin-site-text-content-actions button {
  min-height: 34px;
  border: 1px solid rgba(38, 50, 76, 0.16);
  border-radius: 9px;
  color: #26324c;
  background: #f8f6f4;
  cursor: pointer;
  font: 800 11px/1 Tahoma, Arial, sans-serif;
}

.gk-admin-site-text-content-actions button:last-child:not(:disabled):hover {
  color: #fff;
  border-color: #7a2034;
  background: #7a2034;
}

.gk-admin-site-text-content-actions button:first-child:not(:disabled):hover {
  color: #fff;
  border-color: #26324c;
  background: #26324c;
}

.gk-admin-site-text-field,
.gk-admin-site-text-color-field {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.gk-admin-site-text-field input,
.gk-admin-site-text-field select {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  color: #26324c;
  border: 1px solid rgba(38, 50, 76, 0.16);
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

.gk-admin-site-text-color-field input {
  width: 100%;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(38, 50, 76, 0.16);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.gk-admin-site-text-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.gk-admin-site-text-toggles button {
  min-height: 34px;
  border: 1px solid rgba(38, 50, 76, 0.16);
  border-radius: 9px;
  color: #26324c;
  background: #f8f6f4;
  cursor: pointer;
  font: 800 14px/1 Arial, sans-serif;
}

.gk-admin-site-text-toggles button.is-active {
  color: #fff;
  border-color: #26324c;
  background: #26324c;
}

.gk-admin-site-text-panel :disabled {
  opacity: 0.48;
  cursor: not-allowed;
}


.gk-admin-site-animation-button {
  position: fixed;
  z-index: 4;
  top: 136px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(38, 50, 76, 0.18);
  border-radius: 50%;
  color: #26324c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 800 8px/1 Tahoma, Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(7px);
  transition: top 180ms ease, transform 140ms ease, background-color 140ms ease,
    color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.gk-admin-site-animation-button.is-move-shifted {
  top: 212px;
}

.gk-admin-site-animation-button.is-text-shifted {
  top: 174px;
}

.gk-admin-site-animation-button.is-move-shifted.is-text-shifted {
  top: 250px;
}

.gk-admin-site-animation-button:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.04);
}

.gk-admin-site-animation-button.is-active {
  color: #fff;
  border-color: #335c67;
  background: #335c67;
  box-shadow: 0 0 0 3px rgba(51, 92, 103, 0.18),
    0 6px 20px rgba(15, 22, 39, 0.22);
}

.gk-admin-site-animation-button:disabled,
.gk-admin-site-animation-button.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.gk-admin-site-animation-reset-button {
  position: fixed;
  z-index: 3;
  top: 136px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(38, 50, 76, 0.18);
  border-radius: 50%;
  color: #26324c;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  font: 800 22px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0) scale(0.92);
  backdrop-filter: blur(7px);
  transition: top 180ms ease, transform 180ms ease, opacity 150ms ease,
    visibility 0s linear 180ms, background-color 140ms ease;
}

.gk-admin-site-animation-reset-button.is-move-shifted {
  top: 212px;
}

.gk-admin-site-animation-reset-button.is-text-shifted {
  top: 174px;
}

.gk-admin-site-animation-reset-button.is-move-shifted.is-text-shifted {
  top: 250px;
}

.gk-admin-site-animation-reset-button.is-visible {
  z-index: 4;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(38px) scale(1);
  transition-delay: 0s;
}

.gk-admin-site-animation-reset-button.is-visible:hover {
  background: #fff;
  transform: translateY(38px) scale(1.04);
}

.gk-admin-site-animation-panel {
  position: fixed;
  z-index: 5;
  top: 242px;
  left: 62px;
  width: min(292px, calc(100vw - 80px));
  max-height: calc(100vh - 160px);
  overflow: auto;
  border: 1px solid rgba(31, 52, 88, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px rgba(15, 22, 39, 0.2);
  backdrop-filter: blur(12px);
  direction: rtl;
  color: #26324c;
}

.gk-admin-site-animation-panel[hidden] {
  display: none !important;
}

.gk-admin-site-animation-panel.is-dragging {
  box-shadow: 0 22px 54px rgba(15, 22, 39, 0.28);
}

.gk-admin-site-animation-panel-head {
  padding: 11px 13px;
  display: grid;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, #335c67, #7a2034);
  cursor: move;
  user-select: none;
  touch-action: none;
}

.gk-admin-site-animation-panel-head strong {
  font-size: 13px;
}

.gk-admin-site-animation-panel-head span {
  font-size: 10px;
  opacity: 0.78;
}

.gk-admin-site-animation-panel-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.gk-admin-site-animation-selection {
  margin: 0;
  min-height: 38px;
  padding: 8px 9px;
  border-radius: 10px;
  color: #5a6070;
  background: #f1f5f4;
  font-size: 11px;
  line-height: 1.7;
}

.gk-admin-site-animation-field {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.gk-admin-site-animation-field input,
.gk-admin-site-animation-field select {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  color: #26324c;
  border: 1px solid rgba(38, 50, 76, 0.16);
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

.gk-admin-site-animation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.gk-admin-site-animation-actions button {
  min-height: 36px;
  border: 1px solid rgba(38, 50, 76, 0.16);
  border-radius: 9px;
  color: #26324c;
  background: #f8f6f4;
  cursor: pointer;
  font: 800 10px/1.3 Tahoma, Arial, sans-serif;
}

.gk-admin-site-animation-actions button:first-child:not(:disabled):hover {
  color: #fff;
  border-color: #335c67;
  background: #335c67;
}

.gk-admin-site-animation-actions button:last-child:not(:disabled):hover {
  color: #fff;
  border-color: #7a2034;
  background: #7a2034;
}

.gk-admin-site-animation-panel :disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .gk-admin-site-preview-close {
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
  }

  .gk-admin-site-move-button {
    top: 52px;
    left: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gk-admin-site-move-reset-button {
    top: 52px;
    left: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gk-admin-site-move-reset-button.is-visible {
    transform: translateY(36px) scale(1);
  }

  .gk-admin-site-move-reset-button.is-visible:hover {
    transform: translateY(36px) scale(1.04);
  }

  .gk-admin-site-move-delete-button {
    top: 52px;
    left: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gk-admin-site-move-delete-button.is-visible {
    transform: translateY(72px) scale(1);
  }

  .gk-admin-site-move-delete-button.is-visible.has-selection:not(:disabled):hover {
    transform: translateY(72px) scale(1.04);
  }

  .gk-admin-site-text-button {
    top: 88px;
    left: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gk-admin-site-text-button.is-move-shifted {
    top: 160px;
  }

  .gk-admin-site-text-reset-button {
    top: 88px;
    left: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gk-admin-site-text-reset-button.is-move-shifted {
    top: 160px;
  }

  .gk-admin-site-text-reset-button.is-visible {
    transform: translateY(36px) scale(1);
  }

  .gk-admin-site-text-reset-button.is-visible:hover {
    transform: translateY(36px) scale(1.04);
  }

  .gk-admin-site-text-panel {
    top: 182px;
    left: 52px;
    width: min(280px, calc(100vw - 60px));
    max-height: calc(100vh - 150px);
  }

  .gk-admin-site-animation-button {
    top: 124px;
    left: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gk-admin-site-animation-button.is-move-shifted {
    top: 196px;
  }

  .gk-admin-site-animation-button.is-text-shifted {
    top: 160px;
  }

  .gk-admin-site-animation-button.is-move-shifted.is-text-shifted {
    top: 232px;
  }

  .gk-admin-site-animation-reset-button {
    top: 124px;
    left: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gk-admin-site-animation-reset-button.is-move-shifted {
    top: 196px;
  }

  .gk-admin-site-animation-reset-button.is-text-shifted {
    top: 160px;
  }

  .gk-admin-site-animation-reset-button.is-move-shifted.is-text-shifted {
    top: 232px;
  }

  .gk-admin-site-animation-reset-button.is-visible {
    transform: translateY(36px) scale(1);
  }

  .gk-admin-site-animation-reset-button.is-visible:hover {
    transform: translateY(36px) scale(1.04);
  }

  .gk-admin-site-animation-panel {
    top: 218px;
    left: 52px;
    width: min(280px, calc(100vw - 60px));
    max-height: calc(100vh - 145px);
  }
}

/* Save is a first-class site tool, not part of the animation panel. */
.gk-admin-site-editor-save-button {
  position: fixed;
  z-index: 4;
  top: 174px;
  left: 12px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(23, 107, 77, 0.28);
  border-radius: 50%;
  color: #176b4d;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 18px rgba(15, 22, 39, 0.16);
  cursor: pointer;
  font: 800 9px/1 Tahoma, Arial, sans-serif;
  backdrop-filter: blur(7px);
  transition: top 180ms ease, transform 140ms ease, background-color 140ms ease,
    color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.gk-admin-site-editor-save-button.is-move-shifted {
  top: 250px;
}

.gk-admin-site-editor-save-button.is-text-shifted {
  top: 212px;
}

.gk-admin-site-editor-save-button.is-animation-shifted {
  top: 212px;
}

.gk-admin-site-editor-save-button.is-move-shifted.is-text-shifted {
  top: 288px;
}

.gk-admin-site-editor-save-button.is-move-shifted.is-animation-shifted {
  top: 288px;
}

.gk-admin-site-editor-save-button.is-text-shifted.is-animation-shifted {
  top: 250px;
}

.gk-admin-site-editor-save-button.is-move-shifted.is-text-shifted.is-animation-shifted {
  top: 326px;
}

.gk-admin-site-editor-save-button:hover:not(:disabled) {
  color: #fff;
  background: #176b4d;
  transform: scale(1.04);
}

.gk-admin-site-editor-save-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.gk-admin-site-editor-save-status {
  position: fixed;
  z-index: 6;
  top: 174px;
  left: 58px;
  max-width: min(320px, calc(100vw - 72px));
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid rgba(38, 50, 76, 0.14);
  border-radius: 10px;
  color: #52606d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(15, 22, 39, 0.12);
  font-size: 10px;
  line-height: 1.6;
  pointer-events: none;
  transition: top 180ms ease;
}

.gk-admin-site-editor-save-status:empty {
  display: none;
}

.gk-admin-site-editor-save-status.is-move-shifted { top: 250px; }
.gk-admin-site-editor-save-status.is-text-shifted { top: 212px; }
.gk-admin-site-editor-save-status.is-animation-shifted { top: 212px; }
.gk-admin-site-editor-save-status.is-move-shifted.is-text-shifted { top: 288px; }
.gk-admin-site-editor-save-status.is-move-shifted.is-animation-shifted { top: 288px; }
.gk-admin-site-editor-save-status.is-text-shifted.is-animation-shifted { top: 250px; }
.gk-admin-site-editor-save-status.is-move-shifted.is-text-shifted.is-animation-shifted { top: 326px; }

.gk-admin-site-editor-save-status.is-success {
  color: #176b4d;
  border-color: rgba(23, 107, 77, 0.22);
}

.gk-admin-site-editor-save-status.is-error {
  color: #a02b3b;
  border-color: rgba(160, 43, 59, 0.22);
}


@media (max-width: 700px) {
  .gk-admin-site-editor-save-button { top: 160px; left: 8px; width: 36px; min-width: 36px; height: 36px; }
  .gk-admin-site-editor-save-button.is-move-shifted { top: 232px; }
  .gk-admin-site-editor-save-button.is-text-shifted { top: 196px; }
  .gk-admin-site-editor-save-button.is-animation-shifted { top: 196px; }
  .gk-admin-site-editor-save-button.is-move-shifted.is-text-shifted { top: 268px; }
  .gk-admin-site-editor-save-button.is-move-shifted.is-animation-shifted { top: 268px; }
  .gk-admin-site-editor-save-button.is-text-shifted.is-animation-shifted { top: 232px; }
  .gk-admin-site-editor-save-button.is-move-shifted.is-text-shifted.is-animation-shifted { top: 304px; }
  .gk-admin-site-editor-save-status { top: 160px; left: 52px; max-width: min(270px, calc(100vw - 64px)); }
  .gk-admin-site-editor-save-status.is-move-shifted { top: 232px; }
  .gk-admin-site-editor-save-status.is-text-shifted { top: 196px; }
  .gk-admin-site-editor-save-status.is-animation-shifted { top: 196px; }
  .gk-admin-site-editor-save-status.is-move-shifted.is-text-shifted { top: 268px; }
  .gk-admin-site-editor-save-status.is-move-shifted.is-animation-shifted { top: 268px; }
  .gk-admin-site-editor-save-status.is-text-shifted.is-animation-shifted { top: 232px; }
  .gk-admin-site-editor-save-status.is-move-shifted.is-text-shifted.is-animation-shifted { top: 304px; }
}

/* ===== مدیریت تعرفه آگهی ویژه در بخش پرداخت‌ها ===== */
.gk-admin-payment-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 2px 0 16px;
  padding: 5px;
  border: 1px solid var(--gk-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 8px 22px rgba(74, 43, 52, 0.06);
}

.gk-admin-payment-tabs button {
  min-height: 40px;
  padding: 8px 16px;
  color: #5d5c64;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.gk-admin-payment-tabs button:hover {
  color: #17284b;
  background: rgba(23, 40, 75, 0.055);
}

.gk-admin-payment-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #17284b, #7a2139);
  box-shadow: 0 8px 18px rgba(23, 40, 75, 0.16);
}

.gk-admin-payment-tab-panel[hidden] {
  display: none !important;
}

.gk-admin-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 16px;
  align-items: start;
}

.gk-admin-pricing-card,
.gk-admin-pricing-history-card {
  padding: 0;
  overflow: hidden;
}

.gk-admin-pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--gk-border);
}

.gk-admin-pricing-head h3 {
  margin: 3px 0 0;
  color: #17284b;
  font-size: 17px;
}

.gk-admin-pricing-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #77727a;
  font-size: 12px;
  line-height: 1.9;
}

.gk-admin-pricing-bulk {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px 12px;
  align-items: end;
  margin: 16px 20px 8px;
  padding: 14px;
  border: 1px solid rgba(122, 33, 57, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122, 33, 57, 0.045), rgba(23, 40, 75, 0.035));
}

.gk-admin-pricing-bulk label {
  display: grid;
  gap: 7px;
  color: #303343;
  font-size: 12px;
  font-weight: 900;
}

.gk-admin-pricing-bulk small {
  grid-column: 1 / -1;
  color: #817b80;
  font-size: 11px;
}

.gk-admin-pricing-percent-field {
  position: relative;
}

.gk-admin-pricing-percent-field input {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px 9px 40px;
  color: #17284b;
  border: 1px solid rgba(87, 62, 70, 0.22);
  border-radius: 11px;
  background: #fffdf9;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.gk-admin-pricing-percent-field input:focus {
  border-color: rgba(122, 33, 57, 0.55);
  box-shadow: 0 0 0 3px rgba(122, 33, 57, 0.08);
}

.gk-admin-pricing-percent-field > span {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #7a2139;
  transform: translateY(-50%);
  font-weight: 900;
}

.gk-admin-secondary-button,
.gk-admin-primary-button {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}

.gk-admin-secondary-button {
  color: #17284b;
  border: 1px solid rgba(23, 40, 75, 0.2);
  background: rgba(23, 40, 75, 0.055);
}

.gk-admin-secondary-button:hover:not(:disabled) {
  border-color: rgba(23, 40, 75, 0.38);
  background: rgba(23, 40, 75, 0.09);
}

.gk-admin-primary-button {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #17284b, #7a2139);
  box-shadow: 0 9px 22px rgba(122, 33, 57, 0.16);
}

.gk-admin-primary-button:hover:not(:disabled) {
  filter: brightness(1.04);
}

.gk-admin-secondary-button:disabled,
.gk-admin-primary-button:disabled,
.gk-admin-featured-pricing-sections input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.gk-admin-featured-pricing-sections {
  display: grid;
  gap: 14px;
  margin: 16px 20px 0;
}

.gk-admin-featured-pricing-loading {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #77727a;
  border: 1px dashed rgba(87, 62, 70, 0.18);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.6);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.gk-admin-featured-price-section {
  overflow: hidden;
  border: 1px solid rgba(87, 62, 70, 0.15);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 8px 24px rgba(60, 45, 50, 0.05);
}

.gk-admin-featured-price-section.is-main-site {
  border-color: rgba(184, 138, 42, 0.38);
  background:
    linear-gradient(135deg, rgba(242, 199, 92, 0.11), rgba(122, 33, 57, 0.035)),
    rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 28px rgba(184, 138, 42, 0.1);
}

.gk-admin-featured-price-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(87, 62, 70, 0.1);
}

.gk-admin-featured-price-section-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.gk-admin-featured-price-section-icon {
  flex: 0 0 38px;
  inline-size: 38px;
  block-size: 38px;
  display: grid;
  place-items: center;
  color: #7a2139;
  border: 1px solid rgba(122, 33, 57, 0.13);
  border-radius: 12px;
  background: rgba(122, 33, 57, 0.055);
  font-size: 18px;
  font-weight: 950;
}

.is-main-site .gk-admin-featured-price-section-icon {
  color: #7b5b12;
  border-color: rgba(184, 138, 42, 0.27);
  background: rgba(242, 199, 92, 0.18);
}

.gk-admin-featured-price-section-title {
  min-width: 0;
}

.gk-admin-featured-price-section-title h4 {
  margin: 0;
  color: #17284b;
  font-size: 14px;
  font-weight: 950;
}

.gk-admin-featured-price-section-title p {
  margin: 4px 0 0;
  color: #79757c;
  font-size: 11px;
  line-height: 1.7;
}

.gk-admin-featured-price-section-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #7a2139;
  border: 1px solid rgba(122, 33, 57, 0.15);
  border-radius: 999px;
  background: rgba(122, 33, 57, 0.055);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.is-main-site .gk-admin-featured-price-section-badge {
  color: #6f520f;
  border-color: rgba(184, 138, 42, 0.28);
  background: rgba(242, 199, 92, 0.16);
}

.gk-admin-featured-price-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.gk-admin-featured-price-plan {
  padding: 11px;
  border: 1px solid rgba(23, 40, 75, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.gk-admin-featured-price-plan > strong {
  color: #303343;
  font-size: 11px;
  font-weight: 950;
}

.gk-admin-price-input-wrap {
  display: grid;
  gap: 5px;
}

.gk-admin-price-input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: #17284b;
  text-align: center;
  border: 1px solid rgba(87, 62, 70, 0.18);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.gk-admin-price-input-wrap input:focus {
  border-color: rgba(122, 33, 57, 0.5);
  box-shadow: 0 0 0 3px rgba(122, 33, 57, 0.07);
}

.gk-admin-price-input-wrap small {
  color: #8a858a;
  font-size: 10px;
}

.gk-admin-price-input-wrap.is-changed {
  border-color: rgba(180, 135, 44, 0.35);
  background: #fffaf0;
}

.gk-admin-price-input-wrap.is-changed input {
  border-color: rgba(180, 135, 44, 0.62);
  background: #fffaf0;
}

.gk-admin-featured-section-percent {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(190px, auto);
  align-items: end;
  gap: 10px;
  padding: 12px 16px 15px;
  border-top: 1px dashed rgba(87, 62, 70, 0.12);
  background: rgba(23, 40, 75, 0.018);
}

.gk-admin-featured-section-percent-label {
  display: grid;
  gap: 6px;
  color: #4a4d5b;
  font-size: 10px;
  font-weight: 900;
}

.gk-admin-featured-section-percent .gk-admin-pricing-percent-field input {
  min-height: 40px;
}

.gk-admin-featured-section-percent .gk-admin-secondary-button {
  min-height: 40px;
}

.gk-admin-pricing-card > .gk-admin-list-status {
  min-height: 22px;
  margin: 12px 20px 0;
}

.gk-admin-pricing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px 20px;
}

.gk-admin-pricing-history {
  display: grid;
  gap: 9px;
  max-height: 560px;
  padding: 14px;
  overflow: auto;
}

.gk-admin-pricing-history > p {
  margin: 4px;
  color: #817b80;
  font-size: 12px;
}

.gk-admin-price-history-item {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(87, 62, 70, 0.12);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.82);
}

.gk-admin-price-history-item strong {
  color: #17284b;
  font-size: 12px;
}

.gk-admin-price-history-item span {
  color: #5f6069;
  font-size: 11px;
  line-height: 1.75;
}

.gk-admin-price-history-item small {
  color: #8a858a;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .gk-admin-pricing-grid {
    grid-template-columns: 1fr;
  }

  .gk-admin-pricing-history {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .gk-admin-payment-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .gk-admin-pricing-head,
  .gk-admin-pricing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gk-admin-pricing-bulk {
    grid-template-columns: 1fr;
  }

  .gk-admin-pricing-bulk small {
    grid-column: auto;
  }

  .gk-admin-featured-pricing-sections {
    margin-inline: 12px;
  }

  .gk-admin-featured-price-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-admin-featured-price-plans {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .gk-admin-featured-section-percent {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .gk-admin-pricing-card > .gk-admin-list-status {
    margin-inline: 12px;
  }

  .gk-admin-pricing-actions {
    padding-inline: 12px;
  }
}


/* Dashboard: featured-ad revenue summary */
.gk-admin-revenue-summary {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(87, 62, 70, 0.16);
  border-radius: var(--gk-radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(122, 33, 57, 0.07), transparent 15rem),
    linear-gradient(145deg, rgba(255, 251, 245, 0.96), rgba(248, 243, 238, 0.96));
  box-shadow: 0 13px 32px rgba(74, 43, 52, 0.075);
}

.gk-admin-revenue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gk-admin-revenue-head h2 {
  margin: 4px 0 0;
  color: #17284b;
  font-size: 18px;
}

.gk-admin-revenue-head > small {
  color: #777174;
  font-size: 12px;
}

.gk-admin-revenue-head > small[data-state="success"] {
  color: #236451;
}

.gk-admin-revenue-head > small[data-state="error"] {
  color: #9b2449;
}

.gk-admin-revenue-metrics {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gk-admin-revenue-metrics article {
  min-width: 0;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(87, 62, 70, 0.12);
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.82);
}

.gk-admin-revenue-metrics span,
.gk-admin-revenue-metrics small {
  color: #777174;
  font-size: 12px;
}

.gk-admin-revenue-metrics strong {
  margin: 4px 0;
  color: #7a2139;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .gk-admin-revenue-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-admin-revenue-metrics {
    grid-template-columns: 1fr;
  }
}


/* v23: owner-only smart assistant */
.gk-admin-assistant-state.is-online {
  color: #236451;
  border-color: rgba(35, 100, 81, 0.24);
  background: rgba(35, 100, 81, 0.06);
}

.gk-admin-assistant-state.is-online i {
  background: #2d8067;
  box-shadow: 0 0 10px rgba(45, 128, 103, 0.25);
}

.gk-admin-assistant-messages {
  min-height: 330px;
  max-height: 520px;
  padding: 3px 4px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.gk-admin-assistant-message {
  width: min(92%, 680px);
  padding: 14px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(23, 40, 75, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 7px 18px rgba(48, 42, 48, 0.045);
}

.gk-admin-assistant-message.is-user {
  margin-right: auto;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #17284b, #35466b);
}

.gk-admin-assistant-message.is-assistant {
  margin-left: auto;
}

.gk-admin-assistant-message.is-error {
  border-color: rgba(163, 33, 72, 0.22);
  background: rgba(163, 33, 72, 0.05);
}

.gk-admin-assistant-message-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, #17284b, #7a2139);
  font-size: 15px;
}

.gk-admin-assistant-message > div {
  min-width: 0;
  flex: 1;
}

.gk-admin-assistant-message strong {
  display: block;
  color: #17284b;
  font-size: 13px;
}

.gk-admin-assistant-message.is-user strong {
  color: #fff;
}

.gk-admin-assistant-message p {
  margin: 4px 0 0;
  color: #63606a;
  line-height: 1.9;
  font-size: 13px;
  white-space: pre-wrap;
}

.gk-admin-assistant-message.is-user p {
  color: rgba(255, 255, 255, 0.9);
}

.gk-admin-assistant-form textarea {
  color: #2f394e;
  background: #fffdfa;
}

.gk-admin-assistant-form textarea:focus {
  border-color: rgba(122, 33, 57, 0.42);
  outline: 3px solid rgba(122, 33, 57, 0.07);
}

.gk-admin-assistant-form button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(115deg, #17284b, #7a2139);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.gk-admin-assistant-form button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gk-admin-assistant-form button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.gk-admin-assistant-form-status {
  min-height: 20px;
  color: #777174;
  font-size: 12px;
}

.gk-admin-assistant-form-status[data-state="success"] {
  color: #236451;
}

.gk-admin-assistant-form-status[data-state="error"] {
  color: #a32148;
}

.gk-admin-assistant-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gk-admin-assistant-metric {
  padding: 10px 11px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(23, 40, 75, 0.09);
  border-radius: 11px;
  background: rgba(249, 242, 236, 0.7);
}

.gk-admin-assistant-metric small {
  color: #777174;
  font-size: 11px;
}

.gk-admin-assistant-metric strong {
  color: #17284b;
  font-size: 14px;
}

.gk-admin-assistant-result-list,
.gk-admin-assistant-price-list {
  margin-top: 11px;
  display: grid;
  gap: 7px;
}

.gk-admin-assistant-result-row {
  width: 100%;
  padding: 10px 11px;
  display: grid;
  gap: 3px;
  text-align: right;
  color: #283653;
  border: 1px solid rgba(23, 40, 75, 0.1);
  border-radius: 10px;
  background: #fffdfa;
  cursor: pointer;
}

.gk-admin-assistant-result-row:hover {
  border-color: rgba(122, 33, 57, 0.28);
  background: #fff9f3;
}

.gk-admin-assistant-result-row small {
  color: #777174;
  font-size: 11px;
}

.gk-admin-assistant-price-row {
  padding: 10px 11px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(23, 40, 75, 0.09);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.85);
}

.gk-admin-assistant-price-row strong {
  color: #17284b;
}

.gk-admin-assistant-price-row span {
  color: #6d6870;
  line-height: 1.8;
  font-size: 11px;
}

.gk-admin-assistant-example-list {
  display: grid;
  gap: 9px;
}

.gk-admin-assistant-example-list button {
  width: 100%;
  padding: 11px 12px;
  color: #34415a;
  text-align: right;
  border: 1px solid rgba(87, 62, 70, 0.12);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.gk-admin-assistant-example-list button::before {
  margin-left: 8px;
  color: #9b2449;
  content: "✦";
}

.gk-admin-assistant-example-list button:hover:not(:disabled) {
  border-color: rgba(122, 33, 57, 0.28);
  background: #fffaf5;
  transform: translateX(-2px);
}

.gk-admin-assistant-example-list button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 620px) {
  .gk-admin-assistant-message {
    width: 100%;
  }

  .gk-admin-assistant-metrics {
    grid-template-columns: 1fr;
  }
}


/* v24: four-column assistant command center + confirmed actions */
.gk-admin-assistant-grid {
  grid-template-columns: minmax(0, 1fr);
}

.gk-admin-assistant-chat,
.gk-admin-assistant-examples {
  min-height: auto;
}

.gk-admin-assistant-command-center {
  padding: 22px;
}

.gk-admin-assistant-command-center > h3 {
  margin-bottom: 6px;
}

.gk-admin-assistant-command-help {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #777174;
  line-height: 1.9;
}

.gk-admin-assistant-command-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gk-admin-assistant-command-column {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 40, 75, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.8);
}

.gk-admin-assistant-command-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #17284b;
  border-bottom: 1px solid rgba(87, 62, 70, 0.11);
}

.gk-admin-assistant-command-title > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(145deg, #17284b, #7a2139);
}

.gk-admin-assistant-result-row {
  cursor: default;
}

.gk-admin-assistant-result-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.gk-admin-assistant-result-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gk-admin-assistant-result-actions button,
.gk-admin-assistant-action-button {
  padding: 6px 9px;
  color: #253650;
  border: 1px solid rgba(23, 40, 75, 0.14);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.gk-admin-assistant-action-button:hover,
.gk-admin-assistant-result-actions button:hover {
  border-color: rgba(122, 33, 57, 0.3);
  background: #fff8f3;
}

.gk-admin-assistant-action-button.is-danger {
  color: #982448;
  border-color: rgba(152, 36, 72, 0.2);
  background: rgba(152, 36, 72, 0.04);
}

.gk-admin-assistant-message.is-confirmation {
  border-color: rgba(154, 111, 31, 0.28);
  background: rgba(255, 249, 228, 0.88);
}

.gk-admin-assistant-confirm-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gk-admin-assistant-confirm-actions button {
  padding: 8px 13px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.gk-admin-assistant-confirm-actions .is-confirm {
  color: #fff;
  border: 1px solid #236451;
  background: #236451;
}

.gk-admin-assistant-confirm-actions .is-cancel {
  color: #87253f;
  border: 1px solid rgba(135, 37, 63, 0.2);
  background: #fff;
}

.gk-admin-assistant-confirm-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}

.gk-admin-assistant-confirm-note {
  margin-top: 10px;
  display: block;
  color: #8b4a5d;
  line-height: 1.8;
}

.gk-admin-assistant-confirm-note.is-success {
  color: #236451;
}

@media (max-width: 1200px) {
  .gk-admin-assistant-command-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gk-admin-assistant-command-columns {
    grid-template-columns: 1fr;
  }
}


/* v25: run-all safe command button per assistant column */
.gk-admin-assistant-command-column {
  display: flex;
  flex-direction: column;
}

.gk-admin-assistant-command-column .gk-admin-assistant-example-list {
  flex: 1;
}

.gk-admin-assistant-batch-button {
  width: 100%;
  margin-top: 13px;
  padding: 11px 10px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(122, 33, 57, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, #17284b, #7a2139);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.gk-admin-assistant-batch-button:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 40, 75, 0.14);
}

.gk-admin-assistant-batch-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.gk-admin-assistant-message.is-batch-summary {
  border-color: rgba(35, 100, 81, 0.22);
  background: rgba(239, 250, 245, 0.9);
}

/* v28: compact smart-assistant conversation + manager command form */
.gk-admin-assistant-chat {
  padding: 14px 16px;
}

.gk-admin-assistant-messages {
  min-height: 190px;
  max-height: 340px;
  padding: 2px 2px 10px;
  gap: 8px;
}

.gk-admin-assistant-message {
  width: min(88%, 620px);
  padding: 9px 11px;
  gap: 8px;
  border-radius: 12px;
}

.gk-admin-assistant-message-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 12px;
}

.gk-admin-assistant-message strong {
  font-size: 12px;
}

.gk-admin-assistant-message p {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.65;
}

.gk-admin-assistant-form {
  gap: 5px;
}

.gk-admin-assistant-form label {
  font-size: 12px;
}

.gk-admin-assistant-form > div {
  gap: 7px;
}

.gk-admin-assistant-form textarea {
  min-height: 52px;
  max-height: 96px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.gk-admin-assistant-form button {
  min-width: 96px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
}

.gk-admin-assistant-form-status {
  min-height: 16px;
  font-size: 11px;
}

@media (max-width: 680px) {
  .gk-admin-assistant-chat {
    padding: 12px;
  }

  .gk-admin-assistant-messages {
    min-height: 170px;
    max-height: 300px;
  }

  .gk-admin-assistant-message {
    width: 96%;
  }

  .gk-admin-assistant-form > div {
    grid-template-columns: 1fr;
  }

  .gk-admin-assistant-form button {
    width: 100%;
  }
}

/* v29: advanced site-health command center */
.gk-admin-assistant-health-column {
  grid-column: 1 / -1;
  border-color: rgba(35, 100, 81, 0.2);
  background: linear-gradient(145deg, rgba(244, 251, 248, 0.92), rgba(255, 253, 250, 0.92));
}

.gk-admin-assistant-health-column .gk-admin-assistant-command-title > span {
  background: linear-gradient(145deg, #236451, #17284b);
}

.gk-admin-assistant-health-intro {
  margin: -2px 0 11px;
  color: #66706c;
  font-size: 11px;
  line-height: 1.75;
}

.gk-admin-assistant-health-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gk-admin-assistant-health-actions button {
  min-height: 42px;
  text-align: right;
}

.gk-admin-assistant-health-all {
  margin-top: 11px;
  background: linear-gradient(145deg, #236451, #17284b);
  border-color: rgba(35, 100, 81, 0.3);
}

.gk-admin-assistant-message.is-health-report {
  width: min(96%, 920px);
  border-color: rgba(35, 100, 81, 0.24);
  background: rgba(246, 252, 249, 0.94);
}

.gk-admin-assistant-health-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gk-admin-assistant-health-results {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.gk-admin-assistant-health-result {
  padding: 10px 11px;
  border: 1px solid rgba(23, 40, 75, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
}

.gk-admin-assistant-health-result.is-healthy {
  border-color: rgba(35, 100, 81, 0.22);
  background: rgba(239, 250, 245, 0.82);
}

.gk-admin-assistant-health-result.is-warning {
  border-color: rgba(160, 112, 27, 0.28);
  background: rgba(255, 249, 232, 0.88);
}

.gk-admin-assistant-health-result.is-critical {
  border-color: rgba(152, 36, 72, 0.3);
  background: rgba(255, 241, 245, 0.9);
}

.gk-admin-assistant-health-result.is-info {
  border-color: rgba(23, 40, 75, 0.16);
  background: rgba(244, 247, 251, 0.9);
}

.gk-admin-assistant-health-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gk-admin-assistant-health-result-head > strong {
  color: #17284b;
  font-size: 12px;
}

.gk-admin-assistant-health-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(23, 40, 75, 0.08);
  color: #344258;
  font-size: 10px;
  font-weight: 800;
}

.gk-admin-assistant-health-result.is-healthy .gk-admin-assistant-health-badge {
  color: #236451;
  background: rgba(35, 100, 81, 0.1);
}

.gk-admin-assistant-health-result.is-warning .gk-admin-assistant-health-badge {
  color: #8a611c;
  background: rgba(160, 112, 27, 0.12);
}

.gk-admin-assistant-health-result.is-critical .gk-admin-assistant-health-badge {
  color: #982448;
  background: rgba(152, 36, 72, 0.11);
}

.gk-admin-assistant-health-metric {
  margin-top: 6px;
  color: #3e4a5d;
  font-size: 11px;
  font-weight: 800;
}

.gk-admin-assistant-health-details {
  margin: 5px 0 0 !important;
  color: #5f6876;
  font-size: 11px !important;
  line-height: 1.75 !important;
}

.gk-admin-assistant-health-suggestion {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(23, 40, 75, 0.11);
  color: #4e5968;
  font-size: 11px;
  line-height: 1.75;
}

.gk-admin-assistant-health-suggestion strong {
  color: #17284b;
}

@media (max-width: 900px) {
  .gk-admin-assistant-health-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gk-admin-assistant-health-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gk-admin-assistant-health-actions,
  .gk-admin-assistant-health-summary {
    grid-template-columns: 1fr;
  }
}

.gk-admin-assistant-health-repair{margin-top:8px;border-style:dashed;}
.gk-admin-assistant-health-repair:hover{filter:brightness(1.05);}
