/* =====================================================================
   BASE STYLESHEET — Vanilla CSS3, no framework
   ===================================================================== */

:root {
  --color-primary: #0F4C3A;
  --color-accent: #D4AF37;
  --color-text: #1A1A2E;
  --color-muted: #6B7280;
  --color-bg: #F7F8FA;
  --color-border: #E5E7EB;

  /* Legacy single-value aliases (kept so nothing existing breaks) */
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ---- Radius scale ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* ---- Shadow scale (soft, layered — not a single flat drop-shadow) ---- */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.10), 0 4px 8px rgba(16, 24, 40, 0.06);
  --shadow-xl: 0 24px 48px rgba(16, 24, 40, 0.14), 0 8px 16px rgba(16, 24, 40, 0.08);
  --shadow-glow-accent: 0 8px 24px rgba(212, 175, 55, 0.35);

  /* ---- Gradients (derived LIVE from the admin-configurable brand
     colors via color-mix(), so a color change in Admin Settings stays
     in sync everywhere automatically — no separate "light" variant to
     go stale) ---- */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 65%, white));
  --gradient-accent: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 70%, white));
  --gradient-dark: linear-gradient(180deg, rgba(15,20,26,0) 0%, rgba(15,20,26,0.85) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, black) 60%, color-mix(in srgb, var(--color-primary) 65%, black) 100%);

  /* ---- Motion ---- */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.25s;
  --duration-slow: 0.4s;
}

/* ---- Glassmorphism utility ---- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .glass {
  background: rgba(30, 32, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-dark {
  background: rgba(15, 20, 26, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand-text.brand-logo-header { font-size: 22px; font-weight: 700; color: var(--color-primary); }
.brand-logo.brand-logo-header { height: 36px; width: auto; display: block; }
.brand-text.brand-logo-email { font-size: 20px; font-weight: 700; color: #0F4C3A; }
.brand-logo.brand-logo-email { height: 32px; width: auto; }
.brand-text.brand-logo-print { font-size: 18px; font-weight: 700; color: #1A1A2E; }
.brand-logo.brand-logo-print { height: 28px; width: auto; }
.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.main-nav a:hover { color: var(--color-primary); }
.btn-accent {
  background: var(--color-accent); /* fallback if color-mix()/gradients unsupported */
  background: var(--gradient-accent);
  color: #1A1A2E !important;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-premium), transform var(--duration-fast) var(--ease-premium);
}
.btn-accent:hover { box-shadow: var(--shadow-glow-accent); transform: translateY(-1px); }

/* ---- Cards / Auth ---- */
.auth-card, .card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  max-width: 480px;
  margin: 48px auto;
  transition: box-shadow var(--duration-base) var(--ease-premium);
}
.card { max-width: 100%; }

.auth-card h1 { margin-top: 0; font-size: 24px; }

label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 14px;
  transition: color var(--duration-fast) var(--ease-premium);
}
label:focus-within { color: var(--color-primary); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease-premium), box-shadow var(--duration-fast) var(--ease-premium);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
input.field-error, select.field-error, textarea.field-error {
  border-color: #B42318;
}
input.field-error:focus, select.field-error:focus, textarea.field-error:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15);
}

.btn-primary {
  background: var(--color-primary); /* fallback if color-mix()/gradients unsupported */
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-premium), transform var(--duration-fast) var(--ease-premium);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: var(--shadow-sm); }

