/* =============================================
   زولك — Main Stylesheet
   Font: Cairo (primary UI) + Tajawal (headings)
   Design: Modern Arabic, premium dark/light
============================================= */

/* ---- CSS VARIABLES ---- */
:root {
  --clr-primary:      #2563EB;
  --clr-primary-dark: #1D4ED8;
  --clr-accent:       #7C3AED;
  --clr-accent-light: #8B5CF6;
  --clr-gold:         #C8952A;
  --clr-gold-light:   #E8B84B;
  --clr-success:      #10B981;
  --clr-warning:      #F59E0B;
  --clr-danger:       #EF4444;
  --clr-info:         #06B6D4;

  /* Light theme */
  --bg-base:          #F8FAFC;
  --bg-surface:       #FFFFFF;
  --bg-surface-2:     #F1F5F9;
  --bg-surface-3:     #E2E8F0;
  --bg-overlay:       rgba(255,255,255,0.85);
  --border-color:     #E2E8F0;
  --border-subtle:    #F1F5F9;

  --text-primary:     #0F172A;
  --text-secondary:   #475569;
  --text-muted:       #94A3B8;
  --text-inverse:     #FFFFFF;

  --shadow-sm:        0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:        0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:        0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:        0 25px 60px rgba(0,0,0,.15);

  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --radius-full:      9999px;

  --nav-height:       68px;
  --transition:       0.22s cubic-bezier(.4,0,.2,1);
}

/* Dark theme */
[data-theme="dark"], .dark-mode {
  --bg-base:          #0B1120;
  --bg-surface:       #111827;
  --bg-surface-2:     #1F2937;
  --bg-surface-3:     #374151;
  --bg-overlay:       rgba(17,24,39,0.92);
  --border-color:     #1F2937;
  --border-subtle:    #111827;

  --text-primary:     #F1F5F9;
  --text-secondary:   #94A3B8;
  --text-muted:       #475569;

  --shadow-sm:        0 1px 3px rgba(0,0,0,.3);
  --shadow-md:        0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:        0 10px 40px rgba(0,0,0,.5);
  --shadow-xl:        0 25px 60px rgba(0,0,0,.6);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =============================================
   NAVBAR
============================================= */
.z-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition);
}

.z-navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.z-navbar-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 16px;
}

.z-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.z-brand-logo { flex-shrink: 0; }

.z-brand-name {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.z-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.z-nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  text-decoration: none;
}

.z-nav-link:hover, .z-nav-link.active {
  color: var(--clr-primary);
  background: rgba(37,99,235,0.08);
}

.z-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

[dir="rtl"] .z-nav-actions { margin-right: 0; margin-left: auto; }

.z-btn-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.z-btn-icon:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(37,99,235,0.06);
}

/* Avatar */
.z-avatar-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--clr-primary);
  background: var(--bg-surface-2);
  cursor: pointer;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}

.z-avatar-btn::after { display: none; }

.z-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.z-avatar-initials {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--clr-primary);
}

/* Dropdown */
.z-dropdown {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
}

.z-dropdown .dropdown-item {
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  transition: all var(--transition);
}

.z-dropdown .dropdown-item:hover {
  background: var(--bg-surface-2);
  color: var(--clr-primary);
}

.z-dropdown-header {
  padding: 8px 12px 4px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

/* Mobile Menu */
.z-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 12px 0;
}

.z-mobile-menu.open { display: flex; }

.z-mobile-link {
  padding: 12px 24px;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border-right: 3px solid transparent;
}

.z-mobile-link:hover {
  background: var(--bg-surface-2);
  border-right-color: var(--clr-primary);
  color: var(--clr-primary);
  padding-right: 28px;
}

/* =============================================
   BUTTONS
============================================= */
.z-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.z-btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.z-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
  color: #fff;
}

.z-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.z-btn-ghost:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(37,99,235,0.04);
}

.z-btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.z-btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
}

.z-btn-danger {
  background: var(--clr-danger);
  color: #fff;
  border-color: transparent;
}

.z-btn-sm { padding: 7px 16px; font-size: 0.84rem; }
.z-btn-lg { padding: 14px 32px; font-size: 1rem; }

.z-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* =============================================
   FORMS
============================================= */
.z-form-group {
  margin-bottom: 20px;
}

.z-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.z-label .required { color: var(--clr-danger); margin-right: 2px; }

