/* ================================================================
   Syria Tourism - Main CSS
   ================================================================ */
:root {
  --gold: #C9973A;
  --gold-light: #E8B96A;
  --gold-pale: #F5E6C8;
  --dark: #1A1208;
  --dark2: #2D1F0A;
  --dark3: #3D2B10;
  --cream: #FDF6E3;
  --cream2: #F7EDD0;
  --text: #2D1F0A;
  --muted: #6B5A3A;
  --white: #ffffff;
  --red: #CE1126;
  --green: #007A3D;
  --shadow: 0 8px 32px rgba(26,18,8,0.15);
  --shadow-hover: 0 16px 48px rgba(26,18,8,0.22);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 70px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Cairo', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: 'Cairo', sans-serif; }

/* ================================================================
   NAVBAR
   ================================================================ */
#mainNav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(26,18,8,0.97); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold); height: var(--nav-h);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem; height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-logo span { font-family: 'Amiri', serif; font-size: 1.35rem; color: var(--gold); font-weight: 700; }
.flag-mini { display: flex; flex-direction: column; width: 34px; height: 22px; border-radius: 3px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); flex-shrink:0; }
.f-red { background: var(--red); flex: 1; }
.f-white { background: #fff; flex: 1; display: flex; align-items: center; justify-content: center; }
.f-white span { color: var(--green); font-size: 6px; letter-spacing: 2px; }
.f-black { background: #000; flex: 1; }
.nav-links { display: flex; gap: 0; list-style: none; margin-right: auto; }
.nav-links > li { position: relative; }
.nav-links a {
  color: #ccc; padding: 8px 14px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; transition: all 0.25s;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(201,151,58,0.12); }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0;
  background: rgba(26,18,8,0.98); border: 1px solid rgba(201,151,58,0.25);
  border-radius: 12px; padding: 0.5rem; min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 100;
}
.dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; font-size: 0.85rem; color: #ccc; }
.dropdown-menu a:hover { background: rgba(201,151,58,0.15); color: var(--gold-light); }
.nav-auth { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.btn-nav-outline {
  border: 1.5px solid rgba(201,151,58,0.5); color: var(--gold-light);
  padding: 7px 18px; border-radius: 25px; font-size: 0.85rem; font-weight: 700;
  transition: all 0.25s; background: transparent;
}
.btn-nav-outline:hover { border-color: var(--gold); background: rgba(201,151,58,0.1); }
.btn-nav-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark); padding: 7px 18px; border-radius: 25px;
  font-size: 0.85rem; font-weight: 700; transition: all 0.25s;
}
.btn-nav-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,151,58,0.4); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.4rem; cursor: pointer; }
.user-menu { position: relative; cursor: pointer; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--gold-pale); border-radius: 14px;
  padding: 0.5rem; min-width: 200px; box-shadow: var(--shadow); z-index: 100;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown .user-info { padding: 8px 12px; border-bottom: 1px solid var(--cream2); margin-bottom: 4px; font-size: 0.88rem; color: var(--text); }
