* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #0f3d2e;
  --green-800: #165c3d;
  --green-700: #1f7a4c;
  --green-600: #2e8b57;
  --green-500: #38a169;
  --green-300: #86efac;
  --green-200: #bbf7d0;
  --green-100: #dcfce7;
  --mint: #ecfdf5;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 61, 46, 0.16);
  --border: rgba(21, 128, 61, 0.16);
  --muted: #587364;
  --dark: #163020;
  --footer: #0b2f22;
  --paper: #ffffff;
  --line: rgba(21, 128, 61, 0.14);
  --text: #173222;
}

html { scroll-behavior: smooth; }

body {
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

body.landing-page {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f6fff8 0%, #ecfdf5 100%);
  color: var(--dark);
}

.navbar {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 128, 61, 0.08);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-900);
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.logo-mark svg,
.logo-mark img {
  display: block;
  overflow: visible;
  max-width: 170px;
  height: auto;
  border-radius: 12px;
}

.logo-links,
.brand-links,
.dashboard-brand-links {
  display: grid;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
  text-align: start;
  width: max-content;
}

.logo-links a,
.brand-links a,
.dashboard-brand-links a {
  display: block;
  width: 100%;
  color: var(--green-900);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: normal;
  transition: color 0.2s ease;
}

.brand-registration {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.logo-links a + a,
.brand-links a + a,
.dashboard-brand-links a + a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-links a:hover,
.brand-links a:hover,
.dashboard-brand-links a:hover {
  color: var(--green-700);
}

.dashboard-brand-logo {
  display: block;
  flex-shrink: 0;
}

.logo-ar {
  margin-top: -14px;
  font-size: 11px;
  font-weight: 800;
  color: #0f3d2e;
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0;
}

.logo-brand {
  font-weight: 800;
  font-size: 1.3rem;
  white-space: nowrap;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4ade80, #166534);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.25);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 600;
  color: #355943;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-links a:hover {
  color: var(--green-700);
  background: rgba(56, 161, 105, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(21, 128, 61, 0.12);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: grid;
  min-width: 245px;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(21, 128, 61, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 61, 46, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-links .nav-dropdown-menu a {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: #355943;
  background: transparent;
  box-shadow: none;
  text-align: left;
  white-space: nowrap;
}

.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a:focus {
  color: var(--green-800);
  background: rgba(56, 161, 105, 0.1);
  transform: none;
  box-shadow: none;
}

.lang-switch {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.lang-switch:hover,
.lang-switch-en:hover { color: var(--green-700); }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-actions .btn,
.nav-actions a.btn {
  min-width: 102px;
  padding: 11px 16px;
  font-size: 0.92rem;
}

.nav-actions #openSignupModal,
.nav-actions .btn-primary {
  max-width: 260px;
  white-space: normal;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(21, 128, 61, 0.18);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--green-900);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-home {
  gap: 12px;
  padding-left: 4%;
  padding-right: 4%;
}

.navbar-home .nav-menu {
  gap: 12px;
  justify-content: flex-end;
}

.nav-links-home {
  flex: 1;
  min-width: 0;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-links-home a {
  padding: 8px 5px;
  white-space: nowrap;
  font-size: 0.84rem;
}

.navbar-home .nav-actions {
  flex-shrink: 0;
  gap: 8px;
}

.navbar-home .nav-actions .btn,
.navbar-home .nav-actions a.btn {
  min-width: 74px;
  padding: 9px 11px;
  font-size: 0.82rem;
  line-height: 1.15;
}

.navbar-home .nav-actions #openSignupModal,
.navbar-home .nav-actions .btn-primary {
  max-width: 210px;
}

@media (max-width: 1180px) and (min-width: 769px) {
  .navbar-home {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar-home .logo {
    width: 100%;
    justify-content: center;
  }

  .navbar-home .nav-menu {
    width: 100%;
    justify-content: center;
  }

  .nav-links-home {
    flex: 0 1 auto;
  }
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline {
  background: white;
  border: 1px solid rgba(21, 128, 61, 0.18);
  color: var(--green-800);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(21, 128, 61, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
  box-shadow: 0 15px 35px rgba(34, 139, 84, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(34, 139, 84, 0.3);
}

.btn:disabled,
.btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

[hidden] {
  display: none !important;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(245px, 33vw, 400px);
  overflow: hidden;
  margin-bottom: 16px;
  padding: 52px 7% 70px;
  background: #0f3d2e;
  border-bottom: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 28, 20, 0.68), rgba(15, 61, 46, 0.34), rgba(7, 28, 20, 0.62)),
    linear-gradient(180deg, rgba(7, 28, 20, 0.12), rgba(7, 28, 20, 0.38)),
    radial-gradient(circle at 50% 45%, rgba(56, 161, 105, 0.12), transparent 48%);
}

.hero-carousel,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  overflow: hidden;
  z-index: 0;
}

.platform-news-ticker {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 42px;
  overflow: hidden;
  background: var(--green-900);
  color: #fff;
}

html:not([dir="rtl"]) .platform-news-ticker {
  flex-direction: row-reverse;
}

.platform-news-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 42vw;
  padding: 9px 16px;
  background: var(--green-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.45;
  white-space: normal;
  text-align: center;
  color: #fff;
  text-decoration: none;
}

.platform-news-window {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
}

.platform-news-track,
.platform-news-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.platform-news-track {
  width: max-content;
  animation: platform-news-scroll 50s linear infinite;
  direction: ltr;
}

@media (hover: hover) and (pointer: fine) {
  .platform-news-ticker:hover .platform-news-track,
  .platform-news-ticker:focus-within .platform-news-track {
    animation-play-state: paused;
  }
}

.platform-news-group a,
.platform-news-group span {
  display: inline-flex;
  align-items: center;
  padding-inline: 30px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.platform-news-group a::after,
.platform-news-group span::after {
  content: "•";
  margin-inline-start: 30px;
  color: var(--green-300);
}

.news-more-details {
  margin-top: 22px;
  text-align: center;
}

.news-more-details summary {
  display: inline-flex;
  justify-content: center;
  list-style: none;
  cursor: pointer;
}

.news-more-details summary::-webkit-details-marker {
  display: none;
}

.news-more-details[open] summary {
  margin-bottom: 22px;
}

.news-grid-more {
  text-align: initial;
}

@keyframes platform-news-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

html[dir="rtl"] .platform-news-group a,
html[dir="rtl"] .platform-news-group span {
  direction: rtl;
  unicode-bidi: plaintext;
}

@media (prefers-reduced-motion: reduce) {
  .platform-news-track {
    animation-play-state: paused;
  }
}

@media (max-width: 640px) {
  .platform-news-ticker {
    flex-direction: column;
    min-height: 36px;
  }

  .platform-news-label {
    justify-content: center;
    max-width: none;
    width: 100%;
    padding: 5px 10px;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .platform-news-group a,
  .platform-news-group span {
    padding-inline: 18px;
    font-size: 0.78rem;
  }

  .platform-news-group a::after,
  .platform-news-group span::after {
    margin-inline-start: 18px;
  }
}

.hero-slide {
  background-position: center;
  background-size: cover;
  filter: saturate(1.12) contrast(1.06) brightness(0.96);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slide-city { background-position: center 72%; }
.hero-slide-waterfront { background-position: center 66%; }
.hero-slide-earth { background-position: center 48%; }
.hero-slide-platform {
  background-color: #f4f5f2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.hero-slide-smoke { background-position: center 68%; }
.hero-slide-landfill { background-position: center 52%; }

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  width: 100%;
}

.hero-copy {
  color: #ffffff;
  display: none;
  max-width: 880px;
  font-family: 'Manrope', 'Inter', Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.65vw, 1.7rem);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 0;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.52);
}

.hero-copy.active {
  display: block;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  margin-top: 0;
  padding: 9px 13px;
  border: 1px solid rgba(15, 61, 46, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 61, 46, 0.18);
  transform: translateX(-50%);
}

.hero-dot {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 1px solid rgba(15, 61, 46, 0.9);
  border-radius: 50%;
  background: rgba(15, 61, 46, 0.28);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-dot.active {
  background: var(--green-900);
  transform: scale(1.22);
}

html:not([dir="rtl"]) .hero-copy {
  max-width: 960px;
  font-size: 1.05rem;
}

#submit-waste {
  padding: 10px 7% 40px !important;
  display: flex;
  justify-content: center;
}

.building-services-section {
  padding: 26px 7% 22px;
}

.building-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.building-service-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  max-width: none;
  padding: 28px;
  text-align: center;
}

.building-services-grid .building-service-card {
  max-width: none;
  width: 100%;
}

.building-service-card:last-child {
  grid-column: 1 / -1;
  width: 100%;
}

.building-service-action {
  justify-self: center;
  min-width: 180px;
  margin: 0;
}

.coming-soon-action {
  cursor: default;
  pointer-events: none;
  opacity: 0.78;
}

.building-service-card p {
  margin: 0;
  color: #31503d;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.85;
  text-align: center;
  width: 100%;
}

section.recent-transactions-section {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 18px 7% 16px;
}

.recent-transactions-page section.recent-transactions-section {
  padding-top: 34px;
}

.recent-transactions-page-wrap {
  min-height: 70vh;
}

.recent-transactions-section .section-title {
  margin-bottom: 8px;
}

.recent-transactions-cta {
  margin-top: 0;
}

.recent-transactions-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 960px;
}

.recent-transaction-card {
  background: #fff;
  border: 1px solid rgba(29, 86, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 69, 42, 0.07);
  padding: 16px;
}

.recent-transaction-main {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.recent-image-toggle,
.recent-transaction-no-image {
  flex-shrink: 0;
}

.recent-transaction-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.recent-transaction-body strong {
  color: var(--green-900);
  line-height: 1.35;
}

.recent-transaction-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.recent-transaction-date,
.recent-transaction-no-image,
.recent-transactions-state {
  color: #5b7566;
  font-size: 0.9rem;
}

.recent-transaction-image-panel {
  margin-top: 14px;
}

.recent-transaction-image-panel img {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(29, 86, 45, 0.12);
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: min(100%, 420px);
}

.recent-transactions-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.status-pill.open,
.status-pill.pending {
  background: #fff7d6;
  color: #8a5c00;
}

.status-pill.accepted {
  background: #dff7e6;
  color: #176b35;
}

.status-pill.rejected {
  background: #fdecec;
  color: #a32121;
}

.status-pill.completed {
  background: #e8f0ff;
  color: #254b8d;
}

.recent-transactions-state {
  background: #fff;
  border: 1px solid rgba(29, 86, 45, 0.12);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
}

.submit-panel {
  width: 100%;
  max-width: 960px;
}

#submit-waste .hero-card {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 34px;
}

#submit-waste .hero-card > h2 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#submit-waste .hero-card > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 128, 61, 0.1);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  margin-top: 0;
  align-self: start;
  width: 100%;
  max-width: 760px;
}

.hero-card h2 {
  color: var(--green-900);
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.hero-card p {
  color: #52715f;
  margin-bottom: 20px;
  font-size: 0.96rem;
}

.hero-badges-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.badge-inline {
  background: white;
  border: 1px solid var(--border);
  color: var(--green-800);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-type-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.form-type-option {
  display: grid;
  gap: 8px;
}

.form-type-option .type-tab {
  width: 100%;
}

.form-heading-link {
  color: var(--green-700);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-heading-link:hover,
.form-heading-link:focus {
  color: var(--green-900);
}

.type-tab {
  border: 1px solid rgba(21, 128, 61, 0.16);
  background: #f7fff9;
  color: var(--green-800);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.25s ease;
  font-family: inherit;
}

.type-tab:hover,
.type-tab:focus {
  background: var(--green-900);
  border-color: var(--green-900);
  color: white;
}

.type-tab.active {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
  box-shadow: 0 15px 30px rgba(34, 139, 84, 0.18);
  border-color: transparent;
}

.form-panel { display: none; }
.form-panel.active { display: block; }

.otp-row {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  gap: 12px;
  align-items: end;
}

.otp-actions,
.login-otp-actions {
  display: grid;
  gap: 10px;
}

.login-otp-actions {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}

.otp-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recycler-target-field {
  padding: 14px;
  border: 1px solid rgba(21, 128, 61, 0.14);
  border-radius: 14px;
  background: #f8fffa;
}

.recycler-send-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #355943;
  font-size: 0.94rem;
  cursor: pointer;
}

.recycler-send-all input,
.recycler-target-option input {
  width: 18px;
  height: 18px;
  accent-color: #2e8b57;
  flex-shrink: 0;
}

.recycler-target-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 4px 2px;
}

.recycler-target-list[hidden] {
  display: none;
}

.recycler-target-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(21, 128, 61, 0.15);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.recycler-target-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recycler-target-option strong {
  color: var(--green-900);
  line-height: 1.25;
}

.recycler-target-option small,
.recycler-target-hint,
.recycler-target-empty {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.recycler-target-empty {
  padding: 12px;
  border: 1px dashed rgba(21, 128, 61, 0.22);
  border-radius: 12px;
  background: #fff;
}

.otp-btn {
  width: 100%;
  min-width: 180px;
  height: 49px;
  align-self: end;
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #355943;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.terms-check input {
  width: 18px;
  height: 18px;
  accent-color: #2e8b57;
  flex-shrink: 0;
}

.terms-check a {
  color: var(--green-700);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-check a:hover,
.terms-check a:focus {
  color: var(--green-900);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field.full { grid-column: 1 / -1; }

label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #214433;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(21, 128, 61, 0.16);
  background: #fbfffc;
  font-size: 0.96rem;
  outline: none;
  transition: 0.2s ease;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  background: white;
}

input[type="file"] {
  padding: 12px;
  background: var(--mint);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.88rem;
  color: #5c7767;
  margin-top: -4px;
  margin-bottom: 16px;
}

.helper-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.section { padding: 74px 7%; }

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--green-900);
  margin-bottom: 10px;
}

.section-title h1 {
  font-size: 2rem;
  color: var(--green-900);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

#objectives .section-title h2 { font-size: 2.45rem; }
#objectives .section-title p { font-size: 1.1rem; }

.objective-card {
  background: white;
  border-radius: 24px;
  padding: 34px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  box-shadow: 0 18px 45px rgba(15, 61, 46, 0.08);
  min-height: 255px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.objective-card p {
  margin: 0;
  color: #223227;
  line-height: 1.9;
  font-size: 1.12rem;
  font-weight: 600;
  text-align: left;
}

.cards,
.sponsor-grid,
.ads-grid,
.news-grid {
  display: grid;
  gap: 22px;
}

.cards { grid-template-columns: repeat(3, 1fr); }
.sponsor-grid { grid-template-columns: repeat(4, 1fr); }
.ads-grid { grid-template-columns: repeat(4, 1fr); }
.news-grid { grid-template-columns: repeat(3, 1fr); }

.info-card,
.sponsor-card,
.ad-card,
.news-card,
.contact-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(21, 128, 61, 0.08);
  box-shadow: 0 12px 30px rgba(15, 61, 46, 0.07);
}

.info-card h3,
.contact-card h3 {
  color: var(--green-800);
  margin-bottom: 12px;
}

.info-card p,
.contact-card p,
.news-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.news-detail-link {
  margin-top: 18px;
}

.article-hero {
  padding: 56px 7% 28px;
  background: linear-gradient(135deg, rgba(232, 247, 236, 0.95), rgba(255, 255, 255, 0.92));
}

.article-shell {
  width: min(1040px, 100%);
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: start;
}

html[dir="rtl"] .article-shell {
  text-align: right;
}

.article-kicker {
  color: var(--green-700);
  font-weight: 800;
  margin-bottom: 12px;
}

.article-hero h1 {
  color: var(--green-900);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.18;
  max-width: 900px;
}

.article-hero p {
  color: var(--muted);
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 34px 7% 70px;
}

.article-body,
.article-news-panel {
  background: white;
  border: 1px solid rgba(21, 128, 61, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 61, 46, 0.07);
}

.article-body {
  padding: 30px;
}

.article-body h2,
.article-news-panel h2 {
  color: var(--green-900);
  margin-bottom: 14px;
}

.article-body p,
.article-body li {
  color: #31503d;
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  padding-inline-start: 24px;
  margin-bottom: 18px;
}

.article-body a {
  color: var(--green-700);
  font-weight: 700;
}

.article-news-panel {
  align-self: start;
  padding: 22px;
}

.article-news-panel .news-card {
  box-shadow: none;
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
}

.benefit-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--green-100);
  margin-bottom: 18px;
}

.sponsor-card { text-align: center; }

.sponsor-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.sponsor-card h4,
.ad-card h4,
.news-card h4 {
  color: var(--green-900);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.sponsor-card p,
.ad-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.ad-card {
  min-height: 270px;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  padding: 22px;
}

.ad-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18), transparent);
  z-index: 1;
}

.ad-card > * {
  position: relative;
  z-index: 2;
}

.ad-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ad-card h4,
.ad-card p {
  color: white;
}

.ad-link {
  margin-top: 12px;
  color: #dcfce7;
  font-weight: 700;
  font-size: 0.92rem;
}

.news-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.84rem;
  background: var(--green-100);
  padding: 7px 10px;
  border-radius: 999px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.contact-card strong {
  display: block;
  color: var(--green-900);
  margin-bottom: 6px;
}

footer {
  background: var(--footer);
  color: white;
  padding: 30px 7%;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.84);
}

.legal-page {
  background: #f5fbf7;
  color: var(--text);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 7% 70px;
}

.legal-toc {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 61, 46, 0.08);
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-900);
  font-size: 0.95rem;
}

