/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }

/* ===== Brand tokens ===== */
:root {
  --brand-navy: #101d34;
  --brand-navy-light: #1e3a63;
  --brand-gold: #c9a227;
  --brand-gold-light: #e6c667;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-900: #171717;
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', Arial, Helvetica, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-900);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.hide-mobile { display: none; }
.hide-desktop { display: inline; }
@media (min-width: 640px) {
  .hide-mobile { display: inline; }
  .hide-desktop { display: none; }
}

/* ===== Buttons & form controls ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 10px 20px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-navy { background: var(--brand-navy); color: #fff; }
.btn-navy:hover { background: var(--brand-navy-light); }
.btn-outline { border-color: rgba(0,0,0,.1); color: var(--neutral-900); background: #fff; }
.btn-outline:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.btn-danger-outline { border-color: #fecaca; color: #dc2626; background: #fff; }
.btn-danger-outline:hover { background: #fef2f2; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-full { width: 100%; }
.btn-round { border-radius: 999px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--neutral-700); }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--neutral-900);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(16,29,52,.08); }
textarea.input { resize: vertical; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 40px; }
.input-icon-wrap svg.field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--neutral-400); pointer-events: none;
}
.toggle-password {
  position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center;
  padding: 0 12px; background: none; border: none; color: var(--neutral-400);
}
.toggle-password:hover { color: var(--neutral-600); }
.error-message {
  background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: 8px 12px;
  font-size: 14px; margin-bottom: 16px;
}
.success-message {
  background: #f0fdf4; color: #166534; border-radius: 8px; padding: 12px 16px; font-size: 14px;
}

.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Site header ===== */
.site-header { border-bottom: 1px solid rgba(0,0,0,.1); background: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.brand-tagline { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-navy); }
@media (min-width: 640px) {
  .brand-name { font-size: 30px; }
  .brand-tagline { letter-spacing: .1em; }
}
.site-nav { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; color: var(--neutral-600); }
@media (min-width: 640px) { .site-nav { gap: 8px; } }

.nav-link {
  display: flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 12px;
  transition: background-color .15s ease, color .15s ease;
}
@media (min-width: 640px) { .nav-link { padding: 9px 16px; } }
.nav-link svg { display: none; color: var(--neutral-400); flex-shrink: 0; transition: color .15s ease; }
@media (min-width: 640px) { .nav-link svg { display: block; } }
.nav-link:hover { background: var(--neutral-100); color: var(--brand-navy); }
.nav-link:hover svg { color: var(--brand-gold); }
.nav-link.hide-mobile { display: none; }
@media (min-width: 640px) { .nav-link.hide-mobile { display: flex; } }

.nav-login-link {
  display: flex; align-items: center; gap: 8px; border-radius: 999px; margin-left: 2px;
  background: var(--brand-navy); color: #fff; padding: 9px 14px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(16,29,52,.2);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
@media (min-width: 640px) { .nav-login-link { padding: 10px 18px; margin-left: 4px; } }
.nav-login-link svg { display: none; }
@media (min-width: 640px) { .nav-login-link svg { display: block; } }
.nav-login-link svg { color: var(--brand-gold-light); flex-shrink: 0; }
.nav-login-link:hover { background: var(--brand-navy-light); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16,29,52,.3); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--brand-navy); }
.hero-blur-a { position: absolute; top: -128px; right: -128px; width: 384px; height: 384px; border-radius: 50%; background: rgba(201,162,39,.2); filter: blur(64px); }
.hero-blur-b { position: absolute; bottom: -96px; left: -96px; width: 288px; height: 288px; border-radius: 50%; background: rgba(30,58,99,.6); filter: blur(64px); }
.hero-inner { position: relative; display: flex; flex-direction: column; gap: 32px; padding: 40px 16px 80px; }
@media (min-width: 640px) { .hero-inner { padding: 56px 24px 112px; } }
.hero h1 { max-width: 640px; font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
.hero h1 .accent { color: var(--brand-gold-light); }
.hero p { max-width: 560px; font-size: 18px; color: #d4d4d4; }

.search-form { display: flex; flex-direction: column; gap: 8px; max-width: 640px; background: rgba(255,255,255,.95); border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.3); backdrop-filter: blur(8px); }
@media (min-width: 640px) { .search-form { flex-direction: row; } }
.search-form .input-icon-wrap { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-form .input-icon-wrap svg { color: var(--neutral-400); flex-shrink: 0; }
.search-form input[type="text"] { border: none; background: transparent; padding: 12px 0; font-size: 14px; width: 100%; outline: none; }
.search-form button { border-radius: 10px; padding: 12px 24px; }

.type-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.type-chip {
  display: flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  padding: 8px 16px; font-size: 14px; font-weight: 500; color: #e5e5e5;
}
.type-chip:hover { border-color: rgba(201,162,39,.5); background: rgba(255,255,255,.1); color: #fff; }
.type-chip svg { width: 16px; height: 16px; color: var(--brand-gold-light); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.stat-card { display: flex; align-items: center; gap: 12px; border-radius: 16px; border: 1px solid rgba(201,162,39,.4); background: rgba(201,162,39,.2); padding: 14px 20px; backdrop-filter: blur(8px); }
.stat-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-gold); color: var(--brand-navy); }
.stat-icon svg { width: 20px; height: 20px; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1; color: #fff; }
.stat-label { margin-top: 4px; font-size: 12px; color: #a3a3a3; }

/* ===== Sections ===== */
.section { max-width: 1152px; margin: 0 auto; padding: 64px 16px; }
@media (min-width: 640px) { .section { padding: 64px 24px; } }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-gold); }
.section-eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--brand-gold); }
.section-title { margin-top: 10px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--neutral-900); }
.section-empty { color: var(--neutral-500); }

