/* ===== لوحة تحكم كلين كار ===== */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 88% -8%, rgba(140,47,57,0.13), transparent 64%),
    radial-gradient(900px 600px at 4% 4%, rgba(42, 106, 145, 0.09), transparent 60%),
    var(--cream);
}

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

.adm-container {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: 28px;
}

.adm-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.adm-pill .icon {
  width: 14px;
  height: 14px;
  color: var(--amber);
}

/* ===== تسجيل الدخول ===== */
.adm-login {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 34px;
  overflow: hidden;
}

.adm-login::before,
.adm-login::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.adm-login::before {
  top: -180px;
  inset-inline-start: -120px;
  width: 520px;
  height: 520px;
  background: rgba(140,47,57,0.24);
}

.adm-login::after {
  bottom: -200px;
  inset-inline-end: -140px;
  width: 560px;
  height: 560px;
  background: rgba(42, 106, 145, 0.16);
}

.adm-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  width: 100%;
  max-width: 1180px;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(20, 63, 92, 0.22);
}

.adm-login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 42px 46px 34px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(9, 34, 52, 0.93) 8%, rgba(20, 63, 92, 0.7) 56%, rgba(20, 63, 92, 0.44)),
    url('../assets/hero.jpg') center / cover no-repeat;
  color: #fff;
}

.adm-visual-glow {
  position: absolute;
  top: -120px;
  inset-inline-end: -90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,47,57,0.4), transparent 66%);
  pointer-events: none;
}

.adm-login-brand {
  position: relative;
  z-index: 1;
  color: #fff;
}

.adm-login-brand .brand-text small {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.adm-login-copy {
  position: relative;
  z-index: 1;
  margin-block: auto;
  padding-block: 52px;
}

.adm-login-copy h1 {
  margin: 20px 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -0.01em;
}

.adm-login-copy h1 span {
  color: var(--amber);
}

.adm-login-copy > p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.95;
}

.adm-login-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.adm-login-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
}

.adm-login-points li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber);
}

.adm-login-points .icon {
  width: 14px;
  height: 14px;
}

.adm-login-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
}

.adm-login-foot .icon {
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.adm-login-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 38px 46px 30px;
  background:
    radial-gradient(420px 260px at 100% 0, rgba(140,47,57,0.08), transparent 70%),
    #fff;
}

.adm-login-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.adm-login-back .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.adm-login-back:hover {
  color: var(--ink);
}

.adm-login-form-wrap {
  width: 100%;
  max-width: 382px;
  margin: auto;
  text-align: center;
}

.adm-login-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid #f4d2d6;
  border-radius: 20px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  box-shadow: 0 14px 30px rgba(140,47,57,0.22);
}

.adm-login-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.adm-login-form-wrap h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.adm-login-sub {
  margin: 10px auto 24px;
  max-width: 330px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.adm-login-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: start;
}

.adm-key-field + .adm-login-label {
  margin-top: 16px;
}

.adm-key-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-key-field:focus-within {
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 4px rgba(140,47,57,0.2);
}

.adm-key-field.has-error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(189, 75, 75, 0.08);
}

.adm-key-field > .icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.adm-key-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.adm-key-field input::placeholder {
  color: #9ab1c1;
  letter-spacing: 0;
}

