@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #5e6c7a;
  --line: #d8e1e8;
  --soft: #f5f8fa;
  --paper: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #b45309;
  --rose: #be123c;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.11);
  --font-main: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(196, 210, 218, 0.72);
  background: rgba(252, 253, 253, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.05);
}

.brand,
.main-nav,
.card-actions,
.tool-actions,
.form-actions,
.setup-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.main-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #e7f5f2;
  color: var(--teal-dark);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid #c9d5dd;
  border-radius: 8px;
  background: #ffffff;
}

.language-switch a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 0;
  color: var(--muted);
  font-size: 13px;
}

.language-switch a[aria-current="true"] {
  background: var(--teal);
  color: #ffffff;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 56px);
  align-items: end;
  padding: 74px clamp(20px, 5vw, 72px) 54px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 46%),
    linear-gradient(45deg, rgba(37, 99, 235, 0.08), transparent 48%),
    #fbfdfd;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-copy p:not(.eyebrow),
.setup-copy,
.inquiry-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.catalog-tools,
.inquiry-form,
.setup-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.catalog-tools {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  box-shadow: 0 22px 60px rgba(31, 41, 51, 0.13);
}

.catalog-tools .field:nth-of-type(1),
.catalog-tools .field:nth-of-type(2) {
  grid-column: span 3;
}

.catalog-tools .field:nth-of-type(3),
.catalog-tools .field:nth-of-type(4),
.catalog-tools .field:nth-of-type(5) {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.field span {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9d5dd;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 8px 11px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
  outline: none;
}

.field small {
  color: var(--rose);
  font-weight: 700;
}

.tool-actions {
  grid-column: span 6;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

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

.button-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

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

.button-secondary {
  border-color: #c9d5dd;
  background: #ffffff;
  color: var(--ink);
}

.button-whatsapp {
  border-color: #9dd7c8;
  background: #e7f5f2;
  color: var(--teal-dark);
}

.button-whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
}

.status-band,
.catalog-section,
.inquiry-section {
  padding: 44px clamp(20px, 5vw, 72px);
}

.status-band {
  padding-bottom: 0;
}

.notice {
  max-width: 1120px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 8px;
}

.notice-warning {
  border-color: #f3c982;
  background: #fff8e8;
}

.notice-success {
  border-color: #9dd7c8;
  background: #ecfdf7;
}

.notice-error {
  border-color: #f0a8b8;
  background: #fff1f4;
}

.inline-action {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal-dark);
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.app-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(31, 41, 51, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  box-shadow: 0 22px 54px rgba(31, 41, 51, 0.13);
  transform: translateY(-2px);
}

.app-visual {
  height: 210px;
  min-height: 210px;
  border-bottom: 4px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent),
    #edf3f6;
}

.app-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-body {
  display: grid;
  gap: 15px;
  padding: 20px;
}

.app-topline,
.tech-tags,
.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-topline span,
.tech-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: color-mix(in srgb, var(--accent) 72%, #111827);
  font-size: 12px;
  font-weight: 900;
}

.app-topline .featured-badge {
  background: #fff1f4;
  color: var(--rose);
}

.tagline {
  color: var(--ink);
  font-weight: 900;
}

.app-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #e1e8ee);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 7%, #ffffff);
}

.app-price del {
  color: var(--rose);
  font-weight: 800;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
}

.app-price strong {
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1.1;
}

.app-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.detail-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.detail-points li {
  position: relative;
  padding-inline-start: 18px;
  line-height: 1.58;
}

.detail-points li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, #d8e1e8);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  width: fit-content;
  color: color-mix(in srgb, var(--accent) 72%, #111827);
  font-weight: 900;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.read-more-link:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.app-facts {
  margin: 0;
}

.app-facts div {
  flex: 1 1 150px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  background: #f9fbfc;
}

.app-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.card-actions {
  gap: 10px;
  justify-content: space-between;
  margin-top: 2px;
}

.card-actions .button {
  flex: 1 1 0;
}

.empty-state {
  max-width: 640px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.empty-state p {
  color: var(--muted);
}

.inquiry-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1.3fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 38%),
    #ffffff;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.catalog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 40, 0.58);
  backdrop-filter: blur(5px);
}