.property-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .property-grid { grid-template-columns: repeat(3, 1fr); } }

.property-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06); background: #fff;
  box-shadow: 0 1px 2px rgba(16,29,52,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -12px rgba(16,29,52,.25);
  border-color: rgba(201,162,39,.35);
}
.property-photo { position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: var(--neutral-100); }
.property-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28) 100%);
}
.property-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .property-photo img { transform: scale(1.08); }
.property-photo .no-photo { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--neutral-400); font-size: 13px; }
.photo-badges { position: absolute; left: 14px; top: 14px; z-index: 1; display: flex; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.badge-status { background: rgba(255,255,255,.95); color: var(--neutral-700); backdrop-filter: blur(4px); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.badge-featured { background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold)); color: var(--brand-navy); }
.property-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px; }
.property-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-gold); }
.property-title { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--neutral-900); }
.property-location { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--neutral-500); }
.property-location svg { flex-shrink: 0; color: var(--neutral-400); }
.property-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--neutral-100); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.property-price { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--brand-navy); }
.property-meta { display: flex; gap: 12px; font-size: 13px; font-weight: 600; color: var(--neutral-600); }
.property-meta span { display: inline-flex; align-items: center; gap: 4px; }
.property-meta svg { color: var(--brand-gold); flex-shrink: 0; }

.value-props-section { border-top: 1px solid rgba(0,0,0,.1); background: var(--neutral-50); }
.value-props { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1152px; margin: 0 auto; padding: 64px 16px; }
@media (min-width: 640px) { .value-props { grid-template-columns: repeat(3, 1fr); padding: 64px 24px; } }
.value-prop-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-navy); color: var(--brand-gold-light); margin-bottom: 12px; }
.value-prop-icon svg { width: 20px; height: 20px; }
.value-prop h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.value-prop p { font-size: 14px; color: var(--neutral-600); }