.adm-eye {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #fafafa);
  color: var(--ink-3);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(20, 63, 92, 0.08), 0 3px 7px rgba(20, 63, 92, 0.06);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.adm-eye:hover {
  background: linear-gradient(180deg, #ffffff, var(--amber-soft));
  color: var(--amber-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(20, 63, 92, 0.08), 0 5px 11px rgba(20, 63, 92, 0.09);
}

.adm-eye:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(20, 63, 92, 0.14);
}

.adm-eye:focus-visible {
  outline: 2px solid rgba(140,47,57,0.82);
  outline-offset: 2px;
}

.adm-eye .icon {
  width: 17px;
  height: 17px;
}

.adm-key-hint {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.adm-login-error {
  margin: 9px 0 0;
  padding: 8px 11px;
  border: 1px solid #f0caca;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.76rem;
  text-align: start;
}

.adm-login-submit {
  width: 100%;
  height: 52px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.adm-forgot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: start;
}

.adm-forgot summary {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.adm-forgot summary:hover {
  color: var(--ink);
}

.adm-forgot p {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.8;
}

.adm-login-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8aa3b4;
  font-size: 0.7rem;
}

.adm-login-note .icon {
  width: 13px;
  height: 13px;
  color: #6d95ad;
}

.adm-login-shell.is-error {
  animation: admShake 0.4s ease;
}

@keyframes admShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

/* ===== الشريط العلوي ===== */
.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(20, 63, 92, 0.08);
  background: rgba(250, 253, 255, 0.9);
  backdrop-filter: blur(18px);
}

.adm-topbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.adm-topbar-start {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.adm-brand {
  color: var(--ink);
  justify-self: center;
  max-width: 100%;
}

.adm-topbar-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.adm-topbar-title {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.adm-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  justify-self: end;
  min-width: 0;
}

.adm-preview-btn .icon {
  width: 15px;
  height: 15px;
}

.adm-icon-btn {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 58%, #f7f7f7 100%);
  color: var(--ink-3);
  cursor: pointer;
  box-shadow:
    0 2px 0 rgba(20, 63, 92, 0.08),
    0 5px 12px rgba(20, 63, 92, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.adm-icon-btn:hover {
  border-color: var(--amber);
  background: linear-gradient(180deg, #ffffff, var(--amber-soft));
  color: var(--amber-deep);
  transform: translateY(-1px);
  box-shadow:
    0 3px 0 rgba(20, 63, 92, 0.08),
    0 9px 18px rgba(20, 63, 92, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.adm-icon-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(20, 63, 92, 0.16);
}

.adm-icon-btn:focus-visible {
  outline: 3px solid rgba(140,47,57,0.82);
  outline-offset: 2px;
}

.adm-icon-btn .icon {
  width: 18px;
  height: 18px;
}

.adm-icon-btn-danger:hover {
  border-color: #e8bcbc;
  background: var(--red-soft);
  color: var(--red);
}

/* ===== المحتوى الرئيسي ===== */
.adm-main {
  padding-block: 36px 80px;
}

.adm-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-block: 8px 26px;
}

.adm-hero-copy h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  font-weight: 800;
}

.adm-hero-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.adm-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-bottom: 3px;
}

.adm-save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.adm-save-state .icon {
  width: 14px;
  height: 14px;
}

.adm-save-state.is-saving {
  color: var(--amber-deep);
}

.adm-save-state.is-error {
  color: var(--red);
}

/* ===== بطاقات الإحصاء ===== */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.adm-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1px 13px;
  padding: 19px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.adm-stat-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--cream);
  color: var(--ink-3);
}

.adm-stat-icon .icon {
  width: 21px;
  height: 21px;
}

.adm-stat div > span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.adm-stat strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
}

.adm-stat strong em {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
}

.adm-stat small {
  grid-column: 2;
  color: #8ba3b3;
  font-size: 0.68rem;
  line-height: 1.5;
}

.adm-stat-primary {
  border-color: transparent;
  background:
    radial-gradient(220px 150px at 100% 0, rgba(140,47,57,0.24), transparent 70%),
    linear-gradient(135deg, var(--ink), var(--ink-soft));
  box-shadow: 0 16px 34px rgba(20, 63, 92, 0.18);
}

.adm-stat-primary .adm-stat-icon {
  background: rgba(140,47,57,0.18);
  color: var(--amber);
}

.adm-stat-primary div > span,
.adm-stat-primary small {
  color: rgba(255, 255, 255, 0.66);
}

.adm-stat-primary strong {
  color: #fff;
}

/* ===== شريط الأدوات ===== */
.adm-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.adm-toolbar {
  margin-top: 18px;
  padding: 15px 16px 12px;
}

.adm-toolbar-row {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.adm-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  min-width: 220px;
  height: 45px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.adm-search:focus-within {
  border-color: var(--amber-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(140,47,57,0.18);
}

.adm-search > .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.adm-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding-inline: 9px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.86rem;
}

.adm-search input::placeholder {
  color: #93aaba;
}

.adm-search input::-webkit-search-cancel-button {
  display: none;
}

.adm-search button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f1f2f2;
  color: var(--ink-3);
  cursor: pointer;
}

.adm-search button:hover {
  background: var(--red-soft);
  color: var(--red);
}

.adm-search button .icon {
  width: 13px;
  height: 13px;
}

.adm-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 45px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.adm-select-wrap > span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}

.adm-select-wrap select {
  min-width: 98px;
  height: 100%;
  padding-inline-end: 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.adm-select-wrap > .icon {
  position: absolute;
  inset-inline-end: 9px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.adm-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.adm-toolbar-actions .btn {
  height: 38px;
  padding: 8px 13px;
  font-size: 0.78rem;
}

.adm-toolbar-actions .btn .icon {
  width: 15px;
  height: 15px;
}

.adm-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: #7b95a7;
  font-size: 0.69rem;
}

.adm-toolbar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.adm-toolbar-meta .icon {
  width: 13px;
  height: 13px;
}

/* ===== رأس القائمة ===== */
.adm-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 14px;
}

.adm-list-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.adm-list-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.adm-list-head > div > span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f0f1f1;
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 700;
}

.adm-list-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7f99aa;
  font-size: 0.7rem;
}

.adm-list-note .icon {
  width: 13px;
  height: 13px;
}

/* ===== بطاقات السيارات ===== */
.adm-car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.adm-car-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  animation: admCardIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.adm-car-card:hover {
  border-color: rgba(140,47,57,0.8);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

@keyframes admCardIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

.adm-car-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f4f4, #e5e6e7);
}

.adm-car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.adm-car-card:hover .adm-car-media img {
  transform: scale(1.035);
}

