﻿:root {
  --brand-900: #1e5a2f;
  --brand-700: #3f7f36;
  --brand-500: #8db33f;
  --brand-100: #eef6df;
  --accent-700: #dc8d28;
  --accent-500: #f3ba45;
  --surface: #ffffff;
  --surface-soft: #f8f7ef;
  --text-900: #23422b;
  --text-600: #667154;
  --border: #dbe4c7;
  --shadow: 0 14px 30px rgba(30, 90, 47, 0.10);
  --header-offset: 118px;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Tajawal", sans-serif;
  background:
    radial-gradient(1000px 300px at 0% -10%, #f7e8bd 0%, transparent 70%),
    radial-gradient(900px 260px at 100% 0%, #eef6df 0%, transparent 62%),
    #f8f7ef;
  color: var(--text-900);
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 88px;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  color: var(--brand-900) !important;
  letter-spacing: 0.2px;
}

.mega-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1100;
  display: flow-root;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background:
    radial-gradient(520px 180px at 12% 18%, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(520px 180px at 88% 15%, rgba(243, 186, 69, 0.26), transparent 70%),
    linear-gradient(125deg, #1f5b2d 0%, #4b8b39 55%, #8db33f 100%);
}

.mega-header > .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mega-header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(16, 54, 45, 0.34);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f7f9f8, #dbeee5);
  color: #123b31;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(23, 64, 53, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.2;
}

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

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.header-btn i {
  font-size: 1.05rem;
  line-height: 1;
}

.header-btn:hover {
  color: #113a30;
  background: #e6f5ee;
  border-color: #e6f5ee;
  box-shadow: inset 0 0 0 1px rgba(17, 58, 48, 0.07);
}

.header-btn-main {
  background: linear-gradient(135deg, #f8d980, #f3ba45);
  color: #2f1c08;
  border-color: rgba(0, 0, 0, 0.08);
}

.header-btn-main:hover {
  background: linear-gradient(135deg, #fee09c, #f5c55c);
  color: #2a1807;
  border-color: rgba(0, 0, 0, 0.08);
}

.header-btn-danger {
  background: linear-gradient(135deg, #9f2236, #c4384e);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.header-btn-danger:hover {
  background: linear-gradient(135deg, #bb2a41, #d54a60);
  color: #fff;
}

.header-cart {
  gap: 6px;
  padding-inline: 10px;
}

.header-cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  background: var(--accent-700);
  color: #fff;
  font-size: 0.72rem;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
}

.app-shell {
  min-height: calc(100vh - 74px);
  padding-top: calc(var(--header-offset) + 1rem) !important;
}

.card {
  border: 1px solid var(--border) !important;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, var(--surface-soft)) !important;
  box-shadow: 0 16px 34px rgba(30, 90, 47, 0.10) !important;
}

.card .card-body {
  padding: 1.1rem;
}

.btn {
  border-radius: 12px;
  font-weight: 600;
}

.btn-success,
.btn-primary {
  border: 0;
}

.btn-success {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: #2f1c08;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f8cf68, var(--accent-500));
  color: #2a1807;
}

.btn-outline-dark {
  border-color: var(--brand-700);
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-dark:hover {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--accent-700);
  color: var(--accent-700);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-primary:hover {
  border-color: var(--accent-700);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: #2f1c08;
}

.btn-outline-success {
  border-color: var(--brand-700);
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-success:hover {
  border-color: var(--brand-700);
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
}

.btn-outline-secondary {
  border-color: #c7d4af;
  color: var(--text-600);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-secondary:hover {
  border-color: #c7d4af;
  background: #f3f7e8;
  color: var(--brand-900);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(520px 180px at 10% 16%, rgba(248, 217, 128, 0.24), transparent 72%),
    linear-gradient(135deg, rgba(30, 90, 47, 0.96), rgba(63, 127, 54, 0.96), rgba(141, 179, 63, 0.92));
  color: #fff;
  box-shadow: 0 18px 35px rgba(30, 90, 47, 0.24);
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.kpi-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff, var(--surface-soft));
  padding: 14px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(30, 90, 47, 0.08);
}

.kpi-card .kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1;
}

.table {
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  border-color: #d8e2c6;
  vertical-align: middle;
}

.table thead th {
  background: linear-gradient(180deg, #f5f8e9, #eef6df);
  color: var(--brand-900);
  font-size: 0.86rem;
  white-space: nowrap;
}

.badge {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.badge.text-bg-light,
.badge.border {
  background: #f7faee !important;
  color: var(--brand-900) !important;
  border-color: #d6dfbf !important;
}

.badge.text-bg-secondary {
  background: #dbe6c8 !important;
  color: #456134 !important;
}

.badge.text-bg-warning {
  background: #f8df93 !important;
  color: #6f470e !important;
}

.badge.text-bg-success {
  background: #dcebc7 !important;
  color: #2e6328 !important;
}

.progress {
  border-radius: 999px;
  overflow: hidden;
  background: #e3ece7;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent-500), var(--accent-700));
  font-weight: 700;
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: #cddab7;
  background: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 0.2rem rgba(141, 179, 63, 0.18);
}

.alert {
  border-radius: 18px;
  border-width: 1px;
  box-shadow: 0 10px 22px rgba(30, 90, 47, 0.08);
}

.alert-success {
  background: linear-gradient(135deg, #f7faee, #eef6df);
  border-color: #d6dfbf;
  color: var(--brand-900);
}

.alert-warning {
  background: linear-gradient(135deg, #fff7e5, #fae7b2);
  border-color: #efd58d;
  color: #6f470e;
}

.alert-danger {
  background: linear-gradient(135deg, #fff4f1, #fde1d7);
  border-color: #f1c8b8;
  color: #8c3e1f;
}

.modal-content {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
  box-shadow: 0 24px 48px rgba(30, 90, 47, 0.14);
}

.modal-header {
  border-bottom: 1px solid rgba(214, 223, 191, 0.9);
  background: linear-gradient(135deg, #fbfdf7 0%, #f3f7e8 100%);
}

.modal-footer {
  border-top: 1px solid rgba(214, 223, 191, 0.9);
  background: linear-gradient(180deg, #fbfdf7 0%, #f7faee 100%);
}

.modal-backdrop {
  display: none !important;
  opacity: 0 !important;
}

.text-muted {
  color: var(--text-600) !important;
}

.user-chip {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
  :root {
    --header-offset: 164px;
  }

  .hero-panel {
    padding: 16px;
  }

  .mega-header-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .brand-block {
    justify-content: space-between;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    font-size: 0.82rem;
  }

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

.offer-slide {
  background: linear-gradient(135deg, #ffffff, #f2f8f5);
  min-height: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 42px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(31, 90, 75, 0.9);
  border-radius: 999px;
  background-size: 58% 58%;
}

.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(16, 54, 45, 0.94), rgba(31, 90, 75, 0.94));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -10px 24px rgba(10, 30, 24, 0.22);
}

.app-footer-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #f3faf7;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
  flex-wrap: wrap;
}

.footer-brand-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd7a8, #f1a74f);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.94;
}

.footer-sep {
  opacity: 0.55;
}

.admin-hero {
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(600px 220px at 8% 15%, rgba(248, 217, 128, 0.30), transparent 72%),
    linear-gradient(130deg, #1f5b2d 0%, #4b8b39 55%, #8db33f 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(30, 90, 47, 0.28);
}

.admin-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.admin-hero-sub {
  color: rgba(255, 255, 255, 0.88);
}

.admin-hero-chips {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.84rem;
}

.admin-kpi-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff, var(--surface-soft));
  box-shadow: 0 12px 24px rgba(30, 90, 47, 0.08);
  padding: 14px;
  height: 100%;
}

.admin-kpi-label {
  font-size: 0.82rem;
  color: var(--text-600);
  margin-bottom: 6px;
}

.admin-kpi-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-900);
  line-height: 1.2;
}

.admin-kpi-hint {
  margin-top: 5px;
  font-size: 0.78rem;
  color: #6e7e77;
}

.status-tile-link {
  text-decoration: none;
  color: inherit;
}

.status-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 58, 47, 0.12);
}

.admin-summary-list {
  list-style: none;
  padding: 0;
}

.admin-summary-list li {
  border-bottom: 1px dashed #dbe6e0;
  padding: 6px 0;
  font-size: 0.9rem;
}

.admin-summary-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 767px) {
  :root {
    --header-offset: 196px;
  }

  body {
    padding-bottom: 108px;
  }

  .app-footer-inner {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
  }

  .footer-brand {
    justify-content: center;
  }

  .admin-hero {
    padding: 16px;
  }

  .admin-hero-title {
    font-size: 1.12rem;
  }
}

/* Salon-style header port for Zadly */
.mega-header {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 1040 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 1040;
  padding: 0;
  transition: transform .28s ease, opacity .28s ease;
}

.nav-shell.is-hidden {
  transform: translateY(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

.mega-header .navbar {
  padding: 0;
}

.nav-shell .container {
  position: relative;
  max-width: min(1320px, calc(100% - 28px));
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 32px;
  background: rgba(255, 251, 251, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(15, 45, 37, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell .container::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(16, 54, 45, 0.08);
  pointer-events: none;
}

.navbar-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  color: var(--brand-900) !important;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
  border: 1px solid rgba(16, 54, 45, 0.10);
  box-shadow: 0 10px 24px rgba(15, 45, 37, 0.08);
  font-family: "El Messiri", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-700);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-family: "El Messiri", sans-serif;
  font-size: 1.15rem;
  color: var(--brand-900);
  line-height: 1.1;
}

.brand-copy small {
  color: var(--text-600);
  font-size: .82rem;
  font-weight: 800;
}

.navbar-collapse {
  position: relative;
  z-index: 1;
}

.navbar-nav {
  gap: 8px !important;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(16, 54, 45, .07);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 16px !important;
  border-radius: 999px;
  color: var(--brand-700) !important;
  font-weight: 800;
  transition: .24s ease;
}

.nav-link i {
  color: var(--brand-700);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700), var(--brand-500));
  box-shadow: 0 14px 26px rgba(15, 45, 37, 0.20);
}

.nav-link:hover i,
.nav-link.is-active i {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-auth,
.nav-login,
.nav-account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: .24s ease;
}

.nav-account-chip {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(16, 54, 45, .08);
  color: var(--brand-700);
}

.nav-account-chip:hover {
  color: var(--brand-700);
  transform: translateY(-1px);
  background: #fff;
}

.nav-account-chip.is-user {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700), var(--brand-500));
  border: 1px solid rgba(16, 54, 45, .16);
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 45, 37, .18);
}

.nav-account-chip.is-user:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700), var(--brand-500));
}

.nav-auth {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(16, 54, 45, .08);
  color: var(--brand-700);
}

.nav-auth:hover {
  color: var(--brand-900);
  transform: translateY(-1px);
  background: #fff;
}

.nav-login {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 58%, var(--brand-500) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 34px rgba(15, 45, 37, .20);
}

.nav-login:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-shell .navbar-toggler i {
  font-size: 2rem;
  color: var(--brand-700);
}

.header-cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-700);
  color: #fff;
  font-size: .72rem;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding: 22px 0 64px;
  min-height: calc(100vh - 120px);
}

.app-shell {
  min-height: calc(100vh - 120px);
  padding-top: 0 !important;
}

@media (max-width: 991px) {
  .nav-shell .container,
  .page-shell .container {
    max-width: calc(100% - 18px);
  }

  .navbar-nav {
    margin-top: 14px;
  }

  .nav-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .nav-login,
  .nav-auth,
  .nav-account-chip {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .page-shell {
    padding-top: 20px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }
}
