
:root {
    --bg: #DFDFDF;
    --card: #ffffff;
    --text: #2b2b2b;
    --muted: #6b7280;
    --brand: #2e7d32;
    --brand-2: #8d6e63;
    --accent: #e67000;
    --radius: 18px;
    --shadow: 0 10px 25px rgba(0, 0, 0, .06);

    --lg: 1200px;
    --md: 992px;
    --sm: 768px;
    --xs: 480px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Cairo", "Tajawal", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(12px, 3vw, 24px);
    padding-block: 24px;
}


.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to right, #318835, #308735, #43ac48);
    box-shadow: 0 1px 10px rgba(0, 0, 0, .05);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px clamp(12px, 3vw, 20px);
    flex-wrap: wrap;
}

.brand {
    font-weight: 800;
    font-size: clamp(18px, 2vw, 20px);
    color: var(--brand);
}

.brand p{
    color: #fff;
    padding-right: 10px;
}

.search {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 200px;
}

.search input {
    width: min(800px, 100%);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--brand);
    outline: none;
    background: var(--bg);
}

.icons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-inline-start: auto;
}

.icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f9f9f9;
  border: 1px solid #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text);
}

.icon-badge:hover {
  color: #FF0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

@media (max-width: 768px) {
    .nav {
        gap: 10px;
    }

    .brand {
        order: 1;
    }

    .icons {
        order: 2;
    }

    .search {
        order: 3;
        width: 100%;
    }
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

.btn:active {
    transform: translateY(1px);
}

.btn.secondary {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.pill {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 6px 10px;
    color: #555;
}


.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 1rem;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f7f7f7;
    outline: none;
}


.mobile-back {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    width: 38px;
    height: 38px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    font-size: 22px;
    line-height: 1;
    color: #111;
}

@media (max-width: 640px) {
    .mobile-back {
        display: flex;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #eee;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s linear infinite;
}

.skeleton.text {
    height: 14px;
    border-radius: 6px;
}

.skeleton.rect {
    border-radius: 12px;
}

.hidden {
    display: none !important;
}

.w-100 {
    width: 100%;
}

.mtop {
    margin-top: 10px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}