.adm-cat-pill {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.adm-cat-pill .icon {
  width: 12px;
  height: 12px;
  color: var(--amber-deep);
}

.adm-badge-pill {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
}

.adm-img-count {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(20, 63, 92, 0.58);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.adm-img-count .icon {
  width: 12px;
  height: 12px;
}

.adm-car-plate {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 56%;
  padding: 4px 8px;
  border: 1px solid rgba(20, 63, 92, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.adm-car-plate .icon {
  width: 12px;
  height: 12px;
  color: var(--ink-3);
}

.adm-car-plate bdi {
  overflow: hidden;
  direction: ltr;
  unicode-bidi: isolate;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-car-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 15px 16px 14px;
}

.adm-car-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.adm-car-heading > div {
  min-width: 0;
}

.adm-car-brand {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.adm-car-heading h3 {
  margin-top: 1px;
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-car-year {
  display: inline-block;
  margin-inline-start: 4px;
  color: #8da6b7;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
}

.adm-car-price {
  flex-shrink: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.adm-car-price small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 500;
}

.adm-car-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.adm-car-chips span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.66rem;
  white-space: nowrap;
}

.adm-car-chips .icon {
  width: 11px;
  height: 11px;
  color: #7392a6;
}

.adm-car-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #f1f2f3;
}

.adm-car-actions .btn {
  flex: 1;
  height: 36px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.adm-car-actions .btn .icon {
  width: 14px;
  height: 14px;
}

.adm-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 0 11px;
  border: 1px solid #eed4d4;
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.adm-delete-btn span {
  line-height: 1;
}

.adm-delete-btn:hover {
  border-color: var(--red);
  background: var(--red-soft);
  transform: translateY(-1px);
}

.adm-delete-btn .icon {
  width: 16px;
  height: 16px;
}

/* ===== حالة فارغة ===== */
.adm-empty {
  margin-top: 16px;
  padding: 54px 24px;
  border: 1px dashed #d9dbdc;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.adm-empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 15px;
  border-radius: 18px;
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.adm-empty-icon .icon {
  width: 29px;
  height: 29px;
}

.adm-empty h3 {
  font-size: 1.18rem;
}

.adm-empty p {
  max-width: 390px;
  margin: 7px auto 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== التذييل ===== */
.adm-footer {
  padding-block: 20px 26px;
  border-top: 1px solid rgba(20, 63, 92, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.adm-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #7b95a7;
  font-size: 0.7rem;
}

.adm-footer-inner p {
  display: flex;
  align-items: center;
  gap: 5px;
}

.adm-footer-inner .icon {
  width: 13px;
  height: 13px;
  color: #5f879f;
}

/* ===== نموذج السيارة ===== */
.adm-editor-panel {
  max-width: 1120px;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
}

.adm-editor-panel > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
}

.adm-editor-head {
  flex-shrink: 0;
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(380px 160px at 96% 0, rgba(140,47,57,0.12), transparent 70%),
    #fff;
}

.adm-editor-head {
  padding-inline-end: 74px;
}

.adm-editor-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--amber-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.adm-editor-kicker .icon {
  width: 14px;
  height: 14px;
}

.adm-editor-head h2 {
  margin: 5px 0 4px;
  font-size: 1.55rem;
  font-weight: 800;
}

.adm-editor-head p {
  color: var(--muted);
  font-size: 0.78rem;
}

.adm-editor-head p b {
  color: var(--red);
}

.adm-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, 0.88fr);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #fafbfb;
}

.adm-editor-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 26px;
}

.adm-editor-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 26px;
  border-inline-start: 1px solid var(--line);
  background: #fdfdfd;
}

.adm-form-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 63, 92, 0.03);
}

.adm-section-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.adm-section-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
}

.adm-section-num .icon {
  width: 15px;
  height: 15px;
}

.adm-section-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.adm-section-head p {
  margin-top: 2px;
  color: #7d97a8;
  font-size: 0.7rem;
  line-height: 1.6;
}

.adm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.adm-grid.two {
  grid-template-columns: 1fr 1fr;
}

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

.adm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.adm-label {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.adm-label b {
  color: var(--red);
  font-weight: 700;
}

.adm-label small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 400;
}

.adm-input {
  width: 100%;
  height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-input::placeholder {
  color: #a2b6c4;
}

.adm-input:hover {
  border-color: #d3d5d7;
}

.adm-input:focus {
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(140,47,57,0.18);
}

.adm-input.has-error,
.adm-select-field.has-error select,
.adm-plate-field.has-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(189, 75, 75, 0.07);
}

.adm-textarea {
  height: auto;
  min-height: 86px;
  padding: 9px 11px;
  line-height: 1.75;
  resize: vertical;
}

.adm-select-field {
  position: relative;
  display: block;
}

.adm-select-field select {
  width: 100%;
  height: 44px;
  padding-inline: 11px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-select-field select:focus {
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(140,47,57,0.18);
}

.adm-select-field > .icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.adm-plate-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-plate-field:focus-within {
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(140,47,57,0.18);
}

.adm-plate-field .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.adm-plate-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.adm-field-error {
  display: none;
  color: var(--red);
  font-size: 0.69rem;
  line-height: 1.55;
}

.adm-field-error.is-visible {
  display: block;
}

.adm-field-spacer {
  display: block;
}

/* ===== الصور ===== */
.adm-media-section .adm-section-num {
  background: #f2f3f3;
  color: var(--ink-3);
}

.adm-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 24px 14px;
  border: 1.5px dashed #ced1d3;
  border-radius: 13px;
  background:
    radial-gradient(200px 120px at 50% 0, rgba(140,47,57,0.12), transparent 70%),
    #fbfbfb;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.adm-upload:hover,
.adm-upload.is-dragging,
.adm-upload:focus-visible {
  border-color: var(--amber-deep);
  background: var(--amber-soft);
}

.adm-upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 13px;
  background: #fff;
  color: var(--amber-deep);
  box-shadow: 0 6px 16px rgba(20, 63, 92, 0.08);
}

.adm-upload-icon .icon {
  width: 21px;
  height: 21px;
}

.adm-upload strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.adm-upload > span:last-of-type {
  color: #819bab;
  font-size: 0.68rem;
}

.adm-upload-status {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f6f7f7;
  color: var(--ink-3);
  font-size: 0.71rem;
}

.adm-upload-status.is-error {
  background: var(--red-soft);
  color: var(--red);
}