.z-input, .z-select, .z-textarea {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.z-input:focus, .z-select:focus, .z-textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: var(--bg-surface);
}

.z-input::placeholder { color: var(--text-muted); }
.z-textarea { resize: vertical; min-height: 110px; }

.z-input-icon {
  position: relative;
}

.z-input-icon .z-input {
  padding-right: 44px;
}

.z-input-icon .z-icon {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.z-form-error {
  font-size: 0.82rem;
  color: var(--clr-danger);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.z-input.is-invalid { border-color: var(--clr-danger); }
.z-input.is-valid   { border-color: var(--clr-success); }

/* Password toggle */
.z-password-wrap { position: relative; }
.z-password-wrap .z-input { padding-left: 44px; }
.z-password-toggle {
  position: absolute;
  top: 50%; left: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Checkbox & Radio */
.z-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.z-check input[type="checkbox"],
.z-check input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* =============================================
   CARDS
============================================= */
.z-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.z-card:hover { box-shadow: var(--shadow-md); }
.z-card-body { padding: 24px; }
.z-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.z-card-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); }

/* Profile card */
.z-profile-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.z-profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.z-profile-card .z-cover {
  height: 100px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  position: relative;
}

.z-profile-card .z-logo {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  border: 3px solid var(--bg-surface);
  background: var(--bg-surface-2);
  object-fit: cover;
  position: absolute;
  bottom: -28px; right: 20px;
  box-shadow: var(--shadow-md);
}

.z-profile-card .z-logo-placeholder {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  border: 3px solid var(--bg-surface);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  position: absolute;
  bottom: -28px; right: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.z-profile-card .z-card-body {
  padding-top: 36px;
}

/* =============================================
   BADGES
============================================= */
.z-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.z-badge-primary { background: rgba(37,99,235,0.12); color: var(--clr-primary); }
.z-badge-success { background: rgba(16,185,129,0.12); color: var(--clr-success); }
.z-badge-warning { background: rgba(245,158,11,0.12); color: var(--clr-warning); }
.z-badge-danger  { background: rgba(239,68,68,0.12);  color: var(--clr-danger); }
.z-badge-accent  { background: rgba(124,58,237,0.12); color: var(--clr-accent); }
.z-badge-muted   { background: var(--bg-surface-2);   color: var(--text-muted); }

/* =============================================
   ALERTS / FLASH
============================================= */
.z-flash-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 320px;
  max-width: 500px;
  width: 90vw;
}

.z-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}

.z-flash-close {
  margin-right: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}

.z-flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.z-flash-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
.z-flash-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.z-flash-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

[data-theme="dark"] .z-flash-success { background: #064E3B; color: #A7F3D0; border-color: #065F46; }
[data-theme="dark"] .z-flash-error   { background: #7F1D1D; color: #FCA5A5; border-color: #991B1B; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SECTIONS & LAYOUT
============================================= */
main { padding-top: var(--nav-height); min-height: 80vh; }

.z-section {
  padding: 80px 0;
}

.z-section-sm { padding: 48px 0; }
.z-section-lg { padding: 120px 0; }

.z-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.z-section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

.z-gradient-text {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   HERO
============================================= */
.z-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: var(--bg-base);
}

.z-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%,
      rgba(37,99,235,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 60%,
      rgba(124,58,237,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 85% 70%,
      rgba(200,149,42,0.05) 0%, transparent 55%);
}

.z-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle, var(--border-color) 1px, transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.45;
  pointer-events: none;
}

.z-hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: heroFloat 6s ease-in-out infinite;
}
.z-hero-shape-1 {
  width: 320px; height: 320px;
  top: -80px; left: -80px;
  background: radial-gradient(circle,
    rgba(37,99,235,0.07) 0%, transparent 70%);
  animation-delay: 0s;
}
.z-hero-shape-2 {
  width: 200px; height: 200px;
  bottom: 40px; right: -40px;
  background: radial-gradient(circle,
    rgba(124,58,237,0.06) 0%, transparent 70%);
  animation-delay: 3s;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

.z-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.z-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 28px;
  transition: all var(--transition);
}
.z-hero-tag:hover {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.30);
}
.z-hero-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: tagPulse 1.8s ease-in-out infinite;
}
@keyframes tagPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}

