/* ============================================================
   ADDඑக.COM – Main Stylesheet
   Dark Theme | Sri Lankan Community Hub in UAE
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-base:       #0B1426;
  --bg-surface:    #131D35;
  --bg-elevated:   #1C2B47;
  --bg-card:       #192240;
  --bg-card-hover: #1F2E55;

  --gold:          #F5A623;
  --gold-dark:     #C8860D;
  --gold-light:    #FFD166;
  --gold-subtle:   rgba(245,166,35,0.12);

  --sapphire:      #2E5E99;
  --sapphire-light:#7BA4D0;
  --mist:          #E7F0FA;

  --red:           #E53935;
  --green:         #43A047;
  --blue:          #2E86AB;

  --text-primary:  #E8EDF7;
  --text-secondary:#B0C4D8;
  --text-muted:    #6B82A0;
  --text-gold:     #F5A623;

  --border:        rgba(123,164,208,0.15);
  --border-hover:  rgba(245,166,35,0.4);
  --border-gold:   rgba(245,166,35,0.5);

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold:   0 0 20px rgba(245,166,35,0.2);

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  --transition:    0.25s ease;
  --header-h:      68px;
  --container:     1280px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Poppins', 'Noto Sans Sinhala', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--sapphire-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 { line-height: 1.2; color: var(--text-primary); }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select option { background: var(--bg-elevated); }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--gold);
  color: #000;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0B1426;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,166,35,0.4);
  color: #0B1426;
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--sapphire-light);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }

.btn-danger {
  background: var(--red);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}
.btn-danger:hover { background: #C62828; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,20,38,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo { height: 38px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}
.brand-tagline { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; }

.header-search {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--gold); }
.header-search input {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  flex: 1;
  box-shadow: none;
}
.header-search input:focus { box-shadow: none; }
.header-search button {
  background: var(--gold);
  color: #0B1426;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--gold-dark); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--gold);
  background: var(--gold-subtle);
}

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  columns: 2;
  column-gap: 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  break-inside: avoid;
}
.nav-dropdown-menu a:hover { color: var(--gold); background: var(--gold-subtle); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.user-menu { position: relative; }
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.875rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}
.user-avatar-btn:hover { border-color: var(--gold); color: var(--gold); }
.avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #0B1426;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.user-name-sm { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.5rem;
  z-index: 100;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}
.user-dropdown a:hover { color: var(--gold); background: var(--gold-subtle); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0.375rem 0; }
.text-danger { color: var(--red) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.open {
  max-height: 600px;
  padding: 1rem;
}
.mobile-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.mobile-search input { border-radius: var(--radius-full); font-size: 0.875rem; }
.mobile-search button {
  background: var(--gold);
  color: #0B1426;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav nav a {
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.mobile-nav nav a:hover { color: var(--gold); background: var(--gold-subtle); }
.mobile-nav nav hr { border: none; border-top: 1px solid var(--border); margin: 0.5rem 0; }

/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */
.pwa-banner {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.75rem 1.5rem;
}
.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}
.pwa-logo { height: 36px; width: auto; }
.pwa-banner-inner div { flex: 1; }
.pwa-banner-inner strong { display: block; color: var(--gold); font-size: 0.9rem; }
.pwa-banner-inner span { color: var(--text-muted); font-size: 0.8rem; }
.pwa-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1rem;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 1rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}
.flash-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.flash-success { background: #1B4332; border: 1px solid #43A047; color: #A5D6A7; }
.flash-danger, .flash-error { background: #3B0000; border: 1px solid var(--red); color: #FFCDD2; }
.flash-info, .flash-warning { background: #2C2200; border: 1px solid var(--gold); color: #FFE082; }
.flash-close {
  background: none; border: none; cursor: pointer;
  color: inherit; margin-left: auto; font-size: 1rem; opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #050c1a 0%, #0a1628 40%, #0d2240 80%, #091525 100%);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245,166,35,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(46,94,153,0.1) 0%, transparent 60%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(245,166,35,0.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(123,164,208,0.08) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}
.hero-title {
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero-logo-img {
  width: clamp(280px, 55vw, 620px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(245,166,35,0.35));
}
.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-subtitle::before,
.hero-subtitle::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  opacity: 0.6;
}
.hero-subtitle::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

/* Hero Search */
.hero-search { max-width: 720px; margin: 0 auto 2rem; }
.search-box {
  display: flex;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.1), var(--shadow-md);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 1rem;
  gap: 0.5rem;
}
.search-icon { color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; }
.search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  padding: 1rem 0;
  box-shadow: none;
  border-radius: 0;
}
.search-input:focus { box-shadow: none; }
.search-select-wrap {
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.search-select {
  background: transparent;
  border: none;
  padding: 1rem 2rem 1rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  min-width: 130px;
}
.search-select:focus { box-shadow: none; }
.search-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0B1426;
  border: none;
  padding: 0 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.search-btn:hover { background: var(--gold-dark); }

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}
.quick-tags span { color: var(--text-muted); font-size: 0.85rem; }
.quick-tags a {
  background: rgba(123,164,208,0.1);
  border: 1px solid rgba(123,164,208,0.2);
  color: var(--sapphire-light);
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
}
.quick-tags a:hover {
  background: var(--gold-subtle);
  border-color: var(--border-gold);
  color: var(--gold);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(28,43,71,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.stat-item { text-align: center; padding: 0 1.5rem; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ============================================================
   VALUE PROPS
   ============================================================ */
.value-props { padding: 2rem 0 3rem; }
.vp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.vp-card {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.vp-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.vp-icon { font-size: 2.5rem; margin-bottom: 0.75rem; color: var(--gold); }
.vp-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.25rem; }
.vp-card p { font-size: 0.875rem; color: var(--text-muted); }

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-item span { font-size: 1.1rem; }

/* ============================================================
   UAE MAP SECTION
   ============================================================ */
.map-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-muted); font-size: 0.95rem; }
.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}
.section-link:hover { color: var(--gold-light); }

.uae-map-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(58,122,191,0.35);
  box-shadow: 0 8px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(58,122,191,0.15);
  background: #0a1e35;
}
.uae-map { width: 100%; height: auto; display: block; }

.emirate-link { cursor: pointer; text-decoration: none; }
.emirate-path {
  transition: fill 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
  cursor: pointer;
}
.emirate-path:hover {
  fill: rgba(245,166,35,0.22) !important;
  stroke: #F5A623 !important;
  stroke-width: 2.5 !important;
  filter: url(#goldGlow);
}
.emirate-label {
  fill: #c8dff0;
  font-weight: 700;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.emirate-count {
  fill: #7baad0;
  pointer-events: none;
}

.emirate-tooltip {
  position: absolute;
  background: rgba(13,28,50,0.96);
  border: 1px solid rgba(245,166,35,0.6);
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  pointer-events: none;
  z-index: 10;
  min-width: 150px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 12px rgba(245,166,35,0.15);
  backdrop-filter: blur(8px);
}
.tooltip-name { font-weight: 700; color: var(--gold); font-size: 0.95rem; }
.tooltip-count { color: #a8c8e8; font-size: 0.82rem; margin-top: 0.2rem; }
.tooltip-hint { color: var(--text-muted); font-size: 0.72rem; margin-top: 0.3rem; }

.emirate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}
.emirate-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.emirate-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--border-gold);
  color: var(--gold);
}
.em-count {
  background: var(--gold);
  color: #0B1426;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section { padding: 4rem 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--cat-color, var(--gold));
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon { font-size: 2.25rem; margin-bottom: 0.625rem; }
.cat-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.cat-count { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   LISTINGS SECTION & CARDS
   ============================================================ */
.listings-section { padding: 3rem 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-header h2 {
  flex: 1;
  font-size: 1.5rem;
  margin: 0;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}
.featured-badge { background: rgba(245,166,35,0.15); color: var(--gold); border: 1px solid var(--border-gold); }
.boost-badge { background: rgba(46,134,171,0.15); color: var(--blue); border: 1px solid rgba(46,134,171,0.3); }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.listings-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}
.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
.listing-card.featured { border-color: rgba(245,166,35,0.4); }
.listing-card.boosted { border-color: rgba(46,134,171,0.3); }

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .card-img img { transform: scale(1.05); }
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
}

.card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.badge-featured { background: rgba(245,166,35,0.9); color: #0B1426; }
.badge-boosted { background: rgba(46,134,171,0.9); color: white; }

.card-category {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  background: rgba(11,20,38,0.85);
}

.card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }
.meta-item { font-size: 0.78rem; color: var(--text-muted); }
.card-price { font-weight: 700; color: var(--gold); font-size: 0.9rem; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Ad Cards */
.ad-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
}
.ad-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.ad-img {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.ad-img img { width: 100%; height: 100%; object-fit: cover; }
.condition-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}
.ad-body { padding: 0.875rem; }
.ad-body h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.ad-price { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.375rem; }
.ad-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

/* Jobs Grid */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.job-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.job-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.job-icon { font-size: 2rem; flex-shrink: 0; }
.job-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.job-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.job-type-badge {
  background: rgba(46,134,171,0.15);
  color: var(--blue);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Events Grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.event-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.event-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  min-width: 56px;
  flex-shrink: 0;
}
.event-day { font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.event-month { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.event-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.375rem; }
.event-info p { font-size: 0.8rem; color: var(--text-muted); }
.free-badge { background: rgba(67,160,71,0.15); color: var(--green); padding: 0.2rem 0.5rem; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; }
.price-badge { background: rgba(245,166,35,0.15); color: var(--gold); padding: 0.2rem 0.5rem; border-radius: var(--radius-full); font-size: 0.72rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-surface);
}
.hiw-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.hiw-card {
  flex: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hiw-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #0B1426;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.hiw-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.hiw-divider {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, #0B1426 0%, #0d2240 50%, #0B1426 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,166,35,0.08) 0%, transparent 70%);
}
.cta-section .container { position: relative; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cta-whatsapp { font-size: 0.9rem; color: var(--text-muted); }
.cta-whatsapp a { color: var(--green); font-weight: 600; }

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #050c1a 0%, #0B1426 50%, #091525 100%);
}
.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo { height: 52px; margin: 0 auto 1rem; }
.auth-brand h2 { font-size: 1.75rem; font-weight: 800; color: var(--gold); letter-spacing: -1px; }
.auth-brand p { color: var(--text-muted); font-size: 0.875rem; }

.auth-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}
.auth-tab.active {
  background: var(--gold);
  color: #0B1426;
}

.form-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.375rem; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.form-hint strong { color: var(--gold); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-control { width: 100%; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.checkbox-label input { width: auto; margin-top: 2px; flex-shrink: 0; }

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.otp-box {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
}
.otp-box:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.2);
}

.auth-message {
  text-align: center;
  font-size: 0.875rem;
  min-height: 20px;
  margin-top: 0.75rem;
}
.auth-message-success { color: var(--green); }
.auth-message-error { color: var(--red); }

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.auth-footer p { margin-bottom: 0.25rem; }

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */
.listing-page { padding: 2rem 0 4rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--sapphire-light); }
.breadcrumb a:hover { color: var(--gold); }