.adm-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.adm-image-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f2f3f4;
}

.adm-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-image-item.is-main {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(140,47,57,0.25);
}

.adm-main-flag {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
}

.adm-image-actions {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 22px 6px 6px;
  background: linear-gradient(to top, rgba(8, 32, 48, 0.78), transparent);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.adm-image-item:hover .adm-image-actions,
.adm-image-item:focus-within .adm-image-actions {
  opacity: 1;
}

.adm-img-main {
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.adm-img-main:hover {
  background: rgba(140,47,57,0.85);
  color: var(--ink);
}

.adm-img-remove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.adm-img-remove:hover {
  background: #c45454;
}

.adm-img-remove .icon {
  width: 12px;
  height: 12px;
}

/* مستندات المركبة: رخصة وتأمين */
.adm-doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.adm-doc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfb;
}

.adm-doc-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-doc-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--amber-deep);
  box-shadow: 0 4px 12px rgba(20, 63, 92, 0.08);
}

.adm-doc-icon .icon {
  width: 17px;
  height: 17px;
}

.adm-doc-head strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.adm-doc-head small {
  color: #819bab;
  font-size: 0.66rem;
}

.adm-doc-preview {
  display: grid;
  place-items: center;
  min-height: 110px;
  overflow: hidden;
  border: 1px dashed #ced1d3;
  border-radius: 10px;
  background: #f2f3f4;
  color: #819bab;
  font-size: 0.7rem;
}

.adm-doc-preview img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  background: #fff;
}

.adm-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adm-doc-card .adm-field-error {
  min-height: 14px;
}

.adm-url-add {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.adm-url-add .adm-input {
  flex: 1;
  height: 38px;
  font-size: 0.74rem;
}

.adm-url-add .btn {
  flex-shrink: 0;
  height: 38px;
  padding: 7px 10px;
  font-size: 0.72rem;
}

.adm-url-add .btn .icon {
  width: 13px;
  height: 13px;
}

.adm-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  color: #829bab;
  font-size: 0.68rem;
  line-height: 1.7;
}

.adm-hint .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== معاينة البطاقة ===== */
.adm-live-section .adm-section-num {
  background: #f2f3f3;
  color: var(--ink-3);
}

.adm-preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 63, 92, 0.07);
}

.adm-preview-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f4f4, #e5e6e7);
}

.adm-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-preview-cat {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.61rem;
  font-weight: 700;
}

.adm-preview-plate {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(20, 63, 92, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.adm-preview-plate[hidden] {
  display: none !important;
}

.adm-preview-body {
  padding: 10px 11px 11px;
}

.adm-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.adm-preview-brand {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
}

.adm-preview-body h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-preview-price {
  flex-shrink: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.adm-preview-price small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 500;
}

.adm-preview-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.58rem;
}

.adm-preview-meta span {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--cream);
}

.adm-preview-empty {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 20px;
  color: #95adbc;
  font-size: 0.72rem;
  text-align: center;
}

/* ===== تذييل النموذج ===== */
.adm-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.adm-form-status {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.6;
}

.adm-form-status.is-error {
  color: var(--red);
}

.adm-form-status.is-success {
  color: var(--green);
}

.adm-editor-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.adm-editor-buttons .btn {
  height: 42px;
  padding: 10px 20px;
  font-size: 0.84rem;
}

/* ===== الإعدادات ===== */
.adm-settings-panel {
  max-width: 760px;
  padding: 0;
  border-radius: 24px;
}

.adm-settings-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(300px 140px at 96% 0, rgba(140,47,57,0.12), transparent 70%),
    #fff;
}

.adm-settings-head {
  padding-inline-end: 76px;
}

.adm-settings-head h2 {
  margin: 7px 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
}

.adm-settings-head p {
  color: var(--muted);
  font-size: 0.78rem;
}

.adm-settings-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 26px 24px;
  background: #fbfcfc;
}

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

.adm-settings-section > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.adm-settings-section > h3 > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink-3);
}

.adm-settings-section > h3 .icon {
  width: 15px;
  height: 15px;
}

.adm-settings-section > p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.75;
}

.adm-settings-section form .adm-grid {
  margin-bottom: 12px;
}

.adm-settings-section .adm-field-spacer {
  display: none;
}

.adm-settings-section form .adm-field-error {
  margin-bottom: 8px;
}

.adm-storage {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid #eff0f0;
  border-radius: 10px;
  background: #fbfcfc;
}

.adm-storage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.adm-storage-row strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.adm-storage-bar {
  height: 7px;
  margin: 9px 0 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceded;
}

.adm-storage-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  transition: width 0.4s ease;
}

