/* ================= ROOT VARIABLES ================= */
:root {
  --maincolor: #671475;
  --white: #ffffff;
  --black: #090808;
  --bgcolor: #ffffff;
  --textcolor: #555;
  --trans: 0.3s;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

html {
  font-family: 'Cairo', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bgcolor);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================= HEADER ================= */
.header {
  height: 70px;
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.271);
  transition: var(--trans);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  left: 0;
  right: 0;
}

.header {
  left: 0;
  right: 0;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.header .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 24px !important;
}

.header .logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start !important;
  padding-right: 12px;
  margin-right: 8px !important;
}

.header .logo a .content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .logo a .content img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.header .logo a .content p {
  color: var(--maincolor);
  text-transform: uppercase;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  padding-right: 20px;
}

.header .nav {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 20px;
  padding-left: 0 !important;
}

.header .nav .links {
  display: flex;
  align-items: center;
  gap: 12px !important;
  margin: 0;
  padding: 0;
}

.header .nav .links li a {
  padding: 8px 20px;
  border: 2px solid transparent;
  color: var(--white);
  font-weight: bold;
  text-transform: capitalize;
  background-color: var(--maincolor);
  border-radius: 25px;
  transition: var(--trans);
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
  font-size: 14px;
}

.header .nav .links li a:hover {
  background-color: var(--textcolor);
  color: white;
  border-color: white;
}

.header .nav .profile {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header .nav .profile a {
  padding: 8px 20px;
  border: 2px solid transparent;
  color: var(--white);
  font-weight: bold;
  text-transform: capitalize;
  background-color: var(--maincolor);
  border-radius: 25px;
  transition: var(--trans);
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
  font-size: 14px;
}

header .nav .profile a:hover {
  background-color: var(--textcolor);
  color: #fff;
  border-color: var(--textcolor);
}

@media (max-width: 991px) {
  .header .container {
    padding: 0 15px;
  }

  .header .logo a .content img {
    width: 50px;
    height: 50px;
  }

  .header .logo a .content p {
    font-size: 20px;
  }

  .header .nav .links li a {
    padding: 6px 15px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .header .nav {
    display: none;
  }

  .header .toggle-menu {
    display: flex;
  }

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

  .header .logo a .content {
    gap: 10px;
  }

  .header .logo a .content img {
    width: 45px;
    height: 45px;
  }

  .header .logo a .content p {
    font-size: 18px;
  }
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.header .hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .hamburger-btn:focus {
  outline: 2px solid var(--maincolor);
  outline-offset: 2px;
}

.header .hamburger-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--maincolor);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.header .hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.header .hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.header .hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: calc(100vh - 70px);
  background: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--maincolor);
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: #5a189a;
}

.mobile-menu .menu-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--maincolor), #5a189a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
}

.mobile-menu .menu-header .logo-text {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.mobile-menu .menu-header .close-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.mobile-menu .menu-header .close-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.mobile-menu .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 15px 0;
  list-style: none;
  margin: 0;
  background: #ffffff;
}

.mobile-menu .nav-links li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.mobile-menu .nav-links li:hover {
  background-color: #f9f9f9;
}

.mobile-menu .nav-links a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  gap: 12px;
}

.mobile-menu .nav-links a:hover {
  color: var(--maincolor);
  padding-right: 25px;
  background-color: rgba(103, 20, 117, 0.05);
}

.mobile-menu .nav-links a:active {
  background-color: rgba(103, 20, 117, 0.1);
}

.mobile-menu .nav-links a i {
  width: 20px;
  text-align: center;
  color: var(--maincolor);
  transition: all 0.3s ease;
}