.user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 0.85rem; color: var(--text); transition: background 0.2s; }
.user-dropdown a:hover { background: var(--cream2); }
.user-dropdown hr { border: none; border-top: 1px solid var(--cream2); margin: 4px 0; }
.logout-link { color: #c0392b !important; }

/* Flash message */
.flash-msg {
  position: fixed; top: var(--nav-h); left: 50%; transform: translateX(-50%);
  z-index: 999; padding: 12px 24px; border-radius: 10px; font-weight: 600;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  animation: slideDown 0.4s ease;
}
.flash-success { background: #2e7d32; color: #fff; }
.flash-error { background: #c62828; color: #fff; }
.flash-info { background: var(--gold); color: var(--dark); }
.flash-msg button { background: none; border: none; color: inherit; cursor: pointer; font-size: 1.1rem; }
@keyframes slideDown { from { top: calc(var(--nav-h) - 20px); opacity: 0; } to { top: var(--nav-h); opacity: 1; } }

/* ================================================================
   LAYOUT UTILS
   ================================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding-top: var(--nav-h); }
section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.eyebrow { display: inline-block; color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 0.8rem; }
.section-header h2 { font-family: 'Amiri', serif; font-size: 2.6rem; color: var(--text); margin-bottom: 0.8rem; }
.section-header p { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 600px; margin: 0 auto; }
.gold-line { width: 55px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 0.8rem auto; border-radius: 2px; }
.dark-section { background: var(--dark); }
.dark-section .section-header h2 { color: #fff; }
.dark-section .section-header p { color: rgba(255,255,255,0.55); }
.dark-section .eyebrow { color: var(--gold-light); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh; background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 45%, var(--dark3) 100%);
  position: relative; display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 25% 50%, rgba(201,151,58,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 80% 25%, rgba(201,151,58,0.05) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,151,58,0.15); border: 1px solid rgba(201,151,58,0.4); padding: 7px 18px; border-radius: 50px; color: var(--gold-light); font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Amiri', serif; font-size: 4.2rem; line-height: 1.1; color: #fff; margin-bottom: 0.5rem; }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.9; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat .num { font-family: 'Amiri', serif; font-size: 1.9rem; font-weight: 700; color: var(--gold); }
.stat .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; perspective: 800px; }
.hero-card { border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.3s; position: relative; }
.hero-card:hover { transform: scale(1.03) translateY(-3px); }
.hero-card img { width: 100%; object-fit: cover; display: block; }
.hero-card:first-child { grid-row: span 2; }
.hero-card:first-child img { height: 320px; }
.hero-card:not(:first-child) img { height: 155px; }
.hero-card-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,18,8,0.9)); padding: 20px 12px 10px; color: #fff; font-size: 0.82rem; font-weight: 700; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 28px; border-radius: 50px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); box-shadow: 0 4px 18px rgba(201,151,58,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,151,58,0.5); }
.btn-outline { border: 2px solid rgba(201,151,58,0.5); color: var(--gold-light); background: transparent; }
.btn-outline:hover { border-color: var(--gold); background: rgba(201,151,58,0.1); }
.btn-dark { background: var(--dark); color: var(--gold-light); }
.btn-dark:hover { background: var(--dark2); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; border-radius: 12px; }

/* ================================================================
   CARDS (Cities, Places)
   ================================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; cursor: pointer;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }
.card-img-wrap { overflow: hidden; position: relative; }
.card-img-wrap img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; display: block; }
.card:hover .card-img-wrap img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: var(--dark); padding: 3px 12px;
  border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.card-badge-featured {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff; padding: 3px 10px;
  border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.card-body { padding: 1.3rem; }
.card-body h3 { font-family: 'Amiri', serif; font-size: 1.4rem; margin-bottom: 0.4rem; }
.card-body h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.card-body p { color: var(--muted); font-size: 0.87rem; line-height: 1.7; margin-bottom: 0.8rem; }
.card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.8rem; border-top: 1px solid var(--cream2); margin-top: 0.8rem; }
.rating-pill { background: var(--gold); color: var(--dark); padding: 3px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; }
.price-tag { color: var(--gold); font-weight: 700; font-size: 0.88rem; }
.star-display { color: var(--gold); font-size: 0.85rem; }

/* ================================================================
   TABS & FILTERS
   ================================================================ */
.tabs { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.tab-btn {
  padding: 9px 22px; border-radius: 50px; border: 2px solid var(--gold);
  background: transparent; color: var(--gold); font-family: 'Cairo', sans-serif;
  font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.25s;
}
.tab-btn.active, .tab-btn:hover { background: var(--gold); color: var(--dark); }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
  padding: calc(var(--nav-h) + 3rem) 0 3rem; position: relative; overflow: hidden;
}
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 30% 50%, rgba(201,151,58,0.1) 0%, transparent 70%); }
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { font-family: 'Amiri', serif; font-size: 3rem; color: #fff; margin-bottom: 0.8rem; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1rem; }
.breadcrumb { display: flex; gap: 0.5rem; justify-content: center; font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 1rem; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(201,151,58,0.3); background: #fff;
  font-family: 'Cairo', sans-serif; font-size: 0.92rem; outline: none;
  transition: border 0.3s; color: var(--text);
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,58,0.1); }
.form-control.dark { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(201,151,58,0.3); }
.form-control.dark::placeholder { color: rgba(255,255,255,0.35); }
.form-control.dark:focus { border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 0.78rem; color: #c62828; margin-top: 5px; }

/* Auth pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%); padding: 2rem; }
.auth-box { background: #fff; border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.auth-box h2 { font-family: 'Amiri', serif; font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.auth-box p { text-align: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.auth-divider { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 1rem 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--cream2); }
.auth-divider::before { right: 0; }
.auth-divider::after { left: 0; }
.auth-link { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 1.2rem; }
.auth-link a { color: var(--gold); font-weight: 700; }

/* ================================================================
   REVIEWS
   ================================================================ */
.star-rating-input { display: flex; gap: 6px; flex-direction: row-reverse; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.6rem; cursor: pointer; color: #ccc; transition: color 0.2s; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--gold); }
.review-card { background: var(--white); border-radius: 14px; padding: 1.3rem; border: 1px solid var(--cream2); margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(26,18,8,0.06); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 0.8rem; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); display: flex; align-items: center; justify-content: center; color: var(--dark); font-weight: 700; font-size: 1rem; flex-shrink: 0; overflow: hidden; }
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-name { font-weight: 700; font-size: 0.92rem; }
.reviewer-date { font-size: 0.75rem; color: var(--muted); }
.review-stars { margin-right: auto; color: var(--gold); font-size: 0.85rem; }
.review-body { color: var(--muted); font-size: 0.88rem; line-height: 1.75; }

/* ================================================================
   MAP
   ================================================================ */
#mapEl { height: 500px; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(201,151,58,0.3); box-shadow: 0 0 40px rgba(201,151,58,0.08); }
.map-page #mapEl { height: calc(100vh - var(--nav-h) - 80px); }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,18,8,0.82); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--cream); border-radius: var(--radius); max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-img { width: 100%; height: 260px; object-fit: cover; display: block; }
.modal-body { padding: 2rem; }
.modal-close { position: absolute; top: 1rem; left: 1rem; background: rgba(26,18,8,0.7); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ================================================================
   INFO BOXES (inside modals/detail pages)
   ================================================================ */
.info-boxes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.info-box { background: var(--cream2); border-radius: 12px; padding: 1rem; text-align: center; border: 1px solid rgba(201,151,58,0.2); }
.info-box .ib-icon { font-size: 1.4rem; margin-bottom: 5px; }
.info-box .ib-label { font-size: 0.72rem; color: var(--muted); }
.info-box .ib-val { font-size: 0.88rem; font-weight: 700; }

/* ================================================================
   TAGS / HIGHLIGHTS
   ================================================================ */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: var(--gold-pale); color: var(--gold); padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(201,151,58,0.25); }

/* ================================================================
   SEARCH BAR
   ================================================================ */
.search-bar { display: flex; gap: 0.5rem; max-width: 600px; margin: 0 auto; }
.search-bar input { flex: 1; padding: 13px 20px; border-radius: 50px; border: 2px solid rgba(201,151,58,0.3); font-size: 0.95rem; outline: none; transition: border 0.3s; background: #fff; }
.search-bar input:focus { border-color: var(--gold); }
.search-bar button { padding: 13px 24px; border-radius: 50px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border: none; color: var(--dark); font-weight: 700; cursor: pointer; transition: all 0.25s; }
.search-bar button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,151,58,0.4); }

/* ================================================================
   SIDEBAR FILTER
   ================================================================ */
.with-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.sidebar { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--gold-pale); color: var(--text); }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { font-size: 0.85rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 0.6rem; }
.filter-group select, .filter-group input[type=range] { width: 100%; }
.checkbox-list { display: flex; flex-direction: column; gap: 0.4rem; }
.checkbox-list label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; }

