/* ================= استيراد ملف CSS الرئيسي ================= */
@import url('main.css');

/* ================= خطوط Google ================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #eef6fb 0%, #f0f8ff 50%, #e6f3ff 100%);
  overflow-x: hidden;
  animation: fadeIn 0.5s ease-in;
  color: #333;
  line-height: 1.6;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(11, 103, 163, 0.5); }
  50% { box-shadow: 0 0 20px rgba(11, 103, 163, 0.8), 0 0 30px rgba(11, 103, 163, 0.6); }
  100% { box-shadow: 0 0 5px rgba(11, 103, 163, 0.5); }
}

/* ================= HEADER ================= */

.site-header {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 2px solid #e6eef6;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: auto;
}

.logo a {
  font-size: 24px;
  font-weight: 800;
  color: #0b67a3;
  text-decoration: none;
  background: linear-gradient(45deg, #0b67a3, #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

/* ================= HAMBURGER ================= */

.nav-toggle {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 4px;
  border-radius: 4px;
}

.nav-toggle:hover {
  transform: scale(1.1);
  background: rgba(11, 103, 163, 0.1);
}

.nav-toggle span {
  height: 3px;
  background: linear-gradient(90deg, #12202b, #0b67a3);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ================= SIDEBAR ================= */

.sidebar-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: 320px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  border-left: 3px solid #0b67a3;
}

.sidebar-nav.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e6eef6;
}

.close-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #12202b;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #0b67a3;
  color: #fff;
  transform: rotate(90deg);
}

/* ================= NAV LINKS ================= */

.sidebar-nav .nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav li {
  margin-bottom: 12px;
}

.sidebar-nav .sub-nav {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 24px;
  border-left: 2px solid #e6eef6;
  padding-left: 16px;
}

.sidebar-nav .sub-nav li {
  margin-bottom: 8px;
}

.sidebar-nav .nav a {
  display: block;
  padding: 12px 16px;
  color: #12202b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-nav .nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(11, 103, 163, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar-nav .nav a:hover::before {
  left: 100%;
}

.sidebar-nav .nav a:hover {
  background: linear-gradient(135deg, #0b67a3, #4fc3f7);
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(11, 103, 163, 0.3);
}

/* ================= SEARCH ================= */

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e6eef6;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
}

.search-bar input:focus {
  outline: none;
  border-color: #0b67a3;
  box-shadow: 0 0 8px rgba(11, 103, 163, 0.3);
}

.search-bar button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #0b67a3, #4fc3f7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 103, 163, 0.4);
}

