:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --blue: #2563eb;
  --ink: #17202a;
  --muted: #64748b;
  --line: #dbe5ea;
  --soft: #eef7f5;
  --accent: #f59e0b;
}

body {
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7faf9;
}

.navbar {
  backdrop-filter: blur(18px);
}

.nav-search {
  display: flex;
  gap: .35rem;
  align-items: center;
}

.nav-search .form-control {
  width: 230px;
  border-radius: 8px;
}

.site-logo {
  width: 184px;
  max-height: 50px;
  object-fit: contain;
}

.footer-logo {
  width: 210px;
  max-width: 100%;
}

.footer .footer-logo,
.admin-sidebar .footer-logo {
  filter: brightness(0) invert(1);
}

.setting-preview {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.setting-preview img {
  max-width: 220px;
  max-height: 70px;
  object-fit: contain;
}

.hero,
.hero-slide {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 6rem 0 4rem;
  color: #fff;
}

.hero {
  background:
    linear-gradient(90deg, rgba(8, 47, 73, .92), rgba(15, 118, 110, .74)),
    url("https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-slide {
  background-position: center;
  background-size: cover;
}

.hero h1,
.hero-slide h1 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: 0;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 7%;
}

.hero-slider .carousel-indicators {
  bottom: 2rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
  width: 42px;
  height: 4px;
  border-radius: 999px;
}

.hero-badge {
  color: #0f3b38;
  background: #e7f8f5;
}

.section-pad {
  padding: 5rem 0;
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

.service-card,
.product-card,
.blog-card,
.stat-card,
.admin-card,
.price-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.admin-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-language-tabs {
  display: inline-flex;
  gap: .35rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-language-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .45rem .8rem;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}

.admin-language-tab:hover,
.admin-language-tab.active {
  color: #fff;
  background: var(--brand);
}

.admin-lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 26px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  background: #eef2f7;
  color: #334155;
}

.admin-lang-badge.lang-tr {
  background: #fee2e2;
  color: #991b1b;
}

.admin-lang-badge.lang-en {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-lang-badge.lang-ar {
  background: #dcfce7;
  color: #166534;
}

.service-card,
.product-card,
.blog-card {
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover,
.product-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.object-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.text-brand {
  color: var(--brand);
}

.price-box {
  background: #f8fbfb;
  padding: 1rem;
}

.category-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  position: sticky;
  top: 92px;
}

.category-panel-head {
  padding: 1.1rem;
  background: linear-gradient(135deg, #eef7f5, #eff6ff);
  border-bottom: 1px solid var(--line);
}

.category-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #edf2f5;
}

.category-link:hover {
  background: #f8fbfb;
  color: var(--brand);
}

.category-link.is-child {
  padding-left: 1.8rem;
  font-size: .94rem;
}

.category-link small,
.category-link strong {
  color: var(--muted);
  white-space: nowrap;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
}

.search-result {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.search-result a {
  color: var(--ink);
  text-decoration: none;
}

.search-result a:hover {
  color: var(--brand);
}

.support-tile {
  display: grid;
  gap: .5rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.support-tile:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

.support-tile span {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.support-tile small {
  color: var(--muted);
}

.product-detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.media-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.media-file-icon {
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 2.4rem;
}

.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.media-picker-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: .5rem;
  text-align: left;
}

.media-picker-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.media-picker-item span {
  display: block;
  margin-top: .45rem;
  font-size: .78rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.product-main-image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: .25rem;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(20, 184, 166, .16);
}

.product-gallery-thumb:hover {
  transform: translateY(-1px);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.bg-soft {
  background: var(--soft);
}

.footer {
  background: #0b1220;
  color: #cbd5e1;
}

.footer a {
  color: #f8fafc;
  text-decoration: none;
}

.page-hero {
  padding: 7rem 0 4rem;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .9), rgba(19, 78, 74, .72)),
    url("https://images.unsplash.com/photo-1581092919535-7146ff1a590b?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.content-body {
  line-height: 1.8;
  font-size: 1.05rem;
}

.admin-shell {
  min-height: 100vh;
  background: #f1f5f4;
}

.admin-sidebar {
  background: #0b1220;
  color: #fff;
}

.admin-sidebar a {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .9rem;
  border-radius: 8px;
  text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.admin-menu-group {
  margin-bottom: .45rem;
}

.admin-menu-title {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem .9rem;
  font-weight: 700;
}

.admin-menu-title span {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.admin-menu-title::after {
  content: "-";
  color: #94a3b8;
}

.admin-menu-title.collapsed::after {
  content: "+";
}

.admin-menu .collapse a {
  margin-top: .25rem;
  padding-left: 1.25rem;
}

.admin-stat-card {
  display: grid;
  gap: .35rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.admin-stat-card .bi {
  font-size: 1.35rem;
  color: var(--brand);
}

.home-section-list {
  display: grid;
  gap: .75rem;
}

.home-section-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-section-item.is-disabled {
  opacity: .55;
}

.drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 1.25rem;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7f5;
  color: var(--brand);
  font-size: 1.25rem;
}

.admin-stat-card:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

.admin-stat-card span {
  color: var(--muted);
  font-size: .86rem;
}

.admin-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-feed-item {
  display: grid;
  gap: .2rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-feed-item:last-child {
  border-bottom: 0;
}

.admin-feed-item span {
  color: var(--muted);
  font-size: .86rem;
}

.admin-user-box {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem .9rem;
  margin-bottom: .45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.admin-user-box .bi {
  font-size: 1.5rem;
}

.admin-user-box strong,
.admin-user-box span {
  display: block;
}

.admin-user-box span {
  color: #94a3b8;
  font-size: .78rem;
}

.admin-form-grid {
  display: grid;
  gap: 1rem;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.note-editor.note-frame {
  border-radius: 8px;
  border-color: var(--line);
}

.note-toolbar {
  background: #f8fbfb;
  border-radius: 8px 8px 0 0;
}

[dir="rtl"] body,
[dir="rtl"] .form-control,
[dir="rtl"] .form-select {
  text-align: right;
}

@media (max-width: 991px) {
  .hero,
  .hero-slide {
    min-height: auto;
  }

  .object-cover {
    height: 190px;
  }

  .site-logo {
    width: 156px;
  }

  .nav-search {
    margin: .75rem 0;
  }

  .nav-search .form-control {
    width: 100%;
  }

  .category-panel {
    position: static;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }
}