/* ===== Property detail page ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "main" "sidebar" "description";
    gap: 32px;
}
.detail-main { grid-area: main; min-width: 0; }
.detail-sidebar { grid-area: sidebar; display: flex; flex-direction: column; gap: 16px; }
.detail-description { grid-area: description; min-width: 0; }
@media (min-width: 1024px) {
    .detail-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-areas: "main sidebar" "description sidebar";
    }
}
.gallery-main { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; background: var(--neutral-100); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; }
.gallery-thumb { position: relative; flex-shrink: 0; width: 96px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; padding: 0; }
.gallery-thumb.active { border-color: var(--brand-navy); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 24px; border-radius: 12px; border: 1px solid rgba(0,0,0,.1); background: #fff; padding: 16px; font-size: 14px; margin-top: 20px; }
.detail-price-card, .lead-form-card { border-radius: 12px; border: 1px solid rgba(0,0,0,.1); background: #fff; padding: 16px; }
.detail-price { font-size: 24px; font-weight: 700; }

.lead-form-card {
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--brand-gold);
    box-shadow: 0 10px 28px rgba(201,162,39,.2), 0 2px 8px rgba(0,0,0,.06);
    animation: lead-card-glow 2.6s ease-in-out infinite;
}
.lead-form-card-header {
    display: flex; align-items: center; gap: 10px;
    background: var(--brand-navy); color: #fff; padding: 14px 16px;
}
.lead-form-card-header svg { width: 22px; height: 22px; color: var(--brand-gold-light); flex-shrink: 0; }
.lead-form-card-header h3 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.25; }
.lead-form-card-body { padding: 16px; }
.lead-form-card .btn { font-size: 15px; padding: 12px 20px; }
@keyframes lead-card-glow {
  0%, 100% { box-shadow: 0 10px 28px rgba(201,162,39,.2), 0 2px 8px rgba(0,0,0,.06); }
  50% { box-shadow: 0 10px 34px rgba(201,162,39,.42), 0 2px 8px rgba(0,0,0,.08); }
}
@media (prefers-reduced-motion: reduce) {
  .lead-form-card { animation: none; }
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid rgba(0,0,0,.1); background: #fff; padding: 32px 0; font-size: 14px; color: var(--neutral-500); }

/* ===== WhatsApp floating button ===== */
.whatsapp-btn {
  position: fixed; bottom: 20px; right: 20px; z-index: 50; display: flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; border-radius: 999px; padding: 12px; box-shadow: 0 10px 20px rgba(0,0,0,.2);
  overflow: hidden; transition: padding .2s;
}
.whatsapp-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.whatsapp-btn span { max-width: 0; opacity: 0; white-space: nowrap; font-size: 14px; font-weight: 600; overflow: hidden; transition: max-width .3s, opacity .3s; }
.whatsapp-btn:hover { padding-right: 20px; }
.whatsapp-btn:hover span { max-width: 200px; opacity: 1; margin-left: 4px; }
@media (min-width: 640px) { .whatsapp-btn { bottom: 24px; right: 24px; } }

/* ===== Login page ===== */
.login-page { display: flex; flex-direction: column; min-height: 100vh; }

