/*
Theme Name: SudanFlea
Theme URI: https://sudanflea.com
Author: SudanFlea
Description: قالب سودان فليا — سوق السودان الإلكتروني
Version: 1.0
Text Domain: sudanflea
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Amiri:wght@400;700&display=swap');

/* ========================================
   VARIABLES — الهوية البصرية السودانية
   ======================================== */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #9B7D2E;
  --green: #1B5E20;
  --green-mid: #2E7D32;
  --green-light: #E8F5E9;
  --red: #B71C1C;
  --red-light: #FFEBEE;
  --sand: #F5E6C8;
  --sand-dark: #E8D4A0;
  --brown: #5D4037;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --grey-light: #F8F6F0;
  --grey: #E8E0D0;
  --text: #2C2416;
  --text-muted: #7B6F5A;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--grey-light);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, button, select, textarea {
  font-family: 'Cairo', sans-serif;
  font-size: inherit;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5 {
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
}
.arabic-heading {
  font-family: 'Amiri', serif;
  font-weight: 700;
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.4);
}
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27,94,32,0.3);
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,94,32,0.4);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--green);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Section */
.section { padding: 64px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.section-title {
  font-size: 26px;
  font-weight: 900;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}
.section-link {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--gold); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.badge-gold { background: var(--sand); color: var(--gold-dark); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }

/* Decorative pattern */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.06'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ========================================
   BREAKING NEWS BAR
   ======================================== */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.breaking-bar:hover { background: #8B0000; }
.breaking-pulse {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-main {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}
.logo-main span { color: var(--gold-dark); }
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--grey-light);
  border: 2px solid var(--grey);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  transition: all 0.2s;
  gap: 8px;
}
.header-search:focus-within {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text);
  direction: rtl;
  min-width: 0;
}
.header-search input::placeholder { color: #bbb; }
.header-search .search-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  border: none;
  border-radius: 40px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.header-search .search-btn:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(150deg, #0D3B14 0%, var(--green) 40%, #2E5F2E 70%, #3D6B2E 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  border-radius: 30px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold-light); }
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-search-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 60px;
  padding: 7px 7px 7px 24px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  gap: 10px;
  border: 2px solid rgba(201,168,76,0.3);
}
.hero-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  min-width: 0;
  direction: rtl;
}
.hero-search-wrap input::placeholder { color: #bbb; }
.hero-search-wrap .hero-search-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  border: none;
  border-radius: 50px;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.hero-search-wrap .hero-search-btn:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: scale(1.03);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.hero-tag {
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.1);
  border-radius: 30px;
  padding: 7px 18px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.hero-tag:hover {
  background: rgba(201,168,76,0.25);
  border-color: var(--gold-light);
  color: var(--white);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  border-radius: 50px;
  padding: 15px 38px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(201,168,76,0.5);
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey);
  padding: 24px 20px;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold-dark);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ========================================
   CATEGORIES
   ======================================== */
.cats-section { background: var(--sand); padding: 60px 0; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.25s;
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(201,168,76,0.2);
  border-color: var(--gold);
}
.cat-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--sand), var(--sand-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform 0.25s;
  border: 2px solid rgba(201,168,76,0.2);
}
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.cat-card:hover .cat-name { color: var(--gold-dark); }
.cat-count {
  font-size: 12px;
  color: var(--gold-dark);
  background: var(--sand);
  padding: 3px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* ========================================
   LISTINGS
   ======================================== */
.listings-section { background: var(--white); padding: 60px 0; }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
  border: 1px solid rgba(201,168,76,0.15);
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: var(--gold);
}
.listing-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--grey-light);
}
.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sand), var(--sand-dark));
  font-size: 48px;
}
.listing-card:hover .listing-img img { transform: scale(1.06); }
.listing-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.listing-body { padding: 16px; }
.listing-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.listing-price {
  font-size: 19px;
  font-weight: 900;
  color: var(--gold-dark);
  margin-bottom: 12px;
  font-family: 'Cairo', sans-serif;
}
.listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--grey);
  padding-top: 10px;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-section {
  background: linear-gradient(135deg, #0D3B14, var(--green));
  padding: 64px 20px;
  position: relative;
  overflow: hidden;
}
.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.trust-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.trust-item { text-align: center; color: var(--white); }
.trust-icon {
  width: 72px;
  height: 72px;
  background: rgba(201,168,76,0.2);
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}
.trust-title {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: var(--gold-light);
}
.trust-desc { font-size: 14px; opacity: 0.85; line-height: 1.7; }

/* ========================================
   REVIEWS
   ======================================== */
.reviews-section { background: var(--sand); padding: 64px 0; }
.reviews-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-top: -20px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  border: 1px solid rgba(201,168,76,0.15);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 60px;
  color: var(--gold-light);
  font-family: 'Amiri', serif;
  line-height: 1;
  opacity: 0.5;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(201,168,76,0.15);
  border-color: var(--gold);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.review-name {
  font-weight: 700;
  font-size: 15px;
  display: block;
  color: var(--text);
}
.review-city { font-size: 12px; color: var(--text-muted); }
.review-stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}
.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #0D1F0F;
  color: #ccc;
  padding: 60px 0 0;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo-main { color: var(--white); font-size: 24px; }