/* ================================================================
   AI PLANNER
   ================================================================ */
.planner-form { background: rgba(255,255,255,0.06); border: 1px solid rgba(201,151,58,0.25); border-radius: var(--radius); padding: 2.5rem; backdrop-filter: blur(10px); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.interests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 0.7rem; margin: 1rem 0; }
.interest-chip { padding: 9px 12px; border-radius: 10px; border: 1.5px solid rgba(201,151,58,0.3); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.65); font-family: 'Cairo',sans-serif; font-size: 0.83rem; cursor: pointer; transition: all 0.25s; text-align: center; }
.interest-chip.on { border-color: var(--gold); background: rgba(201,151,58,0.18); color: var(--gold-light); }
.ai-output { background: rgba(201,151,58,0.08); border: 1px solid rgba(201,151,58,0.3); border-radius: var(--radius); padding: 2rem; margin-top: 2rem; display: none; }
.ai-output.show { display: block; animation: fadeUp 0.5s ease; }
.ai-output h3 { color: var(--gold); font-family: 'Amiri', serif; font-size: 1.6rem; margin-bottom: 1.2rem; }
.ai-output .content { color: rgba(255,255,255,0.82); line-height: 1.95; font-size: 0.93rem; }
.loading-spinner { display: none; text-align: center; padding: 2rem; }
.loading-spinner.show { display: block; }
.spinner { display: inline-flex; gap: 7px; }
.spinner span { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); animation: bounce 1.4s infinite both; }
.spinner span:nth-child(2) { animation-delay: .2s; }
.spinner span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* ================================================================
   CHATBOT
   ================================================================ */