/* ---- Alerts ---- */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #E7F7EE; color: #0F4C3A; border: 1px solid #B7E4C7; }
.alert-error   { background: #FDECEC; color: #B42318; border: 1px solid #F5B5B0; }
.alert-info    { background: #EAF2FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-text);
  color: #cfcfd6;
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
}
.site-footer .copyright { color: #8a8a95; margin-top: 4px; }
.site-footer .brand-text { color: #fff; } /* dark-green-on-dark-navy would be unreadable otherwise */

/* ---- Dashboard shell (used by admin/agent stub dashboards) ---- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--duration-base) var(--ease-premium), transform var(--duration-base) var(--ease-premium);
}
[data-theme="dark"] .stat-box { background: var(--bg-surface); }
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.stat-box:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-box .stat-value { font-size: 26px; font-weight: 700; color: var(--color-primary); line-height: 1.1; }
.stat-box .stat-label { color: var(--color-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.stat-box-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.stat-box-blue .stat-box-icon { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.stat-box-green .stat-box-icon { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.stat-box-purple .stat-box-icon { background: linear-gradient(135deg, #C084FC, #9333EA); }
.stat-box-orange .stat-box-icon { background: linear-gradient(135deg, #FBBF24, #D97706); }
.stat-box-pink .stat-box-icon { background: linear-gradient(135deg, #F472B6, #DB2777); }
.stat-box-teal .stat-box-icon { background: linear-gradient(135deg, #2DD4BF, #0D9488); }
.stat-box-red .stat-box-icon { background: linear-gradient(135deg, #F87171, #DC2626); }
.stat-box-indigo .stat-box-icon { background: linear-gradient(135deg, #818CF8, #4F46E5); }



/* ---- Property Cards ---- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.property-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-premium), box-shadow var(--duration-base) var(--ease-premium);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card-img-wrap {
  height: 180px;
  background-color: #e9ebee;
  position: relative;
  overflow: hidden;
}
.property-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-featured, .badge-purpose {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.badge-featured { left: 10px; background: var(--color-accent); color: #1A1A2E; }
.badge-purpose { right: 10px; background: rgba(15,76,58,0.9); color: #fff; }
.property-card-body { padding: 14px 16px; }
.property-card-price { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.property-card-price span { font-size: 12px; font-weight: 400; color: var(--color-muted); }
.property-card-title { font-weight: 600; margin: 6px 0 4px; font-size: 15px; }
.property-card-meta { font-size: 13px; color: var(--color-muted); }

/* ---- Hero Slider ---- */
.hero {
  position: relative;
  color: #fff;
  padding: 80px 0 60px;
  margin-bottom: 32px;
  overflow: hidden;
  background: var(--color-primary); /* fallback if gradient unsupported */
  background: var(--gradient-hero);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease-premium);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,76,58,0.82), rgba(8,39,32,0.88));
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: 38px; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { opacity: 0.88; margin: 0 0 24px; font-size: 16px; }
.hero-dots { display: flex; gap: 6px; margin-top: 24px; position: relative; z-index: 2; }
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0;
  transition: background var(--duration-base) var(--ease-premium), width var(--duration-base) var(--ease-premium);
}
.hero-dots button.is-active { background: var(--color-accent); width: 24px; border-radius: 4px; }
.search-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
  gap: 10px;
  box-shadow: var(--shadow);
}
.search-bar select, .search-bar input {
  margin-top: 0;
}
.search-bar button {
  width: auto;
  padding: 10px 24px;
}

.filter-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}
.filter-panel form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}
.filter-panel label { margin-bottom: 0; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 16px;
}
.section-heading h2 { margin: 0; font-size: 22px; }
.section-heading a { font-size: 14px; color: var(--color-primary); text-decoration: none; font-weight: 600; }

.category-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 32px; }
.category-pills a {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text);
}
.category-pills a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* =====================================================================
   DARK MODE
   =====================================================================
   Toggled by adding data-theme="dark" to <html> (see assets/js/main.js).
   Preference is stored in localStorage — purely a client-side display
   preference, not synced server-side, so it's per-browser like most
   dark mode implementations.
*/
:root {
  --bg-page: var(--color-bg);
  --bg-surface: #fff;
  --text-body: var(--color-text);
  --border-color: var(--color-border);
}

[data-theme="dark"] {
  --bg-page: #14151a;
  --bg-surface: #1e2028;
  --text-body: #e5e7eb;
  --border-color: #33353f;
  --color-muted: #9599a6;
}

