/* =========================================================
   Zameen Online — Theme
   Powered by Ijaz Software House (www.ijazs.online)
   ========================================================= */
:root {
  --primary: #1d4fbf;
  --primary-dark: #1a3f8f;
  --primary-light: #e8effc;
  --accent: #e8522a;
  --accent-dark: #c9401c;
  --yellow: #facc15;
  --green: #16a34a;
  --purple: #9333ea;
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #111a2b;
  --muted: #5d6b82;
  --border: #e3e8ef;
  --footer: #0b1426;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary); }
.btn-green { background: #25d366; color: #fff; }
.btn-green:hover { background: #1eb858; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.logo-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.logo-icon svg { width: 24px; height: 24px; }
.logo .z { color: var(--primary); }
.logo .o { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text);
}
.main-nav a:hover, .main-nav a.active { background: var(--primary-light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 28px; height: 28px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px;
  border: 1px solid var(--border); font-size: 14px; font-weight: 600; cursor: pointer; background: #fff;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.mobile-nav { display: none; }

@media (max-width: 1024px) {
  .main-nav, .header-actions .desk { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.open {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 20px; background: #fff;
    border-top: 1px solid var(--border);
  }
  .mobile-nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; }
  .mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }
  .mobile-nav .btn { margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 110px 0 90px; overflow: hidden;
  background: #1d4fbf url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=1600") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(29,79,191,.96) 0%, rgba(29,79,191,.82) 45%, rgba(29,79,191,.45) 100%);
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 99px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
  font-weight: 600; font-size: 15px; margin-bottom: 26px;
}
.hero-badge .star { color: var(--yellow); font-size: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; max-width: 780px; }
.hero h1 .hl { color: var(--yellow); }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); opacity: .92; margin: 18px 0 36px; max-width: 640px; }

.search-card {
  background: #fff; color: var(--text); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lg);
  max-width: 1000px;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #eef1f5; padding: 5px; border-radius: 12px; margin-bottom: 14px; max-width: 360px; }
.tabs button {
  border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.tabs button.active { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(29,79,191,.3); }
.search-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; }
.field {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: #f7f9fb;
  outline: none; transition: .15s; font-size: 15px;
}
.field:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(29,79,191,.12); }
textarea.field { resize: vertical; min-height: 120px; }
.search-grid .btn { border-radius: 12px; padding: 13px 28px; }
@media (max-width: 800px) {
  .hero { padding: 80px 0 60px; }
  .search-grid { grid-template-columns: 1fr; }
  .tabs { max-width: none; }
}

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 34px 10px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: 32px; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 500; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat b { font-size: 26px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: #eef2f7; }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 10px; }
.section-foot { text-align: center; margin-top: 40px; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

/* ---------- Type cards ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 34px 20px; text-align: center;
  transition: .2s; font-weight: 700; font-size: 17px;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.type-icon { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; }
.type-icon svg { width: 28px; height: 28px; }
.ti-blue { background: #eaf1ff; color: var(--primary); }
.ti-purple { background: #f6edff; color: var(--purple); }
.ti-green { background: #e9f9ef; color: var(--green); }
.ti-orange { background: #fff0ea; color: var(--accent); }
.type-card small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 800px) { .type-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.prop-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  transition: .2s; display: flex; flex-direction: column;
}
.prop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.prop-img { position: relative; aspect-ratio: 16/11; background: #dfe6ef; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.prop-card:hover .prop-img img { transform: scale(1.05); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; background: #fff; color: var(--text);
}
.badge-sale { background: var(--primary); color: #fff; }
.badge-rent { background: var(--green); color: #fff; }
.badge-featured { background: var(--yellow); color: #3b2f00; }
.badge-ajk { background: var(--accent); color: #fff; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-verified { background: #dcfce7; color: #166534; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.95); display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.fav-btn.on { color: #e11d48; }
.fav-btn svg { width: 18px; height: 18px; }
.prop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-size: 21px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.prop-title { font-weight: 700; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop-loc { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 5px; }
.prop-loc svg { width: 15px; height: 15px; flex-shrink: 0; }
.prop-meta {
  display: flex; gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.prop-meta span { display: flex; align-items: center; gap: 5px; }
.prop-meta svg { width: 16px; height: 16px; }

/* ---------- City cards ---------- */
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.city-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; color: #fff; background: #22335a; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.city-card:hover img { transform: scale(1.08); }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72)); }
.city-card .info { position: absolute; left: 18px; bottom: 16px; z-index: 1; }
.city-card h3 { font-size: 21px; font-weight: 800; }
.city-card .info span { font-size: 13px; opacity: .9; }
.city-card .badge { position: absolute; top: 12px; right: 12px; z-index: 1; }
@media (max-width: 900px) { .city-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .city-card h3 { font-size: 17px; } }

/* ---------- AJK band ---------- */
.ajk-band { background: linear-gradient(135deg, #0f2c6b, #1d4fbf); color: #fff; }
.ajk-band .section-head p { color: rgba(255,255,255,.82); }
.ajk-band .eyebrow { color: var(--yellow); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.gallery figure { position: relative; border-radius: 18px; overflow: hidden; background: #22335a; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 13px;
}
.gallery figcaption b { display: block; font-size: 17px; }
.gallery figure:nth-child(4) { grid-column: span 2; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery figure { height: 180px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; height: 240px; }
  .gallery figure:nth-child(4) { grid-column: span 2; }
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 16px; text-align: center;
  font-weight: 700; transition: .2s;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .emoji { font-size: 34px; display: block; margin-bottom: 10px; }
@media (max-width: 800px) { .service-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ---------- Dealer CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--accent), #f07b3f); color: #fff; border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.cta .eyebrow { color: #fff3c4; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.2; }
.cta p { opacity: .92; margin: 14px 0 24px; font-size: 16px; }
.cta ul { list-style: none; display: grid; gap: 14px; background: rgba(255,255,255,.14); padding: 28px; border-radius: 18px; }
.cta li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.cta li::before {
  content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--accent);
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0; font-size: 14px;
}
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-outline-w { border: 1.5px solid #fff; color: #fff; background: transparent; }
.cta .btn-outline-w:hover { background: rgba(255,255,255,.14); }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 32px 22px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #cfd8e8; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo .z { color: #fff; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer h5 { color: var(--yellow); font-size: 11px; letter-spacing: .1em; margin: 6px 0 8px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.contact-line svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--yellow); }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: var(--yellow); font-weight: 600; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; background: #25d366; color: #fff; border-radius: 99px;
  padding: 12px 18px; display: flex; align-items: center; gap: 8px; font-weight: 700; box-shadow: 0 8px 24px rgba(37,211,102,.4);
}
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Page header ---------- */
.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 48px 0; }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { opacity: .88; margin-top: 6px; }
.crumbs { font-size: 13px; opacity: .8; margin-bottom: 8px; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Listings layout ---------- */
.listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; padding: 36px 0 70px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.filters h3 { font-size: 17px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #334155; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters .field { padding: 10px 12px; font-size: 14px; border-radius: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 13px; border-radius: 99px; border: 1px solid var(--border); background: #fff; font-size: 13px;
  font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.results-bar h2 { font-size: 20px; }
.results-bar .field { width: auto; padding: 9px 12px; font-size: 14px; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
.empty {
  text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed #c9d3e0; border-radius: var(--radius);
  color: var(--muted);
}
.empty b { display: block; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-weight: 700; cursor: pointer; }
.pager button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Property detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 32px 0 70px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: #dfe6ef; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs img { width: 96px; height: 68px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .6; border: 2px solid transparent; flex-shrink: 0; }
.thumbs img.active { opacity: 1; border-color: var(--primary); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.detail-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.detail-price { font-size: 30px; font-weight: 800; color: var(--primary); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.spec { background: #f4f7fb; border-radius: 12px; padding: 14px; }
.spec small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spec b { font-size: 16px; }
.desc { white-space: pre-line; color: #334155; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.agent { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.agent .avatar { width: 52px; height: 52px; font-size: 20px; }
.agent b { display: block; }
.agent small { color: var(--muted); }
.side-card .btn { margin-bottom: 10px; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } .side-card { position: static; } }

/* ---------- Dealers / Services list ---------- */
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.dealer-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dealer-top { display: flex; gap: 14px; align-items: center; }
.dealer-logo {
  width: 58px; height: 58px; border-radius: 14px; background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-weight: 800; font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.dealer-logo img { width: 100%; height: 100%; object-fit: cover; }
.dealer-card h3 { font-size: 17px; line-height: 1.3; }
.dealer-card .muted { color: var(--muted); font-size: 13px; }
.dealer-card .row { display: flex; gap: 8px; margin-top: auto; }
.dealer-card .row .btn { flex: 1; }
.rating { color: #f59e0b; font-weight: 700; font-size: 14px; }

/* ---------- Packages ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 24px; display: flex; flex-direction: column; position: relative; }
.plan.popular { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 20px; }
.plan .amount { font-size: 34px; font-weight: 800; color: var(--primary); margin: 12px 0 2px; letter-spacing: -.02em; }
.plan .per { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; font-size: 14px; }
.plan li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- Forms / auth ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 20px; background: linear-gradient(160deg, #eaf1ff, #f7f9fb 60%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-card h2 { font-size: 18px; margin: 8px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .form-card, .auth-card { padding: 22px; } }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-ok { background: #dcfce7; color: #166534; }
.alert-info { background: #e0ecff; color: #1e3a8a; }
.upload-box { border: 2px dashed #c9d3e0; border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; background: #f9fbfd; color: var(--muted); }
.upload-box:hover { border-color: var(--primary); color: var(--primary); }
.previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.previews div { position: relative; }
.previews img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.previews button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #dc2626; color: #fff; cursor: pointer; font-size: 12px; }
.switch-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.switch-link a { color: var(--primary); font-weight: 700; }

/* ---------- Dashboard / Admin ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 32px 0 70px; align-items: start; }
.dash-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: sticky; top: 92px; }
.dash-nav button { display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 11px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; justify-content: space-between; }
.dash-nav button.active, .dash-nav button:hover { background: var(--primary-light); color: var(--primary); }
.dash-nav .count { background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi b { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: #f4f7fb; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .thumb { width: 64px; height: 46px; border-radius: 8px; object-fit: cover; background: #dfe6ef; }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; }
  .dash-nav button { white-space: nowrap; width: auto; gap: 8px; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------- Modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(11,20,38,.55); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: 18px; padding: 26px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 20px; margin-bottom: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; z-index: 200; box-shadow: var(--shadow-lg); font-size: 14px;
}
.demo-bar { background: var(--yellow); color: #3b2f00; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 12px; }
.skeleton { background: linear-gradient(90deg, #e9eef4 25%, #f4f7fa 50%, #e9eef4 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 330px; }
@keyframes sk { to { background-position: -200% 0; } }