.listing-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.listing-gallery { margin-bottom: 1.5rem; }
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}
.gallery-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
}
.gallery-thumbs { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb:hover { border-color: var(--sapphire-light); }

.listing-cat-tag {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}
.listing-title {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.875rem;
}
.listing-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.price-chip { color: var(--gold); border-color: var(--border-gold); background: var(--gold-subtle); }
.free-chip { color: var(--green); border-color: rgba(67,160,71,0.3); background: rgba(67,160,71,0.1); }

.listing-description { margin-bottom: 1.5rem; }
.listing-description h3 { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.75rem; }
.listing-description p { color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; }

.listing-detail-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}
.detail-icon { font-size: 1.5rem; flex-shrink: 0; }
.listing-detail-item strong { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.listing-detail-item p { color: var(--text-secondary); font-size: 0.9rem; }
.listing-detail-item a { color: var(--sapphire-light); }

.listing-actions-bar { margin-top: 1rem; }

/* Contact Card */
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  margin-bottom: 1.25rem;
}
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.trust-note {
  background: rgba(67,160,71,0.1);
  border: 1px solid rgba(67,160,71,0.3);
  color: var(--green);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}
.contact-btn span { font-size: 0.8rem; font-weight: 400; opacity: 0.85; margin-top: 0.25rem; }
.call-btn { background: rgba(67,160,71,0.15); border: 1px solid rgba(67,160,71,0.4); color: var(--green); }
.call-btn:hover { background: rgba(67,160,71,0.25); color: var(--green); }
.whatsapp-btn { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.3); color: #25D366; }
.whatsapp-btn:hover { background: rgba(37,211,102,0.2); color: #25D366; }
.email-btn { background: rgba(46,134,171,0.1); border: 1px solid rgba(46,134,171,0.3); color: var(--blue); }
.email-btn:hover { background: rgba(46,134,171,0.2); color: var(--blue); }
.no-contact { color: var(--text-muted); font-size: 0.875rem; text-align: center; padding: 1rem; }
.share-section { margin-top: 1rem; }
.share-section p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.625rem; }
.share-buttons { display: flex; gap: 0.5rem; }
.share-btn {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn:hover { border-color: var(--border-gold); color: var(--gold); }

.poster-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.poster-card h4 { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.875rem; }
.poster-info { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.875rem; }
.poster-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.poster-avatar-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #0B1426;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  flex-shrink: 0;
}
.poster-info strong { display: block; font-size: 0.95rem; font-weight: 600; }
.poster-info small { color: var(--text-muted); font-size: 0.8rem; }