[data-theme="dark"] body { background: var(--bg-page); color: var(--text-body); }
[data-theme="dark"] .site-header,
[data-theme="dark"] .card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .property-card,
[data-theme="dark"] .stat-box,
[data-theme="dark"] .filter-panel,
[data-theme="dark"] .settings-section,
[data-theme="dark"] .report-card { background: var(--bg-surface); color: var(--text-body); }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { background: #262832; color: var(--text-body); border-color: var(--border-color); }
[data-theme="dark"] .main-nav a { color: var(--text-body); }
[data-theme="dark"] table tr { border-color: var(--border-color) !important; }
[data-theme="dark"] .property-card-img { background-color: #2a2c36; }

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 13px;
  color: inherit;
}
[data-theme="dark"] .theme-toggle { border-color: var(--border-color); }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-section { opacity: 0; }
.fade-in-section.is-visible { animation: fadeInUp 0.5s ease forwards; }

/* .property-card base transition/hover now defined once, above, using design tokens */
.btn-primary, .btn-accent { transition: opacity 0.15s ease, transform 0.1s ease; }
.btn-primary:active, .btn-accent:active { transform: scale(0.98); }

/* =====================================================================
   SKELETON LOADERS (shown while property images/AJAX results load)
   ===================================================================== */
@keyframes skeletonShimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.skeleton {
  background: linear-gradient(90deg, #eceef1 25%, #f5f6f8 37%, #eceef1 63%);
  background-size: 400px 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: 8px;
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #24262e 25%, #2c2e38 37%, #24262e 63%);
  background-size: 400px 100%;
}
.skeleton-card { height: 180px; margin-bottom: 10px; }
.skeleton-line { height: 14px; margin-bottom: 8px; width: 80%; }

/* Lazy-loaded images fade in once loaded rather than popping in abruptly. */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s ease; }
img[loading="lazy"].loaded, img[loading="lazy"].lazy-loaded { opacity: 1; }

/* =====================================================================
   PRINT
   ===================================================================== */
.print-header { display: none; }
.print-only { display: none; }

@media print {
  .site-header, .site-footer, .no-print, .theme-toggle, .alert { display: none !important; }
  .print-header { display: block; text-align: center; padding: 16px 0; border-bottom: 2px solid #ddd; margin-bottom: 20px; }
  .print-only { display: block !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; }
}

/* =====================================================================
   HOMEPAGE PREMIUM REDESIGN COMPONENTS
   ===================================================================== */

/* ---- Browse-by tabs ---- */
.browse-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.browse-tabs button {
  background: none; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600;
  color: var(--color-muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-premium), border-color var(--duration-fast) var(--ease-premium);
}
.browse-tabs button.is-active { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.browse-tabs button:hover { color: var(--color-primary); }

/* ---- Stat counters ---- */
.stats-band {
  background: var(--color-primary);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-5);
  color: #fff;
  margin: var(--space-6) 0;
}
.stats-band .stat-counter { text-align: center; }
.stats-band .stat-counter-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  color: #fff;
}
.stats-band .stat-counter .value { font-size: 34px; font-weight: 800; }
.stats-band .stat-counter .label { font-size: 13px; opacity: 0.85; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ---- Tile grids (top cities, why-choose-us) ---- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.city-tile {
  position: relative;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #e9ebee;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-premium), box-shadow var(--duration-base) var(--ease-premium);
}
.city-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.city-tile::before { content: ''; position: absolute; inset: 0; background: var(--gradient-dark); }
.city-tile-label { position: relative; z-index: 1; padding: 12px 14px; color: #fff; }
.city-tile-label .name { font-weight: 700; font-size: 15px; }
.city-tile-label .count { font-size: 12px; opacity: 0.85; }

.value-prop-card { text-align: center; padding: var(--space-5); }
.value-prop-card .icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-3);
  color: #1A1A2E;
}
.value-prop-card h3 { margin: 0 0 6px; font-size: 16px; }
.value-prop-card p { margin: 0; font-size: 14px; color: var(--color-muted); }

/* ---- Featured agent cards ---- */
.agent-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: var(--space-5); text-align: center;
  transition: transform var(--duration-base) var(--ease-premium), box-shadow var(--duration-base) var(--ease-premium);
}
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.avatar-circle {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto var(--space-3);
  background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; flex-shrink: 0;
}
.agent-card .agent-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.agent-card .agent-company { font-size: 13px; color: var(--color-muted); margin: 2px 0 8px; }
.agent-card .agent-meta { font-size: 12px; color: var(--color-muted); }

/* ---- FAQ preview accordion (reuses <details>, styled) ---- */
.faq-preview details {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 14px 16px; margin-bottom: 8px;
}
.faq-preview summary { font-weight: 600; cursor: pointer; }
.faq-preview p { margin: 8px 0 0; color: var(--color-muted); font-size: 14px; }

/* ---- Rich multi-column footer ---- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  text-align: left;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 var(--space-3); }
.footer-grid a { display: block; color: #b8bcc8; text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; margin: 0;
}
.footer-social a:hover { background: var(--color-accent); color: #1A1A2E; }

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Property card v2: stretched-link + interactive overlay controls ---- */
.property-card { position: relative; }
.property-card-stretched-link { position: absolute; inset: 0; z-index: 1; }

