/* ============================================================
   KenyaConnect Australia - Main Stylesheet
   Aesthetic: Warm African-inspired luxury meets modern AU
   ============================================================ */

:root {
  --green: #006600;
  --green-light: #00a300;
  --red: #bb0000;
  --gold: #e2b84b;
  --gold-dark: #c49a2a;
  --dark: #0f1923;
  --dark-2: #162232;
  --dark-3: #1e3048;
  --text: #e8e8e8;
  --text-muted: #8a9db5;
  --white: #ffffff;
  --card-bg: #162232;
  --border: rgba(226,184,75,0.15);
  --radius: 12px;
  --shadow: 0 8px 40px rgba(0,0,0,0.4);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(15,25,35,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--white); white-space: nowrap;
}
.logo-icon { font-size: 1.5rem; }
.logo-text strong { color: var(--gold); }
.logo-text em { color: var(--green-light); font-style: normal; font-size: 0.85rem; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover { background: var(--dark-3); color: var(--white); }
.nav-links a i { font-size: 0.8rem; }
.nav-divider { width: 1px; height: 24px; background: var(--border); }
.btn-nav-login {
  border: 1px solid var(--border) !important;
  color: var(--gold) !important;
}
.btn-nav-register {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
}
.btn-admin { color: var(--gold) !important; background: rgba(226,184,75,0.1) !important; }
.btn-logout { color: var(--red) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

.nav-avatar a {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px !important;
  background: var(--dark-3) !important;
  border-radius: 50px !important;
}
.nav-avatar img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold);
}
.nav-notify { position: relative; }
.badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Flash Messages ---- */
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; margin: 0; font-size: 0.9rem;
  position: relative;
}
.flash-success { background: #0a3d1f; color: #4ade80; border-bottom: 2px solid #22c55e; }
.flash-error   { background: #3d0a0a; color: #f87171; border-bottom: 2px solid #ef4444; }
.flash-info    { background: #0a2040; color: #60a5fa; border-bottom: 2px solid #3b82f6; }
.flash-close {
  margin-left: auto; background: none; border: none;
  color: inherit; font-size: 1.2rem; cursor: pointer; opacity: 0.7;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f1923 0%, #162232 50%, #0f2820 100%);
  padding: 100px 24px 80px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 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='%23e2b84b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(226,184,75,0.12); border: 1px solid rgba(226,184,75,0.3);
  color: var(--gold); padding: 6px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 24px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #e2b84b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px;
  max-width: 580px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.92rem;
  font-weight: 600; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--gold); color: var(--dark);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(226,184,75,0.3); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-light); }
.btn-red { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Search Bar ---- */
.search-section {
  background: var(--dark-2); padding: 32px 24px;
  border-bottom: 1px solid var(--border);
}
.search-form {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px; align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.form-control {
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text); padding: 11px 16px; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem;
  transition: var(--transition); width: 100%;
}
.form-control:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226,184,75,0.1);
}
.form-control option { background: var(--dark-3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ---- Sections ---- */
.section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, #e2b84b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: rgba(226,184,75,0.1);
  color: var(--gold); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 4px; margin-bottom: 12px;
}

/* ---- Cards ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(226,184,75,0.3); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.card-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.card-meta {
  display: flex; gap: 16px; margin-top: 14px;
  font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap;
}
.card-meta span { display: flex; align-items: center; gap: 5px; }
.card-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* ---- Stat Cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
}
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--gold); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.stat-icon { font-size: 2rem; margin-bottom: 12px; }

/* ---- Profile / Member Cards ---- */
.member-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: var(--transition);
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-avatar {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); margin: 0 auto 14px;
  display: block;
}
.member-name { font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.member-state { color: var(--gold); font-size: 0.82rem; }
.member-badge {
  display: inline-block; padding: 2px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; margin-top: 8px;
}
.badge-verified { background: rgba(0,163,0,0.15); color: #4ade80; }
.badge-unverified { background: rgba(255,165,0,0.12); color: orange; }

/* ---- Event Cards ---- */
.event-date-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--dark);
  padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.8rem;
}
.price-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(15,25,35,0.9); color: var(--white);
  padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 0.82rem;
}
.free-badge { background: rgba(0,163,0,0.9) !important; color: #fff !important; }

/* ---- Contribution Progress ---- */
.progress-bar {
  height: 8px; background: var(--dark-3); border-radius: 50px;
  overflow: hidden; margin: 12px 0;
}
.progress-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 0.5s ease;
}
.progress-stats { display: flex; justify-content: space-between; font-size: 0.8rem; }
.raised { color: var(--gold); font-weight: 700; }
.target { color: var(--text-muted); }