.adm-storage-bar i.is-warning {
  background: linear-gradient(90deg, #d85a69, #c23d4d);
}

.adm-storage p {
  color: #829bab;
  font-size: 0.66rem;
}

.adm-settings-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.adm-settings-actions .btn {
  height: 36px;
  padding: 7px 12px;
  font-size: 0.74rem;
}

.adm-settings-actions .icon {
  width: 14px;
  height: 14px;
}

.adm-backup-box {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #e5e7e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfbfb, #fff);
}

.adm-backup-box > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.adm-backup-box > h3 > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f2f3f3;
  color: var(--brand, #143f5c);
}

.adm-backup-box > h3 .icon {
  width: 14px;
  height: 14px;
}

.adm-backup-box > p {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.8;
}

.adm-backup-status {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 0.71rem;
  line-height: 1.7;
  background: #eef8f2;
  color: #17603a;
}

.adm-backup-status.is-error {
  background: #fdf0f0;
  color: #9b2c2c;
}

.adm-backup-status.is-busy {
  background: #f4f5f5;
  color: #245772;
}

.adm-share-line {
  display: flex;
  gap: 7px;
  align-items: stretch;
  margin-bottom: 10px;
}

.adm-share-line .adm-input {
  flex: 1;
  min-width: 0;
  direction: ltr;
  text-align: left;
  font-size: 0.76rem;
}

.adm-share-line .btn {
  flex: 0 0 auto;
  height: auto;
}

@media (max-width: 560px) {
  .adm-share-line {
    flex-direction: column;
  }

  .adm-share-line .btn {
    height: 36px;
  }
}

.adm-danger-zone {
  border-color: #f0d2d2;
  background: #fffafa;
}

.adm-danger-zone > h3 > span {
  background: var(--red-soft);
  color: var(--red);
}

.adm-danger-zone > p {
  color: #8b6464;
}

.adm-settings-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.adm-settings-foot > span {
  color: #8ba3b3;
  font-size: 0.7rem;
}

/* ===== هوية الشركة وإدارتها ===== */
.adm-company-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

.adm-company-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 12px;
  border: 1px solid #eff0f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfdfd, #f8f9f9);
  text-align: center;
}

.adm-company-logo-preview {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 63, 92, 0.08);
}

.adm-company-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.adm-company-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.adm-company-logo-actions .btn {
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  font-size: 0.7rem;
}

.adm-company-logo-hint {
  color: #829bab;
  font-size: 0.62rem;
  line-height: 1.6;
}

.adm-company-form {
  min-width: 0;
}

.adm-company-form .adm-grid {
  margin-bottom: 10px;
}

.adm-company-form > .adm-label {
  display: block;
  margin: 2px 0 7px;
}

.adm-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.adm-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--swatch, #143f5c);
  box-shadow: 0 0 0 1px rgba(20, 63, 92, 0.18), 0 4px 10px rgba(20, 63, 92, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.adm-swatch:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.adm-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch, #143f5c), 0 6px 14px rgba(20, 63, 92, 0.22);
}

.adm-swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

/* ===== الهوية البصرية ===== */
.adm-theme-section > p {
  max-width: 680px;
}

.adm-theme-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 248px);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.adm-theme-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.adm-theme-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 8px 16px;
  align-items: end;
  padding: 12px;
  border: 1px solid #eff0f0;
  border-radius: 12px;
  background: #fbfcfc;
}

.adm-theme-color-label {
  min-width: 0;
}

.adm-theme-color-label .adm-label small,
.adm-theme-palette-head .adm-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
}

.adm-theme-color-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.adm-theme-color-pick input[type="color"] {
  flex-shrink: 0;
  width: 46px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.adm-theme-hex {
  width: 108px;
  font-family: 'Segoe UI', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adm-theme-intensity {
  display: block;
  min-width: 0;
}

.adm-theme-intensity b {
  color: var(--ink);
  font-size: 0.68rem;
}

.adm-theme-intensity input[type="range"] {
  width: 100%;
  margin-top: 9px;
  accent-color: var(--ink);
  cursor: pointer;
}

.adm-theme-contrast {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  color: #5b7a8d;
  font-size: 0.68rem;
  line-height: 1.5;
}

.adm-theme-contrast.is-good {
  color: #2f7d5b;
}

.adm-theme-contrast.is-warn {
  color: #8a5a16;
}

.adm-theme-palette {
  padding: 12px;
  border: 1px solid #eff0f0;
  border-radius: 12px;
  background: #fbfcfc;
}

.adm-theme-palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.adm-theme-swatches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-theme-swatch-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.adm-theme-swatch-row input[type="color"] {
  width: 42px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.adm-theme-swatch-row .adm-input {
  height: 36px;
  font-size: 0.74rem;
}

.adm-theme-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #9b3b3b;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.adm-theme-remove:hover {
  border-color: #d8a5a5;
  background: #fdf4f4;
}

.adm-theme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.adm-theme-status {
  margin: 0;
  color: #2f7d5b;
  font-size: 0.7rem;
  font-weight: 700;
}

.adm-theme-status.is-error {
  color: #9b3b3b;
}

.adm-theme-preview {
  position: sticky;
  top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfdfd, #f3f5f6);
}

.adm-theme-preview .eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 0.62rem;
}

.adm-theme-preview-card {
  overflow: hidden;
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 63, 92, 0.1);
}

.adm-theme-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  background: linear-gradient(160deg, var(--ccp-admin-top), var(--ccp-admin-bottom));
  color: var(--ccp-admin-ink);
}

.adm-theme-preview-brand {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
}

.adm-theme-preview-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ccp-admin-ink);
  color: var(--ccp-admin-bottom);
  font-size: 0.58rem;
  font-weight: 800;
}

.adm-theme-preview-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}

.adm-theme-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adm-theme-preview-actions .btn {
  pointer-events: none;
}

.adm-theme-preview-text {
  color: #52616b;
  font-size: 0.68rem;
  line-height: 1.7;
}

.adm-theme-preview-text a {
  color: var(--amber-deep);
  font-weight: 700;
  text-decoration: underline;
}

.adm-theme-preview-badge {
  display: inline-flex;
  margin-inline-start: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 0.6rem;
  font-weight: 700;
}

