/* ============================================
   SOD Elite Properties — Liquid Glass Theme
   Dark + Light Mode
   ============================================ */

:root,
[data-theme="dark"] {
  --bg: #0a0b0f;
  --bg-elevated: rgba(18, 20, 28, 0.65);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --gold: #c9a227;
  --gold-light: #f0e6c8;
  --gold-dim: rgba(201, 162, 39, 0.25);
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --success: #22c55e;
  --danger: #ef4444;
  --header-bg: rgba(10, 11, 15, 0.75);
  --orb-opacity: 0.45;
  --card-bg: rgba(18, 20, 28, 0.7);
  --input-bg: rgba(255,255,255,0.05);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --gold: #a88b1a;
  --gold-light: #8a7210;
  --gold-dim: rgba(168, 139, 26, 0.2);
  --text: #1a1a1e;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --header-bg: rgba(244, 241, 234, 0.85);
  --orb-opacity: 0.25;
  --card-bg: rgba(255, 255, 255, 0.8);
  --input-bg: rgba(0,0,0,0.04);
  --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* Orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb-opacity); transition: opacity 0.35s; }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #c9a22755, transparent 70%); top: -10%; left: -5%; animation: float 18s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #3b82f655, transparent 70%); bottom: 10%; right: -8%; animation: float 22s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #a855f755, transparent 70%); top: 40%; left: 50%; animation: float 15s ease-in-out infinite 2s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); } }

.glass-panel {
  background: var(--bg-elevated);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.35s, border-color 0.35s;
}

/* Header */
.glass-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-h);
  transition: background 0.35s, border-color 0.35s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.02em; }
.logo-img { width: 42px; height: 42px; object-fit: contain; border-radius: 6px; }
.logo-text span { color: var(--gold); }

.nav { display: flex; gap: 2rem; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); transition: all var(--transition);
}
.theme-toggle:hover { color: var(--gold); background: var(--glass-strong); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 500; border-radius: 999px; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--gold), #a88b1a); color: #0a0b0f; box-shadow: 0 4px 20px var(--gold-dim); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--gold-dim); }
.btn-outline { border: 1px solid var(--glass-border); background: var(--glass); color: var(--text); }
.btn-outline:hover { background: var(--glass-strong); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--glass); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Services Hero (First Page) */
.services-hero { padding: 3.5rem 0 2.5rem; }
.services-intro { text-align: center; margin-bottom: 2.5rem; }
.hero-logo { width: 120px; height: auto; margin: 0 auto 1.25rem; filter: drop-shadow(0 4px 20px rgba(201,162,39,0.35)); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.services-intro h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 600; line-height: 1.15; margin-bottom: 0.85rem; }
.services-intro h1 .gold { color: var(--gold); }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.services-grid .cat-card { padding: 1.6rem 1rem 1.4rem; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1.4rem 1rem; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); backdrop-filter: blur(12px); transition: all var(--transition);
}
.cat-card:hover { background: var(--glass-strong); border-color: rgba(201, 162, 39, 0.4); transform: translateY(-3px); }
.cat-card.active {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.05));
  border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dim);
}
.cat-icon { font-size: 1.6rem; color: var(--gold); }
.cat-name { font-weight: 600; font-size: 0.95rem; }
.cat-count { font-size: 0.75rem; color: var(--text-dim); background: rgba(128,128,128,0.12); padding: 0.15rem 0.55rem; border-radius: 999px; }
.cat-desc { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.15rem; }