.hero {
  background: linear-gradient(135deg, #07263f 0%, #0b67a3 50%, #4fc3f7 100%), url('assets/images/hero-bg.png') center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: right;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
  animation: fadeIn 1.5s ease-out;
}

.hero-content {
  flex: 1;
  animation: slideInFromRight 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  background: linear-gradient(45deg, #fff, #4fc3f7, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

.hero-content p {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 32px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.hero .actions .btn {
  flex: 1;
  min-width: 160px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.hero .actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero .actions .btn:hover::before {
  left: 100%;
}

.hero .actions .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hero-image {
  flex: 1;
  text-align: center;
  animation: slideInFromLeft 1s ease-out;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-image img:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .sidebar-nav {
    width: 90%;
  }

  .hero {
    padding: 70px 20px;
    min-height: 450px;
    flex-direction: column;
    text-align: center;
    border-radius: 0 0 30px 30px;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero .actions {
    justify-content: center;
  }

  .hero .actions .btn {
    min-width: 140px;
    padding: 14px 28px;
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 85%;
  }

  .section {
    padding: 40px 0;
    margin-bottom: 60px;
  }

  .section h2 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
/* ================= GENERAL ================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 80px;
  animation: fadeIn 0.8s ease-out;
  background: linear-gradient(135deg, rgba(238, 246, 251, 0.8), rgba(255, 255, 255, 0.9));
  border-radius: 20px;
  padding: 50px 0;
  margin-top: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #12202b;
  font-size: 32px;
  font-weight: 700;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0b67a3, #4fc3f7);
  margin: 12px auto;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(11, 103, 163, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 24px;
  text-align: center;
  animation: bounceIn 0.6s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b67a3, #4fc3f7);
  border-radius: 16px 16px 0 0;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(11, 103, 163, 0.2);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card:hover img {
  transform: scale(1.05);
}

.card .meta {
  font-size: 16px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
}

.card .price {
  font-size: 20px;
  font-weight: bold;
  color: #0b67a3;
  margin-bottom: 18px;
  background: linear-gradient(45deg, #0b67a3, #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card .card-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.card .card-actions .btn {
  flex: 1;
  min-width: 100px;
}

.card.feature {
  text-align: center;
  padding: 30px 20px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.step {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  text-align: center;
  max-width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: bounceIn 0.6s ease-out;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 50px;
  height: 50px;
  background: #0b67a3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin: 0 auto 15px;
}

.step h3 {
  margin-bottom: 10px;
  color: #12202b;
  font-size: 18px;
}

.step p {
  color: #666;
  font-size: 14px;
}

.offer-banner {
  background: linear-gradient(135deg, #0b67a3, #12202b);
  color: #fff;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s ease-out;
}

.offer-banner h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.offer-banner p {
  margin-bottom: 20px;
  font-size: 16px;
}

.offer-banner .btn {
  background: #fff;
  color: #0b67a3;
  border: none;
}

.offer-banner .btn:hover {
  background: #f0f0f0;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #0b67a3;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.profile-info {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.requests-list .card {
  text-align: right;
}

.requests-list .card h4 {
  margin-bottom: 10px;
}

.requests-list .card p {
  margin: 5px 0;
}

.table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
}

.requests-table th,
.requests-table td {
  padding: 12px;
  text-align: right;
  border-bottom: 1px solid #eee;
}

.requests-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.requests-table tr:hover {
  background: #f9f9f9;
}

.phone-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.phone-header h4 {
  margin: 0;
}

.status {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status.available {
  background: #d4edda;
  color: #155724;
}

.status.sold {
  background: #f8d7da;
  color: #721c24;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

.purchase-requests {
  margin-top: 15px;
}

.purchase-request {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.buyer-info {
  flex: 1;
}

.message {
  flex: 2;
  font-style: italic;
  color: #666;
}

.purchase-request .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.details .main {
  flex: 1;
  min-width: 300px;
}

.details .main img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.details .main h2 {
  margin-bottom: 10px;
}

.details .main .price {
  font-size: 24px;
  font-weight: bold;
  color: #0b67a3;
  margin-bottom: 10px;
}

.details .main .meta {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.details .actions {
  margin-top: 20px;
}

.form-row {
  margin-bottom: 15px;
}

.form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0b67a3, #4fc3f7);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(11, 103, 163, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(11, 103, 163, 0.4);
}

.btn:active {
  transform: translateY(-1px);
}

.btn:hover {
  background: #07263f;
}

.btn.secondary {
  background: #666;
}

.btn.secondary:hover {
  background: #444;
}

.btn.ghost {
  background: transparent;
  color: #0b67a3;
  border: 1px solid #0b67a3;
}

.btn.ghost:hover {
  background: #0b67a3;
  color: #fff;
}

.notice {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: #0b67a3;
  margin: 10px 0;
}

.meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0b67a3;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #07263f;
  transform: scale(1.05);
}

.btn.secondary {
  background: #666;
}

.btn.secondary:hover {
  background: #444;
}

.btn.ghost {
  background: transparent;
  color: #0b67a3;
  border: 2px solid #0b67a3;
}

.btn.ghost:hover {
  background: #0b67a3;
  color: #fff;
}

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
}

/* ================= FORMS ================= */

.filter-form {
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeIn 0.8s ease-out;
}

.form-row {
  margin-bottom: 15px;
}

.form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #12202b;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #f9f9f9;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0b67a3;
  box-shadow: 0 0 5px rgba(11, 103, 163, 0.3);
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

/* ================= MESSAGES ================= */

.error {
  background: #ffe6e6;
  color: #d32f2f;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.notice {
  background: #e6f7ff;
  color: #1976d2;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ================= DETAILS ================= */

.details {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.details .main {
  flex: 1;
}

.details img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.details img:hover {
  transform: scale(1.05);
}

/* ================= LAYOUT ================= */

.main-layout {
  display: flex;
  gap: 20px;
}

.sidebar {
  width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content {
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .sidebar-nav {
    width: 85%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .details {
    flex-direction: column;
  }
  .main-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .sidebar-nav {
    width: 300px;
  }
}

/* ================= FOOTER ================= */

.site-footer {
  background: linear-gradient(135deg, #12202b 0%, #0b67a3 50%, #07263f 100%);
  color: #fff;
  padding: 50px 0 30px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: #4fc3f7;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  position: relative;
}

.footer-section h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #4fc3f7;
  margin-top: 8px;
  border-radius: 2px;
}

.footer-section h4 {
  color: #4fc3f7;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-section ul a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4fc3f7;
  transition: width 0.3s ease;
}

.footer-section ul a:hover::before {
  width: 100%;
}

.footer-section ul a:hover {
  color: #4fc3f7;
  transform: translateX(5px);
}

.footer-section p {
  line-height: 1.7;
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 2px solid #333;
  padding-top: 25px;
  text-align: center;
  color: #aaa;
  position: relative;
  z-index: 1;
}

/* ================= USER AUTH ================= */

.user-auth {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #e6eef6;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}

.user-auth span {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  color: #4fc3f7;
  font-size: 16px;
}

.user-auth a {
  display: inline-block;
  margin: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0b67a3, #4fc3f7);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(11, 103, 163, 0.3);
}

.user-auth a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 15px rgba(11, 103, 163, 0.4);
}

.user-auth a:nth-child(2) {
  background: linear-gradient(135deg, #666, #999);
}

.user-auth a:nth-child(2):hover {
  background: linear-gradient(135deg, #555, #888);
}

/* ================= FORM CARD STYLES ================= */

.form-card {
  padding: 40px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  box-shadow: 0 10px 40px rgba(11, 103, 163, 0.15) !important;
  border: 1px solid rgba(11, 103, 163, 0.1) !important;
}

.form-card h2 {
  margin-bottom: 5px !important;
  text-align: center !important;
}

.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-card .form-row {
  margin-bottom: 20px;
}

.form-card .form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #12202b;
  font-size: 16px;
}

.form-card .form-row input,
.form-card .form-row select,
.form-card .form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f9f9f9;
  font-family: 'Cairo', sans-serif;
}

.form-card .form-row input::placeholder,
.form-card .form-row textarea::placeholder {
  color: #999;
}

.form-card .form-row input:focus,
.form-card .form-row select:focus,
.form-card .form-row textarea:focus {
  outline: none;
  border-color: #0b67a3;
  box-shadow: 0 0 12px rgba(11, 103, 163, 0.2);
  background: #fff;
}

.form-card .form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-card .form-actions {
  margin-top: 30px;
  text-align: center;
}

.form-card .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.form-card hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #e9ecef;
}

.form-card > p {
  text-align: center;
  color: #666;
  font-size: 14px;
}

.form-card a {
  color: #0b67a3;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.form-card a:hover {
  text-decoration: underline;
  color: #07263f;
}

/* ================= ADDITIONAL RESPONSIVE TWEAKS ================= */

@media (max-width: 480px) {
  .form-card {
    padding: 24px !important;
    margin: 20px auto !important;
  }

  .form-card h2 {
    font-size: 20px !important;
  }

  .form-card .form-row input,
  .form-card .form-row select,
  .form-card .form-row textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  .form-card .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* Hero responsive */
  .hero {
    padding: 50px 16px;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero .actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero .actions .btn {
    min-width: auto;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Section responsive */
  .section {
    padding: 30px 0 !important;
    margin-bottom: 30px !important;
    border-radius: 16px;
  }

  .section h2 {
    font-size: 20px !important;
  }

  .section h2::after {
    width: 40px;
  }

  /* Grid responsive */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Card responsive */
  .card {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  .card img {
    height: 180px;
  }

  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-section h3 {
    font-size: 18px;
  }

  .footer-section h4 {
    font-size: 16px;
  }

  /* Main layout responsive */
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Details layout */
  .details {
    gap: 16px;
    flex-direction: column;
  }

  .details .main {
    min-width: auto;
  }

  .details .main img {
    max-width: 100%;
  }

  /* Table responsive */
  .table-container {
    overflow-x: auto;
  }

  .requests-table {
    font-size: 13px;
  }

  .requests-table th,
  .requests-table td {
    padding: 8px;
  }

  /* Buttons responsive */
  .btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .btn.small {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Form responsive */
  .form-row {
    margin-bottom: 12px;
  }

  .form-row label {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    padding: 10px 12px;
    font-size: 16px !important;
  }

  /* Profile responsive */
  .profile-info {
    padding: 16px;
    margin-bottom: 16px;
  }

  /* Steps responsive */
  .steps {
    gap: 12px;
  }

  .step {
    padding: 20px 16px;
    max-width: 100%;
    margin-bottom: 12px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .step h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .step p {
    font-size: 13px;
  }

  /* Alert responsive */
  .alert-banner {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
  }

  .alert-banner p {
    font-size: 12px;
  }

  /* Offers responsive */
  .offer-banner {
    padding: 24px 16px;
  }

  .offer-banner h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .offer-banner p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  /* Purchase request responsive */
  .purchase-request {
    flex-direction: column;
    padding: 12px;
  }

  .buyer-info {
    margin-bottom: 8px;
  }

  .purchase-request .actions {
    width: 100%;
    justify-content: space-between;
  }

  /* User auth responsive */
  .user-auth {
    margin-top: 12px;
    padding: 12px;
  }

  .user-auth span {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .user-auth a {
    display: block;
    margin: 4px 0;
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Nav responsive */
  .sidebar-nav {
    padding: 16px;
  }

  .sidebar-header {
    margin-bottom: 16px;
  }

  .sidebar-nav .nav li {
    margin-bottom: 8px;
  }

  .sidebar-nav .nav a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .search-bar {
    gap: 6px;
    padding: 12px;
    margin-bottom: 16px;
  }

  .search-bar input {
    padding: 10px 12px;
  }

  .search-bar button {
    padding: 10px 16px;
  }

  /* Logo responsive */
  .logo a {
    font-size: 18px;
  }

  .logo a img {
    height: 32px;
  }

  /* Top bar responsive */
  .top-bar {
    padding: 12px 16px;
  }

  /* Breadcrumb responsive */
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 16px;
  }

  /* Message responsive */
  .error,
  .notice {
    padding: 12px;
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Price responsive */
  .price {
    font-size: 18px;
    margin: 8px 0;
  }

  .meta {
    font-size: 12px;
    margin-bottom: 12px;
  }

  /* Status badges */
  .status {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Helper classes */
  .text-mobile-center {
    text-align: center;
  }

  .hidden-mobile {
    display: none !important;
  }

  .visible-mobile {
    display: block !important;
  }
}

/* ================= Large screen optimizations ================= */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }

  .sidebar-nav {
    width: 320px;
  }

  .section {
    padding: 60px 0;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
  }

}

/* End of file */