.adm-theme-preview-table {
  border: 1px solid #eceeef;
  border-radius: 8px;
  overflow: hidden;
}

.adm-theme-preview-tr {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  font-size: 0.65rem;
}

.adm-theme-preview-tr + .adm-theme-preview-tr {
  border-top: 1px solid #eceeef;
}

.adm-theme-preview-tr strong {
  color: var(--ink);
}

.adm-theme-preview-tr span {
  color: #52616b;
}

.adm-theme-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.adm-theme-preview-chips span {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(20, 63, 92, 0.18);
}

.adm-theme-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .adm-theme-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .adm-theme-preview {
    position: static;
  }
}

@media (max-width: 560px) {
  .adm-theme-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .adm-theme-color-pick .adm-theme-hex {
    flex: 1;
    width: auto;
  }
}

.adm-companies-panel {
  max-width: 820px;
}

.adm-companies-loading {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.adm-companies-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

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

.adm-company-row.is-local {
  border-color: #e1e2e3;
  background: #fafafa;
}

.adm-company-row-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.adm-company-row-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.adm-company-row-info {
  min-width: 0;
}

.adm-company-row-info strong {
  display: block;
  overflow: hidden;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-company-row-info small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.adm-company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.adm-company-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f5f6f6;
  color: #3d6a8a;
  font-size: 0.6rem;
  font-weight: 700;
}

.adm-company-tag.is-off {
  background: #fdecec;
  color: #b44646;
}

.adm-company-tag.is-platform {
  background: #f2f1f1;
  color: #8a202d;
}

.adm-company-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.adm-company-row-actions .btn {
  height: 32px;
  padding: 5px 10px;
  font-size: 0.66rem;
}

.adm-company-rename {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 7px;
}

.adm-company-rename .adm-input {
  max-width: 210px;
  height: 32px;
  padding: 4px 9px;
  font-size: 0.72rem;
}

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

  .adm-company-logo {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: start;
  }

  .adm-company-logo-actions {
    width: auto;
  }

  .adm-company-logo-hint {
    flex-basis: 100%;
    text-align: center;
  }

  .adm-company-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .adm-company-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .adm-companies-btn span {
    display: none;
  }
}

/* ===== نافذة التأكيد ===== */
.adm-confirm-panel {
  max-width: 440px;
  padding: 32px 30px 26px;
  text-align: center;
}

.adm-confirm-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.adm-confirm-icon.is-danger {
  background: var(--red-soft);
  color: var(--red);
}

.adm-confirm-icon .icon {
  width: 25px;
  height: 25px;
}

.adm-confirm-panel h2 {
  font-size: 1.28rem;
  font-weight: 800;
}

.adm-confirm-panel p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.adm-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.adm-confirm-actions .btn {
  min-width: 110px;
  height: 41px;
  padding: 9px 18px;
  font-size: 0.82rem;
}

.adm-confirm-actions .btn-danger-outline.is-confirm {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.adm-confirm-actions .btn-danger-outline.is-confirm:hover {
  background: #a73e3e;
}

/* ===== استجابة الشاشات ===== */
@media (max-width: 1240px) {
  .adm-car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adm-stat strong {
    font-size: 1.5rem;
  }
}

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

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

  .adm-editor-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .adm-login-shell {
    grid-template-columns: 1fr;
    max-width: 640px;
    min-height: 0;
  }

  .adm-login-visual {
    padding: 26px 30px 24px;
    background:
      linear-gradient(155deg, rgba(9, 34, 52, 0.94), rgba(20, 63, 92, 0.72)),
      url('../assets/hero.jpg') center 38% / cover no-repeat;
  }

  .adm-login-copy {
    margin: 0;
    padding: 26px 0 0;
  }

  .adm-login-copy h1 {
    margin: 12px 0 0;
    font-size: 2.15rem;
  }

  .adm-login-copy > p,
  .adm-login-points,
  .adm-login-foot {
    display: none;
  }

  .adm-login-panel {
    padding: 30px 34px 26px;
  }

  .adm-login-form-wrap {
    margin: 4px auto;
  }

  .adm-login-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    border-radius: 16px;
  }

  .adm-login-icon .icon {
    width: 24px;
    height: 24px;
  }

  .adm-login-form-wrap h2 {
    font-size: 1.55rem;
  }

  .adm-topbar-title,
  .adm-topbar-divider {
    display: none;
  }
}

@media (max-width: 860px) {
  .adm-container {
    padding-inline: 20px;
  }

  .adm-main {
    padding-block: 26px 60px;
  }

  .adm-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 22px;
  }

  .adm-hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .adm-toolbar-actions {
    width: 100%;
  }

  .adm-toolbar-actions .btn {
    flex: 1;
  }

  .adm-toolbar-actions .btn {
    min-width: 104px;
  }

  .adm-list-note {
    display: none;
  }

  .adm-editor-body {
    display: block;
  }

  .adm-editor-side {
    display: flex;
    border-top: 1px solid var(--line);
  }
}

/* تُضغط أزرار الشريط الثانوية إلى أيقونات قبل أن تتداخل مع شعار المنتصف */
@media (max-width: 1600px) {
  .adm-preview-btn {
    width: 41px;
    height: 41px;
    padding: 0;
    border-radius: 12px;
  }

  .adm-preview-btn span {
    display: none;
  }
}

@media (max-width: 1350px) {
  .adm-companies-btn {
    width: 41px;
    height: 41px;
    padding: 0;
    border-radius: 12px;
  }

  .adm-companies-btn span {
    display: none;
  }
}