.z-hero-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.z-hero-title .z-hero-highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg,
    var(--clr-primary) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.z-hero-title .z-hero-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--clr-primary), var(--clr-accent));
  opacity: 0.35;
}

.z-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 auto 40px;
  max-width: 560px;
  line-height: 1.8;
}

.z-hero-search-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.09),
              0 4px 16px rgba(0,0,0,.05);
  max-width: 680px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: box-shadow var(--transition);
}
.z-hero-search-card:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10),
              0 20px 60px rgba(0,0,0,.09);
}

.z-hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.97rem;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}
.z-hero-search-input::placeholder { color: var(--text-muted); }

.z-hero-search-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
  flex-shrink: 0;
}

.z-hero-city-select {
  border: none;
  background: transparent;
  padding: 13px 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  min-width: 110px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.z-hero-search-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg,
    var(--clr-primary), var(--clr-accent));
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.z-hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37,99,235,.45);
}

.z-hero-trending {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto 48px;
}

.z-hero-trending-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.z-hero-trend-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
}
.z-hero-trend-tag:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(37,99,235,0.05);
  transform: translateY(-1px);
}
.z-hero-trend-tag i {
  font-size: 0.75rem;
  opacity: 0.6;
}

.z-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 4px;
  box-shadow: var(--shadow-md);
}

.z-hero-stat {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 12px;
  position: relative;
}

.z-hero-stat + .z-hero-stat::before {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border-color);
}
[dir="rtl"] .z-hero-stat + .z-hero-stat::before {
  right: auto; left: 0;
}

.z-hero-stat-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg,
    var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.z-hero-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.z-hero-stat-icon {
  font-size: 1rem;
  margin-bottom: 2px;
}

.z-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

[data-theme="dark"] .z-hero-search-card {
  background: var(--bg-surface-2);
}
[data-theme="dark"] .z-hero-stats {
  background: var(--bg-surface-2);
}

@media (max-width: 768px) {
  .z-hero {
    padding: calc(var(--nav-height) + 40px) 0 60px;
    text-align: center;
  }
  .z-hero-title { font-size: 2.2rem; }
  .z-hero-desc  { font-size: 1rem; }

  .z-hero-search-card {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 6px;
    gap: 4px;
  }
  .z-hero-search-input { min-width: 100%; order: 1; }
  .z-hero-search-divider { display: none; }
  .z-hero-city-select { flex: 1; order: 2; min-width: 0; }
  .z-hero-search-btn  { flex: 1; order: 3;
    justify-content: center; min-width: 0; }

  .z-hero-stat { min-width: 100px; padding: 14px 8px; }
  .z-hero-stat-num { font-size: 1.4rem; }
}

@media (max-width: 420px) {
  .z-hero-stats { border-radius: var(--radius-lg); }
  .z-hero-stat  { min-width: 80px; }
}

/* =============================================
   STATS COUNTER 
============================================= */
.z-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.z-stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.z-stat-number {
  font-family: 'Tajawal', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.z-stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* =============================================
   HOW IT WORKS STEPS
============================================= */
.z-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.z-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.z-step-number {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.z-step-icon {
  font-size: 2rem;
  color: var(--clr-primary);
  margin-bottom: 16px;
}

.z-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.z-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =============================================
   CATEGORIES SECTION — Enhanced Native Scroll Edition
============================================= */

/* ── Section wrapper ── */
.z-cat-section {
  padding: 80px 0;
  background: var(--bg-surface);
  overflow: hidden;
}

/* ── Layout: sidebar title + carousel ── */
.z-cat-layout {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Sidebar ── */
.z-cat-sidebar {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 24px;
  border-left: 2px solid var(--border-color);
}

[dir="rtl"] .z-cat-sidebar {
  padding-left: 0;
  padding-right: 24px;
  border-left: none;
  border-right: 2px solid var(--border-color);
  align-items: flex-start;
}

.z-cat-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.z-cat-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* زر اكتشف المزيد */
.z-cat-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-surface-2);
  color: var(--clr-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.z-cat-more-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.25);
}

/* ── Carousel area ── */
.z-cat-carousel-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Navigation arrows */
.z-cat-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 0;
  justify-content: flex-end;
}

[dir="rtl"] .z-cat-nav {
  justify-content: flex-end;
}