.chatbot-toggle { position: fixed; bottom: 2rem; left: 2rem; z-index: 1500; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-light)); border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(201,151,58,0.5); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-panel { position: fixed; bottom: 5.5rem; left: 2rem; z-index: 1500; width: 350px; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(26,18,8,0.22); border: 1px solid rgba(201,151,58,0.2); display: none; flex-direction: column; overflow: hidden; max-height: 520px; }
.chatbot-panel.open { display: flex; animation: fadeUp 0.3s ease; }
.chatbot-header { background: linear-gradient(135deg,var(--dark),var(--dark2)); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 10px; }
.bot-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-light)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink:0; }
.bot-info .bot-name { color: #fff; font-weight: 700; font-size: 0.9rem; }
.bot-info .bot-status { color: rgba(255,255,255,0.45); font-size: 0.72rem; display: flex; align-items: center; gap: 5px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #4caf50; display: inline-block; }
.chat-close { margin-right: auto; background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 1rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.chat-suggestions { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.chat-suggestions button { background: var(--cream2); border: 1px solid rgba(201,151,58,0.2); border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; cursor: pointer; text-align: right; transition: background 0.2s; font-family: 'Cairo', sans-serif; }
.chat-suggestions button:hover { background: var(--gold-pale); }
.msg { max-width: 82%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.bubble { padding: 9px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.65; }
.msg.bot .bubble { background: var(--cream2); color: var(--text); border-radius: 14px 14px 14px 4px; }
.msg.user .bubble { background: linear-gradient(135deg,var(--gold),var(--gold-light)); color: var(--dark); border-radius: 14px 14px 4px 14px; font-weight: 600; }
.chat-typing { display: flex; padding: 0.5rem 1rem; gap: 5px; }
.chat-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: bounce 1.4s infinite both; }
.chat-typing span:nth-child(2){animation-delay:.2s} .chat-typing span:nth-child(3){animation-delay:.4s}
.chat-input-area { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--cream2); }
.chat-input { flex: 1; border: 1.5px solid rgba(201,151,58,0.25); border-radius: 25px; padding: 9px 15px; font-size: 0.85rem; outline: none; transition: border 0.3s; }
.chat-input:focus { border-color: var(--gold); }
.chat-send { background: linear-gradient(135deg,var(--gold),var(--gold-light)); border: none; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; flex-shrink:0; }

/* ================================================================
   FOOTER
   ================================================================ */
footer { background: var(--dark); color: rgba(255,255,255,0.65); }
.footer-top { padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand .footer-logo span { font-family: 'Amiri',serif; font-size: 1.3rem; color: var(--gold); font-weight: 700; }
.footer-brand p { font-size: 0.86rem; line-height: 1.85; }
.social-links { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.25s; }
.social-links a:hover { background: rgba(201,151,58,0.25); }
.footer-col h4 { color: var(--gold); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: color 0.25s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(201,151,58,0.18); padding: 1.2rem 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ================================================================
   ADMIN
   ================================================================ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark); padding: 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar h2 { font-family: 'Amiri',serif; color: var(--gold); font-size: 1.2rem; margin-bottom: 2rem; text-align: center; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; transition: all 0.25s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(201,151,58,0.18); color: var(--gold-light); }
.admin-main { padding: 2rem; background: #f5f5f5; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-family: 'Amiri',serif; font-size: 1.8rem; }
.stats-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: 14px; padding: 1.3rem; box-shadow: 0 2px 10px rgba(0,0,0,0.07); border-right: 4px solid var(--gold); }
.stat-card .sc-num { font-size: 2rem; font-weight: 900; color: var(--dark); font-family: 'Amiri',serif; }
.stat-card .sc-label { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.data-table th { background: var(--dark); color: var(--gold); padding: 12px 16px; font-size: 0.85rem; font-weight: 700; text-align: right; }
.data-table td { padding: 11px 16px; font-size: 0.85rem; border-bottom: 1px solid #f0f0f0; color: var(--text); }
.data-table tr:hover td { background: #fafafa; }
.badge-active { background: #e8f5e9; color: #2e7d32; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.badge-inactive { background: #ffebee; color: #c62828; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.action-btns { display: flex; gap: 6px; }
.btn-edit { background: #e3f2fd; color: #1565c0; padding: 5px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; border: none; cursor: pointer; }
.btn-delete { background: #ffebee; color: #c62828; padding: 5px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; border: none; cursor: pointer; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; }
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .hero h1 { font-size: 2.8rem; }
  .hero-stats { gap: 1.5rem; }
  .nav-links { display: none; position: fixed; top: var(--nav-h); right: 0; left: 0; background: rgba(26,18,8,0.98); flex-direction: column; padding: 1rem; gap: 0; border-bottom: 2px solid var(--gold); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .info-boxes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chatbot-panel { width: calc(100vw - 2.5rem); left: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2rem; }
}