@media (max-width: 1180px) {
  .adm-accounting-btn {
    width: 41px;
    height: 41px;
    padding: 0;
    border-radius: 12px;
  }

  .adm-accounting-btn span {
    display: none;
  }
}

@media (max-width: 760px) {
  .adm-topbar-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: center;
    min-height: 0;
    padding-block: 8px;
    gap: 7px;
  }

  .adm-topbar-start {
    display: none;
  }

  .adm-brand {
    grid-row: 1;
    max-width: 100%;
  }

  .adm-topbar-actions {
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 7px;
  }

  .adm-topbar .adm-accounting-btn {
    width: auto;
    height: 36px;
    padding: 0 11px;
    border-radius: 11px;
  }

  .adm-accounting-btn span,
  .adm-companies-btn span {
    display: inline;
  }

  .adm-companies-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 11px;
  }

  .adm-companies-btn span {
    display: none;
  }

  .adm-preview-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 11px;
  }

  .adm-preview-btn span {
    display: none;
  }

  .adm-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .adm-brand .brand-mark .icon {
    width: 21px;
    height: 21px;
  }

  .adm-brand .brand-text strong {
    font-size: 1.25rem;
  }

  .adm-brand .brand-text small {
    font-size: 0.6rem;
  }

  .adm-preview-btn {
    width: 41px;
    height: 41px;
    padding: 0;
    border-radius: 12px;
  }

  .adm-preview-btn span {
    display: none;
  }

  .adm-icon-btn,
  .adm-preview-btn {
    width: 39px;
    height: 39px;
  }

  .adm-stats {
    gap: 10px;
  }

  .adm-stat {
    padding: 15px 14px;
  }

  .adm-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .adm-stat-icon .icon {
    width: 18px;
    height: 18px;
  }

  .adm-stat strong {
    font-size: 1.35rem;
  }

  .adm-stat small {
    display: none;
  }

  .adm-toolbar {
    padding: 12px;
  }

  .adm-search {
    flex-basis: 100%;
  }

  .adm-select-wrap {
    flex: 1;
  }

  .adm-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .adm-toolbar-actions .btn {
    min-width: 0;
  }

  .adm-list-head {
    align-items: center;
    margin-top: 24px;
  }

  .adm-list-head > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .adm-car-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .adm-editor-panel {
    max-width: none;
    height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  .adm-editor-panel > form {
    max-height: 100%;
  }

  .adm-editor-head {
    padding: 20px 20px 16px;
    padding-inline-end: 62px;
  }

  .adm-editor-head h2 {
    font-size: 1.3rem;
  }

  .adm-editor-main,
  .adm-editor-side {
    padding: 14px;
  }

  .adm-form-section {
    padding: 15px;
  }

  .adm-editor-foot {
    padding: 11px 14px;
  }

  .adm-form-status {
    display: none;
  }

  .adm-editor-buttons {
    width: 100%;
  }

  .adm-editor-buttons .btn {
    flex: 1;
    padding: 10px 12px;
  }

  .adm-settings-panel {
    max-width: none;
  }

  .adm-settings-head {
    padding: 22px 20px 16px;
    padding-inline-end: 60px;
  }

  .adm-settings-body {
    padding: 14px;
  }

  .adm-settings-section {
    padding: 15px;
  }

  .adm-settings-foot {
    padding: 11px 16px;
  }

  .adm-footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .adm-login {
    padding: 16px;
  }

  .adm-login-shell {
    border-radius: 24px;
  }

  .adm-login-visual {
    padding: 22px 22px 20px;
  }

  .adm-login-copy h1 {
    font-size: 1.85rem;
  }

  .adm-login-panel {
    padding: 24px 22px 22px;
  }

  .adm-login-form-wrap {
    text-align: start;
  }

  .adm-login-icon {
    margin-inline: 0;
  }

  .adm-login-sub {
    margin-inline: 0;
  }

  .adm-login-note {
    justify-content: flex-start;
  }

  .adm-grid.two,
  .adm-grid.three {
    grid-template-columns: 1fr;
  }

  .adm-field-spacer {
    display: none;
  }

  .adm-editor-side {
    display: flex;
  }

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

  .adm-doc-grid {
    grid-template-columns: 1fr;
  }

  .adm-url-add {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-url-add .btn {
    height: 36px;
  }

  .adm-confirm-actions {
    flex-direction: column-reverse;
  }

  .adm-confirm-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .adm-topbar .adm-accounting-btn {
    width: auto;
    height: 36px;
    padding: 0 10px;
    border-radius: 11px;
    justify-content: center;
  }

  .adm-topbar .adm-accounting-btn span {
    display: inline;
  }
}

@media (max-width: 480px) {
  .adm-container {
    padding-inline: 15px;
  }

  .adm-hero-copy h1 {
    font-size: 1.95rem;
  }

  .adm-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-hero-actions .btn {
    width: 100%;
  }

  .adm-save-state {
    justify-content: center;
  }

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

  .adm-stat small {
    display: block;
  }

  .adm-toolbar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .adm-toolbar-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .adm-toolbar-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .adm-topbar .adm-brand .brand-text small {
    display: none;
  }

  .adm-topbar-actions {
    gap: 6px;
  }

  .adm-icon-btn,
  .adm-preview-btn {
    width: 36px;
    height: 36px;
  }

  .adm-editor-panel {
    height: calc(100dvh - 12px);
    border-radius: 16px;
  }

  .modal {
    padding: 6px;
  }

  .adm-editor-head {
    padding: 18px 16px 14px;
    padding-inline-end: 56px;
  }

  .adm-editor-body {
    font-size: 0.9rem;
  }

  .adm-section-head p {
    display: none;
  }

  .adm-editor-foot {
    padding: 9px 12px;
  }

  .adm-editor-buttons {
    gap: 6px;
  }

  .adm-settings-head {
    padding-inline-end: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adm-car-card {
    animation: none;
  }

  .adm-login-shell.is-error {
    animation: none;
  }
}

/* ===== تنبيه المفتاح الافتراضي ===== */
.adm-security-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  margin-top: -4px;
  padding: 15px 20px;
  background: linear-gradient(120deg, var(--amber-soft), #fafafa);
  border: 1px solid rgba(140,47,57,0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.adm-security-banner[hidden] {
  display: none;
}

.adm-security-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--amber-deep);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}

.adm-security-icon .icon {
  width: 21px;
  height: 21px;
}

.adm-security-banner div {
  flex: 1;
  min-width: 0;
}

.adm-security-banner strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.adm-security-banner p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.adm-security-banner .btn {
  flex: none;
}

@media (max-width: 720px) {
  .adm-security-banner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .adm-security-banner .btn {
    width: 100%;
  }
}

/* ===== ترخيص الشركة ===== */
.adm-license-banner.is-danger {
  background: linear-gradient(120deg, var(--red-soft), #fff7f7);
  border-color: rgba(189, 75, 75, 0.28);
}

.adm-license-banner.is-danger .adm-security-icon {
  color: var(--red);
}

.adm-license-banner.is-warning {
  background: linear-gradient(120deg, var(--amber-soft), #fafafa);
}

.adm-license-modal .adm-license-panel {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
}

.adm-license-head {
  padding: 26px 30px 0;
  padding-inline-end: 72px;
}

.adm-license-head h2 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.adm-license-head p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.adm-license-body {
  padding: 20px 30px 30px;
  display: grid;
  gap: 16px;
}

.adm-license-status {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fdfdfd;
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}

.adm-license-state {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.adm-license-state-copy {
  flex: 1;
  min-width: 160px;
  display: grid;
  gap: 2px;
}

.adm-license-state-copy strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}

.adm-license-state-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.adm-license-badge {
  flex: none;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--line);
  color: var(--ink);
}

.adm-license-state.is-active .adm-license-badge {
  background: var(--green-soft);
  color: var(--green);
}

.adm-license-state.is-warning .adm-license-badge {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.adm-license-state.is-danger .adm-license-badge {
  background: var(--red-soft);
  color: var(--red);
}

.adm-license-state.is-info .adm-license-badge {
  background: #f1f2f3;
  color: var(--ink-3);
}

.adm-license-chip {
  flex: none;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f3f4f5;
  color: var(--ink-3);
}

.adm-license-chip.is-active {
  background: var(--green-soft);
  color: var(--green);
}

.adm-license-chip.is-danger {
  background: var(--red-soft);
  color: var(--red);
}

.adm-license-chip.is-info {
  background: #f1f2f3;
  color: var(--ink-3);
}

.adm-license-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 18px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.adm-license-kv div {
  display: grid;
  gap: 2px;
}

.adm-license-kv span {
  color: var(--muted);
  font-size: 0.7rem;
}

.adm-license-kv strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.adm-license-message {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f4f5;
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.7;
}

.adm-license-message.is-warning {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.adm-license-message.is-danger {
  background: var(--red-soft);
  color: var(--red);
}

.adm-license-notices {
  list-style: none;
  display: grid;
  gap: 8px;
}

.adm-license-notices li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f4f5;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.6;
}

.adm-license-notices li .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
}

.adm-license-notices li.is-warning,
.adm-license-notices li.is-urgent {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.adm-license-notices li.is-expired,
.adm-license-notices li.is-grace {
  background: var(--red-soft);
  color: var(--red);
}

.adm-license-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.adm-license-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}

.adm-license-section h3 .icon {
  width: 17px;
  height: 17px;
  color: var(--amber-bright);
}

.adm-license-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

#licenseActivateForm {
  display: grid;
  gap: 10px;
  align-items: start;
}

#licenseActivateForm .adm-field {
  margin: 0;
}

#licenseActivateForm .adm-input {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

#licenseActivateForm .adm-field-error {
  margin: 0;
}

#licenseActivateForm .btn {
  justify-self: start;
}

.adm-license-events {
  list-style: none;
  display: grid;
  gap: 9px;
}

.adm-license-events li {
  display: grid;
  gap: 2px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}

.adm-license-events li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.adm-license-event-action {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
}

.adm-license-event-meta {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.adm-license-event-empty,
.adm-license-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.adm-license-offline {
  border-radius: 12px;
  padding: 10px 14px;
  background: #f3f4f5;
  color: var(--ink-3);
  font-size: 0.76rem;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .adm-license-btn span {
    display: none;
  }

  .adm-license-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 11px;
  }

  .adm-license-head {
    padding: 22px 20px 0;
    padding-inline-end: 62px;
  }

  .adm-license-body {
    padding: 16px 20px 22px;
  }
}

/* لا تغطِّ شريط المزامنة محتوى النوافذ المفتوحة على الجوال */
body.modal-open .cc-syncbar,
body.cc-modal-open .cc-syncbar {
  display: none;
}
