/*=================================
    MOROCCO TRAVEL LEADS - Lead Generation Platform
==================================*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #E8772E;
  --primary-dark: #C55A1A;
  --primary-light: #F4A460;
  --secondary: #1CA8CB;
  --gold: #E9C46A;
  --dark: #1A1A2E;
  --dark2: #16213E;
  --title: #2D3436;
  --body: #636E72;
  --smoke: #F8F9FA;
  --white: #FFFFFF;
  --border: #E8E8F0;
  --success: #27AE60;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== LANDING PAGE ===== */
body.landing {
  background: var(--white);
}

/* Header */
.landing-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.landing-header.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.landing-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
}

.landing-logo span { color: var(--primary); }

.landing-logo .icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.header-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.header-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,119,46,0.4); }

/* Hero */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark), var(--dark2), var(--primary-dark));
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232,119,46,0.12), transparent);
  border-radius: 50%;
}

.landing-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(28,168,203,0.08), transparent);
  border-radius: 50%;
}

.landing-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.hero-feature .check {
  width: 24px;
  height: 24px;
  background: rgba(39,174,96,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Lead Form */
.lead-form-wrapper {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 40px;
}

.lead-form-wrapper h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
  text-align: center;
}

.lead-form-wrapper .subtitle {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(232,119,46,0.15);
}

.form-group select option { background: var(--dark); color: white; }

.form-group textarea {
  height: 80px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submit-lead-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}

.submit-lead-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,119,46,0.4);
}

.submit-lead-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  margin-top: 16px;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-message.show { display: block; }

.success-message .icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.success-message h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.success-message p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

/* Stats Strip */
.stats-strip {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Trusted Section */
.trusted-section {
  padding: 80px 0;
  background: var(--smoke);
  text-align: center;
}

.trusted-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--title);
  margin-bottom: 12px;
}

.trusted-section h2 span { color: var(--primary); }

.trusted-section > p {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--body);
}

.leads-preview {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.leads-preview-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr;
  gap: 12px;
  padding: 16px 20px;
  background: var(--smoke);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--title);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.leads-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--body);
  animation: fadeInRow 0.3s ease;
}

.leads-preview-row:last-child { border-bottom: none; }
.leads-preview-row .country { font-weight: 600; }
.leads-preview-row .flag { font-size: 1.1rem; }

@keyframes fadeInRow {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.load-more-btn {
  margin-top: 24px;
  padding: 12px 32px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== DASHBOARD ===== */
body.dashboard {
  background: var(--smoke);
}

.dash-header {
  background: var(--dark);
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-header .dash-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.dash-header .logo span { color: var(--primary); }

.dash-stats {
  display: flex;
  gap: 24px;
}

.dash-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.dash-stat:last-child { border-right: none; }

.dash-stat .num {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
  color: var(--primary);
}

.dash-stat .lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-actions {
  display: flex;
  gap: 10px;
}

.dash-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.dash-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.dash-btn.primary:hover { transform: translateY(-1px); }

.dash-btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

.dash-btn.outline:hover { background: rgba(255,255,255,0.1); }

.dash-main { padding: 40px 0; }

.dash-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-toolbar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--title);
}

.dash-toolbar h2 span { color: var(--primary); }

.dash-search {
  display: flex;
  gap: 8px;
}

.dash-search input {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  width: 250px;
  outline: none;
  transition: var(--transition);
}

.dash-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,119,46,0.1);
}

.dash-table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  background: var(--smoke);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--title);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.dash-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--body);
  border-bottom: 1px solid var(--border);
}

.dash-table tr:hover td { background: rgba(232,119,46,0.02); }

.dash-table .email-cell {
  color: var(--primary);
  font-weight: 500;
}

.dash-table .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.dash-table .badge.new { background: rgba(39,174,96,0.1); color: var(--success); }
.dash-table .badge.contacted { background: rgba(232,119,46,0.1); color: var(--primary); }

.export-btn {
  padding: 10px 20px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.export-btn:hover { opacity: 0.9; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-top: 1px solid var(--border);
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--body);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .page-info {
  font-size: 0.85rem;
  color: var(--body);
  padding: 0 12px;
}

/* No results */
.no-results {
  padding: 60px 20px;
  text-align: center;
}

.no-results .icon { font-size: 3rem; margin-bottom: 12px; }
.no-results h3 { color: var(--title); margin-bottom: 8px; }
.no-results p { color: var(--body); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .landing-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 2.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .leads-preview-header,
  .leads-preview-row { grid-template-columns: 1fr 1fr 1fr; }
  .leads-preview-header :nth-child(4),
  .leads-preview-row :nth-child(4),
  .leads-preview-header :nth-child(5),
  .leads-preview-row :nth-child(5) { display: none; }
  .dash-stat .num { font-size: 1.1rem; }
}

@media (max-width: 767px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-features { grid-template-columns: 1fr; }
  .lead-form-wrapper { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item .number { font-size: 2rem; }
  
  .dash-stats { display: none; }
  .dash-toolbar { flex-direction: column; align-items: stretch; }
  .dash-search input { width: 100%; }
  .dash-table th, .dash-table td { padding: 10px 8px; font-size: 0.78rem; }
  .dash-table th:nth-child(4),
  .dash-table td:nth-child(4),
  .dash-table th:nth-child(5),
  .dash-table td:nth-child(5) { display: none; }
  
  .trusted-section h2 { font-size: 1.6rem; }
}