.login-welcome { position: relative; overflow: hidden; background: var(--brand-navy); padding: 20px 16px; display: flex; align-items: center; justify-content: center; min-height: 0; }
@media (min-width: 640px) { .login-welcome { padding: 24px 24px; } }
.login-welcome-content {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 640px; margin: 0 auto; text-align: center;
}
@media (min-width: 640px) { .login-welcome-content { flex-direction: row; text-align: left; gap: 24px; } }
.login-welcome-icon {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201,162,39,.3), 0 12px 24px rgba(0,0,0,.3);
}
.login-welcome h1 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; }
@media (min-width: 640px) { .login-welcome h1 { font-size: 28px; } }
.login-welcome p { margin-top: 6px; color: #d4d4d4; font-size: 14.5px; }

.login-main { display: flex; flex: 1; align-items: center; justify-content: center; background: var(--neutral-50); padding: 40px 16px; }
.login-box { width: 100%; max-width: 420px; }
.login-box h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.login-box .subtitle { margin: 4px 0 28px; font-size: 16px; color: var(--neutral-500); }
.login-box .field label { font-size: 16px; }
.login-box .input { font-size: 16px; padding: 12px 14px; }
.login-box .input-icon-wrap .input { padding-left: 44px; }
.login-box .input-icon-wrap svg.field-icon { width: 18px; height: 18px; }
.login-box .btn { font-size: 16px; padding: 12px 20px; }
.login-box .error-message { font-size: 15px; }
.back-to-site { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; font-size: 15px; font-weight: 500; color: var(--neutral-500); }
.back-to-site:hover { color: var(--brand-navy); }
.back-to-site svg { width: 16px; height: 16px; }

/* ===== Admin layout ===== */
.admin-layout { display: flex; min-height: 100vh; background: var(--neutral-50); }
.admin-sidebar { display: none; flex-direction: column; width: 232px; flex-shrink: 0; border-right: 1px solid rgba(0,0,0,.06); background: #fff; padding: 20px 16px; }
@media (min-width: 640px) { .admin-sidebar { display: flex; } }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-bottom: 28px; font-size: 18px; }
.admin-brand img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(201,162,39,.25); }
.admin-brand .brand-strong { font-family: var(--font-display); font-weight: 600; }
.admin-brand .brand-muted { color: var(--neutral-500); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; color: var(--neutral-600); }
.admin-nav a { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 12px; position: relative; transition: background-color .15s, color .15s; }
.admin-nav a svg { flex-shrink: 0; color: var(--neutral-400); transition: color .15s; }
.admin-nav a:hover { background: var(--neutral-100); }
.admin-nav a.active { background: var(--brand-navy); color: #fff; }
.admin-nav a.active svg { color: var(--brand-gold-light); }
.admin-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(0,0,0,.06); padding-top: 16px; font-size: 14px; }
.user-name-link { display: flex; align-items: center; gap: 9px; border-radius: 10px; padding: 8px; color: var(--neutral-700); transition: background-color .15s; }
.user-name-link:hover { background: var(--neutral-100); }
.user-name-link svg { flex-shrink: 0; color: var(--neutral-400); }
.user-name-link span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.user-name-link small { font-weight: 500; color: var(--neutral-400); font-size: 12px; }
.btn-logout { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border-radius: 10px; padding: 9px 12px; color: #dc2626; background: none; border: none; font-size: 14px; font-weight: 600; }
.btn-logout:hover { background: #fef2f2; }

.admin-main { display: flex; flex: 1; flex-direction: column; min-height: 100vh; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.1); background: #fff; padding: 12px 16px; }
@media (min-width: 640px) { .admin-topbar { display: none; } }
.admin-topbar-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.admin-topbar-brand img { width: 24px; height: 24px; border-radius: 50%; }
.admin-mobile-nav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid rgba(0,0,0,.1); background: #fff; padding: 8px; font-size: 14px; font-weight: 600; color: var(--neutral-600); }
@media (min-width: 640px) { .admin-mobile-nav { display: none; } }
.admin-mobile-nav a { flex-shrink: 0; border-radius: 999px; padding: 6px 14px; }
.admin-mobile-nav a:hover { background: var(--neutral-100); }
.admin-mobile-nav a.active { background: var(--brand-navy); color: #fff; }
.admin-content { flex: 1; padding: 16px; }
@media (min-width: 640px) { .admin-content { padding: 28px; } }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--neutral-900); }

.dashboard-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .dashboard-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dashboard-cards { grid-template-columns: repeat(4, 1fr); } }
.dashboard-card {
  display: flex; align-items: center; gap: 14px; border-radius: 18px; border: 1px solid rgba(0,0,0,.06);
  background: #fff; padding: 20px; box-shadow: 0 1px 2px rgba(16,29,52,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dashboard-card:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -10px rgba(16,29,52,.18); border-color: rgba(201,162,39,.3); }
.dashboard-card .icon-wrap { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-navy); color: var(--brand-gold-light); }
.dashboard-card .label { font-size: 13px; font-weight: 600; color: var(--neutral-500); }
.dashboard-card .value { margin-top: 2px; font-size: 26px; font-weight: 800; color: var(--neutral-900); }