.catalog-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(960px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.catalog-modal-content {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.catalog-modal-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf3f6;
}

.catalog-modal-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-bottom: 4px solid var(--accent);
}

.catalog-modal-copy {
  display: grid;
  gap: 15px;
  min-width: 0;
}

.catalog-modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-page {
  display: grid;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px) 48px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
    #ffffff;
  box-shadow: var(--shadow);
}

.detail-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.detail-copy h1 {
  margin-bottom: 0;
}

.detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf3f6;
}

.detail-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 4px solid var(--accent);
}

.detail-actions {
  justify-content: flex-start;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: start;
}

.detail-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.detail-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-facts {
  padding: 0;
}

.detail-points-full {
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-inline-end: 6px;
}

.inquiry-copy {
  position: sticky;
  top: 96px;
}

.inquiry-form {
  display: grid;
  gap: 18px;
  padding: 20px;
  box-shadow: none;
}

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

.form-actions {
  justify-content: flex-end;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.contact-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.contact-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.site-footer {
  padding: 34px clamp(20px, 5vw, 72px) 20px;
  background: #15242c;
  color: #e7eef2;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(180px, 0.55fr) minmax(220px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.footer-brand .brand {
  color: #ffffff;
}

.footer-brand p {
  max-width: 620px;
  margin: 0;
  color: #b8c7d1;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
}

.footer-links a {
  width: fit-content;
  color: #dbe7ec;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact div {
  display: grid;
  gap: 2px;
}

.footer-contact dt {
  color: #92a6b2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-contact dd {
  margin: 0;
  color: #e7eef2;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 225, 232, 0.18);
  color: #b8c7d1;
  font-size: 14px;
  font-weight: 700;
}

.site-footer .language-switch {
  border-color: rgba(216, 225, 232, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer .language-switch a {
  color: #dbe7ec;
}

.setup-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 32px clamp(20px, 5vw, 64px);
}

.setup-panel {
  width: min(760px, 100%);
  padding: 24px;
}

.setup-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.setup-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.setup-list dt {
  color: var(--muted);
  font-weight: 800;
}

.setup-list dd {
  margin: 0;
  font-weight: 800;
  word-break: break-word;
}

.setup-actions {
  gap: 10px;
  justify-content: flex-end;
}

.admin-shell {
  display: grid;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 64px);
}

.admin-login {
  justify-self: center;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-tabs a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.admin-tabs a:hover,
.admin-tabs a[aria-current="page"] {
  background: #e7f5f2;
  color: var(--teal-dark);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 41, 51, 0.08);
  text-decoration: none;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  font-size: 38px;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 41, 51, 0.08);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.form-subhead {
  margin: 4px 0 -6px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

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

.upload-box {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  background: #f9fbfc;
}

.asset-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-preview img {
  width: 112px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.asset-preview-small img {
  width: 46px;
  height: 46px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-table td {
  font-weight: 700;
}

.admin-app-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-app-cell img {
  width: 58px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f9fbfc;
}

.message-cell {
  max-width: 360px;
  color: var(--muted);
  font-weight: 600;
}

.admin-form-panel {
  align-self: start;
}

.admin-form-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.media-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  background: #f9fbfc;
}

.app-image-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.form-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.button-small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 14px;
}

.button-danger {
  border-color: #f0a8b8;
  background: #fff1f4;
  color: var(--rose);
}

.button-danger:hover {
  background: #ffe3e9;
}

.admin-body {
  min-height: 100vh;
  background: #eef3f6;
}

.admin-body h1 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.12;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.admin-brand span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-side-nav {
  display: grid;
  gap: 6px;
}

.admin-side-nav a {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.admin-side-nav a:hover,
.admin-side-nav a[aria-current="page"] {
  background: #e7f5f2;
  color: var(--teal-dark);
}

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

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  padding: 20px clamp(20px, 4vw, 34px);
  border-bottom: 1px solid rgba(216, 225, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

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

.admin-top-actions form,
.table-actions form {
  margin: 0;
}

.admin-content {
  display: grid;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 34px) 42px;
}

.admin-login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px clamp(20px, 5vw, 64px);
}

.apps-list-panel {
  gap: 20px;
}

.apps-table {
  min-width: 900px;
}

.admin-app-cell div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-app-cell span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.price-cell {
  display: grid;
  gap: 3px;
}

.price-cell del {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
}

.price-cell strong {
  color: var(--teal-dark);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.status-active {
  background: #e7f5f2;
  color: var(--teal-dark);
}

.status-hidden {
  background: #edf3f6;
  color: var(--muted);
}

.status-featured,
.status-new {
  background: #fff8e8;
  color: var(--amber);
}

.status-contacted {
  background: #eef4ff;
  color: var(--blue);
}

.status-won {
  background: #e7f5f2;
  color: var(--teal-dark);
}

.status-lost {
  background: #fff1f4;
  color: var(--rose);
}

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

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

.settings-box {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  background: #f9fbfc;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 40, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-image-empty {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  padding: 14px;
  border: 1px dashed #b8c7d1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.inquiry-modal-panel {
  width: min(860px, 100%);
}

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

.details-grid div,
.readonly-box {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  background: #f9fbfc;
}

.details-grid dt,
.readonly-box strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.details-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.readonly-box {
  display: grid;
  gap: 8px;
}

.readonly-box p {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.is-rtl {
  font-family: var(--font-ar);
}

.is-rtl .site-header,
.is-rtl .brand,
.is-rtl .main-nav,
.is-rtl .card-actions,
.is-rtl .tool-actions,
.is-rtl .form-actions,
.is-rtl .setup-actions,
.is-rtl .admin-heading,
.is-rtl .panel-heading,
.is-rtl .panel-actions,
.is-rtl .admin-tabs,
.is-rtl .admin-app-cell,
.is-rtl .asset-preview,
.is-rtl .check-field,
.is-rtl .admin-brand,
.is-rtl .admin-topbar,
.is-rtl .admin-top-actions,
.is-rtl .admin-side-nav,
.is-rtl .table-actions,
.is-rtl .modal-heading {
  direction: rtl;
}

.is-rtl input,
.is-rtl textarea,
.is-rtl select {
  text-align: right;
}

.is-rtl input[type="email"],
.is-rtl input[type="url"],
.is-rtl input[type="number"],
.is-rtl input[type="color"] {
  direction: ltr;
  text-align: left;
}

.is-rtl .admin-table th,
.is-rtl .admin-table td {
  text-align: right;
}

.is-rtl .button,
.is-rtl .brand-mark,
.is-rtl .language-switch {
  direction: ltr;
}

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

  .catalog-hero,
  .inquiry-section,
  .catalog-modal-content,
  .detail-hero,
  .detail-section,
  .footer-inner,
  .admin-grid,
  .admin-stats,
  .admin-form-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-copy {
    position: static;
  }
}

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

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-side-nav {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .admin-heading,
  .panel-heading,
  .modal-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .catalog-hero {
    padding-top: 32px;
  }

  h1 {
    font-size: 40px;
  }

  .catalog-tools,
  .form-grid,
  .catalog-grid,
  .upload-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .catalog-tools .field:nth-of-type(1),
  .catalog-tools .field:nth-of-type(2),
  .catalog-tools .field:nth-of-type(3),
  .catalog-tools .field:nth-of-type(4),
  .catalog-tools .field:nth-of-type(5),
  .tool-actions {
    grid-column: 1 / -1;
  }

  .card-actions,
  .tool-actions,
  .form-actions,
  .setup-actions,
  .panel-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