.related-section { margin-top: 3rem; }
.related-section h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ============================================================
   PROFILE PAGES
   ============================================================ */
.profile-page { padding: 3rem 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-page { padding: 2rem 0 4rem; }
.cat-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.cat-hero h1 { font-size: 2rem; font-weight: 700; display: flex; align-items: center; gap: 0.75rem; }
.cat-hero p { color: var(--text-muted); margin-top: 0.5rem; }

.filters-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.filter-group select { width: auto; padding: 0.5rem 0.875rem; font-size: 0.875rem; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: #0B1426; border-color: var(--gold); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page { padding: 2rem 0 4rem; }
.search-header { margin-bottom: 2rem; }
.search-header h1 { font-size: 1.5rem; font-weight: 700; }
.search-meta { color: var(--text-muted); font-size: 0.9rem; }
.search-meta strong { color: var(--gold); }

/* ============================================================
   EMIRATE PAGE
   ============================================================ */
.emirate-page { padding: 2rem 0 4rem; }
.emirate-hero {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-bottom: 2rem;
}
.emirate-hero h1 { font-size: 2.25rem; font-weight: 800; color: var(--gold); }
.emirate-stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.emirate-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  text-align: center;
  min-width: 100px;
}
.emirate-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.emirate-stat span { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.empty-state a { color: var(--gold); font-weight: 600; }

/* ============================================================
   POST AD / FORM PAGES
   ============================================================ */
.post-page { padding: 2rem 0 4rem; }
.post-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.post-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.375rem; }
.post-card .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.form-section { margin-bottom: 2rem; }
.form-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sapphire-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.image-upload-area:hover { border-color: var(--gold); }
.image-upload-area input[type="file"] { display: none; }
.upload-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.upload-text { color: var(--text-muted); font-size: 0.875rem; }
.upload-text strong { color: var(--gold); cursor: pointer; }
.img-preview-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.img-preview {
  width: 90px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-brand .footer-logo { height: 44px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-links a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-links a:hover { border-color: var(--gold); transform: translateY(-2px); }

.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.375rem; }
.footer-legal { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-legal span { color: var(--sapphire-light); font-weight: 600; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pending { background: rgba(245,166,35,0.15); color: var(--gold); }
.status-approved { background: rgba(67,160,71,0.15); color: var(--green); }
.status-rejected { background: rgba(229,57,53,0.15); color: var(--red); }
.status-archived { background: rgba(107,130,160,0.15); color: var(--text-muted); }
.status-flagged { background: rgba(229,57,53,0.2); color: var(--red); border: 1px solid rgba(229,57,53,0.3); }

/* ============================================================
   OFFLINE / ERROR PAGES
   ============================================================ */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-page .error-icon { font-size: 5rem; margin-bottom: 1.5rem; }
.error-page h1 { font-size: 3rem; font-weight: 800; color: var(--gold); }
.error-page p { color: var(--text-muted); margin: 1rem 0 2rem; font-size: 1.05rem; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--sapphire); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .header-search { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .vp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .hero { min-height: 500px; padding: 3.5rem 0 3rem; }
  .hero-logo-img { width: clamp(220px, 70vw, 480px); }
  .search-select-wrap { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; padding: 0.875rem 1.25rem; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 0.75rem; }
  .vp-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { order: -1; }
  .contact-card { position: static; }
  .hiw-grid { flex-direction: column; }
  .hiw-divider { transform: rotate(90deg); }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-brand { display: none; }
  .footer-top { padding: 2rem 1rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero-logo-img { width: clamp(200px, 80vw, 380px); }
  .hero-badge { font-size: 0.75rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .listings-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; }
  .otp-box { width: 44px; height: 52px; font-size: 1.25rem; }
  .footer-links { grid-template-columns: 1fr; }
  .emirate-buttons { gap: 0.5rem; }
  .emirate-btn { font-size: 0.8rem; padding: 0.5rem 0.875rem; }
  .post-card { padding: 1.5rem; }
  .uae-map-wrapper { border-radius: var(--radius-lg); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .pwa-banner { display: none; }
  body { background: white; color: black; }
}

/* ============================================================
   EMBASSY & CONSULATE SECTION
   ============================================================ */
.embassy-section {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.embassy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.embassy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.embassy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sapphire));
}
.embassy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.embassy-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.3);
}
.embassy-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.embassy-emoji { font-size: 2.5rem; }
.embassy-info h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.embassy-type { font-size: 0.8rem; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; }
.embassy-emirate { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.embassy-links { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.embassy-link-btn {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.official-btn {
  background: var(--gold);
  color: #0B1426;
}
.official-btn:hover { background: var(--gold-dark); color: #0B1426; }
.listing-btn {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.listing-btn:hover { background: var(--gold-subtle); }

/* ============================================================
   OB/OG ASSOCIATIONS SECTION
   ============================================================ */
.associations-section {
  padding: 3rem 0;
  background: var(--bg-base);
}
.associations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.assoc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.assoc-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.assoc-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.assoc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.assoc-emoji { font-size: 2rem; }
.assoc-school { font-size: 0.75rem; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; margin-bottom: -0.25rem; }
.assoc-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.assoc-type-badge {
  display: inline-block;
  background: var(--sapphire);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.assoc-emirate { font-size: 0.75rem; color: var(--text-muted); }
.assoc-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0.35rem 0.875rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.assoc-link:hover { background: var(--gold-subtle); color: var(--gold); }

/* ============================================================
   EVENT CALENDAR
   ============================================================ */
.calendar-section {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.event-calendar-wrap {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.cal-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.cal-nav-btn:hover { background: var(--gold-subtle); border-color: var(--gold); }
.cal-month-label { font-size: 1.05rem; font-weight: 700; color: var(--gold); }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.cal-weekdays div {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.5rem;
  gap: 0.25rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  min-height: 40px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  gap: 2px;
}
.cal-day.empty { background: transparent; }
.cal-day-num { font-size: 0.875rem; font-weight: 500; line-height: 1; }
.cal-day.cal-today { background: var(--gold-subtle); color: var(--gold); }
.cal-day.cal-today .cal-day-num { font-weight: 700; color: var(--gold); }
.cal-day.cal-has-events { background: rgba(46,94,153,0.2); cursor: pointer; }
.cal-day.cal-has-events:hover { background: rgba(46,94,153,0.4); border: 1px solid var(--sapphire); }
.cal-dot {
  background: var(--sapphire);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cal-day.cal-today.cal-has-events { background: rgba(245,166,35,0.15); }
.cal-day.cal-today .cal-dot { background: var(--gold); color: #0B1426; }
.cal-events-panel {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  background: var(--bg-elevated);
}
.cal-events-panel h4 { font-size: 0.95rem; color: var(--gold); margin-bottom: 0.75rem; }
.cal-event-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.cal-event-item:hover { background: var(--gold-subtle); border-color: var(--gold); }
.cal-event-time { font-size: 0.75rem; font-weight: 600; color: var(--gold); min-width: 40px; }
.cal-event-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); flex: 1; }
.cal-event-venue { font-size: 0.75rem; color: var(--text-muted); }
.cal-event-price { font-size: 0.75rem; font-weight: 600; color: var(--green); }

/* ============================================================
   COMMUNITY GROUPS SECTION
   ============================================================ */
.community-groups-section {
  padding: 3rem 0;
  background: var(--bg-base);
}
.community-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.cgroup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.cgroup-card:hover { border-color: var(--sapphire); transform: translateY(-2px); }
.cgroup-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.75rem;
}
.cgroup-logo img { width: 100%; height: 100%; object-fit: cover; }
.cgroup-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.cgroup-info p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.cgroup-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sapphire-light);
  padding: 0.35rem 0.875rem;
  border: 1px solid rgba(123,164,208,0.3);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cgroup-link:hover { background: rgba(46,94,153,0.15); color: var(--sapphire-light); }

/* ============================================================
   REPORT BAR (listing page)
   ============================================================ */
.report-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.report-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.report-link-btn:hover { color: var(--red); background: rgba(229,57,53,0.1); }
.report-bar { flex-wrap: wrap; }
.report-inline-panel {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.2s ease;
}
.report-panel-inner h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
.report-panel-fields { display: flex; flex-direction: column; gap: 0.625rem; max-width: 480px; }
.report-panel-actions { display: flex; gap: 0.625rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Embassy placeholder cards */
.embassy-card-placeholder { opacity: 0.55; }
.embassy-coming-soon {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.35rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* Empty-state messages for associations / community groups */
.assoc-empty-msg, .cgroup-empty-msg {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.assoc-empty-msg span, .cgroup-empty-msg span { font-size: 2.5rem; opacity: 0.4; }
.assoc-empty-msg p, .cgroup-empty-msg p { line-height: 1.6; }

/* ============================================================
   REGISTRATION — ACCOUNT TYPE BUTTONS
   ============================================================ */
.account-type-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.acct-type-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.acct-type-btn:hover { border-color: var(--gold); color: var(--gold); }
.acct-type-btn.active {
  border-color: var(--gold);
  background: var(--gold-subtle);
  color: var(--gold);
}

/* ============================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================================ */
@media (max-width: 768px) {
  .embassy-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .embassy-links { flex-direction: column; }
  .associations-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .community-groups-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cal-day { font-size: 0.75rem; min-height: 36px; }
  .cal-day-num { font-size: 0.75rem; }
  .cal-weekdays div { font-size: 0.65rem; padding: 0.375rem 0.25rem; }
  .cal-grid { padding: 0.25rem; gap: 0.15rem; }
  .account-type-btns { flex-direction: column; }
  .acct-type-btn { flex: none; }
  .report-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .listing-layout { gap: 1rem; }
  .post-card { padding: 1.25rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .search-box { flex-direction: column; gap: 0; border-radius: var(--radius-md); }
  .search-input-wrap { border-radius: var(--radius-md) var(--radius-md) 0 0; border-bottom: 1px solid var(--border); }
  .search-btn { border-radius: 0 0 var(--radius-md) var(--radius-md); width: 100%; padding: 0.875rem; }
  .quick-tags { flex-wrap: wrap; gap: 0.375rem; }
  .section-header h2 { font-size: 1.25rem; }
  .vp-card { padding: 1rem; }
  .auth-card { margin: 1rem; }
  .emirate-buttons { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .embassy-card { padding: 1.25rem 1rem; }
  .assoc-card { padding: 1rem; }
  .cal-day { min-height: 30px; }
  .cal-dot { min-width: 14px; height: 14px; font-size: 0.55rem; }
  .hero-stats { gap: 0.5rem; }
  .stat-item { text-align: center; padding: 0 0.5rem; }
  .stat-num { font-size: 1.25rem; }
  .hiw-card { padding: 1.5rem 1rem; }
}