.property-card-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.badge-boost {
  display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff;
  box-shadow: var(--shadow-sm);
}

.property-card-quick-actions {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(6px);
  transition: opacity var(--duration-base) var(--ease-premium), transform var(--duration-base) var(--ease-premium);
}
.property-card:hover .property-card-quick-actions { opacity: 1; transform: translateX(0); }
.property-card-action-form { margin: 0; }
.card-icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.95); color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background var(--duration-fast) var(--ease-premium), color var(--duration-fast) var(--ease-premium), transform var(--duration-fast) var(--ease-premium);
}
.card-icon-btn:hover { transform: scale(1.08); }
.card-icon-btn.is-active { background: #B42318; color: #fff; }
.card-icon-btn.compare-toggle-btn.is-active { background: var(--color-primary); color: #fff; }
/* Touch devices have no :hover — always show quick actions so they're reachable. */
@media (hover: none) {
  .property-card-quick-actions { opacity: 1; transform: none; }
}

.property-card-facts { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.property-card-facts span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-muted); }
.property-card-facts svg { width: 14px; height: 14px; }

/* ---- Floating compare bar ---- */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-premium);
  z-index: 100;
}
[data-theme="dark"] .compare-bar { background: var(--bg-surface); }
.compare-bar.is-visible { transform: translateY(0); }
.compare-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.compare-bar-count { font-weight: 600; }
.compare-bar-clear { background: none; border: 1px solid var(--color-border); padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.compare-bar-link.is-disabled { pointer-events: none; opacity: 0.5; }

/* ---- Agent detail card (property detail page sidebar) ---- */
.agent-detail-card { border-top: 3px solid var(--color-accent); position: sticky; top: 20px; }

/* =====================================================================
   ADMIN SIDEBAR LAYOUT
   ===================================================================== */
.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: #14181f;
  color: #c8ccd6;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  transition: transform var(--duration-base) var(--ease-premium);
}
.admin-sidebar-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-brand .brand-text { color: #fff; }

.admin-sidebar-nav { padding: 12px 0; flex: 1; }
.admin-nav-group-label {
  padding: 16px 20px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: #6b7280; font-weight: 600;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  color: #c8ccd6; text-decoration: none; font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: background var(--duration-fast) var(--ease-premium), color var(--duration-fast) var(--ease-premium);
}
.admin-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav-link.is-active { background: rgba(212,175,55,0.12); color: var(--color-accent); border-left-color: var(--color-accent); }
.admin-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin-content-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 24px;
  background: #fff; border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 20;
}
[data-theme="dark"] .admin-topbar { background: var(--bg-surface); }
.admin-sidebar-toggle {
  display: none; background: none; border: none; cursor: pointer; color: var(--color-text);
  width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.admin-sidebar-toggle:hover { background: var(--color-bg); }
.admin-topbar-title { font-size: 18px; font-weight: 700; flex: 1; }
.admin-topbar-actions { display: flex; align-items: center; gap: 18px; }
.admin-topbar-actions > a { color: var(--color-muted); display: flex; }
.admin-topbar-actions > a:hover { color: var(--color-primary); }
.admin-topbar-badge {
  position: absolute; top: -6px; right: -8px; background: #B42318; color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; min-width: 15px; text-align: center;
}

.admin-user-menu { position: relative; }
.admin-user-menu-trigger { background: none; border: none; cursor: pointer; padding: 0; }
.admin-user-dropdown {
  display: none; position: absolute; right: 0; top: 44px; background: #fff;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 200px;
  padding: 12px; z-index: 30;
}
[data-theme="dark"] .admin-user-dropdown { background: var(--bg-surface); }
.admin-user-dropdown.is-open { display: block; }
.admin-user-dropdown-name { font-weight: 700; font-size: 14px; }
.admin-user-dropdown-role { font-size: 12px; color: var(--color-muted); margin-bottom: 8px; }
.admin-user-dropdown a {
  display: flex; align-items: center; gap: 8px; padding: 8px 4px; color: inherit; text-decoration: none;
  font-size: 13px; border-top: 1px solid var(--color-border);
}
.admin-user-dropdown a:hover { color: var(--color-primary); }

.admin-main { flex: 1; padding: 24px; max-width: 1400px; width: 100%; }
.admin-footer { padding: 16px 24px; font-size: 12px; color: var(--color-muted); border-top: 1px solid var(--color-border); }

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed; left: 0; top: 0; z-index: 50;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar-toggle { display: flex; }
  .admin-main { padding: 16px; }
}

