/* ================================================================
   Portföyle.com — Premium SaaS Design System v2.0
   Ticari Otomasyon Kalitesinde Profesyonel UI
   ================================================================ */

/* ── Google Fonts (preconnect ile layout'tan yükleniyor) ─────── */
/* @import kaldırıldı: render-blocking → link preload daha hızlı */

/* ── Lazy Loading Görsel Animasyonu ──────────────────────────── */
img[data-src], img[loading="lazy"] {
  opacity: 0;
  transition: opacity .3s ease;
}
img.lazy-loaded, img[loading="lazy"].lazy-loaded,
img:not([data-src]) {
  opacity: 1;
}
/* content-visibility: GPU hızlandırmalı kart render */
.card-v2, .prop-card { content-visibility: auto; contain-intrinsic-size: auto 300px; }

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand Colors (logo-derived) */
  --navy: #0B2344;
  --navy-2: #16325c;
  --navy-3: #1d3f6e;
  --navy-light: #e8ecf2;
  --teal: #20A8B5;
  --teal-dark: #127e88;
  --teal-light: #e0f5f7;
  --teal-glow: rgba(32, 168, 181, .12);
  --orange: #F4AE3D;
  --orange-dark: #d9951d;
  --orange-light: #fef6e7;

  /* Surfaces */
  --bg: #f0f2f5;
  --bg-subtle: #f7f8fa;
  --card: #ffffff;
  --card-hover: #fafbfc;

  /* Borders */
  --line: #e3e8ef;
  --line-strong: #cdd5df;
  --line-focus: var(--teal);

  /* Text */
  --text: #1a2332;
  --text-secondary: #4a5568;
  --muted: #6b7a8d;
  --placeholder: #9ca8b7;

  /* Status */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --info: #0284c7;
  --info-bg: #f0f9ff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11, 35, 68, .05);
  --shadow-sm: 0 1px 3px rgba(11, 35, 68, .08), 0 1px 2px rgba(11, 35, 68, .04);
  --shadow-md: 0 4px 6px -1px rgba(11, 35, 68, .08), 0 2px 4px -2px rgba(11, 35, 68, .04);
  --shadow-lg: 0 10px 15px -3px rgba(11, 35, 68, .08), 0 4px 6px -4px rgba(11, 35, 68, .04);
  --shadow-xl: 0 20px 25px -5px rgba(11, 35, 68, .1), 0 8px 10px -6px rgba(11, 35, 68, .05);
  --shadow-glow: 0 0 0 3px var(--teal-glow);
  --shadow-card: 0 1px 3px rgba(11, 35, 68, .06);

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 56px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: 200ms;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--teal-dark); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }

/* ── Shell Layout ──────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; background: var(--bg); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 20px 24px 32px; max-width: 1400px; width: 100%; }
.content > * + *, .stack > * + * { margin-top: 12px; }

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--navy) 0%, #091b36 100%);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 16px;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.brand:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.brand img { display: block; width: 100%; height: 36px; object-fit: contain; }

/* Nav */
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: rgba(213, 222, 234, .85); padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  transition: all var(--duration) var(--ease);
  position: relative;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.nav a.active {
  background: rgba(32, 168, 181, .15);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--teal);
  font-weight: 700;
}
.nav .section {
  margin: 18px 12px 6px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(142, 160, 184, .7);
  font-weight: 800;
}
.side-user {
  margin-top: auto;
  padding: 12px 10px 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.side-user strong, .side-user span { display: block; }
.side-user strong { font-size: 13px; font-weight: 700; }
.side-user span { color: rgba(154, 175, 198, .8); font-size: 12px; margin-top: 2px; }
.side-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, .08);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.side-logout:hover {
  background: rgba(239, 68, 68, .2);
  color: #fecaca;
  border-color: rgba(239, 68, 68, .3);
}

/* ── Topbar ────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar-h); padding: 0 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  box-shadow: var(--shadow-xs);
}
.topbar form.search, .topbar__search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.topbar__search {
  background: var(--bg-subtle); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 14px; height: 38px;
  max-width: 440px; transition: all var(--duration) var(--ease);
}
.topbar__search:focus-within { border-color: var(--teal); box-shadow: var(--shadow-glow); background: var(--card); }
.topbar__search svg { flex-shrink: 0; }
.topbar__search input {
  border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--navy); width: 100%; height: 100%;
}
.topbar__search input::placeholder { color: var(--placeholder); }
.topbar input[type="search"] {
  width: min(440px, 100%); height: 38px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  transition: all var(--duration) var(--ease);
}
.topbar input[type="search"]:focus {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
  background: var(--card);
}
.topbar input[type="search"]::placeholder { color: var(--placeholder); }
.topbar__actions, .top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.top-title { color: var(--navy); font-size: 14px; font-weight: 700; }

/* Topbar Menu Button */
.topbar__menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; color: var(--navy);
  transition: background .15s;
}
.topbar__menu-btn:hover { background: var(--bg-subtle); }

/* Topbar Firm */
.topbar__firm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 10px;
  background: var(--bg-subtle); border: 1px solid var(--line);
  font-size: 12px; font-weight: 650; color: var(--navy);
  transition: all .15s; white-space: nowrap;
}
.topbar__firm:hover { background: var(--card); box-shadow: var(--shadow-sm); }
.topbar__verify {
  width: 18px; height: 18px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
  background: #fef3c7; color: #f59e0b; font-style: normal;
}
.topbar__verify--ok { background: #ecfdf5; color: #059669; }

/* Topbar Icon Button */
.topbar__icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: none; cursor: pointer;
  color: #64748b; transition: all .15s; text-decoration: none;
}
.topbar__icon-btn:hover { background: var(--bg-subtle); color: var(--navy); }
.topbar__badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  padding: 0 4px;
}
.topbar__divider { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }

/* Topbar Profile */
.topbar__profile {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.topbar__profile img {
  width: 32px; height: 32px; border-radius: 10px; object-fit: cover;
  border: 2px solid var(--teal);
}
.topbar__avatar {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #2d4a6f);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.topbar__logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1.5px solid rgba(239, 68, 68, .2);
  cursor: pointer;
  transition: all .2s var(--ease);
  padding: 0;
}
.topbar__logout-btn:hover {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: rgba(239, 68, 68, .4);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, .15);
}

/* Legacy firm chip */
.firm-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 260px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-subtle); border: 1px solid var(--line);
  font-size: 13px; font-weight: 650; color: var(--navy);
  transition: all var(--duration) var(--ease);
}
.firm-chip:hover { background: var(--card); box-shadow: var(--shadow-sm); }
.firm-chip em {
  font-style: normal; font-size: 11px; font-weight: 700;
  color: var(--warn); background: var(--warn-bg);
  border-radius: 999px; padding: 2px 8px;
}
.firm-chip em.ok { color: var(--ok); background: var(--ok-bg); }

/* ── Page Header ───────────────────────────────────────────────── */
.page, .page-head {
  display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-end; margin-bottom: 16px;
}
.page h1, .page-head h1 {
  margin: 0; font-size: 24px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; color: var(--navy);
}
.page p, .page-head p { margin: 3px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eyebrow {
  margin: 0 0 4px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark);
}
.muted { color: var(--muted); }

/* ── Cards ─────────────────────────────────────────────────────── */
.card, .sections > .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card h2, .card h3, .sections > .card > h2 {
  margin: 0 0 12px; font-size: 13px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
}
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { margin: 0; padding: 0; list-style: none; }
.card li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.card li:last-child { border-bottom: 0; padding-bottom: 0; }
.split > div > * + *, .split > aside > * + * { margin-top: 12px; }

/* ── Grid ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 12px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Metric Cards ──────────────────────────────────────────────── */
.metric {
  position: relative; overflow: hidden; padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card), var(--bg-subtle));
}
.metric::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  border-radius: 0 2px 2px 0;
}
.metric .label {
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.metric strong {
  display: block; font-size: 28px; margin-top: 6px;
  letter-spacing: -.04em; color: var(--navy); font-weight: 800;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn, button, .btn-link {
  border: 0; border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-weight: 650; line-height: 1.2; min-height: 36px;
  font-size: 13px; letter-spacing: .01em;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-xs);
}
.btn:hover, button:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn:active, button:active { transform: translateY(0); box-shadow: var(--shadow-xs); }
.btn-accent { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #1d2430; }
.btn-teal { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.btn-ghost {
  background: var(--card); color: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--navy); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12px; min-height: 30px; }

/* ── Forms ──────────────────────────────────────────────────────── */
input, select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 12px; background: var(--card); min-height: 38px;
  font-size: 14px;
  transition: all var(--duration) var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
}
textarea { min-height: 100px; resize: vertical; }
input[type="file"] { padding: 8px; background: var(--bg-subtle); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--teal); }
label {
  display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px;
  color: var(--text-secondary); letter-spacing: .02em;
}
.field { margin-bottom: 10px; }
.form-grid > .field, .filter-grid > .field { margin-bottom: 0; }
.form-grid > .check { align-self: end; min-height: 36px; margin: 0; }
form > .card + .card, form > .form-bar, .sections > .card + .card { margin-top: 12px; }
.section-note { margin: -2px 0 10px; color: var(--muted); font-size: 13px; }
.form-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.span-2 { grid-column: span 2; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 4px; font-weight: 500; }