.mobile-menu .menu-divider {
  padding: 10px 20px;
  background-color: #f5f5f5;
  color: #999;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.mobile-menu .profile-section {
  padding: 20px;
  background: linear-gradient(135deg, #f5f5f5, #ebebeb);
  margin-top: 10px;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

.mobile-menu .profile-section .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.mobile-menu .profile-section .user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--maincolor);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.mobile-menu .profile-section .user-details {
  flex: 1;
}

.mobile-menu .profile-section .user-details .name {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.mobile-menu .profile-section .user-details .email {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu .profile-section .profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu .profile-section a,
.mobile-menu .profile-section button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  background: white;
  color: #333;
  width: 100%;
  text-align: right;
  justify-content: flex-end;
}

.mobile-menu .profile-section a i,
.mobile-menu .profile-section button i {
  width: 20px;
  text-align: center;
  color: var(--maincolor);
}

.mobile-menu .profile-section a:hover,
.mobile-menu .profile-section button:hover {
  background: var(--maincolor);
  color: white;
  transform: translateX(-5px);
}

.mobile-menu .profile-section a:hover i,
.mobile-menu .profile-section button:hover i {
  color: white;
}

.mobile-menu .logout-section {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
}

.mobile-menu .logout-section button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ff4757;
  background: white;
  color: #ff4757;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.mobile-menu .logout-section button:hover {
  background: #ff4757;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .header .hamburger-btn {
    display: flex;
  }

  .header .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header .container {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .header .hamburger-btn {
    padding: 6px;
  }

  .header .hamburger-btn span {
    width: 22px;
    height: 2.5px;
  }

  .mobile-menu {
    max-width: 280px;
    top: 65px;
    height: calc(100vh - 65px);
  }

  .mobile-menu .nav-links a {
    padding: 14px 15px;
    font-size: 15px;
  }

  .mobile-menu .profile-section {
    padding: 15px;
  }

  .mobile-menu .profile-section a,
  .mobile-menu .profile-section button {
    padding: 10px 12px;
    font-size: 13px;
  }

  .mobile-menu .menu-header {
    padding: 15px;
  }

  .mobile-menu .menu-header .logo-text {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .header .hamburger-btn {
    padding: 5px;
  }

  .header .hamburger-btn span {
    width: 20px;
    height: 2.5px;
  }

  .mobile-menu {
    max-width: 100%;
    top: 60px;
    height: calc(100vh - 60px);
  }

  .mobile-menu .nav-links a {
    padding: 12px 12px;
    font-size: 14px;
  }

  .mobile-menu .profile-section {
    padding: 12px;
  }

  .mobile-menu .profile-section a,
  .mobile-menu .profile-section button {
    padding: 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .header .hamburger-btn {
    padding: 4px;
  }

  .header .hamburger-btn span {
    width: 18px;
    height: 2px;
  }

  .mobile-menu {
    max-width: 100%;
  }

  .mobile-menu .nav-links {
    padding: 10px 0;
  }

  .mobile-menu .nav-links a {
    padding: 12px 12px;
    font-size: 13px;
  }

  .mobile-menu .profile-section {
    padding: 10px;
  }

  .mobile-menu .profile-section a,
  .mobile-menu .profile-section button {
    padding: 10px;
    font-size: 12px;
  }

  .mobile-menu .profile-section .user-info {
    flex-direction: column;
    text-align: center;
  }

  .mobile-menu .profile-section .user-avatar {
    margin: 0 auto;
  }
}

@media (min-width: 993px) {
  .header .hamburger-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .menu-overlay {
    display: none;
  }

  .header .nav {
    display: flex;
  }
}

/* ============================================
   Old Toggle Menu (kept for compatibility)
   ============================================ */
.header .toggle-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 5px;
  position: relative;
  border-bottom: none !important;
  box-shadow: none !important;
  background: none !important;
}

.header .toggle-menu span {
  width: 30px;
  height: 3px;
  background-color: var(--textcolor);
}

@media (max-width: 767.98px) {
  .header .toggle-menu {
    display: flex !important;
  }

  .header .nav {
    display: none !important;
  }

  .header .nav.open {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .header .toggle-menu {
    display: none !important;
  }

  .header .nav {
    display: flex !important;
  }
}

@media (max-width: 991px) {
  .header .nav {
    background: #fff;
    box-shadow: 0 8px 32px rgba(103, 20, 117, 0.08);
    border-radius: 0 0 18px 18px;
    padding-top: 18px;
    padding-bottom: 18px;
    left: 0 !important;
    width: 100% !important;
    top: 70px !important;
    position: fixed !important;
    z-index: 1100;
    transition: 0.3s;
  }

  .header .nav.open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    animation: menuFadeIn 0.25s;
  }

  .header .nav .links {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 20px !important;
  }

  .header .nav .links li {
    width: 100% !important;
  }

  .header .nav .links li a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 14px 0 !important;
    background: #671475 !important;
    color: #fff !important;
    border-radius: 22px !important;
    font-size: 17px !important;
    margin-bottom: 7px !important;
    box-shadow: 0 2px 8px rgba(103, 20, 117, 0.08);
    border: none !important;
    transition: background 0.2s;
  }

  .header .nav .links li a:hover {
    background: #4e0e5e !important;
    color: #fff !important;
  }

  .header .nav .profile {
    margin: 10px 20px 0 20px !important;
    width: calc(100% - 40px) !important;
  }

  .header .nav .profile a,
  .header .nav .profile .profile-toggle {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 14px 0 !important;
    background: #671475 !important;
    color: #fff !important;
    border-radius: 22px !important;
    font-size: 17px !important;
    margin-bottom: 7px !important;
    border: none !important;
  }

  .header .nav .profile a:hover,
  .header .nav .profile .profile-toggle:hover {
    background: #4e0e5e !important;
    color: #fff !important;
  }
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Menu */
.profile {
  position: relative;
  cursor: pointer;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
  display: none;
}

.profile-menu a {
  padding: 10px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.profile-menu a:hover {
  background-color: #f2f2f2;
}

.profile-menu.show {
  display: flex;
  flex-direction: column;
}

/* ================= LANDING ================= */
.landing {
  background-image: url('https://mafqood.site/images/back1.jpg');
  background-image: url('https://mafqood.site/images/back2.jpg');
  min-height: 100vh;
  padding-top: 70px;
  background-size: cover;
  background-position: center top;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.landing .text {
  position: relative;
  text-align: center;
  color: var(--white);
  width: 90%;
  max-width: 800px;
  padding: 40px 20px;
  z-index: 1;
}

.landing .text h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
  line-height: 1.2;
}

.landing .text p {
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.landing .text .search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--maincolor);
  color: var(--white);
  border-radius: 50px;
  font-weight: bold;
  font-size: 18px;
  transition: var(--trans);
  border: 2px solid transparent;
}

.landing .text .search:hover {
  background: #4e0e5e;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ================= OPERATIONS ================= */
.operations {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.operations h2 {
  color: var(--maincolor);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 50px;
  font-weight: 700;
}

.operations .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.operations .option {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--trans);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.operations .option:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.operations .option img {
  width: 140px;
  height: 140px;
  margin-bottom: 25px;
  object-fit: contain;
}

.operations .option p {
  font-size: 22px;
  font-weight: 700;
  color: var(--maincolor);
  margin-bottom: 15px;
}

.operations .option h3 {
  font-size: 18px;
  color: gray;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.operations .option a {
  padding: 12px 35px;
  background: var(--maincolor);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--trans);
  border: 2px solid transparent;
}

.operations .option a:hover {
  background: #4e0e5e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(103, 20, 117, 0.2);
}

/* ===== OPERATIONS - MOBILE FIX ===== */
@media (max-width: 768px) {
  .operations {
    padding: 40px 0;
  }

  .operations h2 {
    font-size: 22px;
    margin-bottom: 25px;
    padding: 0 16px;
  }

  .operations .container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    padding: 0 16px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .operations .option {
    padding: 18px 12px !important;
    border-radius: 16px !important;
    width: 100% !important;
    min-height: 220px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-shadow: 0 2px 10px rgba(103, 20, 117, 0.08) !important;
  }

  .operations .option img {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 10px !important;
  }

  .operations .option p {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }

  .operations .option h3 {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    flex-grow: 1 !important;
  }

  .operations .option a {
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: 50px !important;
    margin-top: auto !important;
  }
}

@media (max-width: 400px) {
  .operations .container {
    grid-template-columns: 1fr !important;
    padding: 0 14px !important;
  }

  .operations .option {
    min-height: auto !important;
    padding: 20px 16px !important;
  }

  .operations .option img {
    width: 80px !important;
    height: 80px !important;
  }

  .operations .option p {
    font-size: 16px !important;
  }

  .operations .option h3 {
    font-size: 14px !important;
  }
}

/* ================= RESPONSIVE VIDEO ================= */
.responsive-video {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.responsive-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== VIDEO - MOBILE FIX ===== */
@media (max-width: 768px) {
  .responsive-video {
    margin: 30px auto !important;
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* إلغاء أي position قديم */
    position: static !important;
    padding-bottom: 0 !important;
  }

  .responsive-video iframe {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px !important;
    border: 0 !important;
    display: block !important;
    min-height: unset !important;
  }
}

/* ================= CONTACT LINK ================= */
.contact-link {
  background: url("../images/conn.jpg") center / cover no-repeat;
  padding: 180px 0;
  position: relative;
  margin: 60px 0;
}

.contact-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.contact-link .container {
  position: relative;
  text-align: center;
  z-index: 1;
}

.contact-link a {
  display: inline-block;
  padding: 16px 40px;
  background: var(--maincolor);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  transition: var(--trans);
  border: 2px solid transparent;
}

.contact-link a:hover {
  background: #4e0e5e;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .contact-link {
    padding: 120px 0;
    margin: 40px 0;
  }

  .contact-link a {
    padding: 14px 30px;
    font-size: 16px;
  }
}

/* ================= FOOTER ================= */
.footer {
  background: #0f0f0f;
  padding: 60px 0 30px;
  color: #ccc;
  margin-top: auto;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



.footer .links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer .links li a {
  color: #ccc;
  font-size: 16px;
  transition: var(--trans);
  padding: 5px 0;
  position: relative;
}

.footer .links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--maincolor);
  transition: var(--trans);
}

.footer .links li a:hover {
  color: var(--white);
}

.footer .links li a:hover::after {
  width: 100%;
}

.footer .copyright {
  margin-top: 20px;
  padding-top: 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer .logo a {
    flex-direction: column;
    gap: 10px;
  }

  .footer .logo img {
    width: 60px;
    height: 60px;
  }

  .footer .logo p {
    font-size: 22px;
  }

  .footer .links {
    gap: 20px;
  }

  .footer .links li a {
    font-size: 14px;
  }
}

/* ================= LOGIN & SIGNUP ================= */
:root {
  --maincolor: #6d087e;
  --bgcolor: #ffffff;
  --textcolor: #5e28a5;
}

.login-content,
.signup-content {
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(#520b5f);
  position: relative;
  overflow: hidden;
}

.login-content::before,
.signup-content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.5) 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.login,
.signup {
  width: 500px;
  max-width: 90%;
  background-color: rgba(255, 255, 255, 0.95);
  position: relative;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: none;
  backdrop-filter: blur(5px);
  z-index: 1;
  transition: transform 0.3s ease;
}

.login:hover,
.signup:hover {
  transform: translateY(-5px);
}

@media (max-width: 575px) {

  .login,
  .signup {
    padding: 30px 20px;
    border-radius: 15px;
  }
}

.login span,
.signup span {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #55145a, #853695);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 24px;
  border: 3px solid rgb(28, 163, 197);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1;
}

.login h1,
.signup h1 {
  background: linear-gradient(135deg, #9962cd, #520b5f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin: 30px 0 25px;
  font-size: 28px;
  font-weight: 700;
}

.login form input,
.signup form input {
  display: block;
  width: 100%;
  padding: 0 15px;
  background-color: #f5f5f5;
  border-radius: 10px;
  border: 2px solid #520b5f;
  height: 50px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.login form input:focus,
.signup form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.3);
  background-color: white;
  border: 2px solid #520b5f;
}

.login form input::placeholder,
.signup form input::placeholder {
  color: #541c53;
  text-transform: capitalize;
}

.login form input[type="submit"],
.signup form input[type="submit"] {
  background: linear-gradient(135deg, #6c5ce7, #520b5f);
  color: white;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login form input[type="submit"]:hover,
.signup form input[type="submit"]:hover {
  transform: none;
  box-shadow: none;
}

p.error {
  margin-bottom: 10px;
  color: #ff4757;
  font-size: 14px;
}

.cont-error {
  padding: 12px 15px;
  background-color: #ffecec;
  color: #ff4757;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #ff4757;
}

.cont-success {
  padding: 12px 15px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #2e7d32;
}

.login .other {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.login .other a {
  color: var(--maincolor);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
}

.login .other a:hover {
  text-decoration: underline;
  color: #520b5f;
}

@media (max-width: 575px) {

  .login form input,
  .signup form input {
    height: 45px;
    font-size: 14px;
  }

  .login h1,
  .signup h1 {
    font-size: 24px;
    margin: 20px 0 15px;
  }

  .login .other a {
    font-size: 14px;
    margin: 5px 0;
  }
}

/* ================= UTILITY CLASSES ================= */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--maincolor);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4e0e5e;
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }

  * {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
}

.chatbot-card {
  cursor: pointer;
}

.chatbot-card:hover {
  transform: translateY(-6px);
}

.header * {
  font-family: 'Cairo', sans-serif !important;
}

.landing {
  background-image: url('https://mafqood.site/images/back1.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
  .landing {
    background-size: cover !important;
    background-position: 30% center !important;
    background-attachment: scroll !important;
    min-height: 60vh !important;
  }
}

@/* ================= FOOTER LOGO (BASE) ================= */
.footer .logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.footer .logo a .content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer .logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer .logo p {
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

/* ================= FOOTER LOGO (MOBILE) ================= */
@media (max-width: 768px) {
  .footer .logo a .content {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .footer .logo img {
    margin: 0 auto !important;
  }

  .footer .logo p {
    text-align: center !important;
    font-size: 22px !important;
  }
}