/* ---- Reusable modern admin table ---- */
.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
[data-theme="dark"] .admin-table-wrap { background: var(--bg-surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--color-bg); text-align: left; padding: 12px 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted);
  border-bottom: 2px solid var(--color-border); white-space: nowrap;
}
[data-theme="dark"] .admin-table thead th { background: #1c1f27; }
.admin-table th.is-sortable { cursor: pointer; user-select: none; }
.admin-table th.is-sortable:hover { color: var(--color-primary); }
.admin-table th.is-sortable::after { content: '⇅'; margin-left: 4px; opacity: 0.4; font-size: 11px; }
.admin-table th.is-sortable.sort-asc::after { content: '↑'; opacity: 1; }
.admin-table th.is-sortable.sort-desc::after { content: '↓'; opacity: 1; }
.admin-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--color-bg); }
[data-theme="dark"] .admin-table tbody tr:hover { background: #1c1f27; }
.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-row-actions { position: relative; display: inline-block; }
.admin-row-actions-trigger {
  width: 30px; height: 30px; border-radius: var(--radius-sm); border: none; background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-muted);
}
.admin-row-actions-trigger:hover { background: var(--color-bg); color: var(--color-text); }
.admin-row-actions-menu {
  display: none; position: absolute; right: 0; top: 34px; background: #fff;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 160px; padding: 6px; z-index: 15;
}
[data-theme="dark"] .admin-row-actions-menu { background: var(--bg-surface); }
.admin-row-actions-menu.is-open { display: block; }
.admin-row-actions-menu button, .admin-row-actions-menu a {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: none; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13px; color: inherit; text-decoration: none; cursor: pointer;
}
.admin-row-actions-menu button:hover, .admin-row-actions-menu a:hover { background: var(--color-bg); }
.admin-row-actions-menu .is-danger { color: #B42318; }

/* ---- Status badges (used in admin tables) ---- */
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; text-transform: capitalize;
}
.status-active, .status-published, .status-confirmed, .status-completed, .status-verified, .status-resolved, .status-paid, .status-successful, .status-reviewed { background: #DCFCE7; color: #166534; }
.status-pending, .status-tentative, .status-open, .status-in_progress, .status-unpaid { background: #FEF3C7; color: #92400E; }
.status-suspended, .status-rejected, .status-cancelled, .status-failed, .status-banned, .status-abandoned { background: #FEE2E2; color: #991B1B; }
.status-draft, .status-inactive, .status-closed, .status-expired, .status-archived, .status-not_submitted, .status-dismissed { background: #F1F5F9; color: #475569; }
[data-theme="dark"] .status-active, [data-theme="dark"] .status-published, [data-theme="dark"] .status-confirmed, [data-theme="dark"] .status-completed, [data-theme="dark"] .status-verified, [data-theme="dark"] .status-resolved, [data-theme="dark"] .status-paid, [data-theme="dark"] .status-successful, [data-theme="dark"] .status-reviewed { background: rgba(34,197,94,0.15); color: #4ade80; }
[data-theme="dark"] .status-pending, [data-theme="dark"] .status-tentative, [data-theme="dark"] .status-open, [data-theme="dark"] .status-in_progress, [data-theme="dark"] .status-unpaid { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .status-suspended, [data-theme="dark"] .status-rejected, [data-theme="dark"] .status-cancelled, [data-theme="dark"] .status-failed, [data-theme="dark"] .status-banned, [data-theme="dark"] .status-abandoned { background: rgba(239,68,68,0.15); color: #f87171; }
[data-theme="dark"] .status-draft, [data-theme="dark"] .status-inactive, [data-theme="dark"] .status-closed, [data-theme="dark"] .status-expired, [data-theme="dark"] .status-archived, [data-theme="dark"] .status-not_submitted, [data-theme="dark"] .status-dismissed { background: rgba(148,163,184,0.15); color: #cbd5e1; }

/* ---- Quick preview modal ---- */
.quick-preview-overlay {
  position: fixed; inset: 0; background: rgba(15,20,26,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.quick-preview-overlay.is-open { display: flex; }
.quick-preview-panel {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: var(--space-5); position: relative;
}
[data-theme="dark"] .quick-preview-panel { background: var(--bg-surface); }
.quick-preview-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--color-bg); font-size: 20px; cursor: pointer; line-height: 1;
}

/* ---- Grid/List view toggle ---- */
.view-toggle { display: flex; gap: 4px; background: var(--color-bg); border-radius: var(--radius-md); padding: 4px; }
.view-toggle button {
  width: 34px; height: 34px; border: none; background: none; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-muted);
}
.view-toggle button.is-active { background: #fff; color: var(--color-primary); box-shadow: var(--shadow-sm); }

.property-grid.list-view { grid-template-columns: 1fr; }
.property-grid.list-view .property-card { display: flex; flex-direction: row; }
.property-grid.list-view .property-card-img-wrap { width: 260px; flex-shrink: 0; height: auto; }
.property-grid.list-view .property-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 640px) {
  .property-grid.list-view .property-card { flex-direction: column; }
  .property-grid.list-view .property-card-img-wrap { width: 100%; height: 180px; }
}

/* ---- Property detail: gallery grid ---- */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; max-height: 420px; }
.gallery-main { position: relative; cursor: pointer; overflow: hidden; }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; display: block; transition: transform var(--duration-slow) var(--ease-premium); }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-expand-hint {
  position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,0.6); color: #fff;
  padding: 6px 12px; border-radius: var(--radius-full); font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.gallery-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 8px; }
.gallery-side-thumb { position: relative; cursor: pointer; overflow: hidden; }
.gallery-side-thumb img { width: 100%; height: 206px; object-fit: cover; display: block; }
.gallery-more-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; max-height: none; }
  .gallery-main img { height: 260px; }
  .gallery-side { display: none; }
}

/* ---- Fullscreen gallery lightbox ---- */
.gallery-lightbox {
  position: fixed; inset: 0; background: rgba(8,10,14,0.95); z-index: 300;
  display: none; align-items: center; justify-content: center;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.gallery-lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; }
.gallery-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; }
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }
.gallery-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: 0.8; }