/* Listings */
.listings { padding: 1.5rem 0 5rem; }
.section-header { text-align: center; margin-bottom: 1.75rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; margin-bottom: 0.35rem; }
.section-header p { color: var(--text-muted); font-size: 0.95rem; }
.listings-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.results-count { color: var(--text-muted); font-size: 0.9rem; }
.sort-wrap { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.sort-wrap select { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 8px; padding: 0.4rem 0.75rem; color: var(--text); font-size: 0.85rem; }

.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.property-card {
  background: var(--card-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.35); box-shadow: 0 20px 40px -15px rgba(0,0,0,0.35); }
.card-image { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, #1a1c26, #12141c); overflow: hidden; }
[data-theme="light"] .card-image { background: #e8e4dc; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .card-image img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(10,11,15,0.75); backdrop-filter: blur(8px);
  padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gold-light); border: 1px solid var(--glass-border);
}
[data-theme="light"] .card-badge { background: rgba(255,255,255,0.9); color: var(--gold); }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.55rem; }
.card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.card-location { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.card-price { font-size: 1.2rem; font-weight: 600; color: var(--gold); margin-top: auto; padding-top: 0.5rem; }
.card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-dim); }
.card-actions { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.card-actions .btn { flex: 1; padding: 0.6rem; font-size: 0.8rem; }

.empty-state { text-align: center; padding: 3rem; margin-top: 1rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* About */
.about { padding: 2rem 0 4rem; }
.about-panel { padding: 3rem; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; margin-bottom: 1rem; line-height: 1.2; }
.about p { color: var(--text-muted); margin-bottom: 1.5rem; }
.trust-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; color: var(--text-muted); font-size: 0.95rem; }
.trust-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.rc-badge { display: inline-block; margin-top: 1rem; padding: 0.4rem 0.9rem; border: 1px solid var(--glass-border); border-radius: 6px; font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.stats { display: grid; gap: 1.5rem; }
.stat { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--gold); line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* Contact */
.contact { padding: 2rem 0 5rem; }
.contact-panel { text-align: center; padding: 3.5rem 2rem; }
.contact-panel h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; margin-bottom: 0.75rem; }
.contact-panel p { color: var(--text-muted); max-width: 420px; margin: 0 auto 1.75rem; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 2.5rem 0 2rem; background: rgba(0,0,0,0.15); }
[data-theme="light"] .footer { background: rgba(0,0,0,0.03); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.35rem; }
.rc-footer { font-size: 0.75rem !important; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }
.admin-link { opacity: 0.4; font-size: 0.75rem; }
.admin-link:hover { opacity: 1; }
.admin-header-btn.is-hidden,
.admin-link.is-hidden { display: none !important; }
.admin-header-btn:not(.is-hidden) {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--gold) !important;
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-weight: 600;
  background: rgba(201, 162, 39, 0.12);
  pointer-events: auto !important;
}
.admin-header-btn.admin-reveal {
  animation: adminPulse 0.55s ease;
}
@keyframes adminPulse {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.copyright { width: 100%; text-align: center; font-size: 0.8rem; color: var(--text-dim); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }

/* Floating social buttons */
.social-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-btn:hover {
  transform: scale(1.1);
}
.float-btn svg {
  width: 26px;
  height: 26px;
}
.float-whatsapp {
  background: #25D366;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}
.float-whatsapp:hover {
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}
.float-x {
  background: #000000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.15);
}
.float-x:hover {
  background: #141414;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.float-tiktok {
  background: #010101;
  box-shadow: 0 6px 24px rgba(254, 44, 85, 0.35);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.float-tiktok:hover {
  box-shadow: 0 8px 28px rgba(254, 44, 85, 0.5);
}
.float-tiktok svg {
  filter: drop-shadow(1px 0 0 #25F4EE) drop-shadow(-1px 0 0 #FE2C55);
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); }
.modal-content { position: relative; width: min(640px, 100%); max-height: 90vh; overflow-y: auto; padding: 2rem; z-index: 1; }
.modal-close { position: absolute; top: 1rem; right: 1.25rem; font-size: 1.6rem; color: var(--text-muted); line-height: 1; padding: 0.25rem; }
.modal-close:hover { color: var(--text); }
.modal-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 1.25rem; background: #1a1c26; }
.modal-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 0.4rem; }
.modal-price { font-size: 1.4rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.modal-desc { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.modal-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.modal-meta span { color: var(--text-dim); }
.modal-meta strong { color: var(--text); }

/* Admin */
.admin-body { min-height: 100vh; display: flex; flex-direction: column; }
.admin-login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-panel { width: min(400px, 100%); padding: 2.5rem; text-align: center; }
.login-panel h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }
.login-panel p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.form-group { text-align: left; margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; background: var(--input-bg); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text); font-size: 0.95rem; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 100px; resize: vertical; }
.login-error { color: #fca5a5; font-size: 0.85rem; margin-top: 0.75rem; display: none; }

.admin-dashboard { display: none; flex: 1; padding: 2rem 0 4rem; }
.admin-dashboard.visible { display: block; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-family: var(--font-display); font-size: 1.8rem; }
.admin-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--bg-elevated); backdrop-filter: blur(16px); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--glass-border); }
th { font-weight: 500; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(0,0,0,0.12); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(128,128,128,0.04); }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; background: var(--gold-dim); color: var(--gold); }
.table-actions { display: flex; gap: 0.5rem; }
.table-actions button { padding: 0.35rem 0.7rem; font-size: 0.75rem; border-radius: 6px; background: var(--glass); border: 1px solid var(--glass-border); }
.table-actions button:hover { background: var(--glass-strong); }
.table-actions .del:hover { background: rgba(239,68,68,0.2); color: #fca5a5; }
.form-modal .modal-content { max-width: 520px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--header-bg); backdrop-filter: blur(20px); padding: 1.5rem; gap: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .menu-toggle { display: flex; }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card:first-child { grid-column: span 2; }
  .hero-logo { width: 90px; }
  .property-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .social-float { bottom: 20px; right: 16px; gap: 10px; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn svg { width: 22px; height: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .logo-text { font-size: 1.15rem; }
}

/* ========== Sell With Us ========== */
.sell-section { padding: 2rem 0 4rem; }
.sell-panel { padding: 2.5rem; }
.sell-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.sell-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.sell-lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.sell-lead .gold { color: var(--gold); font-weight: 600; }
.sell-steps { margin-bottom: 2rem; }
.sell-steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.sell-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.commission-card {
  padding: 2rem 1.75rem;
  text-align: center;
  border-color: rgba(201, 162, 39, 0.35);
}
.comm-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.comm-rate {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.comm-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.comm-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
}

/* ========== Account / Seller pages ========== */
.account-page { padding: 3rem 0 5rem; min-height: calc(100vh - var(--header-h)); }
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}
.auth-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px 8px 0 0;
  transition: all var(--transition);
}
.auth-tab.active {
  color: var(--gold);
  background: var(--gold-dim);
}
.auth-panel { max-width: 440px; margin: 0 auto; padding: 2rem; }
.auth-panel h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  text-align: center;
}
.auth-panel .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.form-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.35rem; }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--gold); font-weight: 500; }