.z-cat-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.z-cat-nav-btn:hover:not(:disabled) {
  border-color: var(--clr-primary);
  color: #fff;
  background: var(--clr-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.z-cat-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Native scroll track */
.z-cat-track-outer {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  padding: 10px 4px 30px; /* Spacing for elevated hover shadows */
  margin: -10px -4px -30px;
}

.z-cat-track-outer::-webkit-scrollbar {
  display: none;
}

.z-cat-track {
  display: inline-flex;
  gap: 20px;
}

/* ── Premium Category Card ── */
.z-cat-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 172px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.z-cat-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 16px 32px rgba(37,99,235,0.12);
  transform: translateY(-6px);
  color: var(--text-primary);
}

/* Enhanced SVG Icon Wrap */
.z-cat-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.z-cat-card:hover .z-cat-icon-wrap {
  background: var(--clr-primary);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}

.z-cat-icon-wrap svg {
  width: 38px;
  height: 38px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.z-cat-card:hover .z-cat-icon-wrap svg {
  stroke: #ffffff;
}

/* Category name */
.z-cat-name {
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--transition);
}

.z-cat-card:hover .z-cat-name {
  color: var(--clr-primary);
}

/* Floating bottom arrow */
.z-cat-arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--clr-primary);
  transition: all 0.3s ease;
  margin-top: auto;
  opacity: 0;
  transform: translateY(12px);
}

.z-cat-card:hover .z-cat-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dark mode overrides ── */
[data-theme="dark"] .z-cat-card {
  background: var(--bg-surface-2);
  border-color: var(--border-color);
}
[data-theme="dark"] .z-cat-card:hover {
  background: var(--bg-surface-2);
  box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}
[data-theme="dark"] .z-cat-icon-wrap {
  background: var(--bg-surface-3);
}
[data-theme="dark"] .z-cat-icon-wrap svg {
  stroke: var(--text-primary);
}
[data-theme="dark"] .z-cat-more-btn {
  background: var(--bg-surface-3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .z-cat-sidebar {
    width: 220px;
    padding-right: 16px;
  }
  .z-cat-title {
    font-size: 1.5rem;
  }
  .z-cat-card {
    width: 148px;
    padding: 24px 12px 20px;
  }
  .z-cat-icon-wrap {
    width: 64px; height: 64px; border-radius: 18px;
  }
  .z-cat-icon-wrap svg {
    width: 32px; height: 32px;
  }
}

@media (max-width: 520px) {
  .z-cat-section { padding: 56px 0; }
  .z-cat-layout {
    flex-direction: column;
    gap: 16px;
  }
  .z-cat-sidebar {
    width: 100%;
    flex-direction: column;
    border-right: none;
    border-bottom: 2px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 20px;
    align-items: flex-start;
  }
  .z-cat-title {
    font-size: 1.4rem;
  }
  .z-cat-nav { display: none; /* Hide arrows entirely on small screens, rely on natural swipe */ }
}

/* Legacy classes kept for other pages */
.z-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.z-category-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; background: var(--bg-surface);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; color: var(--text-primary);
}
.z-category-item:hover {
  border-color: var(--clr-primary); background: rgba(37,99,235,0.04);
  transform: translateY(-3px); color: var(--clr-primary); box-shadow: var(--shadow-md);
}
.z-category-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: linear-gradient(135deg,rgba(37,99,235,.1),rgba(124,58,237,.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--clr-primary); transition: all var(--transition);
}
.z-category-item:hover .z-category-icon {
  background: linear-gradient(135deg,var(--clr-primary),var(--clr-accent)); color:#fff;
}
.z-category-name { font-size:.82rem; font-weight:700; text-align:center; }

/* =============================================
   PROFILE TABS (public profile page)
============================================= */
.z-tabs {
  border-bottom: 2px solid var(--border-color);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.z-tabs::-webkit-scrollbar { display: none; }

.z-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
}

.z-tab-btn:hover { color: var(--clr-primary); }

.z-tab-btn.active {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-primary);
}

.z-tab-pane { display: none; padding: 28px 0; }
.z-tab-pane.active { display: block; }

/* =============================================
   PROFILE COVER & HEADER
============================================= */
.z-profile-cover {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.z-profile-cover img {
  width: 100%; height: 100%; object-fit: cover;
}

.z-profile-header {
  position: relative;
  padding: 0 0 24px;
}

.z-profile-logo-wrap {
  position: absolute;
  top: -52px;
  right: 32px;
}

.z-profile-logo {
  width: 100px; height: 100px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--bg-surface);
  background: var(--bg-surface-2);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.z-profile-logo-placeholder {
  width: 100px; height: 100px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--bg-surface);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Tajawal', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.z-profile-info { padding-top: 60px; }

.z-profile-name {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.z-profile-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 12px;
}

/* Rating stars */
.z-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.9rem;
}