/* ---- Highlight chips (type-specific details) ---- */
.highlight-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); }
.highlight-chip { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--color-bg); border-radius: var(--radius-md); }
.highlight-chip svg { flex-shrink: 0; color: var(--color-primary); }
.highlight-chip-value { font-weight: 700; font-size: 14px; }
.highlight-chip-label { font-size: 12px; color: var(--color-muted); }

/* ---- Share dropdown ---- */
.share-dropdown { position: relative; }
.share-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 10;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px;
}
[data-theme="dark"] .share-dropdown-menu { background: var(--bg-surface); }
.share-dropdown-menu.is-open { display: block; }
.share-dropdown-menu a, .share-dropdown-menu button {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px;
  text-decoration: none; color: inherit; font-size: 14px; width: 100%; background: none; border: none; cursor: pointer; text-align: left;
}
.share-dropdown-menu a:hover, .share-dropdown-menu button:hover { background: var(--color-bg); }

/* ---- Booking calendar view ---- */
.booking-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.booking-cal-weekday { text-align: center; font-size: 12px; font-weight: 700; color: var(--color-muted); padding: 6px 0; text-transform: uppercase; }
.booking-cal-day {
  aspect-ratio: 1; border-radius: var(--radius-md); background: var(--color-bg);
  padding: 8px; cursor: pointer; position: relative;
  transition: background var(--duration-fast) var(--ease-premium);
}
.booking-cal-day:hover { background: #e2e5eb; }
.booking-cal-day.is-empty { background: none; cursor: default; }
.booking-cal-day.is-today { border: 2px solid var(--color-accent); }
.booking-cal-day.has-bookings { background: var(--color-bg); background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)); }
.booking-cal-daynum { font-size: 13px; font-weight: 600; }
.booking-cal-count {
  position: absolute; bottom: 8px; right: 8px;
  background: var(--color-primary); color: #fff; border-radius: 999px;
  min-width: 18px; height: 18px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
@media (max-width: 640px) {
  .booking-cal-daynum { font-size: 11px; }
  .booking-cal-count { min-width: 15px; height: 15px; font-size: 9px; bottom: 4px; right: 4px; }
}

/* ---- Loading-state button spinner ---- */
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: 0.7;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 2px;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---- Password visibility toggle ---- */
.password-toggle-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--color-muted);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 0;
}
.password-toggle-btn:hover { color: var(--color-primary); background: var(--color-bg); }