/* ── Toolbar / Filters ──────────────────────────────────────────── */
.toolbar, .filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
}
.toolbar > input[type="hidden"], .filters > input[type="hidden"] { display: none; }
.toolbar > :where(input, select):not([type="hidden"]),
.filters > :where(input, select):not([type="hidden"]) {
  width: auto; flex: 1 1 160px; max-width: 220px; min-height: 36px;
}
.toolbar-card, form.filters, form.toolbar {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow-card);
}
.toolbar .field, .filters .field { margin: 0; flex: 1 1 160px; max-width: 220px; }
.toolbar .field input, .toolbar .field select, .filters .field input, .filters .field select { min-height: 36px; }
.toolbar-actions, .filter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.filter-actions { margin-top: 0; }
.sheet, .drawer { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sheet.open, .drawer.open { display: block; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.filters .btn, .filter-actions .btn, .toolbar .btn, .toolbar-actions .btn { width: auto; flex: 0 0 auto; }

/* ── Tables ────────────────────────────────────────────────────── */
.data, .table-wrap { overflow: auto; padding: 0; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; height: 44px; }
th {
  font-size: 11px; color: var(--muted); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg-subtle); position: sticky; top: 0; z-index: 1;
}
tbody tr { transition: background var(--duration) var(--ease); }
tbody tr:hover td { background: var(--teal-light); }
tbody tr:last-child td { border-bottom: 0; }
table a { font-weight: 700; color: var(--navy); }
td.empty { padding: 24px 14px; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 10px;
  background: var(--bg-subtle); font-size: 12px; font-weight: 700;
  letter-spacing: .01em;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.teal { background: var(--teal-light); color: var(--teal-dark); }
.badge.muted { background: var(--bg-subtle); color: var(--muted); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }

/* ── Flash / Alerts ────────────────────────────────────────────── */
.flash {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px;
  background: var(--ok-bg); border: 1px solid #a7f3d0;
  color: #065f46; font-weight: 500; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.flash.error, .alert {
  background: var(--danger-bg); color: #991b1b;
  border-color: #fca5a5;
}
.flash.info { background: var(--info-bg); border-color: #93c5fd; color: #075985; }

/* ── Avatar ────────────────────────────────────────────────────── */
.who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-light); color: var(--navy);
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.avatar.lg { width: 44px; height: 44px; border-radius: var(--radius); font-size: 18px; }

/* ── Tabs ──────────────────────────────────────────────────────── */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-subtle); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tabs .btn { min-height: 32px; border-radius: var(--radius-sm); }

/* ── Kanban / Deals ────────────────────────────────────────────── */
.kanban, .board-scroll { display: flex; gap: 12px; overflow: auto; padding-bottom: 10px; }
.kanban-col { min-width: 260px; background: var(--bg-subtle); border-radius: var(--radius); padding: 10px; }
.kanban-col h3 {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 10px; font-size: 12px; text-transform: none; letter-spacing: 0;
}
.kanban-col h3 span {
  background: var(--card); border-radius: 999px; padding: 2px 8px;
  font-size: 12px; color: var(--muted);
}
.deal-card {
  background: var(--card); border-radius: var(--radius-sm); padding: 10px;
  margin-bottom: 8px; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  cursor: grab;
}
.deal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.deal-card a { display: block; font-weight: 750; color: var(--navy); }
.deal-card form { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.deal-card select { min-height: 30px; }

/* ── Board / Metrics Grid ──────────────────────────────────────── */
.board { display: grid; gap: 12px; }

/* ── Pagination ────────────────────────────────────────────────── */
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ── Check / Toggle ────────────────────────────────────────────── */
.check { display: flex; gap: 8px; align-items: center; font-weight: 550; margin: 0 0 6px; }
.check input { width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }
.inline-form .btn { flex: 0 0 auto; }

/* ── Property Details ──────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 16px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.gallery img { height: 100px; width: 100%; object-fit: cover; border-radius: var(--radius-sm); transition: transform var(--duration) var(--ease); }
.gallery img:hover { transform: scale(1.05); }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.fact {
  background: var(--bg-subtle); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px;
  transition: all var(--duration) var(--ease);
}
.fact:hover { background: var(--teal-light); border-color: var(--teal); }
.fact span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 3px; color: var(--navy); font-size: 15px; font-weight: 700; }
.price-line { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin: 4px 0 10px; }
.card.listing-card { display: grid; grid-template-columns: 152px 1fr; gap: 14px; align-items: center; }
.card.listing-card img, .cover {
  width: 100%; height: 100px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-subtle);
}
.map { height: 300px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 10px; }

/* ── Bars / Progress ───────────────────────────────────────────── */
.bars { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.card .bars li, .bars li {
  display: grid; grid-template-columns: minmax(88px, 140px) minmax(0, 1fr) auto;
  gap: 10px; align-items: center; border: 0; padding: 0;
}
.bars span { color: var(--text); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars i { display: block; height: 8px; background: var(--bg-subtle); border-radius: 99px; overflow: hidden; }
.bars b { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-dark)); border-radius: 99px; transition: width .6s var(--ease); }
.bars strong { font-size: 13px; color: var(--navy); font-weight: 700; }
.card h3 { margin-top: 16px; }

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.card .timeline li { position: relative; border: 0; padding: 0 0 14px; }
.timeline li::before {
  content: ""; position: absolute; left: -21px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ── Offers ────────────────────────────────────────────────────── */
.offer-list { margin: 0 0 12px; }
.card .offer-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.offer-list em { color: var(--muted); font-style: normal; font-size: 13px; }

/* ── Calendar / Agenda ─────────────────────────────────────────── */
.agenda-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.agenda-item:last-child { border-bottom: 0; }
.agenda-item time { color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.agenda-item p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.agenda-item form, .agenda-item select { display: flex; gap: 6px; align-items: center; }

/* ── Auth Pages — Premium Redesign ─────────────────────────────── */
.auth-body {
  margin: 0; min-height: 100vh;
  background: linear-gradient(135deg, #0B2344 0%, #091b36 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.auth-shell { display: flex; min-height: 100vh; }

/* ── Left Panel ── */
.auth-aside {
  position: relative; flex: 0 0 480px; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.auth-aside__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    url('../img/auth-bg.jpg') center/cover no-repeat,
    linear-gradient(160deg, rgba(13,148,136,.2), transparent 50%),
    linear-gradient(180deg, #0B2344, #091b36);
  opacity: .3;
}
.auth-aside__content {
  position: relative; z-index: 1; padding: 48px 40px;
}
.auth-aside__brand img {
  max-width: 200px; height: 48px; margin-bottom: 28px;
  object-fit: contain;
  border-radius: 10px;
}
.auth-aside__headline {
  font-size: 30px; font-weight: 800; line-height: 1.2;
  letter-spacing: -.03em; margin-bottom: 14px;
}
.auth-aside__headline span { color: var(--teal); }
.auth-aside__desc {
  font-size: 14px; color: rgba(213,222,234,.8); line-height: 1.7;
  max-width: 380px; margin-bottom: 32px;
}

/* Features */
.auth-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.auth-feature {
  display: flex; align-items: flex-start; gap: 14px;
}
.auth-feature__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(13,148,136,.15); border: 1px solid rgba(13,148,136,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.auth-feature strong { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.auth-feature span { font-size: 12px; color: rgba(213,222,234,.65); }

/* Stats */
.auth-stats {
  display: flex; gap: 28px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
}
.auth-stat { text-align: center; }
.auth-stat strong {
  display: block; font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--teal), #5eead4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-stat span { font-size: 11px; color: rgba(213,222,234,.6); text-transform: uppercase; letter-spacing: .5px; }

/* ── Right Panel ── */
.auth-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 28px 0 0 28px;
  overflow-y: auto;
}
.auth-card { width: 100%; max-width: 500px; }
.auth-footer-text {
  margin-top: 24px; font-size: 12px; color: #94a3b8; text-align: center;
}

/* Form Header */
.auth-form-header { text-align: center; margin-bottom: 28px; }
.auth-form-logo img {
  max-width: 180px; height: auto; margin: 0 auto 20px;
  display: block;
  object-fit: contain;
}
.auth-form-header h1 {
  font-size: 26px; font-weight: 800; color: var(--navy);
  margin: 0 0 6px; letter-spacing: -.03em;
}
.auth-form-header p { font-size: 14px; color: #64748b; margin: 0; }

/* Input Groups */
.auth-form { margin-bottom: 0; }
.auth-input-group { margin-bottom: 16px; }
.auth-input-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px;
}
.auth-input-group label .req { color: #ef4444; }
.auth-input-wrapper {
  position: relative; display: flex; align-items: center;
}
.auth-input-icon {
  position: absolute; left: 14px; pointer-events: none; z-index: 1;
}
.auth-input-wrapper input {
  width: 100%; padding: 13px 14px 13px 44px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 14px; color: var(--navy);
  background: #fff;
  transition: all .2s ease;
  outline: none;
}
.auth-input-wrapper input:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.auth-input-wrapper input::placeholder { color: #cbd5e1; }

/* Form Grid (Register) */
.auth-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 8px;
}
.auth-section-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 20px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.auth-section-label:first-child { margin-top: 0; }

/* Options Row */
.auth-options {
  display: flex; justify-content: space-between; align-items: center;
  margin: 14px 0 20px;
}
.auth-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #475569; cursor: pointer;
}
.auth-checkbox input { display: none; }
.auth-checkbox__mark {
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid #cbd5e1; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-checkbox input:checked + .auth-checkbox__mark {
  background: var(--teal); border-color: var(--teal);
}
.auth-checkbox input:checked + .auth-checkbox__mark::after {
  content: '✓'; color: #fff; font-size: 11px; font-weight: 700;
}
.auth-forgot {
  font-size: 13px; font-weight: 600; color: var(--teal);
  text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

/* Consent */
.auth-consent {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px; margin: 16px 0;
  background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
  border: 1px solid #99f6e4; border-radius: 12px;
  font-size: 12px; color: #475569; line-height: 1.5;
  cursor: pointer;
}
.auth-consent input { display: none; }
.auth-consent__mark {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid #cbd5e1; background: #fff;
  transition: all .2s; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.auth-consent input:checked + .auth-consent__mark {
  background: var(--teal); border-color: var(--teal);
}

/* Submit Button */
.auth-submit {
  width: 100%; padding: 14px 24px; border: none;
  border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--teal), #0f766e);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(13,148,136,.3);
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,.4);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit--register {
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  box-shadow: 0 4px 14px rgba(11,35,68,.3);
}
.auth-submit--register:hover {
  box-shadow: 0 8px 24px rgba(11,35,68,.4);
}

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.auth-divider span { font-size: 12px; color: #94a3b8; font-weight: 600; text-transform: uppercase; }

/* Switch Link */
.auth-switch { text-align: center; }
.auth-switch p { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.auth-switch__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--teal);
  text-decoration: none; padding: 10px 24px;
  border: 2px solid var(--teal); border-radius: 12px;
  transition: all .2s;
}
.auth-switch__link:hover {
  background: var(--teal); color: #fff;
}

/* ── Auth Responsive ── */
@media (max-width: 980px) {
  .auth-aside { flex: 0 0 360px; }
  .auth-aside__headline { font-size: 24px; }
  .auth-features { gap: 12px; }
}
@media (max-width: 768px) {
  .auth-aside { display: none; }
  .auth-wrap { border-radius: 0; padding: 24px 20px; min-height: 100vh; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .auth-card { max-width: 100%; }
}


/* ── Public Pages ──────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; padding: 36px 0 16px; }
.hero h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 12px; color: var(--navy); font-weight: 900; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.plan-list { display: grid; gap: 0; }
.plan-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
/* (public layout CSS moved to pub-header/pub-footer section below) */

/* ── Messaging / Chat ──────────────────────────────────────────── */
.is-chat .content { padding: 0; height: calc(100vh - var(--topbar-h)); display: flex; flex-direction: column; }
.is-chat .flash { margin: 12px 12px 0; }
.inbox {
  display: grid; grid-template-columns: 360px minmax(0, 1fr);
  flex: 1; min-height: 0; height: 100%;
  background: var(--card); border-top: 1px solid var(--line); overflow: hidden;
}
/* ── Thread List (sol panel) ── */
.thread-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--card); }
.chat-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 10px 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.chat-bar strong { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 16px; font-weight: 700; }
.chat-search {
  position: relative; padding: 8px 14px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid var(--line);
}
.chat-search input {
  width: 100%; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0;
  padding: 8px 12px 8px 36px; font-size: 13px; transition: all .2s;
}
.chat-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,128,128,.08); }
.chat-search svg { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #94a3b8; }
.chat-tabs {
  display: flex; gap: 4px; padding: 8px 14px; background: var(--card); border-bottom: 1px solid #f1f5f9;
}
.chat-tab {
  flex: 1; padding: 7px 12px; text-align: center; font-size: 12px; font-weight: 600;
  border-radius: 8px; color: #64748b; background: transparent; border: none; cursor: pointer; transition: all .2s;
}
.chat-tab:hover { background: #f1f5f9; color: var(--navy); }
.chat-tab.active { background: var(--teal); color: #fff; box-shadow: 0 2px 6px rgba(0,128,128,.25); }
.thread-scroll { overflow: auto; flex: 1; }
.thread-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px; align-items: center; padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.03); color: inherit;
  transition: background .15s ease;
  text-decoration: none; cursor: pointer;
}
.thread-item:hover { background: #f8fafc; }
.thread-item.active { background: linear-gradient(135deg, rgba(0,128,128,.06), rgba(0,128,128,.03)); border-left: 3px solid var(--teal); }
.thread-item .thread-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
}
.thread-copy { min-width: 0; }
.thread-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--navy); font-weight: 600; }
.thread-copy em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #94a3b8; font-style: normal; font-size: 12px; margin-top: 3px; }
.thread-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.thread-meta time { color: #94a3b8; font-size: 11px; }
.thread-meta b {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: linear-gradient(135deg, var(--teal), #14b8a6); color: #fff;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,128,128,.25);
}
.thread-empty { padding: 40px 20px; text-align: center; color: #94a3b8; font-size: 13px; }
.thread-empty svg { display: block; margin: 0 auto 12px; }
/* ── Chat Pane (sağ panel) ── */
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f0ebe3; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid var(--line);
}
.chat-head strong { display: block; color: var(--navy); font-size: 14px; font-weight: 700; }
.chat-head p { margin: 2px 0 0; color: #94a3b8; font-size: 12px; }
.chat-head__info { flex: 1; min-width: 0; }
.chat-head__actions { display: flex; gap: 6px; align-items: center; }
.chat-empty { margin: auto; text-align: center; max-width: 360px; padding: 32px; }
.chat-empty strong { display: block; font-size: 20px; color: var(--navy); margin-bottom: 8px; font-weight: 800; }
.chat-empty p { margin: 2px 0 0; color: #94a3b8; font-size: 13px; }
.compose { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--card); }
.compose-body { padding: 20px; overflow: auto; }
/* ── Bubbles ── */
.bubbles { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 16px 6%; scroll-behavior: smooth; }
.bubble-date { text-align: center; margin: 12px 0; }
.bubble-date span {
  display: inline-block; padding: 4px 14px; border-radius: 8px;
  background: rgba(255,255,255,.85); font-size: 11px; font-weight: 600; color: #64748b;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.bubble {
  max-width: min(72%, 540px); padding: 8px 12px 6px 12px;
  border-radius: 12px 12px 12px 4px;
  background: #fff; color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  position: relative;
}
.bubble p { margin: 2px 0; white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.bubble strong { display: block; font-size: 11px; color: var(--teal); font-weight: 700; margin-bottom: 2px; }

/* ── Mesaj Alt Satır (zaman + tik) ── */
.bubble-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 4px; margin-top: 2px;
}
.bubble-footer time { color: #94a3b8; font-size: 10px; }

/* ── Mesaj Durum Tikleri (WhatsApp tarzı) ── */
.msg-status { display: inline-flex; align-items: center; }
.tick { transition: color .2s; }
.tick--sent { color: #94a3b8; }
.tick--delivered { color: #94a3b8; }
.tick--read { color: #34d399; }

/* ── Online / Offline Göstergesi ── */
.chat-avatar-wrap { position: relative; flex-shrink: 0; }
.online-dot {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: #94a3b8; border: 2px solid #fff;
  transition: background .3s;
}
.online-dot.online { background: #22c55e; }
.online-text { font-size: 11px; color: #94a3b8; }
.online-text.online { color: #22c55e; font-weight: 600; }

/* ── Yeni mesaj animasyonu ── */
.bubble-new { animation: bubbleSlideIn .3s ease both; }
@keyframes bubbleSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 12px 12px 4px 12px;
}
/* ── İlan Paylaşım Kartı (bubble içinde) ── */
.bubble-property {
  display: flex; gap: 10px; align-items: center;
  background: linear-gradient(135deg, #f0fdfa, #f0f9ff);
  border: 1px solid #e0f2fe; border-radius: 10px;
  padding: 10px 12px; margin: 6px 0 4px; cursor: pointer;
  text-decoration: none; color: inherit; transition: all .2s;
}
.bubble-property:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(0,128,128,.1); }
.bubble-property__icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  display: flex; align-items: center; justify-content: center;
}
.bubble-property__info { flex: 1; min-width: 0; }
.bubble-property__info strong { display: block; font-size: 13px; color: var(--navy); margin: 0; }
.bubble-property__info span { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.bubble-property__price { font-size: 14px; font-weight: 700; color: var(--teal); white-space: nowrap; }
/* ── Composer (alt bar) ── */
.composer {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 16px; background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-top: 1px solid var(--line);
}
.composer textarea {
  flex: 1; min-height: 40px; max-height: 120px;
  border-radius: 20px; background: #fff;
  padding: 10px 16px; border: 1px solid #e2e8f0;
  resize: none; font-size: 14px; line-height: 1.4;
  transition: border-color .2s;
}
.composer textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,128,128,.08); }
.composer__tools { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; }
.composer__tool {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: transparent; color: #64748b; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.composer__tool:hover { background: #e2e8f0; color: var(--teal); }
.composer__send {
  width: 40px; height: 40px; min-height: 40px; border-radius: 50%; padding: 0;
  background: linear-gradient(135deg, var(--teal), #14b8a6); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,128,128,.3);
  transition: all .2s;
}
.composer__send:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,128,128,.35); }
/* ── İlan Paylaş Modal ── */
.share-property-bar {
  display: none; gap: 8px; padding: 10px 16px; background: #f0fdfa;
  border-top: 1px solid #ccfbf1; align-items: center;
  animation: slideUp .25s ease;
}
.share-property-bar.active { display: flex; }
.share-property-bar__preview {
  flex: 1; display: flex; gap: 8px; align-items: center; min-width: 0;
}
.share-property-bar__preview strong { font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-property-bar__preview span { font-size: 11px; color: #64748b; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ── Property Picker Dropdown ── */
.property-picker {
  position: absolute; bottom: 100%; left: 16px; right: 16px;
  background: #fff; border-radius: 12px; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  max-height: 300px; overflow: auto; display: none; z-index: 10;
  border: 1px solid #e2e8f0;
}
.property-picker.open { display: block; animation: slideUp .2s ease; }
.property-picker__head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9; position: sticky; top: 0; background: #fff; z-index: 1;
}
.property-picker__head input {
  flex: 1; border: none; font-size: 13px; padding: 6px 0; outline: none;
}
.property-picker__item {
  display: flex; gap: 10px; align-items: center; padding: 10px 14px;
  cursor: pointer; border-bottom: 1px solid #f8fafc; transition: background .15s;
}
.property-picker__item:hover { background: #f0fdfa; }
.property-picker__item strong { font-size: 13px; color: var(--navy); }
.property-picker__item span { font-size: 11px; color: #64748b; }

/* ── Leaflet Map ───────────────────────────────────────────────── */
.leaflet-control-zoom a { color: var(--navy); }

/* ── Mobile Nav ────────────────────────────────────────────────── */
.menu-btn { display: none; }
.sidebar-close, .tabbar, .nav-backdrop { display: none; }
.sidebar-close {
  margin: 0 0 8px auto;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  min-height: 34px; border-radius: var(--radius-sm);
}
.nav-backdrop { position: fixed; inset: 0; background: rgba(8, 18, 36, .5); z-index: 25; backdrop-filter: blur(4px); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(226, 232, 240, .6);
  padding: 4px 12px calc(4px + env(safe-area-inset-bottom));
  justify-content: space-around; gap: 2px;
  box-shadow: 0 -4px 24px rgba(11, 35, 68, .06), 0 -1px 4px rgba(11, 35, 68, .03);
}
.tabbar a, .tabbar button {
  flex: 1; flex-direction: column; gap: 2px;
  background: transparent; color: #94a3b8;
  border: 0; border-radius: 12px; padding: 6px 4px 4px;
  font-size: 10px; font-weight: 600; min-height: 52px;
  transition: all .2s var(--ease);
  box-shadow: none;
  position: relative;
  letter-spacing: .01em;
}
.tabbar svg { width: 24px; height: 24px; fill: currentColor; transition: transform .2s var(--ease); }
.tabbar a.active {
  color: var(--teal);
  background: linear-gradient(180deg, rgba(20, 184, 166, .08), transparent);
}
.tabbar a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--teal), #2dd4bf);
}
.tabbar a.active svg { transform: scale(1.1); }
.tabbar a:hover, .tabbar button:hover {
  transform: none; box-shadow: none;
  color: var(--teal);
  background: rgba(20, 184, 166, .04);
}
.tabbar__badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(14px);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .3);
}
.tabbar a.active svg { fill: currentColor; }
.tabbar button svg { fill: none; }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

.content > * { animation: fadeIn .3s var(--ease) both; }
.flash { animation: slideUp .4s var(--ease) both; }

/* ── Responsive: Tablet ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .filter-grid, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: Mobile ────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-4, .grid-3, .grid-2, .hero, .split, .form-grid, .auth-shell, .filter-grid, .facts { grid-template-columns: 1fr; }
  .toolbar > :where(input, select):not([type="hidden"]),
  .filters > :where(input, select):not([type="hidden"]),
  .toolbar .field, .filters .field { max-width: none; flex-basis: 100%; }
  .span-2 { grid-column: auto; }
  .menu-btn, .topbar__menu-btn, .sidebar-close, .tabbar { display: flex; }
  .topbar { height: 56px; padding: 0 16px; }
  .topbar form.search, .topbar__search { display: none; }
  .top-actions, .topbar__actions { width: auto; margin-left: auto; }
  .firm-chip, .topbar__firm { max-width: 42vw; }
  .firm-chip em, .topbar__verify { display: none; }
  .content { padding: 14px 14px 88px; }
  body:has(.tabbar) .content { padding-bottom: 88px; }
  .page, .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page h1, .page-head h1 { font-size: 20px; }
  .hero h1 { font-size: 28px; }
  .page-actions { flex-wrap: wrap; }
  .page-actions .btn { flex: 1; min-width: auto; }
  .page-head .btn.btn-accent { width: 100%; }
  .toolbar-actions, .filter-actions { width: 100%; }
  .toolbar-actions .btn, .filter-actions .btn { flex: 1; }
  .sheet.open, .drawer.open {
    position: fixed; left: 0; right: 0; bottom: 64px; z-index: 20;
    max-height: min(70dvh, 560px); overflow: auto; margin: 0; padding: 14px;
    background: var(--card); border: 0; border-top: 1px solid var(--line);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 30px rgba(11, 35, 68, .12);
  }
  body.is-chat .content { height: calc(100dvh - 56px - 64px); padding: 0; }
  .is-chat .topbar { display: flex; }
  .inbox.chat-open .thread-list, .inbox.writing .thread-list { display: none; }
  .inbox:not(.chat-open):not(.writing) .chat-pane { display: none; }
  body:has(.inbox.chat-open) .tabbar,
  body:has(.inbox.writing) .tabbar,
  body:has(.inbox.chat-open) .topbar,
  body:has(.inbox.writing) .topbar { display: none; }
  body:has(.inbox.chat-open) .content,
  body:has(.inbox.writing) .content { height: 100dvh; padding: 0; }
  .inbox { grid-template-columns: 1fr; border: 0; }
  .bubbles { padding: 14px; }
  .bubble { max-width: 86%; }
  .composer { flex-direction: row; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .composer__send { width: 40px; height: 40px; }
  .property-picker { left: 8px; right: 8px; }
  .sidebar { position: fixed; z-index: 30; width: min(88vw, 340px); transform: translateX(-105%); transition: transform .25s var(--ease); }
  .sidebar.open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .nav-backdrop.open { display: block; }
  .nav a { padding: 13px 16px; font-size: 15px; }
  .form-bar { flex-direction: column; align-items: stretch; }
  .tabs { display: flex; }
  .tabs .btn { flex: 1; }
  .card.listing-card { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .auth-aside { display: none; }
  .auth-wrap { min-height: 100vh; }
  input, select, textarea { font-size: 16px; }
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody { display: block; }
  table.responsive tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--card);
    box-shadow: var(--shadow-xs);
  }
  table.responsive tr.listing-card { cursor: pointer; }
  table.responsive tr.listing-card:hover { border-color: var(--teal); }
  table.responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    min-height: 28px;
    height: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    word-break: break-word;
    background: transparent;
    font-size: 13px;
  }
  table.responsive td:last-child { border-bottom: 0; }
  table.responsive td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 80px;
  }
  table.responsive td:empty, table.responsive td:not([data-label])::before { content: none; }
  .inline-form .btn { width: 100%; }
  .card .bars li, .bars li { grid-template-columns: 76px minmax(0, 1fr) 28px; }
  .agenda-item { grid-template-columns: 64px minmax(0, 1fr); }
  .agenda-item form, .agenda-item > .btn { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ── PWA Install Bottom Sheet ──────────────────────────────────── */
.pwa-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 35, 68, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
}
.pwa-overlay.show { display: block; animation: pwaFadeIn .3s ease both; }

.pwa-sheet {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 8px 24px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 48px rgba(11, 35, 68, .18);
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}
.pwa-sheet.show { display: block; animation: pwaSlideUp .4s cubic-bezier(.16, 1, .3, 1) both; }

.pwa-sheet__handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: #d1d5db; margin: 0 auto 16px;
}

.pwa-sheet__close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #475569; font-size: 14px; font-weight: 700; line-height: 1;
  transition: all .2s; padding: 0;
}
.pwa-sheet__close:hover { background: #e2e8f0; color: #1e293b; }

/* Logo — direkt büyük göster */
.pwa-sheet__logo {
  margin-bottom: 8px;
}
.pwa-sheet__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.pwa-sheet__subtitle {
  font-size: 13px; color: #64748b; margin: 0 0 16px; font-weight: 500;
}

/* Feature satırları */
.pwa-sheet__features {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px; text-align: left;
}
.pwa-sheet__feature {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  background: #fafbfc;
}
.pwa-sheet__fi {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
}
.pwa-sheet__feature div { flex: 1; min-width: 0; }
.pwa-sheet__feature strong {
  display: block; font-size: 13px; font-weight: 700;
  color: #1e293b; line-height: 1.3;
}
.pwa-sheet__feature span {
  display: block; font-size: 11px; color: #94a3b8;
  line-height: 1.3; margin-top: 1px;
}

/* Yükle butonu */
.pwa-sheet__install {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 24px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), #0d9488);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .2s var(--ease);
  box-shadow: 0 4px 14px rgba(20, 184, 166, .25);
}
.pwa-sheet__install:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, .35);
}

.pwa-sheet__later {
  display: block; width: 100%; margin-top: 8px; padding: 8px;
  background: transparent; border: none;
  color: #94a3b8; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pwa-sheet__later:hover { color: #64748b; }

@keyframes pwaSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pwaFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pwaSlideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes pwaFadeOut { from { opacity: 1; } to { opacity: 0; } }
.pwa-sheet.hiding { animation: pwaSlideDown .3s ease both; }
.pwa-overlay.hiding { animation: pwaFadeOut .3s ease both; }



/* ── Public Layout — Premium ──────────────────────────────────── */
.public-body { margin: 0; background: #fff; font-family: 'Inter', -apple-system, sans-serif; }

/* Header */
.pub-header {
  position: sticky; top: 0; z-index: 100;
  background: #0B2344;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s;
  overflow: hidden;
}
.pub-header:hover { box-shadow: 0 2px 24px rgba(0,0,0,.12); }
.pub-header__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; height: 60px;
  position: relative;
}

/* ── Logo curved white bg ── */
.pub-logo {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  padding: 0 28px 0 0;
}
.pub-logo::before {
  content: '';
  position: absolute;
  top: -30px; left: -600px; bottom: -30px;
  width: calc(100% + 620px);
  background: #fff;
  border-radius: 0 0 50px 0;
  z-index: -1;
  box-shadow: 4px 0 20px rgba(0,0,0,.08);
}
.pub-logo img { height: 34px; width: auto; display: block; }

.pub-nav { display: flex; gap: 4px; align-items: center; }
.pub-nav a {
  color: rgba(255,255,255,.75); font-weight: 500; font-size: 13px;
  text-decoration: none; transition: all .2s;
  padding: 8px 12px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.pub-nav a svg { flex-shrink: 0; opacity: .6; transition: opacity .2s; }
.pub-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.pub-nav a:hover svg { opacity: 1; }

.pub-nav__login {
  color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 6px !important; padding: 7px 14px !important;
  margin-left: 4px;
}
.pub-nav__login:hover { border-color: rgba(255,255,255,.5) !important; background: rgba(255,255,255,.06) !important; }

.pub-nav__cta {
  background: #D63031 !important; color: #fff !important;
  padding: 8px 18px !important; border-radius: 6px !important; font-weight: 700 !important;
  transition: background .2s, transform .2s;
  margin-left: 4px; border: none !important;
}
.pub-nav__cta:hover { background: #b71c1c !important; transform: translateY(-1px); }
.pub-nav__cta svg { display: none; }

.pub-menu-btn {
  display: none; background: rgba(255,255,255,.1); border: none; padding: 6px;
  cursor: pointer; border-radius: 8px; transition: all .2s;
}
.pub-menu-btn:hover { background: rgba(255,255,255,.15); }
.pub-menu-btn svg { display: block; stroke: #fff; }

/* ── Mobile Drawer ──────────────────────────────────────────── */
.mob-drawer-backdrop {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(11, 35, 68, .6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mob-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mob-drawer {
  position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw;
  height: 100vh; z-index: 999; background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mob-drawer.open { right: 0; }

.mob-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #E5E7EB; background: #FAFBFC;
}
.mob-drawer__header img { display: block; height: 28px; width: auto; }
.mob-drawer__close {
  background: #F1F5F9; border: none; border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: #0B2344;
  transition: background .2s, transform .2s;
}
.mob-drawer__close:hover { background: #E2E8F0; transform: rotate(90deg); }

.mob-drawer__nav {
  flex: 1; padding: 8px 0; display: flex; flex-direction: column;
}
.mob-drawer__link {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; color: #1E293B; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: all .15s;
  border-left: 3px solid transparent;
}
.mob-drawer__link svg { flex-shrink: 0; color: #64748B; transition: color .15s; }
.mob-drawer__link:hover, .mob-drawer__link:active {
  background: #FEF2F2; border-left-color: #D63031; color: #D63031;
}
.mob-drawer__link:hover svg { color: #D63031; }
.mob-drawer__link--login { color: #0B2344; }

.mob-drawer__divider {
  height: 1px; background: #E5E7EB; margin: 4px 20px;
}

.mob-drawer__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 8px 20px 12px; padding: 13px 20px; border-radius: 8px;
  background: #D63031; color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(214, 48, 49, .25);
}
.mob-drawer__cta:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(214, 48, 49, .35);
  background: #b71c1c;
}
.mob-drawer__cta svg { flex-shrink: 0; }

.mob-drawer__footer {
  padding: 14px 20px; border-top: 1px solid #E5E7EB;
  text-align: center; background: #FAFBFC;
}
.mob-drawer__footer p {
  margin: 0; font-size: 11px; color: #94a3b8;
}

/* Hero Search */
.hero-search {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0B2344 0%, #143d6b 40%, #0d9488 100%);
  padding: 80px 24px 60px;
}
.hero-search__bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-search__content {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; text-align: center;
}
.hero-search h1 {
  font-size: clamp(28px, 5vw, 46px); font-weight: 900;
  color: #fff; line-height: 1.15; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero-search__sub { color: rgba(255,255,255,.7); font-size: 17px; margin-bottom: 32px; }

/* Search Box */
.hero-search__box {
  background: #fff; border-radius: 16px;
  padding: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.hero-search__fields {
  display: flex; gap: 0; align-items: stretch;
}
.hero-search__field {
  flex: 1; padding: 10px 16px;
  border-right: 1px solid #e2e8f0;
}
.hero-search__field--main { flex: 2; }
.hero-search__field:last-of-type { border-right: 0; }
.hero-search__field label {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  color: #94a3b8; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.hero-search__field label svg {
  color: var(--teal); flex-shrink: 0; opacity: 0.7;
}
.hero-search__field input,
.hero-search__field select {
  border: none; background: transparent; width: 100%;
  font-size: 15px; font-weight: 600; color: var(--navy);
  padding: 2px 0; outline: none;
  font-family: inherit;
}
.hero-search__field select { cursor: pointer; }
.hero-search__btn {
  background: var(--teal); color: #fff;
  border: none; border-radius: 12px;
  padding: 0 28px; font-size: 16px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s, transform .15s;
  font-family: inherit;
}
.hero-search__btn:hover { background: var(--teal-dark); transform: scale(1.02); }

/* Stats */
.hero-search__stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 40px;
}
.hero-search__stats div { text-align: center; }
.hero-search__stats strong { display: block; font-size: 28px; font-weight: 900; color: #fff; }
.hero-search__stats span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ── Public Sections ──────────────────────────────────────────── */
.pub-section {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 24px;
}
.pub-section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; flex-wrap: wrap; gap: 8px;
}
.pub-section__head h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0; }
.pub-section__head p { color: #64748b; font-size: 15px; margin: 4px 0 0; }
.pub-section__more {
  font-weight: 700; font-size: 14px; color: var(--teal);
  text-decoration: none; white-space: nowrap;
}
.pub-section__more:hover { color: var(--teal-dark); }

/* ── Category Grid ────────────────────────────────────────────── */
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px; text-align: center;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; text-decoration: none; color: inherit;
  transition: all .25s ease;
}
.cat-card:hover {
  border-color: var(--teal); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,148,136,.12);
}
.cat-card__icon { font-size: 36px; margin-bottom: 12px; }
.cat-card__img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 2px solid #e2e8f0; transition: transform .3s ease; }
.cat-card:hover .cat-card__img { transform: scale(1.08); }
.cat-card h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.cat-card p { font-size: 12px; color: #64748b; margin: 0; }

/* ── Listing Grid ─────────────────────────────────────────────── */
.listing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.listing-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: all .25s ease;
  flex: 1 1 320px;
  max-width: 400px;
  min-width: 280px;
}
.listing-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.listing-card__link { text-decoration: none; color: inherit; display: block; }
.listing-card__cover {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f, #0d9488);
}
.listing-card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.listing-card:hover .listing-card__cover img { transform: scale(1.06); }
.listing-card__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,.2);
}
.listing-card__overlay {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.listing-card__type, .listing-card__cat {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 6px; backdrop-filter: blur(8px);
  background: rgba(255,255,255,.88); color: var(--navy);
}
.listing-card__body { padding: 16px; }
.listing-card__title {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin: 0 0 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card__loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: #64748b; margin-bottom: 8px;
}
.listing-card__loc svg { flex-shrink: 0; color: var(--teal); }
.listing-card__specs {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #64748b;
  margin-bottom: 12px;
}
.listing-card__specs span {
  display: flex; align-items: center; gap: 4px;
  background: #f8fafc; padding: 4px 8px; border-radius: 6px;
}
.listing-card__price {
  font-size: 18px; font-weight: 800; color: var(--teal);
  padding-top: 12px; border-top: 1px solid #f1f5f9;
  white-space: nowrap;
}

/* Empty */
.pub-empty {
  text-align: center; padding: 48px 20px;
  background: #f8fafc; border-radius: 16px; border: 2px dashed #e2e8f0;
}
.pub-empty__icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.pub-empty h3 { color: var(--navy); margin: 0 0 6px; }
.pub-empty p { color: #64748b; }

/* ── Listing Detail Page ──────────────────────────────────────── */
.ld-hero { max-width: 1200px; margin: 0 auto; padding: 24px 24px 0; }
.ld-gallery__main {
  position: relative; width: 100%; height: 500px; overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a5f, #0d9488);
}
.ld-gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 16px; transition: opacity .3s ease;
}
.ld-gallery__noimg {
  display: flex; align-items: center; justify-content: center;
}
.ld-gallery__noimg-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,.4); font-size: 15px; font-weight: 500;
}
.ld-gallery__nav {
  position: absolute; top: 50%; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 16px; transform: translateY(-50%);
  pointer-events: none;
}
.ld-gallery__arrow {
  pointer-events: all;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  transition: all .2s ease;
  opacity: 0;
}
.ld-gallery__main:hover .ld-gallery__arrow { opacity: 1; }
.ld-gallery__arrow:hover { background: #fff; transform: scale(1.1); }
.ld-gallery__counter {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.6); color: #fff;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px);
}
.ld-gallery__thumbs {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: thin;
}
.ld-gallery__thumb {
  flex-shrink: 0; width: 88px; height: 64px; border-radius: 10px;
  overflow: hidden; border: 3px solid transparent; cursor: pointer;
  background: none; padding: 0; transition: all .2s ease;
}
.ld-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ld-gallery__thumb:hover { border-color: var(--teal); }
.ld-gallery__thumb.active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(13,148,136,.3); }

/* Breadcrumb */
.ld-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: #94a3b8; margin-bottom: 20px;
}
.ld-breadcrumb a { color: #64748b; text-decoration: none; }
.ld-breadcrumb a:hover { color: var(--teal); }
.ld-breadcrumb span { color: var(--navy); font-weight: 600; }
.ld-breadcrumb svg { color: #cbd5e1; }

/* Content Layout */
.ld-content {
  max-width: 1200px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: 1fr 360px; gap: 32px;
  align-items: start;
}
.ld-main { min-width: 0; }

/* Header */
.ld-header { margin-bottom: 24px; }
.ld-header__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ld-badge {
  display: inline-flex; align-items: center; padding: 5px 14px;
  border-radius: 8px; font-size: 12px; font-weight: 700;
}
.ld-badge--type { background: var(--teal); color: #fff; }
.ld-badge--cat { background: #e0f2fe; color: #0369a1; }
.ld-badge--code { background: #f1f5f9; color: #64748b; font-family: 'SF Mono', monospace; font-size: 11px; letter-spacing: .5px; }
.ld-title { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0 0 12px; line-height: 1.25; }
.ld-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; color: #64748b;
}

/* Price Box */
.ld-price-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: #fff; border-radius: 16px;
  padding: 24px 28px; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 24px rgba(26,35,50,.15);
}
.ld-price-box__label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 4px; }
.ld-price { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.ld-price__sqm {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.12); padding: 8px 16px;
  border-radius: 10px; backdrop-filter: blur(4px);
}

/* Section Title */
.ld-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 20px;
  padding-bottom: 14px; border-bottom: 2px solid #f1f5f9;
}

/* Specs */
.ld-specs-section { margin-bottom: 28px; }
.ld-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ld-spec {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: #fff;
  border-radius: 12px; border: 1px solid #e2e8f0;
  transition: all .2s ease;
}
.ld-spec:hover { border-color: var(--teal); background: #f0fdfa; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,148,136,.08); }
.ld-spec__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #f0fdfa; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ld-spec__label {
  font-size: 11px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .3px; display: block;
}
.ld-spec__value { font-size: 16px; font-weight: 700; color: var(--navy); display: block; margin-top: 2px; }

/* Features */
.ld-features-section { margin-bottom: 28px; }
.ld-features {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.ld-feature {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: #f0fdfa;
  border: 1px solid #ccfbf1; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  transition: all .2s ease;
}
.ld-feature:hover { background: #ccfbf1; border-color: var(--teal); }
.ld-feature__icon { font-size: 18px; }

/* Description */
.ld-description {
  background: #fff; border-radius: 16px;
  border: 1px solid #e2e8f0; padding: 28px; margin-bottom: 28px;
}
.ld-description .ld-section-title { border-bottom: none; padding-bottom: 0; }
.ld-description__text {
  font-size: 15px; line-height: 1.85; color: #475569;
}

/* Map */
.ld-map-section {
  background: #fff; border-radius: 16px;
  border: 1px solid #e2e8f0; padding: 28px; margin-bottom: 28px;
}
.ld-map-section .ld-section-title { border-bottom: none; padding-bottom: 0; }
.ld-map { height: 320px; border-radius: 12px; margin: 0; border: 1px solid #e2e8f0; }

/* Sidebar */
.ld-sidebar { position: sticky; top: 80px; }

/* Firm Card */
.ld-firm-card {
  background: #fff; border-radius: 16px;
  border: 1px solid #e2e8f0; padding: 24px; margin-bottom: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.ld-firm-card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ld-firm-card__avatar {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #2d4a6f);
  color: #fff; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ld-firm-card__name { font-weight: 700; color: var(--navy); font-size: 16px; display: block; text-decoration: none; }
.ld-firm-card__name:hover { color: var(--teal); }
.ld-firm-card__logo {
  width: 52px; height: 52px; border-radius: 14px; object-fit: contain;
  border: 1px solid #e2e8f0; flex-shrink: 0; background: #fff;
}
.ld-firm-card__advisor-row {
  display: flex; align-items: center; gap: 6px; margin-top: 4px;
}
.ld-firm-card__advisor-img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--teal); flex-shrink: 0;
}
.ld-firm-card__advisor-initials {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: var(--navy); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ld-firm-card__advisor { font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.ld-firm-card__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: 10px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: all .2s ease; margin-bottom: 8px;
}
.ld-firm-card__btn:last-child { margin-bottom: 0; }
.ld-firm-card__btn--phone { background: var(--ok); color: #fff; }
.ld-firm-card__btn--phone:hover { background: #047857; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.ld-firm-card__btn--email { background: #f8fafc; color: var(--navy); border: 1px solid #e2e8f0; }
.ld-firm-card__btn--email:hover { border-color: var(--teal); background: #f0fdfa; }
.ld-firm-card__btn--store { background: #f8fafc; color: var(--teal); border: 1px solid #e2e8f0; font-weight: 700; }
.ld-firm-card__btn--store:hover { background: #f0fdfa; border-color: var(--teal); }

/* Inquiry Form */
.ld-inquiry {
  background: #fff; border-radius: 16px;
  border: 1px solid #e2e8f0; padding: 28px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.ld-inquiry__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 20px;
}
.ld-inquiry__field { margin-bottom: 14px; }
.ld-inquiry__field label {
  display: block; font-size: 13px; font-weight: 600;
  color: #475569; margin-bottom: 6px;
}
.ld-inquiry__field input,
.ld-inquiry__field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0;
  border-radius: 10px; font-size: 14px;
  transition: all .2s ease; background: #f8fafc;
}
.ld-inquiry__field input:focus,
.ld-inquiry__field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
  background: #fff;
}
.ld-inquiry__checks { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ld-inquiry__checks .check { font-size: 12px; color: #64748b; }
.ld-inquiry__submit {
  width: 100%; padding: 15px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal) 0%, #0f766e 100%);
  color: #fff; font-weight: 700; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(13,148,136,.25);
}
.ld-inquiry__submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,.35); }

/* Listing Detail Mobile */
@media (max-width: 980px) {
  .ld-hero { padding: 12px 12px 0; }
  .ld-gallery__main { height: 300px; border-radius: 12px; }
  .ld-gallery__main img { border-radius: 12px; }
  .ld-gallery__arrow { opacity: 1; width: 36px; height: 36px; }
  .ld-gallery__thumbs { margin-top: 8px; }
  .ld-gallery__thumb { width: 68px; height: 50px; border-radius: 8px; }
  .ld-content { grid-template-columns: 1fr; padding: 16px 12px; gap: 20px; }
  .ld-sidebar { position: static; }
  .ld-title { font-size: 22px; }
  .ld-price-box { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }
  .ld-price { font-size: 26px; }
  .ld-specs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ld-spec { padding: 12px; }
  .ld-spec__icon { width: 36px; height: 36px; }
  .ld-spec__value { font-size: 14px; }
  .ld-description, .ld-map-section { padding: 20px; border-radius: 12px; }
  .ld-firm-card, .ld-inquiry { padding: 20px; }
  .ld-breadcrumb { font-size: 12px; margin-bottom: 16px; }
}

/* ── Feature Grid ─────────────────────────────────────────────── */
.pub-features { background: #f8fafc; max-width: none; padding: 64px 24px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
}
.feature-card {
  background: #fff; border-radius: 16px;
  padding: 32px 24px; border: 1px solid #e2e8f0;
  transition: all .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  border-radius: 14px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: #64748b; line-height: 1.6; margin: 0; }

/* ── Pricing ──────────────────────────────────────────────────── */
.pub-pricing { text-align: center; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.pricing-card {
  position: relative; background: #fff; border-radius: 20px;
  padding: 36px 28px; border: 2px solid #e2e8f0;
  transition: all .25s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.08); }
.pricing-card--popular { border-color: var(--teal); box-shadow: 0 8px 32px rgba(13,148,136,.15); }
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 16px; border-radius: 20px; letter-spacing: .04em;
}
.pricing-card__name { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.pricing-card__desc { font-size: 13px; color: #94a3b8; margin: 0 0 16px; line-height: 1.5; min-height: 40px; }
.pricing-card__amount { font-size: 36px; font-weight: 900; color: var(--navy); }
.pricing-card__currency { font-size: 20px; font-weight: 700; color: var(--navy); }
.pricing-card__period { font-size: 15px; color: #94a3b8; }
.pricing-card__features {
  list-style: none; padding: 0; margin: 24px 0; text-align: left;
}
.pricing-card__features li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; font-size: 13px; color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.pricing-card__features li svg { flex-shrink: 0; }
.pricing-card__btn {
  display: block; width: 100%; padding: 12px;
  border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; text-align: center;
  border: 2px solid var(--line); color: var(--navy);
  transition: all .2s;
}
.pricing-card__btn:hover { border-color: var(--teal); color: var(--teal); }
.pricing-card__btn--primary {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.pricing-card__btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* ── CTA ──────────────────────────────────────────────────────── */
.pub-cta {
  background: linear-gradient(135deg, #0B2344, #143d6b);
  text-align: center; padding: 64px 24px; color: #fff;
}
.pub-cta h2 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; margin: 0 0 12px; }
.pub-cta p { color: rgba(255,255,255,.7); font-size: 16px; margin: 0 0 28px; }
.pub-cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pub-cta__btn {
  background: var(--teal); color: #fff; padding: 14px 32px;
  border-radius: 12px; font-weight: 800; font-size: 16px;
  text-decoration: none; transition: all .2s;
}
.pub-cta__btn:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.pub-cta__link {
  color: rgba(255,255,255,.8); font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 14px 16px;
}
.pub-cta__link:hover { color: #fff; }

/* ── SEO Content ──────────────────────────────────────────────── */
.pub-seo { padding-top: 32px; padding-bottom: 32px; }
.pub-seo h2 { font-size: 18px; color: var(--navy); margin: 0 0 12px; }
.pub-seo p { font-size: 14px; color: #64748b; line-height: 1.8; margin: 0 0 12px; }

/* ── Footer ───────────────────────────────────────────────────── */
/* ── Footer — Premium Gemini Design ──────────────────────────── */
.pub-footer {
  background: #0B2344; color: rgba(255,255,255,.7);
  background-image: url('../img/footer-bg.jpg');
  background-size: cover; background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
}
.pub-footer::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0B2344 0%, rgba(11,35,68,.85) 40%, rgba(11,35,68,.95) 100%);
}
.pub-footer__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: 56px 24px 40px;
}
.pub-footer__brand img { height: 40px; margin-bottom: 16px; border-radius: 6px; }
.pub-footer__brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.pub-footer__brand .pub-footer__social {
  display: flex; gap: 12px; margin-top: 20px;
}
.pub-footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  text-decoration: none; transition: all .2s;
}
.pub-footer__social a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.pub-footer__links h4 {
  color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 16px;
  position: relative; padding-bottom: 10px;
}
.pub-footer__links h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 24px; height: 2px; background: var(--teal); border-radius: 2px;
}
.pub-footer__links a {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.6); font-size: 13px;
  text-decoration: none; padding: 5px 0; transition: all .2s;
}
.pub-footer__links a:hover { color: #fff; padding-left: 4px; }
.pub-footer__links a::before {
  content: '›'; font-size: 16px; font-weight: 700; color: var(--teal);
  opacity: 0; transition: opacity .2s;
}
.pub-footer__links a:hover::before { opacity: 1; }
.pub-footer__bottom {
  position: relative; z-index: 1;
  text-align: center; padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: rgba(255,255,255,.4);
}

/* ── Tablet ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .listing-card { flex: 1 1 280px; max-width: 50%; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ── Public Mobile ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pub-nav { display: none; }
  .pub-menu-btn { display: flex; align-items: center; justify-content: center; }
  .pub-logo { padding: 0 20px 0 0; }
  .pub-logo::before { border-radius: 0 0 32px 0; }
  .hero-search { padding: 48px 16px 40px; }
  .hero-search h1 { font-size: 26px; }
  .hero-search__sub { font-size: 14px; }
  .hero-search__fields { flex-direction: column; gap: 0; }
  .hero-search__field { border-right: 0; border-bottom: 1px solid #e2e8f0; padding: 10px 14px; }
  .hero-search__field:last-of-type { border-bottom: 0; }
  .hero-search__btn { width: 100%; justify-content: center; padding: 14px; border-radius: 10px; margin-top: 4px; }
  .hero-search__stats { gap: 20px; margin-top: 28px; }
  .hero-search__stats strong { font-size: 22px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 16px 8px; }
  .cat-card__icon { font-size: 28px; margin-bottom: 8px; }
  .cat-card h3 { font-size: 12px; }
  .cat-card p { display: none; }
  .listing-card { flex: 1 1 100%; max-width: 100%; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 24px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card__desc { min-height: auto; }
  .pub-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pub-section { padding: 36px 16px; }
  .pub-section__head { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ── Badge System ──────────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.ok, .ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn, .warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.teal { background: var(--teal-light); color: var(--teal-dark); }
.badge.muted { background: var(--bg); color: var(--muted); }

/* ── Section Note ──────────────────────────────────────────────── */
.section-note { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ── Form Bar ──────────────────────────────────────────────────── */
.form-bar { margin-top: 14px; display: flex; gap: 8px; }

/* ── btn-danger ────────────────────────────────────────────────── */
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

/* ── Data Table Wrapper (no extra card) ────────────────────────── */
.data { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: auto; }

/* ── Toolbar Card ──────────────────────────────────────────────── */
.toolbar-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; margin-bottom: 12px; }

/* ── Listing Card ──────────────────────────────────────────────── */
tr.listing-card, .card.listing-card { transition: transform .2s, box-shadow .2s; cursor: pointer; }
tr.listing-card:hover, .card.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── Error Page ────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 80px 20px; max-width: 480px; margin: 0 auto; }
.error-page .error-icon { font-size: 64px; margin-bottom: 16px; }
.error-page h1 { font-size: 24px; margin-bottom: 12px; color: var(--navy); }
.error-page p { margin-bottom: 24px; }

/* ── Facts Row ─────────────────────────────────────────────────── */
.facts { display: flex; flex-wrap: wrap; gap: 12px; }
.fact { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; min-width: 100px; }
.fact span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact strong { font-size: 18px; color: var(--navy); }

/* ── Gallery ───────────────────────────────────────────────────── */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.gallery figure { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.gallery img { border-radius: var(--radius-sm); }

/* ── Chat Enhancements ─────────────────────────────────────────── */
.chat-empty { animation: fadeIn .3s; }

/* ── Sections ──────────────────────────────────────────────────── */
.sections { display: flex; flex-direction: column; gap: 12px; }

/* ── Page Actions ──────────────────────────────────────────────── */
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Portföy Modülü ───────────────────────────────────────────── */

/* Tıklanabilir tablo satırları */
tr.listing-card { cursor: pointer; transition: background .15s ease; }
tr.listing-card:hover { background: var(--teal-light); }
tr.listing-card td:first-child { padding: 8px; }

/* Grid helpers */
.grid { display: grid; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* Fotoğraf galerisi */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.gallery figure img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.gallery figure:hover img { transform: scale(1.03); }

/* Fact boxes */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}
.fact {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}
.fact span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .3px; }
.fact strong { font-size: 15px; font-weight: 700; color: var(--navy); }

/* Section notes */
.section-note { font-size: 12px; margin-bottom: 12px; }
.sections { display: flex; flex-direction: column; gap: 16px; }
.sections .card { margin-bottom: 0; }

/* Sticky form bar */
.form-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Filters layout */
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

/* Details summary */
details summary {
  user-select: none;
  cursor: pointer;
  padding: 6px 0;
}
details summary:hover { color: var(--teal); }

/* Split: main + sidebar */
.split { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
}
.split > aside .card { margin-bottom: 8px; }

/* Record header */
.page-head.record {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

/* Inline form */
.inline-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Status badges enhanced */
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

/* ── Portfolio Card Grid ────────────────────────────────────────── */
.prop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}
.prop-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--line);
}
.prop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

/* Cover image */
.prop-card__cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2e44 0%, #0d9488 100%);
}
.prop-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.prop-card:hover .prop-card__cover img {
  transform: scale(1.05);
}
.prop-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,.25);
}
.prop-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* Body */
.prop-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.prop-card__code {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.prop-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prop-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.prop-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  margin-top: 2px;
}
.prop-card__price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  border-top: 1px solid var(--line);
}
.prop-count {
  font-size: 13px;
  margin-bottom: 8px;
  text-align: right;
}

/* ── Portfolio Filters ─────────────────────────────────────────── */
.prop-filters {
  margin-bottom: 10px;
}
.prop-filters__main {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.prop-filters__search {
  flex: 2 1 200px;
  min-width: 160px;
  margin: 0;
}
.prop-filters__select {
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0;
}
.prop-filters__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-self: flex-end;
}

/* ── Portfolio Saved Searches ──────────────────────────────────── */
.prop-saved {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.prop-saved__form {
  display: flex;
  gap: 4px;
  align-items: center;
}
.prop-saved__form input[name="name"] {
  width: 160px;
  font-size: 12px;
  padding: 6px 10px;
}

/* ── Desktop table (still used for contacts etc.) ──────────────── */
.cover {
  border-radius: 6px;
  object-fit: cover;
}

/* ── Mobile portfolio overrides ────────────────────────────────── */
@media (max-width: 768px) {
  .prop-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .prop-card__cover { height: 160px; }
  .prop-card__price { font-size: 16px; }
  .prop-filters__main {
    flex-direction: column;
    gap: 8px;
  }
  .prop-filters__search,
  .prop-filters__select {
    flex-basis: 100%;
    min-width: 100%;
  }
  .prop-filters__actions {
    width: 100%;
  }
  .prop-filters__actions .btn {
    flex: 1;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .prop-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .prop-card__cover { height: 160px; }
}

/* Large desktop */
@media (min-width: 1400px) {
  .prop-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Quick Actions (Dashboard Icons) ──────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: all .25s var(--ease);
  background: var(--bg-subtle);
}
.quick-action:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--navy);
}
.quick-action img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.quick-action span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* ── Portföy Filtreleri Mobile ─────────────────────────────────── */
.prop-filters__main {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.prop-filters__search { flex: 1; min-width: 200px; }
.prop-filters__select { min-width: 130px; }
.prop-filters__actions { display: flex; gap: 6px; align-items: flex-end; }

/* ── Portfolio Card Responsive ─────────────────────────────────── */
.prop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ── Public Empty State ────────────────────────────────────────── */
.pub-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
}
.pub-empty__icon { font-size: 56px; margin-bottom: 16px; opacity: .5; }
.pub-empty h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.pub-empty p { color: var(--muted); font-size: 14px; }

/* ── Enhanced Mobile Responsive ────────────────────────────────── */
@media (max-width: 980px) {
  /* Dashboard */
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-action { padding: 12px 6px; }
  .quick-action img { width: 36px; height: 36px; }
  .quick-action span { font-size: 11px; }

  /* Portfolio Filters */
  .prop-filters__main { flex-direction: column; }
  .prop-filters__search { min-width: 100%; }
  .prop-filters__select { min-width: 100%; }
  .prop-filters__actions { width: 100%; }
  .prop-filters__actions .btn { flex: 1; }

  /* Portfolio Card */
  .prop-list { grid-template-columns: 1fr; gap: 12px; }
  .prop-card__cover { height: 160px; }

  /* Public Hero Search */
  .hero-search { padding: 28px 16px 24px !important; }
  .hero-search h1 { font-size: 22px !important; }
  .hero-search__fields { flex-direction: column; }
  .hero-search__field { min-width: 100%; padding: 8px 14px; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.08); }
  .hero-search__field--main { min-width: 100%; }
  .hero-search__btn { width: 100%; border-radius: 0 0 12px 12px; padding: 14px; }

  /* Public Category Grid */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 18px 10px; }
  .cat-card__img { width: 56px; height: 56px; margin-bottom: 10px; }
  .cat-card h3 { font-size: 12px; }
  .cat-card p { font-size: 10px; }

  /* Public Listing Grid */
  .listing-card { flex: 1 1 100% !important; max-width: 100% !important; }

  /* Public Stats */
  .hero-search__stats { flex-wrap: wrap; gap: 12px; }
  .hero-search__stats div { min-width: 60px; }
  .hero-search__stats strong { font-size: 20px; }
  .hero-search__stats small { font-size: 10px; }

  /* Public Feature Grid */
  .pub-features .feature-grid { grid-template-columns: 1fr !important; }

  /* Pricing Grid */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-card { padding: 24px 20px; }

  /* Public CTA */
  .pub-cta { padding: 36px 16px; }
  .pub-cta h2 { font-size: 22px; }

  /* Public SEO */
  .pub-seo { padding: 28px 16px; }

  /* Public Footer */
  .pub-footer__inner { grid-template-columns: 1fr !important; gap: 24px; text-align: center; }
  .pub-footer__brand p { max-width: 100%; margin: 0 auto; }
  .pub-footer__brand img { margin: 0 auto 12px; }
  .pub-footer__links { text-align: center; }
  .pub-footer__bottom { text-align: center; }

  /* Sections */
  .pub-section { padding: 28px 16px; }
  .pub-section__head { flex-direction: column; gap: 8px; text-align: center; }
  .pub-section__head h2 { font-size: 20px; }
}

/* ── Extra Small Mobile (< 480px) ──────────────────────────────── */
@media (max-width: 480px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { padding: 14px 8px; }
  .cat-card__img { width: 48px; height: 48px; }

  /* Public Header Mobile */
  .pub-header__inner { padding: 0 12px; height: 52px; }
  .pub-logo img { height: 26px; }

  /* Listing Card */
  .listing-card__cover { aspect-ratio: 16/9; }
  .listing-card__body { padding: 14px; }
  .listing-card__title { font-size: 15px; }

  /* Pricing */
  .pricing-card__price { font-size: 28px; }

  /* Dashboard Metric Cards */
  .board.grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric strong { font-size: 22px; }
  .metric .label { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   FIRM PUBLIC PAGE
   ═══════════════════════════════════════════════════════════════ */
.firm-hero {
  background: linear-gradient(135deg, var(--brand, var(--navy)) 0%, #1a3a5c 100%);
  color: #fff; padding: 48px 0;
}
.firm-hero__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.firm-hero__identity { display: flex; align-items: center; gap: 20px; }
.firm-hero__logo {
  width: 80px; height: 80px; border-radius: 20px; object-fit: contain;
  background: #fff; border: 3px solid rgba(255,255,255,.3); flex-shrink: 0;
}
.firm-hero__logo-placeholder {
  width: 80px; height: 80px; border-radius: 20px;
  background: rgba(255,255,255,.15); border: 3px solid rgba(255,255,255,.2);
  color: #fff; font-weight: 800; font-size: 36px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.firm-hero__name {
  font-size: 28px; font-weight: 800; margin: 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.firm-hero__badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.firm-hero__tagline { font-size: 15px; color: rgba(255,255,255,.75); margin-top: 4px; }
.firm-hero__stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.firm-hero__stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.firm-hero__stat-num { font-size: 32px; font-weight: 800; line-height: 1; }
.firm-hero__stat-label { font-size: 13px; color: rgba(255,255,255,.7); }

/* Firm Body */
.firm-body { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.firm-section { margin-bottom: 40px; }
.firm-section__title {
  font-size: 20px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.firm-section__count {
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 12px; margin-left: 4px;
}
.firm-about { line-height: 1.8; color: #475569; font-size: 15px; }

/* Team */
.firm-team {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.firm-team__member {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; min-width: 120px;
}
.firm-team__avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--teal); margin-bottom: 10px;
}
.firm-team__avatar-ph {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2d4a6f);
  color: #fff; font-weight: 800; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.firm-team__name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.firm-team__contact {
  font-size: 12px; color: #64748b; text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.firm-team__contact:hover { color: var(--teal); }

/* Listings Grid */
.firm-listings {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.firm-listing-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid #e2e8f0; background: #fff;
  transition: all .25s ease;
}
.firm-listing-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.firm-listing-card__link { text-decoration: none; color: inherit; display: block; }
.firm-listing-card__cover {
  position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f1f5f9;
}
.firm-listing-card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.firm-listing-card:hover .firm-listing-card__cover img { transform: scale(1.05); }
.firm-listing-card__no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: #f8fafc;
}
.firm-listing-card__price {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 13px;
  padding: 5px 12px; border-radius: 8px;
}
.firm-listing-card__type {
  position: absolute; top: 10px; right: 10px;
  background: rgba(11,35,68,.85); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.firm-listing-card__body { padding: 14px 16px; }
.firm-listing-card__title {
  font-size: 15px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.firm-listing-card__loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #64748b; margin-bottom: 4px;
}
.firm-listing-card__code { font-size: 11px; color: #94a3b8; }

/* Empty State */
.firm-empty {
  text-align: center; padding: 48px; color: #94a3b8;
  border: 2px dashed #e2e8f0; border-radius: 16px;
}
.firm-empty p { margin-top: 12px; font-size: 15px; }

/* Contact Grid */
.firm-contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.firm-contact-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f8fafc; padding: 16px; border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.firm-contact-item strong { display: block; font-size: 13px; color: var(--navy); margin-bottom: 2px; }
.firm-contact-item p { font-size: 14px; color: #475569; margin: 0; }
.firm-contact-item a { color: var(--teal); text-decoration: none; }
.firm-contact-item a:hover { text-decoration: underline; }

/* Responsive Firm Page */
@media (max-width: 980px) {
  .firm-hero__inner { flex-direction: column; text-align: center; }
  .firm-hero__identity { flex-direction: column; }
  .firm-hero__name { justify-content: center; font-size: 22px; }
  .firm-listings { grid-template-columns: repeat(2, 1fr); }
  .firm-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .firm-hero { padding: 32px 0; }
  .firm-hero__logo, .firm-hero__logo-placeholder { width: 64px; height: 64px; }
  .firm-hero__name { font-size: 20px; }
  .firm-hero__stat-num { font-size: 24px; }
  .firm-listings { grid-template-columns: 1fr; }
  .firm-team { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════
   V2 COMPONENT SYSTEM — Premium Panel Redesign
   ══════════════════════════════════════════════════════════════════ */

/* ── Page Head V2 ── */
.page-head-v2 {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-head-v2__badge { display: flex; gap: 8px; margin-bottom: 8px; }
.badge-plan {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-plan--active { background: #ecfdf5; color: #059669; }
.badge-plan--trial { background: #eff6ff; color: #3b82f6; }
.badge-plan--name { background: var(--navy); color: #fff; }
.page-head-v2__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 26px; font-weight: 800; color: var(--navy);
  letter-spacing: -.03em; margin: 0 0 6px;
}
.page-head-v2__sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #64748b; margin: 0;
}
.page-head-v2__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Button V2 ── */
.btn-v2 {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .2s ease;
  white-space: nowrap;
}
.btn-v2--primary {
  background: linear-gradient(135deg, var(--teal), #0f766e);
  color: #fff; box-shadow: 0 2px 10px rgba(13,148,136,.3);
}
.btn-v2--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(13,148,136,.4); }
.btn-v2--outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid #e2e8f0;
}
.btn-v2--outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-v2--danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-v2--ghost { background: transparent; color: #64748b; padding: 8px 14px; }
.btn-v2--ghost:hover { color: var(--navy); background: #f1f5f9; }

/* ── Metric Cards ── */
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: #fff; border-radius: 14px; padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all .25s ease; position: relative; overflow: hidden;
}
.metric-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 0 4px 4px 0;
}
.metric-card--teal::before { background: linear-gradient(180deg, var(--teal), #5eead4); }
.metric-card--blue::before { background: linear-gradient(180deg, #3b82f6, #93c5fd); }
.metric-card--green::before { background: linear-gradient(180deg, #10b981, #6ee7b7); }
.metric-card--orange::before { background: linear-gradient(180deg, #f59e0b, #fcd34d); }
.metric-card--purple::before { background: linear-gradient(180deg, #8b5cf6, #c4b5fd); }
.metric-card--emerald::before { background: linear-gradient(180deg, #10b981, #a7f3d0); }
.metric-card--cyan::before { background: linear-gradient(180deg, #06b6d4, #67e8f9); }
.metric-card--amber::before { background: linear-gradient(180deg, #f59e0b, #fde68a); }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.metric-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.metric-card--teal .metric-card__icon { background: #f0fdfa; color: var(--teal); }
.metric-card--blue .metric-card__icon { background: #eff6ff; color: #3b82f6; }
.metric-card--green .metric-card__icon { background: #ecfdf5; color: #10b981; }
.metric-card--orange .metric-card__icon { background: #fffbeb; color: #f59e0b; }
.metric-card--purple .metric-card__icon { background: #f5f3ff; color: #8b5cf6; }
.metric-card--emerald .metric-card__icon { background: #ecfdf5; color: #10b981; }
.metric-card--cyan .metric-card__icon { background: #ecfeff; color: #06b6d4; }
.metric-card--amber .metric-card__icon { background: #fffbeb; color: #f59e0b; }
.metric-card__data { flex: 1; min-width: 0; }
.metric-card__label { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.metric-card__value { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-top: 2px; }
.metric-card__value small { font-size: 14px; font-weight: 500; color: #94a3b8; }
.metric-card__trend { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.metric-card__trend--up { background: #ecfdf5; color: #059669; }
.metric-card__trend--down { background: #fef2f2; color: #ef4444; }
.metric-card__badge {
  padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;
  background: #eff6ff; color: #3b82f6;
}
.metric-card__badge--green { background: #ecfdf5; color: #059669; }

/* ── Card V2 ── */
.card-v2 {
  background: #fff; border-radius: 14px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden; margin-bottom: 16px;
}
.card-v2__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #f1f5f9;
}
.card-v2__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--navy); margin: 0;
}
.card-v2__link {
  font-size: 12px; font-weight: 600; color: var(--teal);
  text-decoration: none;
}
.card-v2__link:hover { text-decoration: underline; }
.card-v2__body { padding: 18px 20px; }
.card-v2__section-label {
  font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase;
  letter-spacing: .5px; margin: 0 0 10px;
}

/* ── Dashboard Grid ── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid__left > .card-v2 { height: 100%; }

/* ── Task List ── */
.task-list { display: flex; flex-direction: column; }
.task-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f8fafc;
}
.task-item:last-child { border-bottom: none; }
.task-item__check { flex-shrink: 0; }
.task-item__info { flex: 1; min-width: 0; }
.task-item__info strong { display: block; font-size: 13px; color: var(--navy); }
.task-item__code {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; margin-top: 3px;
}
.task-item__date { font-size: 12px; color: #94a3b8; white-space: nowrap; }

/* ── Empty State Mini ── */
.empty-state-mini {
  text-align: center; padding: 24px 0;
}
.empty-state-mini p { font-size: 13px; color: #94a3b8; margin-top: 8px; }

/* ── Announce Item ── */
.announce-item {
  display: flex; gap: 10px; padding: 12px;
  background: #eff6ff; border-radius: 10px; margin-bottom: 8px;
}
.announce-item:last-child { margin-bottom: 0; }
.announce-item svg { flex-shrink: 0; margin-top: 2px; }
.announce-item strong { display: block; font-size: 13px; color: var(--navy); }
.announce-item p { font-size: 12px; color: #64748b; margin: 4px 0 0; }

/* ── Quota Rows ── */
.quota-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f8fafc;
}
.quota-row:last-child { border-bottom: none; }
.quota-row__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  min-width: 90px; flex-shrink: 0;
}
.quota-row__bar {
  flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden;
}
.quota-row__fill {
  height: 100%; border-radius: 4px; transition: width .4s ease;
}
.quota-row__val {
  font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap;
  min-width: 75px; text-align: right;
}

/* ── Quick Grid ── */
.quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px; border-radius: 12px; text-decoration: none;
  border: 1px solid #f1f5f9; transition: all .2s;
}
.quick-card:hover {
  border-color: var(--teal); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.quick-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.quick-card__icon--teal { background: #f0fdfa; color: var(--teal); }
.quick-card__icon--blue { background: #eff6ff; color: #3b82f6; }
.quick-card__icon--orange { background: #fffbeb; color: #f59e0b; }
.quick-card__icon--purple { background: #f5f3ff; color: #8b5cf6; }
.quick-card__icon--green { background: #ecfdf5; color: #10b981; }
.quick-card__icon--navy { background: #eef2ff; color: var(--navy); }
.quick-card span { font-size: 12px; font-weight: 600; color: var(--navy); }

/* ── Match Score ── */
.match-score {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
}
.match-score--full { background: #ecfdf5; color: #059669; }
.match-score--partial { background: #fffbeb; color: #f59e0b; }
.match-property {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--navy); font-size: 13px;
}
.match-property:hover { color: var(--teal); }
.match-actions {
  display: flex; gap: 4px; align-items: center;
}
.match-actions__input {
  width: 80px; height: 30px; border: 1px solid var(--line);
  border-radius: 8px; padding: 0 8px; font-size: 12px;
}

/* ── Deal Summary ── */
.deal-summary {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; font-weight: 700; font-size: 15px;
  cursor: pointer; color: var(--navy);
  list-style: none;
}
.deal-summary::-webkit-details-marker { display: none; }
.deal-summary svg { color: var(--teal); }

/* ── Deal Card V2 ── */
.deal-card-v2 {
  background: #fff; border: 1px solid #f1f5f9;
  border-radius: 12px; padding: 14px;
  margin-bottom: 8px; cursor: grab;
  transition: all .15s; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.deal-card-v2:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-1px); }
.deal-card-v2__title {
  font-weight: 700; font-size: 13px; color: var(--navy);
  text-decoration: none; display: block; margin-bottom: 8px;
}
.deal-card-v2__title:hover { color: var(--teal); }
.deal-card-v2__meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: #64748b; margin-bottom: 10px;
}
.deal-card-v2__meta span { display: inline-flex; align-items: center; gap: 3px; }
.deal-card-v2__meta svg { color: #94a3b8; }
.deal-card-v2__amount { font-weight: 700; color: var(--teal) !important; }
.deal-card-v2__stage {
  display: flex; gap: 4px; align-items: center;
}
.deal-card-v2__stage select {
  flex: 1; font-size: 12px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-subtle);
}

/* ── Kanban V2 ── */
.kanban-col__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; margin-bottom: 10px;
}
.kanban-col__head h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0; }
.kanban-col__count {
  padding: 2px 10px; border-radius: 8px;
  background: #f1f5f9; color: #64748b;
  font-size: 12px; font-weight: 700;
}
.kanban-col__empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px; text-align: center; color: #cbd5e1; font-size: 13px;
}

/* ── Table V2 Avatar Small ── */
.table-v2__avatar--sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }

/* ── Agenda Item V2 ── */
.agenda-item-v2 {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid #f8fafc;
}
.agenda-item-v2:last-child { border-bottom: none; }
.agenda-item-v2 time {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--teal);
  white-space: nowrap; min-width: 80px; flex-shrink: 0;
}
.agenda-item-v2__info { flex: 1; min-width: 0; }
.agenda-item-v2__info strong { display: block; font-size: 13px; color: var(--navy); }
.agenda-item-v2__info p {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #64748b; margin: 4px 0 0;
}
.agenda-item-v2__map {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--teal); text-decoration: none; font-weight: 600;
}
.agenda-item-v2__map:hover { text-decoration: underline; }
.agenda-item-v2__form {
  display: flex; gap: 4px; align-items: center; flex-shrink: 0;
}
.agenda-item-v2__form select {
  font-size: 12px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-subtle);
}

/* ── Notification List ── */
.notif-list { }
.notif-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #f8fafc;
  transition: background .1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #fafbfd; }
.notif-item--unread { background: #f0fdfa; border-radius: 8px; margin: 2px 8px; border-bottom: none; }
.notif-item__content { display: flex; align-items: flex-start; gap: 10px; flex: 1; }
.notif-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 6px;
}
.notif-item__text { flex: 1; }
.notif-item__text strong { display: block; font-size: 13px; color: var(--navy); }
.notif-item__text p { font-size: 12px; color: #64748b; margin: 3px 0 0; }
.notif-item__time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #94a3b8; margin-top: 4px;
}

/* ── Pref Grid ── */
.pref-grid { display: grid; gap: 6px; }
.pref-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg-subtle); border-radius: 10px;
}
.pref-item__label { font-weight: 600; font-size: 13px; color: var(--navy); }
.pref-item__checks { display: flex; gap: 16px; }
.pref-item__checks .check {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; cursor: pointer;
}

/* ── Share Item ── */
.share-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f8fafc;
}
.share-item:last-child { border-bottom: none; }
.share-item__info {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--navy);
}
.share-item__info strong { font-weight: 700; }

/* ── Empty State Mini ── */
.empty-state-mini {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px; text-align: center;
}
.empty-state-mini p { font-size: 13px; color: #94a3b8; margin: 0; }

/* ── Quota Row ── */
.quota-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f8fafc;
}
.quota-row:last-child { border-bottom: none; }
.quota-row__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  min-width: 100px;
}
.quota-row__bar {
  flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px;
  overflow: hidden;
}
.quota-row__fill { height: 100%; border-radius: 4px; transition: width .3s; }
.quota-row__val {
  font-size: 12px; font-weight: 700; color: #64748b;
  white-space: nowrap; min-width: 70px; text-align: right;
}

/* ── Btn V2 Extras ── */
.btn-v2--outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  background: transparent; color: var(--navy);
  border: 1.5px solid #e2e8f0;
  cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.btn-v2--outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-v2--danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  background: #fef2f2; color: #ef4444;
  border: 1px solid #fecaca;
  cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.btn-v2--danger:hover { background: #fee2e2; }

/* ── Form Section ── */
.form-section { margin-bottom: 16px; }
.form-section__hint { font-size: 12px; color: #94a3b8; font-weight: 400; }
.form-checks { display: flex; flex-wrap: wrap; gap: 14px; }
.form-checks .check { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.required { color: #ef4444; font-weight: 600; }

/* ── Wizard Stepper ── */
.wizard-stepper {
  display: flex; align-items: center; gap: 0;
  background: var(--card); border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px; padding: 12px 20px; margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.wizard-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
  border: 2px solid transparent;
}
.wizard-step:hover { background: #f8fafc; }
.wizard-step.active { background: rgba(20,184,166,.08); border-color: var(--teal); }
.wizard-step.done { background: rgba(16,185,129,.05); }
.wizard-step__num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  background: #f1f5f9; color: #94a3b8; transition: all .2s;
}
.wizard-step.active .wizard-step__num { background: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(20,184,166,.3); }
.wizard-step.done .wizard-step__num { background: #10b981; color: #fff; }
.wizard-step__label { font-size: 13px; font-weight: 600; color: #94a3b8; transition: color .2s; }
.wizard-step.active .wizard-step__label { color: var(--navy); }
.wizard-step.done .wizard-step__label { color: #10b981; }
.wizard-step__arrow { color: #e2e8f0; display: flex; align-items: center; padding: 0 4px; flex-shrink: 0; }
.wizard-panel { display: none; animation: wizFadeIn .3s ease; }
.wizard-panel.active { display: block; }
@keyframes wizFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.wizard-footer {
  position: sticky; bottom: 0; z-index: 10;
  background: var(--card); padding: 14px 20px; border-radius: 14px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; gap: 12px;
}
.wizard-footer__info { font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.wizard-footer__btns { display: flex; gap: 8px; }
.wizard-progress { height: 4px; background: #f1f5f9; border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.wizard-progress__bar { height: 100%; background: linear-gradient(90deg, var(--teal), #0d9488); border-radius: 4px; transition: width .4s ease; }
.wiz-section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.wiz-section-title__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(20,184,166,.08); }
.wiz-section-title h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0; }
.wiz-section-title p { font-size: 13px; color: #94a3b8; margin: 2px 0 0; }
@media (max-width: 768px) {
  .wizard-stepper { padding: 8px 12px; }
  .wizard-step { padding: 8px 10px; gap: 6px; }
  .wizard-step__label { display: none; }
  .wizard-step__num { width: 28px; height: 28px; font-size: 12px; }
  .wizard-footer { padding: 12px 14px; flex-wrap: wrap; }
  .wizard-footer__info { width: 100%; order: 2; justify-content: center; }
  .wizard-footer__btns { width: 100%; justify-content: space-between; }
}

/* ── Form Sticky Bar ── */
.form-sticky-bar {
  position: sticky; bottom: 0; z-index: 10;
  background: var(--card); padding: 14px 20px; border-radius: 14px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08); display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}


/* ── Detail Facts ── */
.detail-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.detail-fact {
  padding: 10px 14px; background: var(--bg-subtle); border-radius: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.detail-fact span { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .3px; }
.detail-fact strong { font-size: 15px; font-weight: 800; color: var(--navy); }

/* ── Plan Card ── */
.plan-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; background: #fff; border-radius: 14px;
  border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all .15s;
}
.plan-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.plan-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.plan-card__price {
  font-size: 22px; font-weight: 800; color: var(--teal);
}
.plan-card__price small { font-size: 12px; color: #94a3b8; font-weight: 400; }

/* ── Card V2 Extras ── */
.card-v2__header {
  padding: 16px 20px 0; display: flex; align-items: center;
  justify-content: space-between;
}
.card-v2__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--navy); margin: 0;
}
.card-v2__body { padding: 16px 20px; }

/* ── Page Head V2 Extras ── */
.page-head-v2__eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--teal); margin: 0 0 6px;
}
.page-head-v2__count {
  font-weight: 800; color: var(--navy);
}

/* ── Filter Card V2 ── */
.filter-card-v2 {
  background: #fff; border-radius: 14px; padding: 16px 20px;
  border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 16px;
}
.filter-card-v2__main {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.filter-card-v2__field {
  display: flex; flex-direction: column; gap: 4px; min-width: 140px;
}
.filter-card-v2__field--search {
  flex: 2; min-width: 200px; flex-direction: row; align-items: center; gap: 8px;
  background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; height: 40px;
}
.filter-card-v2__field--search:focus-within {
  border-color: var(--teal); box-shadow: var(--shadow-glow);
}
.filter-card-v2__field--search input {
  border: none; background: transparent; outline: none; width: 100%; height: 100%;
  font-size: 13px; color: var(--navy);
}
.filter-card-v2__field label {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase;
  letter-spacing: .3px;
}
.filter-card-v2__field select,
.filter-card-v2__field input:not([type="hidden"]) {
  height: 40px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 13px; background: var(--bg-subtle);
  transition: all .15s;
}
.filter-card-v2__field select:focus,
.filter-card-v2__field input:focus {
  border-color: var(--teal); box-shadow: var(--shadow-glow); background: #fff;
}
.filter-card-v2__actions { display: flex; gap: 6px; align-items: flex-end; }
.filter-card-v2__details-trigger {
  cursor: pointer; font-size: 13px; font-weight: 600; color: #64748b;
  padding: 6px 0; user-select: none;
}

/* ── Saved Searches V2 ── */
.saved-searches-v2 {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.saved-searches-v2__form {
  display: flex; gap: 6px; align-items: center;
}
.saved-searches-v2__form input[name="name"] {
  height: 32px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font-size: 12px; width: 140px;
}
.saved-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 8px;
  background: #f0fdfa; color: var(--teal);
  font-size: 12px; font-weight: 600; text-decoration: none;
  transition: all .15s;
}
.saved-chip:hover { background: #ccfbf1; }
.saved-chip__del {
  background: none; border: none; cursor: pointer;
  color: #ef4444; font-size: 12px; padding: 2px 4px;
}

/* ── Prop Tags ── */
.prop-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
}
.prop-tag--teal { background: #f0fdfa; color: var(--teal); }
.prop-tag--muted { background: #f1f5f9; color: #64748b; }
.prop-tag--outline { background: transparent; border: 1px solid #e2e8f0; color: #64748b; }
.prop-tag--green { background: #ecfdf5; color: #059669; }
.prop-tag--blue { background: #eff6ff; color: #3b82f6; }
.prop-tag--orange { background: #fffbeb; color: #f59e0b; }
.prop-tag--red { background: #fef2f2; color: #ef4444; }

/* ── Empty State V2 ── */
.empty-state-v2 {
  text-align: center; padding: 48px 20px;
  background: #fff; border-radius: 14px;
  border: 1px solid #f1f5f9;
}
.empty-state-v2__icon { margin-bottom: 16px; }
.empty-state-v2 h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.empty-state-v2 p { font-size: 14px; color: #94a3b8; margin: 0 0 20px; }

/* ── Result Count V2 ── */
.result-count-v2 {
  text-align: center; font-size: 12px; color: #94a3b8;
  padding: 12px 0; font-weight: 600;
}

/* ── Table V2 ── */
.table-v2__wrap { overflow-x: auto; }
.table-v2 {
  width: 100%; border-collapse: collapse;
}
.table-v2 thead th {
  padding: 12px 16px; font-size: 11px; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: .4px;
  text-align: left; border-bottom: 2px solid #f1f5f9;
  white-space: nowrap;
  display: flex; display: revert; /* reset */
}
.table-v2 thead th {
  display: table-cell;
}
.table-v2 thead th svg { vertical-align: -2px; margin-right: 4px; }
.table-v2 tbody tr {
  border-bottom: 1px solid #f8fafc;
  transition: background .1s;
  cursor: pointer;
}
.table-v2 tbody tr:hover { background: #fafbfd; }
.table-v2 tbody td {
  padding: 12px 16px; font-size: 13px; color: var(--navy);
  vertical-align: middle;
}
.table-v2__user {
  display: flex; align-items: center; gap: 10px;
}
.table-v2__avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #2d4a6f);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.table-v2__user strong { font-size: 13px; display: block; }
.table-v2__company { font-size: 11px; color: #94a3b8; }

/* ── V2 Responsive ── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-card-v2__main { flex-direction: column; }
  .filter-card-v2__field { min-width: 0; width: 100%; }
  .filter-card-v2__actions { width: 100%; }
  .filter-card-v2__actions .btn-v2 { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .page-head-v2 { flex-direction: column; }
  .page-head-v2__actions { width: 100%; }
  .page-head-v2__actions .btn-v2 { flex: 1; justify-content: center; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .table-v2 thead { display: none; }
  .table-v2 tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
  .table-v2 tbody td { display: flex; justify-content: space-between; padding: 4px 16px; font-size: 13px; }
  .table-v2 tbody td::before { content: attr(data-label); font-weight: 700; color: #64748b; font-size: 11px; }
  .table-v2__user { margin-bottom: 4px; }
}

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .tabbar, .nav-backdrop, .pwa-sheet, .pwa-overlay { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .prop-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .prop-card__cover { height: 120px; }
}

/* ================================================================
   Landing Page v3 — Animations & New Sections
   ================================================================ */

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: translateY(0) } }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes particle { 0% { transform: translateY(0) rotate(0deg); opacity: .6 } 100% { transform: translateY(-100vh) rotate(720deg); opacity: 0 } }
@keyframes glow { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
@keyframes shimmer { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }

.animate-fade-in { animation: fadeIn .6s ease both; }
.animate-slide-up { animation: slideUp .7s ease both; }
.animate-float { animation: float 4s ease-in-out infinite; }

.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
noscript ~ .animate-on-scroll, .no-js .animate-on-scroll { opacity: 1; transform: none; }

/* ── Hero Particles ──────────────────────────────────────────── */
.hero-search__particles { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-search__particles span {
  position: absolute; display: block; width: 6px; height: 6px;
  background: rgba(255,255,255,.15); border-radius: 50%;
  animation: particle linear infinite;
}
.hero-search__particles span:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 0s; }
.hero-search__particles span:nth-child(2) { left: 25%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 1s; }
.hero-search__particles span:nth-child(3) { left: 40%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 2s; }
.hero-search__particles span:nth-child(4) { left: 55%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 0.5s; }
.hero-search__particles span:nth-child(5) { left: 70%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 3s; }
.hero-search__particles span:nth-child(6) { left: 85%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 1.5s; }
.hero-search__particles span:nth-child(7) { left: 15%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: 4s; }
.hero-search__particles span:nth-child(8) { left: 60%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 2.5s; }

/* ── Hero Badge ──────────────────────────────────────────────── */
.hero-search__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}

/* ── Hero Highlight ──────────────────────────────────────────── */
.hero-search__highlight {
  background: linear-gradient(90deg, var(--teal), #5eead4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Stats v3 ───────────────────────────────────────────── */
.hero-stat {
  display: flex; align-items: center; gap: 10px;
  text-align: left;
}
.hero-stat__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.hero-stat strong { display: block; font-size: 22px; font-weight: 900; color: #fff; line-height: 1.2; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.55); }

/* ── Hero Visual (optional) ──────────────────────────────────── */

/* ── Trust Bar ───────────────────────────────────────────────── */
.trust-bar {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}
.trust-bar__inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.trust-bar__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}

/* ── Showcase Section ────────────────────────────────────────── */
.pub-showcase__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 80px;
}
.pub-showcase__row--reverse { direction: rtl; }
.pub-showcase__row--reverse > * { direction: ltr; }
.pub-showcase__badge {
  display: inline-block; background: var(--teal-light); color: var(--teal-dark);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px;
}
.pub-showcase__badge--purple { background: #f3e8ff; color: #7c3aed; }
.pub-showcase__text h2 { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 0 0 16px; }
.pub-showcase__text p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 20px; }
.pub-showcase__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.pub-showcase__list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.pub-showcase__cta {
  display: inline-block; font-size: 15px; font-weight: 700; color: var(--teal);
  text-decoration: none; transition: color .2s;
}
.pub-showcase__cta:hover { color: var(--teal-dark); }
.pub-showcase__visual img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  transition: transform .3s;
}
.pub-showcase__visual:hover img { transform: scale(1.02); }

/* ── Cat Card v3 — Enhanced ──────────────────────────────────── */
.cat-card { position: relative; overflow: hidden; }
.cat-card__icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-light), #ccfbf1);
  color: var(--teal); margin-bottom: 10px;
  transition: transform .3s, background .3s;
}
.cat-card:hover .cat-card__icon-wrap { transform: scale(1.1); background: linear-gradient(135deg, var(--teal), #0d9488); color: #fff; }
.cat-card__arrow {
  position: absolute; top: 16px; right: 16px;
  font-size: 18px; color: var(--teal);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}
.cat-card:hover .cat-card__arrow { opacity: 1; transform: translateX(0); }

/* ── CTA Glow ────────────────────────────────────────────────── */
.pub-cta { position: relative; overflow: hidden; }
.pub-cta__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(32,168,181,.15) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}

/* ── Feature card hover ──────────────────────────────────────── */
.feature-card { transition: transform .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }

/* ── Responsive for new sections ─────────────────────────────── */
@media (max-width: 768px) {
  .hero-search__visual { margin-top: 8px; padding: 0 12px; }
  .hero-search__badge { font-size: 11px; padding: 4px 12px; }
  .hero-stat strong { font-size: 18px; }
  .hero-stat__icon { width: 32px; height: 32px; }
  .trust-bar__inner { gap: 16px; }
  .trust-bar__item { font-size: 11px; }
  .pub-showcase__row { grid-template-columns: 1fr; gap: 24px; }
  .pub-showcase__row--reverse { direction: ltr; }
  .pub-showcase__text h2 { font-size: 22px; }
  .pub-showcase__visual img { border-radius: 12px; }
}

/* ================================================================
   CRM Page Styles
   ================================================================ */
.crm-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0B2344 0%, #143d6b 50%, #0d9488 100%);
  padding: 100px 24px 60px; text-align: center;
}
.crm-hero__content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.crm-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 100px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.crm-hero h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 900;
  color: #fff; line-height: 1.15; margin: 0 0 16px;
}
.crm-hero h1 span { background: linear-gradient(90deg, var(--teal), #5eead4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.crm-hero p { color: rgba(255,255,255,.7); font-size: 17px; max-width: 600px; margin: 0 auto 32px; line-height: 1.6; }
.crm-hero__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.crm-hero__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.crm-hero__btn--primary { background: var(--teal); color: #fff; }
.crm-hero__btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.crm-hero__btn--secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.crm-hero__btn--secondary:hover { background: rgba(255,255,255,.2); }
.crm-hero__visual { position: relative; z-index: 1; max-width: 960px; margin: 40px auto 0; padding: 0 24px; }
.crm-hero__visual img { width: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }

.crm-features {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
}
.crm-features__header { text-align: center; margin-bottom: 48px; }
.crm-features__header h2 { font-size: 32px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.crm-features__header p { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.crm-features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.crm-feature-card {
  background: var(--card); border-radius: 16px; padding: 32px;
  border: 1px solid var(--line); transition: all .3s;
  position: relative; overflow: hidden;
}
.crm-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), #5eead4);
  opacity: 0; transition: opacity .3s;
}
.crm-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.crm-feature-card:hover::before { opacity: 1; }
.crm-feature-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-light), #ccfbf1);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 16px;
}
.crm-feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.crm-feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.crm-showcase {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 80px;
}
.crm-showcase__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 80px;
}
.crm-showcase__row--reverse { direction: rtl; }
.crm-showcase__row--reverse > * { direction: ltr; }
.crm-showcase__text h2 { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0 0 16px; line-height: 1.2; }
.crm-showcase__text p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 20px; }
.crm-showcase__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.crm-showcase__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.5; }
.crm-showcase__list svg { flex-shrink: 0; margin-top: 2px; }
.crm-showcase__visual img { width: 100%; border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.12); transition: transform .3s; }
.crm-showcase__visual:hover img { transform: scale(1.02); }

.crm-cta {
  background: linear-gradient(135deg, #0B2344 0%, #143d6b 100%);
  padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.crm-cta h2 { font-size: 32px; font-weight: 800; color: #fff; margin: 0 0 16px; }
.crm-cta p { color: rgba(255,255,255,.7); font-size: 16px; margin: 0 0 32px; }

@media (max-width: 1024px) {
  .crm-features__grid[style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .crm-features__grid { grid-template-columns: 1fr; }
  .crm-features__grid[style*="grid-template-columns: repeat(4"] { grid-template-columns: 1fr !important; }
  .crm-showcase__row { grid-template-columns: 1fr; gap: 24px; }
  .crm-showcase__row--reverse { direction: ltr; }
  .crm-hero { padding: 80px 16px 40px; }
  .crm-hero h1 { font-size: 24px; }
  .crm-hero p { font-size: 15px; }
  .crm-features__header h2 { font-size: 24px; }
  .crm-cta h2 { font-size: 24px; }
}

/* ================================================================
   CTA v2 — Premium Call to Action
   ================================================================ */
.pub-cta-v2 {
  position: relative; overflow: hidden;
  padding: 100px 24px; text-align: center;
  background: #0B2344;
}
.pub-cta-v2__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .6;
}
.pub-cta-v2__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,35,68,.85) 0%, rgba(20,61,107,.7) 50%, rgba(13,148,136,.4) 100%);
}
.pub-cta-v2__content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
.pub-cta-v2__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 100px;
  padding: 8px 20px; font-size: 13px; font-weight: 600;
  color: #5eead4; margin-bottom: 24px;
}
.pub-cta-v2 h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900;
  color: #fff; line-height: 1.2; margin: 0 0 16px;
}
.pub-cta-v2__content > p {
  color: rgba(255,255,255,.7); font-size: 16px;
  line-height: 1.7; margin: 0 0 32px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Stats */
.pub-cta-v2__stats {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.pub-cta-v2__stat {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  padding: 14px 20px; color: #fff;
}
.pub-cta-v2__stat svg { color: #5eead4; flex-shrink: 0; }
.pub-cta-v2__stat strong { font-size: 20px; font-weight: 800; display: block; line-height: 1; }
.pub-cta-v2__stat span { font-size: 12px; color: rgba(255,255,255,.6); }

/* Buttons */
.pub-cta-v2__actions {
  display: flex; justify-content: center; gap: 14px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.pub-cta-v2__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all .3s;
}
.pub-cta-v2__btn--primary {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff; box-shadow: 0 8px 32px rgba(13,148,136,.4);
}
.pub-cta-v2__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(13,148,136,.6); }
.pub-cta-v2__btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff; border: 1px solid rgba(255,255,255,.2);
}
.pub-cta-v2__btn--ghost:hover { background: rgba(255,255,255,.15); }

/* Trust */
.pub-cta-v2__trust {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.pub-cta-v2__trust > div {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.5);
}
.pub-cta-v2__trust svg { color: rgba(255,255,255,.4); }

/* ================================================================
   SEO v2 — Premium Content Grid
   ================================================================ */
.pub-seo-v2 {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 80px 24px;
}
.pub-seo-v2__inner { max-width: 1100px; margin: 0 auto; }
.pub-seo-v2__header {
  text-align: center; margin-bottom: 48px;
}
.pub-seo-v2__header h2 {
  font-size: 28px; font-weight: 800; color: var(--navy);
  margin: 0 0 12px;
}
.pub-seo-v2__header p {
  font-size: 15px; color: var(--text-secondary); margin: 0;
}
.pub-seo-v2__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 40px;
}
.pub-seo-v2__card {
  background: var(--card); border-radius: 16px; padding: 28px;
  border: 1px solid var(--line); transition: all .3s;
  position: relative; overflow: hidden;
}
.pub-seo-v2__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), #5eead4);
  opacity: 0; transition: opacity .3s;
}
.pub-seo-v2__card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.pub-seo-v2__card:hover::before { opacity: 1; }
.pub-seo-v2__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-light), #ccfbf1);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 16px;
}
.pub-seo-v2__card h3 {
  font-size: 17px; font-weight: 700; color: var(--navy);
  margin: 0 0 10px;
}
.pub-seo-v2__card p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; margin: 0;
}
.pub-seo-v2__bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pub-seo-v2__bottom p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; max-width: 700px; margin: 0 auto;
}

/* ================================================================
   Footer v2 — Premium Multi-Section
   ================================================================ */
.pub-footer-v2 {
  background: linear-gradient(180deg, #0a1e38 0%, #0B2344 100%);
  color: #fff;
}

/* Top bar */
.pub-footer-v2__top {
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 24px 24px;
}
.pub-footer-v2__top-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.pub-footer-v2__newsletter h3 {
  font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 4px;
}
.pub-footer-v2__newsletter p {
  font-size: 13px; color: rgba(255,255,255,.45); margin: 0;
}
.pub-footer-v2__contact {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.pub-footer-v2__contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7);
}
.pub-footer-v2__contact-item svg { color: #D63031; flex-shrink: 0; }

/* Main */
.pub-footer-v2__main { padding: 48px 24px; }
.pub-footer-v2__main-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}

/* Brand — curved white logo */
.pub-footer-v2__brand { position: relative; }
.pub-footer-v2__logo-wrap {
  position: relative; display: inline-block;
  background: #fff; padding: 12px 24px 12px 16px;
  border-radius: 0 50px 50px 0;
  margin-left: -40px; margin-bottom: 18px;
  box-shadow: 4px 0 20px rgba(0,0,0,.1);
}
.pub-footer-v2__logo-wrap img { height: 32px; width: auto; display: block; }
.pub-footer-v2__brand p {
  font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7;
  margin: 0 0 20px; max-width: 260px;
}
.pub-footer-v2__social {
  display: flex; gap: 8px;
}
.pub-footer-v2__social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); transition: all .2s;
  text-decoration: none;
}
.pub-footer-v2__social-btn:hover {
  background: #D63031; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214,48,49,.3);
}

/* Columns */
.pub-footer-v2__col h4 {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.06);
}
.pub-footer-v2__col a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6);
  text-decoration: none; padding: 6px 0; transition: all .2s;
}
.pub-footer-v2__col a svg {
  flex-shrink: 0; opacity: .4; transition: all .2s;
}
.pub-footer-v2__col a:hover {
  color: #fff; padding-left: 4px;
}
.pub-footer-v2__col a:hover svg {
  opacity: 1; color: #D63031;
}

/* Bottom */
.pub-footer-v2__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 24px;
}
.pub-footer-v2__bottom-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.pub-footer-v2__bottom span {
  font-size: 12px; color: rgba(255,255,255,.3);
}
.pub-footer-v2__badges {
  display: flex; align-items: center; gap: 12px;
}
.pub-footer-v2__badge-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04); padding: 5px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.06);
}
.pub-footer-v2__badge-item svg { color: #D63031; }

/* Responsive */
@media (max-width: 768px) {
  .pub-cta-v2 { padding: 60px 16px; }
  .pub-cta-v2 h2 { font-size: 24px; }
  .pub-cta-v2__stats { gap: 12px; }
  .pub-cta-v2__stat { padding: 10px 14px; }
  .pub-cta-v2__stat strong { font-size: 16px; }
  .pub-cta-v2__actions { flex-direction: column; align-items: center; }
  .pub-cta-v2__btn { width: 100%; max-width: 300px; justify-content: center; }
  .pub-seo-v2__grid { grid-template-columns: 1fr; }
  .pub-seo-v2__header h2 { font-size: 22px; }
  .pub-footer-v2__main-inner { grid-template-columns: 1fr; gap: 32px; }
  .pub-footer-v2__top-inner { flex-direction: column; text-align: center; }
  .pub-footer-v2__contact { justify-content: center; }
  .pub-footer-v2__bottom-inner { flex-direction: column; text-align: center; }
  .pub-footer-v2__badges { justify-content: center; flex-wrap: wrap; }
  .pub-footer-v2__logo-wrap { margin-left: 0; border-radius: 12px; }
  .pub-footer-v2__brand { text-align: center; }
  .pub-footer-v2__brand p { margin: 0 auto 20px; }
  .pub-footer-v2__social { justify-content: center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .pub-footer-v2__main-inner { grid-template-columns: 1fr 1fr; }
  .pub-seo-v2__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   Legal Pages — Professional Layout
   ================================================================ */

/* Hero */
.legal-hero {
  background: linear-gradient(135deg, #0B2344 0%, #143d6b 100%);
  padding: 100px 24px 48px; text-align: center;
}
.legal-hero__content { max-width: 700px; margin: 0 auto; }
.legal-hero__breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; margin-bottom: 20px;
}
.legal-hero__breadcrumb a {
  color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s;
}
.legal-hero__breadcrumb a:hover { color: #5eead4; }
.legal-hero__breadcrumb svg { color: rgba(255,255,255,.3); }
.legal-hero__breadcrumb span { color: #5eead4; font-weight: 600; }
.legal-hero h1 {
  font-size: clamp(24px, 4vw, 34px); font-weight: 900;
  color: #fff; margin: 0 0 12px; line-height: 1.2;
}
.legal-hero > .legal-hero__content > p {
  color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.6;
  margin: 0 0 20px;
}
.legal-hero__meta {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.legal-hero__meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.4); font-weight: 500;
}
.legal-hero__meta svg { color: rgba(255,255,255,.35); }

/* Page layout */
.legal-page {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid; grid-template-columns: 260px 1fr; gap: 48px;
}

/* Sidebar */
.legal-page__sidebar { position: sticky; top: 80px; align-self: start; }
.legal-page__nav {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; margin-bottom: 20px;
}
.legal-page__nav h4 {
  font-size: 11px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.legal-page__nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; transition: all .2s;
  margin-bottom: 4px;
}
.legal-page__nav a:hover {
  background: var(--bg-soft); color: var(--navy);
}
.legal-page__nav a.active {
  background: linear-gradient(135deg, var(--teal-light), #ccfbf1);
  color: var(--teal); font-weight: 600;
}
.legal-page__nav a svg { flex-shrink: 0; }

/* Contact card */
.legal-page__contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
}
.legal-page__contact-card h4 {
  font-size: 14px; font-weight: 700; color: var(--navy);
  margin: 0 0 8px;
}
.legal-page__contact-card p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  margin: 0 0 12px;
}
.legal-page__contact-card a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--teal);
  text-decoration: none;
}
.legal-page__contact-card a:hover { text-decoration: underline; }

/* Content */
.legal-page__content { min-width: 0; }

/* Sections */
.legal-section {
  margin-bottom: 40px; padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  font-size: 20px; font-weight: 800; color: var(--navy);
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.legal-section h3 {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin: 20px 0 12px;
}
.legal-section p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.8; margin: 0 0 14px;
}
.legal-section ul {
  list-style: none; padding: 0; margin: 0 0 14px;
}
.legal-section ul li {
  position: relative; padding-left: 20px;
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 6px;
}
.legal-section ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}

/* Tables */
.legal-table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 13px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.legal-table thead { background: var(--bg-soft); }
.legal-table th {
  text-align: left; padding: 12px 16px;
  font-weight: 700; color: var(--navy); font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid var(--line);
}
.legal-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  color: var(--text-secondary); vertical-align: top;
}
.legal-table tbody tr:hover { background: var(--bg-soft); }

/* Badges */
.legal-badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 100px; font-size: 11px; font-weight: 700;
}
.legal-badge--yes {
  background: #dcfce7; color: #166534;
}
.legal-badge--no {
  background: #fef3c7; color: #92400e;
}

/* Info box */
.legal-info-box {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px; margin: 16px 0;
  font-size: 14px; line-height: 1.7; color: #134e4a;
}
.legal-info-box strong { color: #0f766e; }

/* Warning box */
.legal-warning-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 10px; padding: 16px 18px; margin: 16px 0;
}
.legal-warning-box svg { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.legal-warning-box span {
  font-size: 13px; line-height: 1.7; color: #92400e;
}

/* Rights grid */
.legal-rights-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin: 20px 0;
}
.legal-right-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px;
  transition: all .3s;
}
.legal-right-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.legal-right-card svg { color: var(--teal); margin-bottom: 10px; }
.legal-right-card h4 {
  font-size: 14px; font-weight: 700; color: var(--navy);
  margin: 0 0 6px;
}
.legal-right-card p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6; margin: 0;
}

/* Security grid */
.legal-security-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin: 20px 0;
}
.legal-security-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
}
.legal-security-item svg { flex-shrink: 0; margin-top: 2px; }
.legal-security-item strong {
  font-size: 14px; color: var(--navy); display: block;
  margin-bottom: 4px;
}
.legal-security-item p {
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.5; margin: 0;
}

/* Footer */
.legal-footer {
  margin-top: 40px; padding-top: 24px;
  border-top: 2px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.legal-footer p {
  font-size: 13px; color: var(--text-secondary); margin: 0;
}
.legal-footer__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--teal);
  text-decoration: none; transition: all .2s;
}
.legal-footer__back:hover { gap: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .legal-hero { padding: 80px 16px 32px; }
  .legal-hero h1 { font-size: 22px; }
  .legal-page {
    grid-template-columns: 1fr; gap: 24px;
    padding: 24px 16px 60px;
  }
  .legal-page__sidebar { position: static; }
  .legal-rights-grid { grid-template-columns: 1fr; }
  .legal-security-grid { grid-template-columns: 1fr; }
  .legal-table { font-size: 12px; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}


/* ================================================================
   Lightbox — Photo Zoom & Preview
   ================================================================ */
.ld-gallery__zoom-btn {
  position: absolute; bottom: 12px; left: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: all .2s;
}
.ld-gallery__zoom-btn:hover {
  background: rgba(0,0,0,.8); transform: scale(1.08);
}

/* Lightbox overlay */
.ld-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.ld-lightbox.open { visibility: visible; opacity: 1; }
.ld-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.92); backdrop-filter: blur(20px);
}

/* Toolbar */
.ld-lightbox__toolbar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, transparent 100%);
}
.ld-lightbox__counter {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7);
}
.ld-lightbox__actions { display: flex; gap: 6px; }
.ld-lightbox__btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); cursor: pointer; transition: all .2s;
}
.ld-lightbox__btn:hover {
  background: rgba(255,255,255,.2); color: #fff;
}
.ld-lightbox__btn--close { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.25); }
.ld-lightbox__btn--close:hover { background: rgba(239,68,68,.4); color: #fff; }

/* Arrows */
.ld-lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); cursor: pointer; transition: all .2s;
}
.ld-lightbox__arrow:hover { background: rgba(255,255,255,.2); color: #fff; }
.ld-lightbox__arrow--prev { left: 20px; }
.ld-lightbox__arrow--next { right: 20px; }

/* Stage */
.ld-lightbox__stage {
  flex: 1; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; user-select: none;
}
.ld-lightbox__img {
  max-width: 90vw; max-height: 75vh;
  object-fit: contain; transition: transform .15s ease-out;
  cursor: zoom-in; user-select: none;
  border-radius: 4px;
}

/* Thumbstrip */
.ld-lightbox__thumbstrip {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 20px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 100%);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ld-lightbox__thumbstrip::-webkit-scrollbar { display: none; }
.ld-lightbox__thumb {
  flex-shrink: 0; width: 56px; height: 42px; border-radius: 8px;
  overflow: hidden; border: 2px solid transparent;
  cursor: pointer; transition: all .2s; opacity: .5;
  background: transparent; padding: 0;
}
.ld-lightbox__thumb:hover { opacity: .8; }
.ld-lightbox__thumb.active {
  border-color: var(--teal); opacity: 1;
  box-shadow: 0 0 12px rgba(13,148,136,.4);
}
.ld-lightbox__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ld-lightbox__arrow { width: 40px; height: 40px; }
  .ld-lightbox__arrow--prev { left: 8px; }
  .ld-lightbox__arrow--next { right: 8px; }
  .ld-lightbox__img { max-width: 96vw; max-height: 70vh; }
  .ld-lightbox__thumb { width: 44px; height: 33px; }
  .ld-lightbox__toolbar { padding: 8px 12px; }
  .ld-lightbox__btn { width: 36px; height: 36px; border-radius: 8px; }
}