.seller-dash { padding: 2rem 0 4rem; }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.dash-user { font-size: 0.9rem; color: var(--text-muted); }

.upload-panel { padding: 2rem; margin-bottom: 2rem; }
.upload-panel h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.features-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.8rem;
}
.feature-tag button {
  font-size: 1rem;
  line-height: 1;
  color: var(--text-dim);
  padding: 0 0.15rem;
}
.feature-tag button:hover { color: var(--danger); }
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-pending { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.status-approved { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.my-listings { margin-top: 2rem; }
.my-listings h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Settings form in admin */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.settings-grid .form-group.full { grid-column: 1 / -1; }

/* Modal video */
.modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: #000;
}
.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.modal-features span {
  padding: 0.3rem 0.7rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.modal-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.modal-gallery img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.modal-gallery img.active { border-color: var(--gold); }

@media (max-width: 900px) {
  .sell-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

/* File upload previews */
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.upload-preview .preview-item {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.upload-preview .preview-item img,
.upload-preview .preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview .preview-item .rm {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  border: none;
}
.upload-preview .preview-item .rm:hover { background: #ef4444; }
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--input-bg);
  border: 1px dashed var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}
input[type="file"]:hover {
  border-color: var(--gold);
}

/* Payment box on seller upload */
.payment-box {
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  border-color: rgba(201, 162, 39, 0.4);
  text-align: center;
}
.pay-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.pay-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.pay-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.bank-details {
  display: grid;
  gap: 0.55rem;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.bank-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.bank-details span { color: var(--text-dim); }
.bank-details strong { color: var(--text); text-align: right; }
.pay-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
}
.pay-confirm input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.status-awaiting_payment { background: rgba(249, 115, 22, 0.18); color: #f97316; }
.status-payment_review { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }

.pay-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.pay-divider::before,
.pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.pay-status {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
}
.pay-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.pay-status.error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.pay-status.pending {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* ============================================
   Responsive — Phone & Computer
   ============================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.account-btn .label-short { display: none; }
.account-btn .label-full { display: inline; }

img, video, iframe {
  max-width: 100%;
  height: auto;
}

table {
  min-width: 480px;
}

/* Tablet */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .property-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Tablet / small laptop */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sell-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--glass-border);
    z-index: 99;
  }
  .nav.open .nav-link {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav.open .nav-link:last-child { border-bottom: none; }
  .nav-link.active::after { display: none; }

  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .header-inner { gap: 0.5rem; }
  .header-actions { gap: 0.35rem; }
  .whatsapp-header { display: none; }

  .services-hero { padding: 2rem 0 1.5rem; }
  .hero-logo { width: 96px; }
  .about-panel, .sell-panel, .contact-panel { padding: 1.75rem 1.25rem; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-actions { width: 100%; }
  .dash-header { flex-direction: column; align-items: flex-start; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .container { width: min(100%, 94%); }

  .logo-text { font-size: 1.05rem; }
  .logo-img { width: 36px; height: 36px; }

  .account-btn .label-full { display: none; }
  .account-btn .label-short { display: inline; }
  .account-btn { padding: 0.45rem 0.75rem; font-size: 0.78rem; }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .cat-card:first-child { grid-column: span 2; }
  .cat-card {
    padding: 1rem 0.65rem;
  }
  .cat-name { font-size: 0.85rem; }
  .cat-desc { font-size: 0.68rem; }

  .services-intro h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
  .hero-sub { font-size: 0.95rem; }

  .property-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .card-actions {
    flex-direction: column;
  }
  .card-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .listings-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .sort-wrap {
    width: 100%;
  }
  .sort-wrap select {
    flex: 1;
    min-height: 44px;
  }

  .sell-ctas {
    flex-direction: column;
  }
  .sell-ctas .btn {
    width: 100%;
    min-height: 48px;
  }

  .btn-lg {
    width: 100%;
    min-height: 48px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.1rem;
  }

  .social-float {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
    gap: 8px;
  }
  .float-btn {
    width: 48px;
    height: 48px;
  }
  .float-btn svg {
    width: 22px;
    height: 22px;
  }

  .modal {
    padding: 0.75rem;
    align-items: flex-end;
  }
  .modal-content {
    max-height: 92vh;
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 16px 16px 12px 12px;
    width: 100%;
  }
  .modal-meta {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    max-width: 100%;
    padding: 1.5rem 1.15rem;
  }
  .auth-tabs {
    flex-wrap: wrap;
  }
  .auth-tab {
    flex: 1;
    text-align: center;
    min-height: 44px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 48px;
  }
  .form-group textarea {
    min-height: 100px;
  }

  input[type="file"] {
    font-size: 0.85rem;
    padding: 0.85rem 0.65rem;
  }

  .bank-details div {
    flex-direction: column;
    gap: 0.15rem;
  }
  .bank-details strong {
    text-align: left;
  }

  .upload-panel {
    padding: 1.25rem 1rem;
  }

  .admin-table-wrap {
    margin: 0 -2%;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .pay-amount {
    font-size: 2rem;
  }

  .comm-rate {
    font-size: 3rem;
  }

  /* Extra bottom space so content isn't hidden under float buttons */
  main, .seller-dash, .admin-dashboard {
    padding-bottom: 6rem;
  }
  .contact {
    padding-bottom: 7rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .logo-text { display: none; }
  .cat-desc { display: none; }
  .header-actions .btn-ghost:not(.admin-header-btn) { display: none; }
}

/* Large desktops */
@media (min-width: 1400px) {
  .container {
    width: min(1280px, 90%);
  }
  .property-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* Touch devices: larger hit areas */
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    padding: 0.5rem 0;
  }
  .cat-card {
    min-height: 100px;
  }
  .btn {
    min-height: 44px;
  }
  .table-actions button {
    min-height: 36px;
    padding: 0.4rem 0.75rem;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .services-hero { padding: 1.25rem 0; }
  .hero-logo { width: 64px; margin-bottom: 0.5rem; }
  .social-float {
    flex-direction: row;
    bottom: 12px;
    right: 12px;
  }
}


/* ========== Team Section ========== */
.team-section {
  padding: 3rem 0 4rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
}
.team-photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 1.5rem auto 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1c26, #12141c);
  border: 3px solid rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
  flex-shrink: 0;
}
[data-theme="light"] .team-photo-wrap {
  background: #e8e4dc;
  border-color: rgba(168, 139, 26, 0.5);
  box-shadow: 0 0 0 4px rgba(168, 139, 26, 0.1);
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  transition: transform 0.45s ease;
}
.team-card:hover .team-photo-wrap img {
  transform: scale(1.08);
}
.team-card:hover .team-photo-wrap {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.2);
}
.team-body {
  padding: 1.25rem 1.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}
.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .team-photo-wrap {
    width: 110px;
    height: 110px;
    margin-top: 1.15rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .team-body {
    padding: 0.9rem 0.75rem 1.1rem;
  }
  .team-name {
    font-size: 1rem;
  }
  .team-bio {
    font-size: 0.78rem;
  }
}
@media (max-width: 400px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Manual crop tool */
.crop-modal-content { max-width: 420px; }
.crop-stage {
  position: relative;
  width: min(320px, 100%);
  height: min(320px, 70vw);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0b0f;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
}
.crop-circle-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-mask-image: radial-gradient(circle at center, transparent 36%, #000 36.2%);
  mask-image: radial-gradient(circle at center, transparent 36%, #000 36.2%);
}
.crop-circle-mask::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.9);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none;
}
.crop-controls {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.crop-controls label {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 3rem;
}
.crop-controls input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}