.z-star { color: var(--clr-warning); }
.z-star.empty { color: var(--border-color); }

/* =============================================
   SIDEBAR CONTACT CARD
============================================= */
.z-contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.z-contact-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
}

.z-contact-action:hover {
  background: var(--bg-surface-2);
  color: var(--clr-primary);
}

.z-contact-action-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: rgba(37,99,235,0.08);
  color: var(--clr-primary);
  flex-shrink: 0;
}

/* =============================================
   PORTFOLIO GRID
============================================= */
.z-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.z-portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-surface-2);
  cursor: pointer;
}

.z-portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.z-portfolio-item:hover img { transform: scale(1.06); }

.z-portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.z-portfolio-item:hover .z-portfolio-overlay { opacity: 1; }

.z-portfolio-overlay-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* =============================================
   SERVICES GRID
============================================= */
.z-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.z-service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}

.z-service-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.z-service-price {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--clr-primary);
}

/* =============================================
   REVIEWS
============================================= */
.z-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.z-review-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

/* =============================================
   WORKING HOURS TABLE
============================================= */
.z-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.z-hours-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.z-hours-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}

.z-hours-table td:last-child {
  text-align: left;
  color: var(--text-secondary);
}

.z-day-open { color: var(--clr-success); font-weight: 700; }
.z-day-closed { color: var(--clr-danger); font-weight: 700; }

/* =============================================
   AUTH PAGES
============================================= */
.z-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 24px) 16px 48px;
  background: var(--bg-base);
}

.z-auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-xl);
}

.z-auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.z-auth-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-align: center;
}

.z-auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.z-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.z-divider::before, .z-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* =============================================
   DASHBOARD
============================================= */
.z-dashboard {
  padding: calc(var(--nav-height) + 32px) 0 60px;
}

.z-page-header {
  margin-bottom: 32px;
}

.z-page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.z-page-header p {
  color: var(--text-secondary);
}

/* Profile manager list */
.z-profile-list {
  display: grid;
  gap: 16px;
}

.z-profile-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: all var(--transition);
}

.z-profile-list-item:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

.z-profile-list-logo {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  object-fit: cover;
  overflow: hidden;
}

.z-profile-list-info { flex: 1; min-width: 0; }

.z-profile-list-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* =============================================
   PROFILE TYPE SELECTOR (registration)
============================================= */
.z-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.z-type-option {
  cursor: pointer;
}

.z-type-option input[type="radio"] { display: none; }

.z-type-option-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-align: center;
}

.z-type-option input:checked + .z-type-option-inner {
  border-color: var(--clr-primary);
  background: rgba(37,99,235,0.06);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.z-type-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--clr-primary);
  transition: all var(--transition);
}

.z-type-option input:checked + .z-type-option-inner .z-type-icon {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #fff;
}

/* =============================================
   FOOTER
============================================= */
.z-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 0;
  margin-top: 80px;
}

.z-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 900px) {
  .z-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .z-footer-grid { grid-template-columns: 1fr; }
}

.z-footer-slogan {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 8px;
}

.z-footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.z-footer-heading {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.z-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.z-footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.z-footer-links a:hover { color: var(--clr-primary); }

.z-social-links { display: flex; gap: 10px; }

.z-social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
}

.z-social-link:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}

.z-footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   UTILITIES
============================================= */
.z-sep { border: none; border-top: 1px solid var(--border-color); margin: 24px 0; }
.z-text-gradient { background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.z-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Spinner */
.z-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.z-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

.z-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .z-nav-links { display: none !important; }
  .z-auth-card { padding: 28px 20px; }
  .z-profile-cover { height: 160px; }
  .z-profile-logo-wrap { right: 16px; }
  .z-profile-logo, .z-profile-logo-placeholder { width: 80px; height: 80px; }
  .z-profile-info { padding-top: 48px; }
  .z-hero-title { font-size: 2rem; }
  .z-section { padding: 56px 0; }
  .z-type-selector { grid-template-columns: 1fr; }
  .z-categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}