/* ---- Forms ---- */
.form-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 40px 20px;
  background: radial-gradient(ellipse at top, #162232 0%, #0f1923 60%);
}
.form-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 540px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  margin-bottom: 6px; color: var(--white);
}
.form-card p.sub { color: var(--text-muted); margin-bottom: 32px; font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem;
}

/* ---- Dashboard ---- */
.dashboard-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}
.sidebar {
  background: var(--dark-2); border-right: 1px solid var(--border);
  padding: 32px 0;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 28px; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  color: var(--white); background: var(--dark-3);
  border-right: 3px solid var(--gold);
}
.sidebar-menu li a i { width: 18px; text-align: center; }
.sidebar-section {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 20px 28px 8px;
}
.main-content { padding: 36px; background: var(--dark); overflow-x: hidden; }
.page-title {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 800;
  color: var(--white); margin-bottom: 6px;
}
.page-sub { color: var(--text-muted); margin-bottom: 32px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%; border-collapse: collapse;
  background: var(--card-bg); font-size: 0.88rem;
}
thead th {
  background: var(--dark-3); color: var(--gold); font-weight: 700;
  padding: 14px 16px; text-align: left; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:hover { background: rgba(226,184,75,0.04); }
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}
.status-active, .status-approved { background: rgba(74,222,128,0.1); color: #4ade80; }
.status-pending { background: rgba(255,165,0,0.12); color: orange; }
.status-suspended, .status-rejected { background: rgba(248,113,113,0.12); color: #f87171; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: 8px;
  font-size: 0.88rem; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 700; }

/* ---- Modals ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; max-width: 560px; width: 100%;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer;
}
.modal h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }

/* ---- Alert ---- */
.alert {
  padding: 14px 18px; border-radius: 10px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem;
}
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }
.alert-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25); color: #4ade80; }
.alert-warning { background: rgba(255,165,0,0.1); border: 1px solid rgba(255,165,0,0.3); color: orange; }
.alert-danger { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: #f87171; }

/* ---- Category Icons ---- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.category-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 16px; text-align: center;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; color: var(--text);
}
.category-card:hover { border-color: var(--gold); background: var(--dark-3); transform: translateY(-3px); }
.category-card i { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; display: block; }
.category-card span { font-size: 0.82rem; font-weight: 500; }

/* ---- Footer ---- */
.footer {
  background: var(--dark-2); border-top: 1px solid var(--border);
  padding: 60px 24px 0;
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--white); margin-bottom: 16px;
}
.footer-logo strong { color: var(--gold); }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--dark-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem; transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.footer-links h4 { color: var(--white); font-size: 0.92rem; font-weight: 700; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--text-muted); font-size: 0.86rem; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--gold); padding-left: 6px; }
.footer-bottom {
  text-align: center; padding: 24px; margin-top: 48px;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.84rem;
}

/* ---- Service Detail Page ---- */
.service-header {
  background: var(--dark-2); padding: 48px 24px;
  border-bottom: 1px solid var(--border);
}
.service-header-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; gap: 32px; align-items: center;
}
.service-logo {
  width: 100px; height: 100px; border-radius: 16px;
  object-fit: cover; border: 2px solid var(--border);
  flex-shrink: 0;
}
.featured-star { color: var(--gold); margin-right: 4px; }

/* ---- Singles/Dating ---- */
.dating-card { position: relative; overflow: hidden; }
.dating-card .card-img { height: 260px; }
.dating-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 24px 20px 16px;
}
.dating-name { font-weight: 700; font-size: 1.05rem; color: #fff; }
.dating-info { color: rgba(255,255,255,0.7); font-size: 0.82rem; }
.dating-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.btn-like { background: rgba(255,255,255,0.9); color: var(--red); }
.btn-like:hover { background: var(--red); color: #fff; transform: scale(1.1); }
.btn-msg { background: rgba(255,255,255,0.9); color: var(--dark); }
.btn-msg:hover { background: var(--gold); color: var(--dark); transform: scale(1.1); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark-2); padding: 16px; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .search-form { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .footer-container { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main-content { padding: 20px; }
}

/* ---- Utility ---- */
.text-gold { color: var(--gold); }
.text-green { color: var(--green-light); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; }
.gap-2 { gap: 16px; } .flex-wrap { flex-wrap: wrap; }
.container { max-width: 1200px; margin: 0 auto; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ---- Page Loader ---- */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 20px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