/* =====================================================================
   FLOATING LABELS (opt-in via .form-floating wrapper)
   ===================================================================== */
.form-floating { position: relative; margin-bottom: 20px; }
.form-floating input {
  padding: 22px 12px 8px;
  margin-top: 0;
  width: 100%;
}
.form-floating label {
  position: absolute;
  top: 15px; left: 13px;
  color: var(--color-muted);
  font-weight: 400;
  font-size: 15px;
  margin-bottom: 0;
  pointer-events: none;
  transition: top var(--duration-fast) var(--ease-premium), font-size var(--duration-fast) var(--ease-premium), color var(--duration-fast) var(--ease-premium);
  background: transparent;
}
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
  top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* =====================================================================
   HEADER / MOBILE NAV
   ===================================================================== */
.mobile-menu-toggle {
  display: none;
  order: 0;
  background: none; border: none; cursor: pointer; color: var(--color-text);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 0; flex-shrink: 0;
}
.mobile-menu-toggle:hover { background: var(--color-bg); }

.header-inner { position: relative; }
.brand { order: 1; }
.main-nav { order: 2; display: flex; align-items: center; flex-wrap: wrap; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; }
.main-nav a svg { flex-shrink: 0; }
.main-nav a span { white-space: nowrap; }
.theme-toggle { order: 3; display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.nav-badge {
  background: var(--color-accent); color: #1A1A2E; border-radius: 999px;
  padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.mobile-nav-overlay { display: none; }

@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }

  /* True-centers the logo regardless of the hamburger/theme-toggle
     widths being unequal — a flex "space-between" layout alone would
     only look centered if both side elements were the same width. */
  .header-inner .brand {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
  }

  .main-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px; max-width: 85vw;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 70px 8px 24px;
    gap: 2px;
    transform: translateX(-100%);
    transition: transform var(--duration-base) var(--ease-premium);
    z-index: 201;
    overflow-y: auto;
  }
  [data-theme="dark"] .main-nav { background: var(--bg-surface); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    margin-left: 0 !important;
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }
  .main-nav a:hover { background: var(--color-bg); }
  .main-nav .btn-accent { margin: 8px 14px 0; justify-content: center; }

  .mobile-nav-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15,20,26,0.5);
    z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-premium);
  }
  .mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

  .theme-toggle-label { display: none; }
  .theme-toggle { padding: 8px; border-radius: 50%; width: 36px; height: 36px; justify-content: center; }
}

/* =====================================================================
   ADMIN/AGENT TOOL LAUNCHER CARDS
   ===================================================================== */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tool-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-base) var(--ease-premium), box-shadow var(--duration-base) var(--ease-premium), border-color var(--duration-base) var(--ease-premium);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.tool-card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.tool-card-label { font-weight: 600; font-size: 14px; line-height: 1.3; }
.tool-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--color-accent); color: #1A1A2E;
  border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700;
}

.tool-card-blue .tool-card-icon { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.tool-card-green .tool-card-icon { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.tool-card-purple .tool-card-icon { background: linear-gradient(135deg, #C084FC, #9333EA); }
.tool-card-orange .tool-card-icon { background: linear-gradient(135deg, #FBBF24, #D97706); }
.tool-card-pink .tool-card-icon { background: linear-gradient(135deg, #F472B6, #DB2777); }
.tool-card-teal .tool-card-icon { background: linear-gradient(135deg, #2DD4BF, #0D9488); }
.tool-card-red .tool-card-icon { background: linear-gradient(135deg, #F87171, #DC2626); }
.tool-card-indigo .tool-card-icon { background: linear-gradient(135deg, #818CF8, #4F46E5); }

/* ---- Card header with icon (dashboard secondary cards) ---- */
.card-header-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  color: #fff; margin-right: 8px; vertical-align: middle;
}
.card-header-icon.c-blue { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.card-header-icon.c-orange { background: linear-gradient(135deg, #FBBF24, #D97706); }
.card-header-icon.c-teal { background: linear-gradient(135deg, #2DD4BF, #0D9488); }