.legal-toc a {
  display: block;
  padding: 8px 0;
  color: #486656;
  font-size: 0.92rem;
  border-top: 1px solid rgba(21, 128, 61, 0.08);
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: var(--green-700);
}

.legal-document {
  min-width: 0;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 61, 46, 0.08);
}

.legal-document section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(21, 128, 61, 0.12);
}

.legal-document h2 {
  margin-bottom: 14px;
  color: var(--green-900);
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.legal-document h3 {
  margin: 22px 0 10px;
  color: var(--green-800);
  font-size: 1.04rem;
}

.legal-document p,
.legal-document li {
  color: #395646;
  font-size: 0.98rem;
  line-height: 1.78;
}

.legal-document p + p,
.legal-document ul + p,
.legal-document ol + p {
  margin-top: 12px;
}

.legal-document ul,
.legal-document ol {
  margin: 10px 0 0 22px;
}

.legal-document li + li {
  margin-top: 7px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 24, 15, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.modal-overlay.active { display: flex; }

.modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: white;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: popUp 0.22s ease;
}

.signup-modal {
  max-width: 760px;
}

.signup-modal .form-type-switcher {
  margin-bottom: 18px;
}

.signup-modal .form-grid {
  gap: 14px;
}

@keyframes popUp {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f2fdf5;
  color: var(--green-800);
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 700;
}

.signup-category-list {
  display: grid;
  gap: 10px;
}

.removable-category-row,
.removable-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.remove-category-btn,
.remove-image-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(185, 28, 28, 0.24);
  background: #fff7f7;
  color: #b91c1c;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.remove-category-btn:hover,
.remove-category-btn:focus,
.remove-image-btn:hover,
.remove-image-btn:focus {
  background: #fee2e2;
  border-color: rgba(185, 28, 28, 0.42);
}

.add-category-btn {
  width: 100%;
  margin-top: 10px;
}

.success-message {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 700;
  font-size: 0.92rem;
}

.login-feedback {
  display: none;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 13px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.login-feedback.success {
  background: #e6f6e8;
  color: #1d6f32;
  border: 1px solid #bbf7d0;
}

.login-feedback.error {
  background: #fdecec;
  color: #a32121;
  border: 1px solid #f8c9c9;
}

html[dir="rtl"] body.landing-page {
  font-family: 'Cairo', 'Inter', Arial, Helvetica, sans-serif;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .navbar,
html[dir="rtl"] .footer-wrap,
html[dir="rtl"] .terms-check,
html[dir="rtl"] .helper-row,
html[dir="rtl"] .hero-badges-inline,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .logo,
html[dir="rtl"] .form-grid,
html[dir="rtl"] .otp-row,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .cards,
html[dir="rtl"] .sponsor-grid,
html[dir="rtl"] .ads-grid,
html[dir="rtl"] .news-grid {
  direction: rtl;
}

html[dir="rtl"] .navbar {
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
}

html[dir="rtl"] .navbar .logo {
  order: 1;
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start;
}

html[dir="rtl"] .logo-links,
html[dir="rtl"] .brand-links,
html[dir="rtl"] .dashboard-brand-links {
  text-align: right;
}

html[dir="rtl"] .logo-links[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .logo-links a + a,
html[dir="rtl"] .brand-links a + a,
html[dir="rtl"] .dashboard-brand-links a + a {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .navbar .menu-toggle {
  order: 3;
}

html[dir="rtl"] .navbar .nav-menu {
  order: 2;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .footer-wrap {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1;
  gap: 12px;
  font-size: 0.92rem;
}

html[dir="rtl"] .nav-actions {
  flex-shrink: 0;
}

html[dir="rtl"] .nav-links a {
  white-space: nowrap;
  padding: 8px 8px;
}

html[dir="rtl"] .nav-links .nav-dropdown-menu a {
  text-align: right;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .objective-card p,
html[dir="rtl"] .info-card,
html[dir="rtl"] .sponsor-card,
html[dir="rtl"] .news-card,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .hero-card,
html[dir="rtl"] .modal,
html[dir="rtl"] .field,
html[dir="rtl"] .form-note,
html[dir="rtl"] .ad-card,
html[dir="rtl"] .ad-link,
html[dir="rtl"] .info-card p,
html[dir="rtl"] .contact-card p,
html[dir="rtl"] .news-card p,
html[dir="rtl"] .sponsor-card p {
  text-align: right;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-title p {
  margin-right: auto;
  margin-left: auto;
}

html[dir="rtl"] .hero-content {
  text-align: center;
}

html[dir="rtl"] .hero-copy {
  max-width: 960px;
  text-align: center;
}

html[dir="rtl"] .section-title {
  text-align: center;
}

html[dir="rtl"] #submit-waste .hero-card > h2 {
  text-align: center;
}

html[dir="rtl"] .terms-check { justify-content: flex-start; }
html[dir="rtl"] .ad-badge { align-self: flex-end; }
html[dir="rtl"] .close-btn { right: auto; left: 14px; }

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="password"] {
  direction: rtl;
}

.lang-switch-en {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

body.directory-page {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(187, 247, 208, 0.45), transparent 24%),
    linear-gradient(180deg, #f8fff9 0%, #eefbf2 100%);
  line-height: 1.55;
}

.directory-page .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 6%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 128, 61, 0.1);
}

.directory-page .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  color: var(--green-900);
}

.directory-page .brand-logo {
  display: block;
  flex-shrink: 0;
}

.directory-page .brand img {
  width: 170px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.directory-page .brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-page .brand-copy strong {
  display: block;
  font-size: 1.08rem;
}

.directory-page .top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.directory-page .btn {
  border: 1px solid transparent;
}

.directory-page .top-actions .btn-outline {
  margin-left: clamp(16px, 3vw, 36px);
}

.directory-page .top-actions .btn-primary {
  margin-left: auto;
}

.directory-page .hero {
  position: relative;
  display: block;
  min-height: auto;
  overflow: visible;
  margin-bottom: 0;
  padding: 64px 6% 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(134, 239, 172, 0.42), transparent 28%),
    linear-gradient(135deg, #e6f8ed 0%, #f7fff8 48%, #d9f7e6 100%);
}

.directory-page .hero::after {
  content: none;
}

.directory-page .hero-panel {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(7, 44, 31, 0.98), rgba(31, 122, 76, 0.94)),
    #0b3d2b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 58px rgba(15, 61, 46, 0.22);
}

.directory-page .eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-page .hero h1 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.directory-page .hero p {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.08rem;
  font-weight: 650;
}

.directory-page .chips {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.directory-page .chip {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 128, 61, 0.1);
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.directory-page .page {
  padding: 10px 6% 60px;
}

.directory-page .section {
  max-width: 1200px;
  margin: 0 auto 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 61, 46, 0.06);
  overflow: hidden;
  padding: 0;
}

.directory-page .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 24px 12px;
}

.directory-page .section-head h2 {
  font-size: 1.28rem;
  color: var(--green-900);
}

.directory-page .section-head span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.directory-page .table-wrap {
  overflow-x: auto;
  padding: 0 16px 18px;
}

.directory-page table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
}

.directory-page thead th {
  text-align: left;
  background: #eff9f1;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
}

.directory-page tbody td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(21, 128, 61, 0.08);
  vertical-align: top;
  font-size: 0.95rem;
}

.directory-page tbody tr:hover { background: #fbfefb; }

.directory-page .num {
  width: 56px;
  color: var(--green-700);
  font-weight: 800;
  white-space: nowrap;
}

.directory-page .arabic {
  font-family: 'Cairo', Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

.directory-page .stack {
  display: grid;
  gap: 4px;
}

.directory-page .stack a {
  color: var(--green-700);
  word-break: break-word;
}

.directory-page .note {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: #f7fff8;
  border: 1px dashed rgba(21, 128, 61, 0.22);
  color: var(--muted);
}

@media (max-width: 1200px) {
  .sponsor-grid,
  .ads-grid { grid-template-columns: repeat(2, 1fr); }

  .news-grid { grid-template-columns: 1fr 1fr; }

  .article-layout {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .navbar {
    padding-left: 4%;
    padding-right: 4%;
    gap: 12px;
  }

  html[dir="rtl"] .logo-mark img {
    max-width: 145px;
  }

  html[dir="rtl"] .nav-links {
    gap: 8px;
    font-size: 0.84rem;
  }

  html[dir="rtl"] .nav-actions .btn,
  html[dir="rtl"] .nav-actions a.btn {
    min-width: 84px;
    padding: 10px 12px;
  }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .directory-page .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .article-hero {
    padding: 36px 5% 22px;
  }

  .article-layout {
    padding: 24px 5% 48px;
  }

  .article-body,
  .article-news-panel {
    padding: 20px;
    border-radius: 14px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 5% 48px;
  }

  .legal-toc {
    position: static;
  }

  .legal-document {
    padding: 24px;
  }

  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 12px;
  }

  .modal {
    max-height: none;
  }

  .signup-modal {
    max-width: 100%;
    padding: 20px;
  }

  .signup-modal h2 {
    padding-right: 44px;
  }

  .signup-modal .form-type-switcher {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .signup-modal .type-tab {
    padding: 12px;
  }

  .signup-modal .form-grid {
    gap: 12px;
  }

  .signup-category-list {
    gap: 8px;
  }

  .navbar {
    position: relative;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 14px;
  }

  .topbar {
    position: relative;
    justify-content: flex-start;
    align-items: stretch;
  }

  .logo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-left: 30px;
    padding-right: 60px;
    gap: 6px;
  }

  .directory-page .brand {
    flex-direction: column;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding-left: 30px;
    padding-right: 60px;
    gap: 6px;
  }

  .dashboard-brand {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
  }

  .logo-links,
  .brand-links,
  .dashboard-brand-links,
  html[dir="rtl"] .logo-links,
  html[dir="rtl"] .brand-links,
  html[dir="rtl"] .dashboard-brand-links,
  html[dir="rtl"] .logo-links[dir="ltr"] {
    justify-items: center;
    text-align: center;
  }

  .navbar-home .logo {
    width: 100%;
    justify-content: center;
  }

  .navbar-home .logo-links {
    align-items: center;
  }

  .logo-mark img { max-width: 112px; }

  .logo-links a,
  .brand-links a,
  .dashboard-brand-links a {
    font-size: 0.78rem;
  }

  .logo-links a + a,
  .brand-links a + a,
  .dashboard-brand-links a + a {
    font-size: 0.7rem;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 5%;
    margin-left: 0;
    z-index: 3;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
  }

  .navbar.nav-open .nav-menu,
  .topbar.nav-open .nav-menu {
    display: flex;
    position: relative;
    padding-top: 56px;
  }

  .navbar.nav-open .menu-toggle span:nth-child(1),
  .topbar.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.nav-open .menu-toggle span:nth-child(2),
  .topbar.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .menu-toggle span:nth-child(3),
  .topbar.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 0.95rem;
    text-align: center;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    transform: none;
  }

  .nav-links .nav-dropdown-menu a {
    white-space: normal;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
  }

  .nav-actions .btn,
  .nav-actions a.btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .nav-actions #openSignupModal,
  .nav-actions .btn-primary {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
  }

  .navbar-home .nav-actions .btn,
  .navbar-home .nav-actions a.btn,
  .navbar-home .nav-actions #openSignupModal,
  .navbar-home .nav-actions .btn-primary {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
  }

  html[dir="rtl"] .navbar {
    justify-content: center;
    align-items: stretch;
  }

  html[dir="rtl"] .navbar .logo {
    justify-content: center;
    padding-left: 56px;
    padding-right: 56px;
  }

  html[dir="rtl"] .navbar .nav-menu {
    order: 4;
    align-items: stretch;
  }

  html[dir="rtl"] .nav-links,
  html[dir="rtl"] .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  html[dir="rtl"] .nav-links {
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 0.95rem;
    text-align: center;
  }

  html[dir="rtl"] .nav-links a,
  html[dir="rtl"] .nav-links .nav-dropdown-menu a {
    text-align: center;
    white-space: normal;
  }

  .form-grid,
  .cards,
  .sponsor-grid,
  .ads-grid,
  .news-grid,
  .form-type-switcher {
    grid-template-columns: 1fr;
  }

  .otp-row { grid-template-columns: 1fr; }
  .otp-btn { width: 100%; }

  .hero-card,
  .modal { padding: 22px; }

  .hero {
    margin-bottom: 16px;
    padding: 18px 5% 54px;
  }

  .hero-dots {
    bottom: 14px;
    gap: 8px;
    padding: 7px 10px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-content {
    min-height: auto;
    padding: 0;
  }

  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  html:not([dir="rtl"]) .hero-copy {
    font-size: 0.95rem;
  }

  #objectives .section-title h2 { font-size: 2rem; }

  #objectives .section-title p,
  .objective-card p {
    font-size: 1rem;
  }

  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .objective-card {
    min-height: auto;
    padding: 26px;
  }

  #submit-waste { padding: 8px 5% 34px !important; }
  .section { padding: 52px 5%; }
  .navbar { padding: 16px 5%; }
  footer { padding: 26px 5%; }

  .contact-card,
  .info-card,
  .sponsor-card,
  .ad-card,
  .news-card {
    padding: 20px;
  }

  .building-services-grid {
    grid-template-columns: 1fr;
  }

  .building-service-card:last-child {
    grid-column: auto;
  }

  .sponsor-card img { height: 180px; }

  html[dir="rtl"] .objective-card p { text-align: right; }

  .directory-page .topbar,
  .directory-page .section-head {
    padding-left: 4%;
    padding-right: 4%;
  }

  .directory-page .topbar {
    flex-wrap: wrap;
  }

  .directory-page .top-actions {
    width: 100%;
    flex-direction: column;
  }

  .directory-page .top-actions .btn {
    width: 100%;
  }

  .directory-page .top-actions .btn-outline,
  .directory-page .top-actions .btn-primary {
    margin-left: 0;
  }

  .directory-page .hero,
  .directory-page .page {
    padding-left: 4%;
    padding-right: 4%;
  }

  .directory-page .hero-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .directory-page .brand img { width: 112px; }
}

@media (max-width: 560px) {
  .legal-shell {
    padding: 22px 4% 42px;
  }

  .legal-document {
    padding: 18px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 0.94rem;
  }

  .modal-overlay {
    padding: 8px;
  }

  .signup-modal {
    border-radius: 18px;
    padding: 16px;
  }

  .signup-modal h2 {
    font-size: 1.35rem;
    margin-bottom: 6px !important;
  }

  .signup-modal p {
    font-size: 0.9rem;
    margin-bottom: 14px !important;
    padding-right: 38px;
  }

  .directory-page .chips {
    grid-template-columns: 1fr;
  }

  .recent-transaction-main {
    align-items: stretch;
    flex-direction: column;
  }

  .recent-image-toggle {
    width: 100%;
  }

  .signup-modal .form-type-switcher {
    grid-template-columns: 1fr 1fr;
  }

  .signup-modal .type-tab {
    min-height: 44px;
    padding: 10px 8px;
  }

  .signup-modal .btn {
    width: 100%;
  }

  .signup-modal input,
  .signup-modal select {
    min-width: 0;
  }

  .navbar { padding: 14px 4%; }

  .menu-toggle,
  .navbar.nav-open .menu-toggle,
  .topbar.nav-open .menu-toggle {
    right: 4%;
  }

  .logo,
  .directory-page .brand {
    padding-left: 24px;
    padding-right: 56px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    margin-bottom: 14px;
    padding: 14px 4% 50px;
  }

  .hero-dots {
    bottom: 12px;
  }

  .hero-copy {
    font-size: 0.82rem;
    line-height: 1.72;
  }

  html:not([dir="rtl"]) .hero-copy {
    font-size: 0.82rem;
  }

  #submit-waste { padding: 10px 4% 28px !important; }

  #submit-waste .hero-card,
  .hero-card,
  .modal {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-card h2 { font-size: 1.3rem; }

  .hero-card p,
  .form-note,
  .info-card p,
  .contact-card p,
  .news-card p,
  .sponsor-card p,
  .ad-card p {
    font-size: 0.92rem;
  }

  .type-tab,
  .btn,
  input,
  select,
  textarea {
    font-size: 0.95rem;
  }

  .type-tab,
  .btn { min-height: 48px; }

  .hero-badges-inline,
  .helper-row,
  .footer-links {
    gap: 10px;
  }

  #objectives .section-title h2 { font-size: 1.65rem; }
  .objectives-grid { gap: 18px; }
  .objective-card { padding: 22px; }
  .cards,
  .contact-grid { gap: 18px; }
  .sponsor-card img { height: 160px; }
  .ad-card { min-height: 220px; }

  .section,
  footer {
    padding-left: 4%;
    padding-right: 4%;
  }
}