.footer-brand .logo-main span { color: var(--gold); }
.footer-tagline {
  color: #888;
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.8;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #888;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #555;
}
.footer-bottom a { color: var(--gold); }

/* ========================================
   MOBILE BOTTOM NAV
   ======================================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9998;
  height: 64px;
  align-items: center;
  justify-content: space-around;
  border-top: 2px solid var(--gold);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #aaa;
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  padding: 8px 4px;
  transition: color 0.2s;
}
.mobile-nav-item:hover,
.mobile-nav-item.active { color: var(--gold-dark); }
.mobile-nav-icon { font-size: 22px; line-height: 1; }

/* ========================================
   FORMS — LOGIN / REGISTER
   ======================================== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--sand) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(201,168,76,0.2);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .logo-main { font-size: 28px; justify-content: center; }
.auth-logo p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.auth-tabs {
  display: flex;
  background: var(--grey-light);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  border: none;
  background: transparent;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
  border: 2px solid var(--grey);
  background: var(--white);
  color: var(--text);
}
.social-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.social-btn.facebook { background: #1877F2; color: var(--white); border-color: #1877F2; }
.social-btn.facebook:hover { background: #1664D8; }
.divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 20px 0;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--grey);
}
.divider::before { right: 0; }
.divider::after { left: 0; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--grey);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--grey-light);
  direction: rtl;
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
}
.form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(27,94,32,0.3);
  margin-top: 8px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,94,32,0.4);
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-switch a { color: var(--gold-dark); font-weight: 600; }
.auth-switch a:hover { color: var(--gold); }

/* ========================================
   SUBMIT LISTING PAGE
   ======================================== */
.submit-page {
  background: var(--grey-light);
  padding: 48px 20px;
  min-height: 100vh;
}
.submit-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,168,76,0.15);
}
.submit-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text);
}
.submit-card .submit-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--grey);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--grey-light);
  cursor: pointer;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
}
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--grey);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--grey-light);
  resize: vertical;
  min-height: 120px;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.2s;
}
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
}
.upload-area {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--sand);
}
.upload-area:hover { background: var(--sand-dark); }
.upload-area p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}
.dashboard-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  height: fit-content;
  border: 1px solid rgba(201,168,76,0.15);
}
.dashboard-user {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey);
  margin-bottom: 24px;
}
.dashboard-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-gold);
}
.dashboard-name { font-weight: 700; font-size: 16px; }
.dashboard-email { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.dashboard-nav ul li { margin-bottom: 6px; }
.dashboard-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.dashboard-nav ul li a:hover,
.dashboard-nav ul li a.active {
  background: var(--sand);
  color: var(--gold-dark);
}
.dashboard-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,168,76,0.15);
}

/* ========================================
   ALERTS & MESSAGES
   ======================================== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid rgba(27,94,32,0.2); }
.alert-error { background: var(--red-light); color: var(--red); border: 1px solid rgba(183,28,28,0.2); }
.alert-info { background: var(--sand); color: var(--gold-dark); border: 1px solid rgba(201,168,76,0.3); }

/* ========================================
   LISTING DETAIL PAGE
   ======================================== */
.listing-detail { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.listing-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.listing-gallery { border-radius: var(--radius-lg); overflow: hidden; }
.listing-gallery img { width: 100%; height: 400px; object-fit: cover; }
.listing-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,168,76,0.15);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.listing-detail-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.listing-detail-meta { margin-bottom: 24px; }
.listing-detail-meta .meta-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey);
  font-size: 14px;
}
.meta-label { color: var(--text-muted); }
.meta-value { font-weight: 600; }
.contact-btn {
  width: 100%;
  margin-bottom: 12px;
}

/* ========================================
   SEARCH / LISTINGS PAGE
   ======================================== */
.listings-page { padding: 40px 0; }
.listings-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.filters-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,168,76,0.15);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filters-sidebar h3 {
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  color: var(--text);
}
.filter-group { margin-bottom: 20px; }
.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.listings-results { flex: 1; }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey);
}
.results-count { font-size: 14px; color: var(--text-muted); }
.results-count strong { color: var(--text); }

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .listings-page-inner { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  body { padding-bottom: 64px; }
  .header-search { display: none; }
  .header-actions .btn-outline-gold { display: none; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-inner { grid-template-columns: 1fr; gap: 32px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 52px 20px; min-height: 440px; }
  .hero h1 { font-size: 36px; }
  .stats-inner { gap: 28px; }
  .auth-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .submit-card { padding: 28px 20px; }
  .section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-search-wrap { padding: 5px; }
}