.card { border-radius: 18px; border: 1px solid rgba(0,0,0,.06); background: #fff; padding: 24px; box-shadow: 0 1px 2px rgba(16,29,52,.04); }
.card-max-sm { max-width: 384px; }
.card-max-md { max-width: 768px; }

.data-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(0,0,0,.06); background: #fff; box-shadow: 0 1px 2px rgba(16,29,52,.04); }
table.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
table.data-table thead { border-bottom: 1px solid rgba(0,0,0,.06); color: var(--neutral-500); }
table.data-table th { padding: 14px 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
table.data-table td { padding: 14px 20px; }
table.data-table tbody tr { border-bottom: 1px solid rgba(0,0,0,.05); transition: background-color .15s; }
table.data-table tbody tr:hover { background: var(--neutral-50); }
table.data-table tbody tr:last-child { border-bottom: none; }
table.data-table .cell-strong { font-weight: 600; color: var(--neutral-900); }
table.data-table .cell-muted { color: var(--neutral-500); }
table.data-table .cell-actions { text-align: right; }
.link-action { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--brand-navy); background: rgba(16,29,52,.06); transition: background-color .15s; }
.link-action:hover { background: rgba(16,29,52,.12); }
.link-action-danger { color: #dc2626; background: rgba(220,38,38,.06); border: none; cursor: pointer; font-family: inherit; }
.link-action-danger:hover { background: rgba(220,38,38,.12); }

.form-section { padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.form-section:first-child { padding-top: 0; }
.form-section:last-child { padding-bottom: 0; border-bottom: none; }
.form-section-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-navy);
}
.form-section-title svg { color: var(--brand-gold); flex-shrink: 0; }
.form-section .field label { font-weight: 700; color: var(--brand-navy); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-grid .field-full { grid-column: 1 / -1; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 14px; align-self: flex-end; }

.checkbox-field-card {
  display: flex; align-items: center; gap: 10px; align-self: flex-end; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08); background: var(--neutral-50); padding: 12px 16px;
  font-size: 14px; font-weight: 600; color: var(--neutral-700); cursor: pointer;
}
.checkbox-field-card svg { color: var(--brand-gold); flex-shrink: 0; }
.checkbox-field-card input { width: 16px; height: 16px; accent-color: var(--brand-navy); }

.file-dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border: 2px dashed rgba(16,29,52,.18); border-radius: 16px; padding: 36px 20px;
  text-align: center; background: var(--neutral-50); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.file-dropzone:hover, .file-dropzone.is-dragover { border-color: var(--brand-gold); background: rgba(201,162,39,.06); }
.file-dropzone svg { color: var(--brand-navy); margin-bottom: 4px; }
.file-dropzone-text { font-size: 14px; color: var(--neutral-600); }
.file-dropzone-text strong { color: var(--brand-navy); }
.file-dropzone-hint { font-size: 12px; color: var(--neutral-400); }
.file-input-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.file-preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.file-preview-chip {
  display: flex; align-items: center; gap: 6px; max-width: 220px; border-radius: 999px;
  background: rgba(16,29,52,.06); padding: 6px 12px 6px 6px; font-size: 12.5px; font-weight: 500; color: var(--neutral-700);
}
.file-preview-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.file-preview-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(6, 1fr); } }
.photo-item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; box-shadow: 0 1px 2px rgba(16,29,52,.06); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; right: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgba(16,29,52,.75); backdrop-filter: blur(2px); color: #fff; border: none; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.photo-remove:hover { background: rgba(220,38,38,.85); }

.lead-item { display: flex; flex-direction: column; gap: 8px; border-radius: 16px; border: 1px solid rgba(0,0,0,.06); background: #fff; padding: 18px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16,29,52,.04); transition: box-shadow .2s ease, border-color .2s ease; }
.lead-item:hover { box-shadow: 0 12px 24px -12px rgba(16,29,52,.15); border-color: rgba(201,162,39,.25); }
@media (min-width: 640px) { .lead-item { flex-direction: row; align-items: center; justify-content: space-between; } }
.lead-item .lead-name { font-weight: 700; color: var(--neutral-900); }
.lead-item .lead-meta { font-size: 14px; color: var(--neutral-500); }
.lead-item .lead-property { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand-navy); background: rgba(16,29,52,.06); border-radius: 999px; padding: 3px 10px; margin-top: 4px; }
.lead-item .lead-message { font-size: 14px; color: var(--neutral-600); margin-top: 6px; }
.lead-item .lead-date { font-size: 12px; color: var(--neutral-400); margin-top: 4px; }
.lead-item select.input { min-width: 150px; font-weight: 600; }
