  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --blue-900: #0a1628;
    --blue-800: #0f2245;
    --blue-700: #1a3a6e;
    --blue-600: #1e4d9e;
    --blue-500: #2563c4;
    --blue-400: #3b82e8;
    --blue-300: #6ba3f0;
    --blue-200: #bcd4f8;
    --blue-100: #deeafc;
    --blue-50:  #f0f6ff;
    --check:    #2563c4;
    --white:    #ffffff;
    --surface:  #ffffff;
    --surface-2:#f4f7fd;
    --surface-3:#e8eefa;
    --ink:      #0a1628;
    --ink-2:    #2d3f6b;
    --ink-3:    #6b7ea8;
    --border:   #d0dcf0;
    --border-2: #a8bce0;
    --sale:     #0e7f4e;
    --sale-bg:  #e6f7ef;
    --rent:     #b45309;
    --rent-bg:  #fff7e6;
    --radius:   8px;
    --radius-lg:14px;
    --shadow:   0 1px 4px rgba(10,22,80,0.08), 0 4px 16px rgba(10,22,80,0.07);
    --shadow-hover: 0 6px 20px rgba(10,22,80,0.14), 0 2px 6px rgba(10,22,80,0.08);
    /* Brand / semantic colors */
    --primary:       #0d3b2e;
    --primary-mid:   #86efac;
    --primary-light: #c8f7e4;
    --error:         #dc2626;
    --error-bg:      #fef2f2;
    --error-border:  #fecaca;
    --success:       #16a34a;
    --success-bg:    #f0fdf4;
    --success-border:#bbf7d0;
    --warn:          #d97706;
    --warn-bg:       #fffbeb;
    --warn-border:   #fde68a;
    --info:          #1e40af;
    --info-bg:       #eff6ff;
    --info-border:   #bfdbfe;
  }
  body { font-family: 'Inter', sans-serif; background: var(--surface-2); color: var(--ink); font-size: 15px; line-height: 1.6; min-height: 100vh; }

  /* NAV */
  nav { background: var(--blue-800); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(10,22,80,0.25); }
  .logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .logo-img { width: 72px; height: 72px; object-fit: contain; border-radius: 0; }
  .logo-text { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--white); letter-spacing: -0.3px; line-height: 1.2; }
  .logo-text span { display: block; font-size: 10px; font-weight: 400; color: var(--blue-200); letter-spacing: 1px; text-transform: uppercase; }
  .nav-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .nav-actions .btn { flex: 0 0 auto; }

  .btn { padding: 8px 18px; border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
  .btn-ghost:hover { background: rgba(255,255,255,0.18); }
  .btn-white { background: var(--white); color: var(--blue-700); font-weight: 600; }
  .btn-white:hover { background: var(--blue-50); }
  .btn-primary { background: var(--blue-500); color: #fff; }
  .btn-primary:hover { background: var(--blue-600); }
  .btn-sm { padding: 6px 14px; font-size: 13px; }
  .btn-outline-blue { background: transparent; color: var(--blue-600); border: 1.5px solid var(--blue-400); font-weight: 500; }
  .btn-outline-blue:hover { background: var(--blue-50); }
  .btn-playstore { background: #000; color: #fff; border: 1px solid #3c3c3c; font-weight: 500; }
  .btn-playstore:hover { background: #1a1a1a; }

  /* NAV USER */
  .nav-user { display: flex; align-items: center; gap: 10px; }
  .nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
  .nav-avatar-initials { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-400); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
  .nav-name { font-size: 13px; font-weight: 500; color: var(--blue-100); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn-signout { background: transparent; color: var(--blue-200); border: 1px solid rgba(255,255,255,0.15); font-size: 12px; padding: 5px 10px; }
  .btn-signout:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

  /* NAV ACCOUNT DROPDOWN */
  .nav-dropdown { position: relative; }
  .nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 5px 10px 5px 6px; cursor: pointer; transition: background 0.15s; }
  .nav-dropdown-toggle:hover { background: rgba(255,255,255,0.16); }
  .nav-caret { color: var(--blue-200); font-size: 10px; transition: transform 0.15s; }
  .nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
  .nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); padding: 6px; z-index: 200; flex-direction: column; gap: 2px; }
  .nav-dropdown-menu.open { display: flex; }
  .nav-dropdown-menu a.btn, .nav-dropdown-menu button.btn, .nav-dropdown-item { width: 100%; justify-content: flex-start; background: transparent; color: var(--ink-2); border: none; border-radius: 6px; padding: 8px 10px; font-size: 13px; text-align: left; }
  .nav-dropdown-menu a.btn:hover, .nav-dropdown-menu button.btn:hover, .nav-dropdown-item:hover { background: var(--surface-2); color: var(--ink); }
  .nav-dropdown-item { display: flex; align-items: center; gap: 6px; cursor: pointer; }
  .nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 2px; }
  .nav-dropdown-signout { color: var(--error); font-weight: 600; }
  .nav-dropdown-signout:hover { background: var(--error-bg) !important; color: var(--error) !important; }
  .nav-mesej { position: relative; }

  /* HERO */
  .hero { background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 60%, var(--blue-600) 100%); padding: 3.5rem 2rem 3rem; text-align: center; position: relative; overflow: hidden; }
  .hero::before { content: ''; 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-inner { position: relative; z-index: 1; }
  .hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 4px 14px; font-size: 12px; color: var(--blue-100); margin-bottom: 1.25rem; font-family: 'Inter', sans-serif; }
  .hero h1 { font-family: 'Sora', sans-serif; font-size: 38px; font-weight: 700; letter-spacing: -1px; color: var(--white); line-height: 1.15; margin-bottom: 0.75rem; }
  .hero h1 em { font-style: normal; color: var(--blue-300); }
  .hero p { color: var(--blue-200); font-size: 15px; margin-bottom: 2rem; }

  /* SEARCH BAR */
  .search-bar { display: flex; flex-wrap: nowrap; gap: 0; max-width: 680px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 24px rgba(10,22,80,0.25); }
  .search-bar select { flex: 0 0 auto; width: 150px; background: var(--surface-2); border: none; border-right: 1px solid var(--border); outline: none; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-2); padding: 0 14px; font-weight: 500; }
  .search-bar input { flex: 1 1 auto; min-width: 0; background: transparent; border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink); padding: 14px 16px; }
  .search-bar input::placeholder { color: var(--ink-3); }
  .search-bar .btn-search { background: var(--blue-500); color: #fff; border: none; padding: 0 24px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.15s; border-radius: 0; }
  .search-bar .btn-search:hover { background: var(--blue-600); }
  /* On narrow phone screens (incl. the Android app WebView) a fixed
     150px select left almost no room for the text input — wrap the
     type dropdown onto its own row so the search field and button
     stay fully usable instead of being squeezed to a few px wide. */
  @media (max-width: 480px) {
    .search-bar { flex-wrap: wrap; }
    .search-bar select { flex: 1 1 100%; width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .search-bar input { flex: 1 1 auto; min-width: 0; }
    .search-bar .btn-search { flex: 0 0 auto; padding: 0 18px; }
  }

  /* STATS STRIP */
  .stats-strip { background: var(--blue-900); display: flex; justify-content: center; gap: 0; }
  .stat-item { padding: 10px 2.5rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-right: none; }
  .stat-num { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--white); }
  .stat-label { font-size: 11px; color: var(--blue-300); letter-spacing: 0.5px; }

  /* FILTER BAR */
  .filter-bar { display: flex; gap: 8px; padding: 1.25rem 2rem; align-items: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
  .filter-label { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-right: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
  .tab { padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: all 0.12s; }
  .tab:hover { border-color: var(--blue-400); color: var(--blue-600); background: var(--blue-50); }
  .tab.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
  .ml-auto { margin-left: auto; }

  /* LISTINGS */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }
  .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
  .section-head h2 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); }
  .count { font-size: 13px; color: var(--ink-3); }
  .listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }

  /* CARD */
  .card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; }
  .card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
  .card-img { position: relative; height: 200px; overflow: hidden; background: var(--surface-3); }
  .card-img-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; background: linear-gradient(135deg, var(--blue-50) 0%, var(--surface-3) 100%); }
  .card-img-bg img { width:100%; height:100%; object-fit:cover; display:block; }
  .card-img-bg.has-img { background:none; font-size:0; }
  .detail-watermark { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; z-index:1; }
  .detail-watermark span { transform:rotate(-30deg); font-size:30px; font-weight:700; letter-spacing:1px; color:rgba(255,255,255,0.55); white-space:nowrap; text-shadow:0 1px 5px rgba(0,0,0,0.45); }
  .badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
  .badge-sale { background: var(--sale-bg); color: var(--sale); }
  .badge-rent { background: var(--rent-bg); color: var(--rent); }
  --auction: #7c3aed; --auction-bg: #f5f3ff;
  .badge-auction { background: #f5f3ff; color: #7c3aed; }
  .badge-new_dev { background: #fef9c3; color: #854d0e; }
  .card-price.auction-price { color: #7c3aed; }
  .card-fav { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: rgba(255,255,255,0.92); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; transition: all 0.15s; }
  .card-fav:hover { background: #fff; }
  .card-body { padding: 1rem 1.1rem 1.1rem; }
  .card-price { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 700; color: var(--blue-700); margin-bottom: 2px; }
  .card-price span { font-size: 12px; font-weight: 400; color: var(--ink-3); }
  .card-title { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
  .card-loc { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
  .card-meta { display: flex; gap: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
  .meta-item { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
  .card-agent { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
  .agent-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
  .agent-name { font-size: 12px; color: var(--ink-3); }

  /* EMPTY */
  .empty { text-align: center; padding: 4rem 2rem; color: var(--ink-3); }
  .empty-icon { font-size: 48px; margin-bottom: 1rem; }
  .empty h3 { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-bottom: 0.5rem; }

  /* MODAL */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10,22,80,0.5); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
  .modal-overlay.open { display: flex; }
  .modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(10,22,80,0.28); }
  .modal-sm { max-width: 400px; }
  .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
  .modal-head h2 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink); }
  .close-btn { width: 30px; height: 30px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--ink-3); transition: all 0.12s; }
  .close-btn:hover { background: var(--surface-3); color: var(--ink); }
  .modal-body { padding: 1.5rem; }

  /* LOGIN MODAL */
  .login-hero { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 2rem; text-align: center; }
  .login-logo { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 12px; display: block; }
  .login-site-name { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
  .login-tagline { font-size: 13px; color: var(--blue-200); }
  .login-body { padding: 1.5rem; }
  .login-prompt { font-size: 14px; color: var(--ink-2); text-align: center; margin-bottom: 1.25rem; font-weight: 500; }
  .social-btn { width: 100%; padding: 12px 16px; border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; border: 1.5px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); transition: all 0.15s; }
  .social-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
  .social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
  .login-note { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 1rem; line-height: 1.6; }
  .login-note a { color: var(--blue-600); text-decoration: none; }

  /* FORM */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-group { display: flex; flex-direction: column; gap: 5px; }
  .form-group.full { grid-column: 1 / -1; }
  label { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.4px; }
  input[type="text"], input[type="number"], input[type="email"], select, textarea { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink); background: var(--surface); outline: none; transition: border-color 0.12s; width: 100%; }
  input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,196,0.1); }
  textarea { resize: vertical; min-height: 90px; }
  .type-toggle { display: flex; gap: 8px; }
  .type-btn { flex: 1; padding: 10px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; background: var(--surface); color: var(--ink-2); transition: all 0.12s; text-align: center; }
  .type-btn.sale.active { border-color: var(--sale); background: var(--sale-bg); color: var(--sale); }
  .type-btn.rent.active { border-color: var(--rent); background: var(--rent-bg); color: var(--rent); }
  .type-btn.auction.active { border-color: #7c3aed; background: #f5f3ff; color: #7c3aed; }
  .amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .amenity-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
  .amenity-check input[type="checkbox"] { accent-color: var(--blue-600); width: 14px; height: 14px; }
  .photo-upload { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 2rem; text-align: center; cursor: pointer; color: var(--ink-3); font-size: 13px; transition: border-color 0.15s, background 0.15s; }
  .photo-upload:hover { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue-600); }
  .photo-upload input { display: none; }
  .form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1.5rem; }
  .posting-as { display: flex; align-items: center; gap: 10px; background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 1.25rem; font-size: 13px; color: var(--blue-700); }

  /* DETAIL */
  .detail-img { height: 600px; background: #111; display: flex; align-items: center; justify-content: center; font-size: 72px; }
  .detail-body { padding: 1.5rem; }
  .detail-price { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; color: var(--blue-700); margin: 8px 0 4px; }
  .detail-loc { color: var(--ink-3); font-size: 13px; margin-bottom: 1rem; }
  .detail-meta { display: flex; gap: 10px; margin-bottom: 1.25rem; flex-wrap: wrap; }
  .detail-meta-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 13px; font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
  .detail-desc { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin-bottom: 1.25rem; }
  .detail-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
  .amenity-pill { padding: 4px 12px; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); border-radius: 5px; font-size: 12px; font-weight: 500; }
  .contact-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
  .contact-box-left { display: flex; align-items: center; gap: 12px; }
  .contact-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }

  /* TOAST */
  .toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--blue-800); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; z-index: 999; transform: translateY(80px); opacity: 0; transition: all 0.3s; border-left: 4px solid var(--blue-400); }
  .toast.show { transform: translateY(0); opacity: 1; }

  /* FOOTER */
  footer { background: var(--blue-900); padding: 1.5rem 2rem; text-align: center; }
  .footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
  .footer-logo img { width: 28px; height: 28px; object-fit: contain; }
  .footer-logo span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--white); }
  footer p { font-size: 12px; color: var(--blue-300); }
  .footer-legal { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 16px; margin-top:10px; }
  .footer-legal a { font-size:11px; color:var(--blue-300); text-decoration:none; }
  .footer-legal a:hover { color:var(--white); }

  /* SUBSCRIPTION */
  /* ═══════════════════════════════════
     PAYMENT SYSTEM
  ═══════════════════════════════════ */
  .pay-method-btn { flex:1; padding:10px 12px; border:2px solid var(--border); border-radius:var(--radius); font-size:12px; font-weight:500; cursor:pointer; background:var(--surface); color:var(--ink-2); transition:all 0.15s; display:flex; align-items:center; justify-content:center; gap:6px; font-family:'Inter',sans-serif; min-width:0; }
  .pay-method-btn:hover { border-color:var(--blue-400); background:var(--blue-50); }
  .pay-method-btn.active { border-color:var(--blue-600); background:var(--blue-50); color:var(--blue-700); font-weight:600; }
  .pay-section { display:none; }
  .pay-section.active { display:block; }
  /* FPX Bank Grid */
  .fpx-header { display:flex; align-items:center; gap:10px; background:linear-gradient(135deg,#cc0001,#e60000); border-radius:var(--radius) var(--radius) 0 0; padding:10px 14px; margin-bottom:0; }
  .fpx-logo { font-family:'Sora',sans-serif; font-size:16px; font-weight:800; color:#fff; letter-spacing:1px; }
  .fpx-tagline { font-size:10px; color:rgba(255,255,255,0.8); }
  .fpx-bank-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:12px; border:1px solid var(--border); border-top:none; border-radius:0 0 var(--radius) var(--radius); margin-bottom:12px; max-height:240px; overflow-y:auto; }
  .fpx-bank-btn { display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 6px; border:1.5px solid var(--border); border-radius:var(--radius); cursor:pointer; background:var(--surface); transition:all 0.12s; text-align:center; }
  .fpx-bank-btn:hover { border-color:#cc0001; background:#fff5f5; }
  .fpx-bank-btn.selected { border-color:#cc0001; background:#fff0f0; }
  .fpx-bank-logo { font-size:20px; line-height:1; }
  .fpx-bank-name { font-size:9px; font-weight:600; color:var(--ink-2); line-height:1.2; }
  /* ShopeePay */
  .shopee-pay-box { background:linear-gradient(135deg,#ee4d2d,#f05524); border-radius:var(--radius); padding:1.1rem; color:#fff; text-align:center; margin-bottom:12px; }
  .shopee-pay-box .sp-logo { font-family:'Sora',sans-serif; font-size:20px; font-weight:800; margin-bottom:6px; }
  .shopee-pay-box .sp-desc { font-size:12px; opacity:0.9; margin-bottom:12px; }
  .shopee-pay-box .sp-qr { width:120px; height:120px; background:#fff; border-radius:var(--radius); margin:0 auto 10px; display:flex; align-items:center; justify-content:center; padding:8px; }
  /* TNG */
  .tng-pay-box { background:linear-gradient(135deg,#00509b,#0070cc); border-radius:var(--radius); padding:1.1rem; color:#fff; text-align:center; margin-bottom:12px; }
  /* DuitNow */
  .duitnow-box { background:linear-gradient(135deg,#e2004f,#c40046); border-radius:var(--radius); padding:1.1rem; color:#fff; text-align:center; margin-bottom:12px; }
  /* Receipt */
  .receipt-modal { background:var(--surface); border-radius:var(--radius-lg); padding:2rem; text-align:center; max-width:360px; margin:0 auto; }
  .receipt-checkmark { width:64px; height:64px; background:#dcfce7; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:32px; margin:0 auto 1rem; }
  .receipt-amount { font-family:'Sora',sans-serif; font-size:28px; font-weight:700; color:var(--blue-700); margin-bottom:4px; }
  .receipt-ref { font-size:12px; color:var(--ink-3); font-family:monospace; background:var(--surface-2); padding:4px 10px; border-radius:5px; display:inline-block; margin-bottom:1rem; }
  .receipt-rows { text-align:left; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:1rem; }
  .receipt-row { display:flex; justify-content:space-between; padding:8px 12px; font-size:13px; border-bottom:1px solid var(--border); }
  .receipt-row:last-child { border-bottom:none; }
  .receipt-row .lbl { color:var(--ink-3); }
  .receipt-row .val { font-weight:600; color:var(--ink); }
  /* Processing overlay */
  .pay-processing { text-align:center; padding:2rem 1rem; }
  .pay-spin { width:48px; height:48px; border:4px solid var(--border); border-top-color:var(--blue-500); border-radius:50%; animation:spin 0.8s linear infinite; margin:0 auto 1rem; }
  @keyframes spin { to { transform:rotate(360deg); } }
  /* Setup guide boxes */
  .gateway-setup { background:#fffbeb; border:1px solid #fde68a; border-radius:var(--radius); padding:10px 12px; font-size:12px; color:#92400e; margin-top:10px; }
  .gateway-setup strong { display:block; margin-bottom:4px; }
  .gateway-setup ol { padding-left:1.1rem; }
  .gateway-setup ol li { margin-bottom:3px; }
  .gateway-setup a { color:#b45309; font-weight:600; }
  .tier-banner { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border-radius:var(--radius); margin-bottom:1rem; font-size:13px; }
  .tier-banner.free { background:#f0f9ff; border:1px solid #bae6fd; color:#0369a1; }
  .tier-banner.premium { background:linear-gradient(135deg,#1e4d9e,#2563c4); color:#fff; border:none; }
  .tier-banner .upgrade-btn { padding:5px 12px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; border:none; background:var(--blue-600); color:#fff; transition:all 0.15s; }
  .tier-banner.premium .upgrade-btn { background:rgba(255,255,255,0.2); }
  .tier-banner .upgrade-btn:hover { background:var(--blue-700); }
  .limit-bar { height:6px; border-radius:3px; background:var(--border); margin:4px 0 2px; overflow:hidden; }
  .limit-bar-fill { height:100%; border-radius:3px; background:var(--blue-500); transition:width 0.3s; }
  .limit-bar-fill.warn { background:#f59e0b; }
  .limit-bar-fill.full { background:#ef4444; }
  .word-counter { font-size:11px; color:var(--ink-3); text-align:right; margin-top:3px; }
  .word-counter.warn { color:#f59e0b; }
  .word-counter.full { color:#ef4444; }
  .premium-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:4px; font-size:10px; font-weight:700; background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#78350f; letter-spacing:0.5px; }

  /* ROLE BADGES */
  .role-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
  .role-standard { background: #e0f2fe; color: #0369a1; }
  .role-agent { background: #dcfce7; color: #166534; }
  .role-admin { background: #fef3c7; color: #92400e; }

  /* ROLE SELECT MODAL */
  .role-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; }
  .role-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 14px; }
  .role-card:hover { border-color: var(--blue-400); background: var(--blue-50); }
  .role-card.selected { border-color: var(--blue-600); background: var(--blue-50); }
  .role-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
  .role-card-icon.standard { background: #e0f2fe; }
  .role-card-icon.agent { background: #dcfce7; }
  .role-card-icon.admin { background: #fef3c7; }
  .role-card-icon.owner { background: #ffedd5; }
  .role-card-text h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
  .role-card-text p { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

  /* ADMIN PANEL */
  .admin-panel { display: none; position: fixed; inset: 0; background: var(--surface-2); z-index: 300; overflow-y: auto; }
  .admin-panel.open { display: block; }
  .admin-nav { background: var(--blue-900); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 56px; }
  .admin-nav-left { display: flex; align-items: center; gap: 16px; }
  .admin-nav h2 { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; color: #fff; }
  .admin-tabs { display: flex; gap: 4px; }
  .admin-tab { padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--blue-200); background: transparent; border: none; transition: all 0.12s; }
  .admin-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .admin-tab.active { background: rgba(255,255,255,0.15); color: #fff; }
  .admin-content { max-width: 1100px; margin: 0 auto; padding: 2rem; }
  .admin-section { display: none; }
  .admin-section.active { display: block; }
  .admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 2rem; }
  .admin-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
  .admin-stat-card .num { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700; color: var(--blue-700); }
  .admin-stat-card .lbl { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
  .admin-stat-card .trend { font-size: 11px; color: var(--sale); margin-top: 4px; }
  .admin-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
  .admin-table-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
  .admin-table-head h3 { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th { text-align: left; padding: 10px 16px; background: var(--surface-2); color: var(--ink-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
  td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: middle; }
  tr:last-child td { border-bottom: none; }
  tr:hover td { background: var(--surface-2); }
  .status-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
  .status-active { background: #dcfce7; color: #166534; }
  .status-pending { background: #fef3c7; color: #92400e; }
  .status-inactive { background: #fee2e2; color: #991b1b; }
  .action-btns { display: flex; gap: 6px; }
  .btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 5px; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-family: 'Inter', sans-serif; transition: all 0.12s; }
  .btn-xs:hover { background: var(--surface-3); }
  .btn-xs.danger { color: #dc2626; border-color: #fca5a5; }
  .btn-xs.danger:hover { background: #fee2e2; }
  .btn-xs.success { color: #166534; border-color: #86efac; }
  .btn-xs.success:hover { background: #dcfce7; }

  /* AGENT PROFILE SECTION */
  .my-listings-section { margin-top: 1.5rem; }
  .my-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

  /* GOOGLE MAPS */
  .map-modal { display:none; position:fixed; inset:0; background:rgba(10,22,80,0.55); z-index:400; align-items:flex-start; justify-content:center; padding:0; }
  .map-modal.open { display:flex; }
  .map-container { background:var(--surface); width:100%; height:100vh; display:flex; flex-direction:column; }
  .map-toolbar { background:var(--blue-800); padding:0 1.5rem; height:56px; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
  .map-toolbar h2 { font-family:'Sora',sans-serif; font-size:15px; font-weight:600; color:#fff; }
  .map-toolbar-right { display:flex; gap:10px; align-items:center; }
  .map-search-bar { display:flex; gap:8px; padding:10px 1rem; background:var(--surface); border-bottom:1px solid var(--border); flex-shrink:0; }
  .map-search-bar input { flex:1; padding:8px 12px; border:1.5px solid var(--border); border-radius:var(--radius); font-size:13px; font-family:'Inter',sans-serif; outline:none; }
  .map-search-bar input:focus { border-color:var(--blue-500); }
  .map-search-bar select { padding:8px 10px; border:1.5px solid var(--border); border-radius:var(--radius); font-size:13px; font-family:'Inter',sans-serif; outline:none; color:var(--ink-2); }
  #mapCanvas { flex:1; width:100%; }
  .map-info-panel { position:absolute; bottom:2rem; left:50%; transform:translateX(-50%); background:var(--surface); border-radius:var(--radius-lg); padding:1rem 1.25rem; box-shadow:0 8px 32px rgba(10,22,80,0.2); min-width:300px; max-width:380px; display:none; z-index:10; }
  .map-info-panel.open { display:block; }
  .map-info-panel .mi-price { font-family:'Sora',sans-serif; font-size:18px; font-weight:700; color:var(--blue-700); }
  .map-info-panel .mi-title { font-size:13px; font-weight:500; color:var(--ink); margin:2px 0 6px; }
  .map-info-panel .mi-loc { font-size:12px; color:var(--ink-3); }
  .map-info-panel .mi-actions { display:flex; gap:8px; margin-top:10px; }
  .map-key-notice { background:#fffbeb; border:1px solid #fde68a; border-radius:var(--radius); padding:10px 14px; font-size:13px; color:#92400e; margin:0.5rem 1rem; }
  .map-key-notice a { color:#b45309; font-weight:500; }
  /* Mini map in detail modal */
  .mini-map { height:280px; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); margin-bottom:0; background:var(--surface-3); display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--ink-3); position:relative; }
  .mini-map iframe { width:100%; height:100%; border:none; }
  .mini-map-overlay { position:absolute; inset:0; background:transparent; cursor:pointer; }
  /* Nearby POI */
  .nearby-section { margin-bottom:1.25rem; }
  .nearby-chips { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
  .poi-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:20px; border:1.5px solid var(--border); background:var(--surface); font-size:12px; font-weight:500; cursor:pointer; color:var(--ink-2); transition:all 0.12s; white-space:nowrap; }
  .poi-chip:hover { border-color:var(--blue-400); background:var(--blue-50); color:var(--blue-700); }
  .poi-chip.active { border-color:var(--blue-600); background:var(--blue-600); color:#fff; }
  .nearby-list { display:flex; flex-direction:column; gap:6px; max-height:220px; overflow-y:auto; }
  .nearby-item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--radius); background:var(--surface-2); border:1px solid var(--border); font-size:12px; transition:all 0.12s; }
  .nearby-item:hover { background:var(--blue-50); border-color:var(--blue-200); }
  .nearby-item-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
  .nearby-item-info { flex:1; min-width:0; }
  .nearby-item-name { font-weight:500; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .nearby-item-dist { color:var(--ink-3); font-size:11px; }
  .nearby-item-rating { color:#f59e0b; font-size:11px; font-weight:600; }
  .nearby-loading { text-align:center; padding:1rem; color:var(--ink-3); font-size:13px; }
  .nearby-empty { text-align:center; padding:1rem; color:var(--ink-3); font-size:13px; }
  .map-poi-marker { position:relative; }


  /* ═══════════════════════════════════════════
     AGENT PROFILE (Premium)
  ═══════════════════════════════════════════ */
  .agent-profile-overlay { display:none; position:fixed; inset:0; background:rgba(10,22,80,0.5); z-index:500; align-items:flex-start; justify-content:center; padding:0; overflow-y:auto; }
  .agent-profile-overlay.open { display:flex; }
  .agent-profile-modal { background:var(--surface); width:100%; max-width:780px; margin:0 auto; min-height:100vh; position:relative; }
  /* Hero banner */
  .ap-hero { background:linear-gradient(135deg,var(--blue-800) 0%,var(--blue-600) 100%); padding:2rem 2rem 3.5rem; position:relative; overflow:hidden; }
  .ap-hero::before { content:''; 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='%23ffffff' fill-opacity='0.04'%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/svg%3E"); }
  .ap-hero-inner { position:relative; z-index:1; display:flex; gap:1.5rem; align-items:flex-start; }
  .ap-photo-wrap { position:relative; flex-shrink:0; }
  .ap-photo { width:96px; height:96px; border-radius:50%; object-fit:cover; border:3px solid rgba(255,255,255,0.4); background:var(--blue-700); display:flex; align-items:center; justify-content:center; font-size:36px; font-weight:700; color:#fff; }
  .ap-photo img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
  .ap-verified-badge { position:absolute; bottom:2px; right:2px; width:22px; height:22px; background:#059669; border:2px solid #fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; }
  .ap-hero-info { flex:1; }
  .ap-name { font-family:'Sora',sans-serif; font-size:22px; font-weight:700; color:#fff; margin-bottom:4px; }
  .ap-title { font-size:14px; color:var(--blue-100); margin-bottom:8px; }
  .ap-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
  .ap-tag { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
  .ap-tag-premium { background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#78350f; }
  .ap-tag-verified { background:rgba(5,150,105,0.9); color:#fff; }
  .ap-tag-ren { background:rgba(255,255,255,0.15); color:#fff; }
  .ap-social-row { display:flex; gap:8px; flex-wrap:wrap; }
  .ap-social-btn { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:8px; font-size:12px; font-weight:600; text-decoration:none; border:none; cursor:pointer; transition:all 0.15s; }
  .ap-social-wa { background:#25D366; color:#fff; }
  .ap-social-wa:hover { background:#128C7E; }
  .ap-social-fb { background:#1877F2; color:#fff; }
  .ap-social-fb:hover { background:#0d6efd; }
  .ap-social-ig { background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }
  .ap-social-tt { background:#000; color:#fff; }
  .ap-social-li { background:#0077B5; color:#fff; }
  .ap-social-web { background:rgba(255,255,255,0.15); color:#fff; border:1px solid rgba(255,255,255,0.3); }
  .ap-social-web:hover { background:rgba(255,255,255,0.25); }
  /* Stats bar */
  .ap-stats-bar { display:grid; grid-template-columns:repeat(4,1fr); background:var(--blue-900); }
  .ap-stat { padding:12px; text-align:center; border-right:1px solid rgba(255,255,255,0.08); }
  .ap-stat:last-child { border-right:none; }
  .ap-stat-num { font-family:'Sora',sans-serif; font-size:18px; font-weight:700; color:#fff; }
  .ap-stat-lbl { font-size:10px; color:var(--blue-300); text-transform:uppercase; letter-spacing:0.5px; }
  /* Body */
  .ap-body { padding:1.5rem 2rem; }
  .ap-section { margin-bottom:1.75rem; }
  .ap-section-title { font-family:'Sora',sans-serif; font-size:13px; font-weight:700; color:var(--ink-2); text-transform:uppercase; letter-spacing:0.6px; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid var(--border); display:flex; align-items:center; gap:8px; }
  .ap-bio { font-size:14px; color:var(--ink-2); line-height:1.8; white-space:pre-line; }
  /* Timeline (experience) */
  .ap-timeline { display:flex; flex-direction:column; gap:0; }
  .ap-timeline-item { display:flex; gap:14px; padding-bottom:18px; position:relative; }
  .ap-timeline-item:last-child { padding-bottom:0; }
  .ap-timeline-left { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
  .ap-timeline-dot { width:12px; height:12px; border-radius:50%; background:var(--blue-600); border:2px solid var(--blue-200); flex-shrink:0; margin-top:4px; }
  .ap-timeline-line { width:2px; background:var(--border); flex:1; margin-top:4px; }
  .ap-timeline-item:last-child .ap-timeline-line { display:none; }
  .ap-timeline-right { flex:1; padding-bottom:4px; }
  .ap-timeline-role { font-weight:600; font-size:14px; color:var(--ink); }
  .ap-timeline-org { font-size:13px; color:var(--blue-600); }
  .ap-timeline-period { font-size:11px; color:var(--ink-3); margin-top:2px; }
  .ap-timeline-desc { font-size:12px; color:var(--ink-2); margin-top:4px; line-height:1.6; }
  /* Education */
  .ap-edu-grid { display:flex; flex-direction:column; gap:10px; }
  .ap-edu-item { display:flex; align-items:flex-start; gap:12px; padding:10px 12px; background:var(--surface-2); border-radius:var(--radius); border:1px solid var(--border); }
  .ap-edu-icon { width:36px; height:36px; border-radius:8px; background:var(--blue-100); color:var(--blue-700); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
  .ap-edu-info .ap-edu-degree { font-weight:600; font-size:13px; color:var(--ink); }
  .ap-edu-info .ap-edu-inst { font-size:12px; color:var(--blue-600); }
  .ap-edu-info .ap-edu-year { font-size:11px; color:var(--ink-3); }
  /* Specialization chips */
  .ap-spec-grid { display:flex; flex-wrap:wrap; gap:8px; }
  .ap-spec-chip { padding:5px 14px; background:var(--blue-50); color:var(--blue-700); border:1px solid var(--blue-200); border-radius:20px; font-size:12px; font-weight:500; }
  /* REN card */
  .ap-ren-card { background:linear-gradient(135deg,#1a3a6e,#2563c4); border-radius:var(--radius-lg); padding:1.25rem 1.5rem; color:#fff; position:relative; overflow:hidden; }
  .ap-ren-card::before { content:''; position:absolute; top:-20px; right:-20px; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,0.06); }
  .ap-ren-label { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--blue-200); margin-bottom:4px; }
  .ap-ren-id { font-family:'Sora',sans-serif; font-size:24px; font-weight:700; letter-spacing:2px; margin-bottom:4px; }
  .ap-ren-name { font-size:13px; color:var(--blue-100); margin-bottom:12px; }
  .ap-ren-footer { display:flex; justify-content:space-between; align-items:flex-end; }
  .ap-ren-agency { font-size:11px; color:var(--blue-200); }
  .ap-ren-expiry { font-size:11px; color:var(--blue-200); text-align:right; }
  .ap-ren-img { margin-top:10px; border-radius:var(--radius); overflow:hidden; border:2px solid rgba(255,255,255,0.2); }
  .ap-ren-img img { width:100%; max-height:140px; object-fit:cover; display:block; }
  /* Listings preview */
  .ap-listings-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
  .ap-listing-thumb { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); cursor:pointer; transition:transform 0.15s,box-shadow 0.15s; }
  .ap-listing-thumb:hover { transform:translateY(-2px); box-shadow:var(--shadow-hover); }
  .ap-listing-thumb img { width:100%; height:90px; object-fit:cover; display:block; }
  .ap-listing-info { padding:8px 10px; }
  .ap-listing-price { font-family:'Sora',sans-serif; font-size:13px; font-weight:700; color:var(--blue-700); }
  .ap-listing-loc { font-size:11px; color:var(--ink-3); }
  /* Contact bar */
  .ap-contact-bar { position:sticky; bottom:0; background:var(--surface); border-top:1px solid var(--border); padding:1rem 2rem; display:flex; gap:10px; z-index:10; }
  /* Edit mode */
  .ap-edit-section { background:var(--blue-50); border:1.5px dashed var(--blue-300); border-radius:var(--radius-lg); padding:1.25rem; margin-bottom:1.25rem; }
  .ap-edit-label { font-size:12px; font-weight:600; color:var(--blue-700); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
  .ap-input { width:100%; padding:8px 12px; border:1.5px solid var(--border); border-radius:var(--radius); font-family:'Inter',sans-serif; font-size:13px; color:var(--ink); background:var(--surface); outline:none; }
  .ap-input:focus { border-color:var(--blue-500); }
  .ap-textarea { width:100%; padding:8px 12px; border:1.5px solid var(--border); border-radius:var(--radius); font-family:'Inter',sans-serif; font-size:13px; color:var(--ink); background:var(--surface); outline:none; resize:vertical; min-height:80px; }
  .ap-textarea:focus { border-color:var(--blue-500); }
  /* Close btn */
  .ap-close { position:absolute; top:1rem; right:1rem; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.15); border:none; color:#fff; cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; z-index:10; }
  .ap-close:hover { background:rgba(255,255,255,0.25); }
  @media(max-width:640px) {
    .ap-hero-inner { flex-direction:column; gap:1rem; }
    .ap-stats-bar { grid-template-columns:repeat(2,1fr); }
    .ap-listings-grid { grid-template-columns:1fr; }
    .ap-body { padding:1rem; }
  }


  /* ═══════════════════════════════════════════
     MORTGAGE & COST CALCULATOR
  ═══════════════════════════════════════════ */
  .mort-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); margin-bottom:1.25rem; overflow:hidden; }
  .mort-header { background:linear-gradient(135deg,#0f2245,#1e4d9e); padding:12px 16px; display:flex; align-items:center; justify-content:space-between; }
  .mort-header-title { font-family:"Sora",sans-serif; font-weight:700; font-size:14px; color:#fff; }
  .mort-header-sub { font-size:10px; color:var(--blue-200); margin-top:1px; }
  .mort-lock-badge { display:inline-flex; align-items:center; gap:5px; background:rgba(255,255,255,0.15); color:#fff; padding:4px 10px; border-radius:20px; font-size:11px; font-weight:600; cursor:pointer; border:1px solid rgba(255,255,255,0.25); }
  .mort-lock-badge:hover { background:rgba(255,255,255,0.25); }
  /* Tab switcher */
  .mort-tabs { display:flex; border-bottom:1px solid var(--border); background:var(--surface-2); }
  .mort-tab { flex:1; padding:9px 8px; font-size:12px; font-weight:600; color:var(--ink-3); cursor:pointer; border:none; background:transparent; border-bottom:2px solid transparent; transition:all 0.15s; font-family:"Inter",sans-serif; }
  .mort-tab:hover { color:var(--blue-600); background:var(--blue-50); }
  .mort-tab.active { color:var(--blue-600); border-bottom-color:var(--blue-600); background:var(--surface); }
  /* Tab panels */
  .mort-panel { display:none; padding:1.1rem 1.25rem; }
  .mort-panel.active { display:block; }
  /* Inputs */
  .mort-input-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
  .mort-input-group { display:flex; flex-direction:column; gap:4px; }
  .mort-input-group.full { grid-column:1/-1; }
  .mort-label { font-size:11px; font-weight:600; color:var(--ink-3); text-transform:uppercase; letter-spacing:0.4px; }
  .mort-input { width:100%; padding:8px 10px; border:1.5px solid var(--border); border-radius:var(--radius); font-size:13px; font-family:"Inter",sans-serif; color:var(--ink); background:var(--surface); outline:none; transition:border-color 0.12s; }
  .mort-input:focus { border-color:var(--blue-500); }
  .mort-range { width:100%; accent-color:var(--blue-600); cursor:pointer; }
  .mort-range-labels { display:flex; justify-content:space-between; font-size:10px; color:var(--ink-3); margin-top:2px; }
  /* Results */
  .mort-result-hero { background:linear-gradient(135deg,var(--blue-700),var(--blue-500)); border-radius:var(--radius-lg); padding:1.1rem; color:#fff; text-align:center; margin-bottom:12px; }
  .mort-result-hero .monthly { font-family:"Sora",sans-serif; font-size:28px; font-weight:800; }
  .mort-result-hero .monthly-lbl { font-size:11px; opacity:0.8; margin-top:2px; }
  .mort-result-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px; }
  .mort-result-item { background:var(--surface-2); border-radius:var(--radius); padding:8px 10px; text-align:center; border:1px solid var(--border); }
  .mort-result-item .val { font-family:"Sora",sans-serif; font-size:13px; font-weight:700; color:var(--blue-700); }
  .mort-result-item .lbl { font-size:10px; color:var(--ink-3); margin-top:2px; }
  /* Amortization bar */
  .mort-amort-bar { height:18px; border-radius:20px; overflow:hidden; display:flex; margin-bottom:6px; }
  .mort-amort-principal { background:var(--blue-600); }
  .mort-amort-interest { background:#f59e0b; }
  .mort-amort-legend { display:flex; gap:14px; font-size:11px; color:var(--ink-2); }
  .mort-amort-dot { width:10px; height:10px; border-radius:50%; display:inline-block; margin-right:4px; }
  /* Cost breakdown table */
  .mort-cost-table { width:100%; border-collapse:collapse; font-size:12px; }
  .mort-cost-table th { text-align:left; padding:7px 10px; background:var(--surface-2); color:var(--ink-3); font-size:10px; text-transform:uppercase; letter-spacing:0.5px; border-bottom:1px solid var(--border); }
  .mort-cost-table td { padding:8px 10px; border-bottom:1px solid var(--border); color:var(--ink-2); vertical-align:top; }
  .mort-cost-table tr:last-child td { border-bottom:none; }
  .mort-cost-table tr:hover td { background:var(--surface-2); }
  .mort-cost-table .cost-name { font-weight:500; color:var(--ink); }
  .mort-cost-table .cost-formula { font-size:10px; color:var(--ink-3); margin-top:2px; }
  .mort-cost-table .cost-val { font-weight:700; color:var(--blue-700); text-align:right; white-space:nowrap; }
  .mort-total-row td { background:var(--blue-50); font-weight:700; color:var(--blue-800); border-top:2px solid var(--blue-300); }
  .mort-total-row .cost-val { color:var(--blue-700); font-size:14px; }
  /* Eligibility */
  .mort-eligibility { background:var(--surface-2); border-radius:var(--radius-lg); padding:1rem; border:1px solid var(--border); margin-bottom:10px; }
  .mort-eligibility-title { font-size:12px; font-weight:700; color:var(--ink-2); margin-bottom:8px; }
  .mort-elig-row { display:flex; justify-content:space-between; align-items:center; font-size:12px; padding:4px 0; border-bottom:1px solid var(--border); }
  .mort-elig-row:last-child { border-bottom:none; }
  .mort-elig-label { color:var(--ink-3); }
  .mort-elig-value { font-weight:600; color:var(--ink); }
  .mort-elig-pass { color:#059669; }
  .mort-elig-warn { color:#d97706; }
  .mort-elig-fail { color:#dc2626; }
  /* Bank rates */
  .mort-banks-grid { display:flex; flex-direction:column; gap:6px; }
  .mort-bank-row { display:flex; align-items:center; gap:10px; padding:8px 10px; background:var(--surface-2); border-radius:var(--radius); border:1px solid var(--border); }
  .mort-bank-logo { font-size:18px; width:30px; text-align:center; flex-shrink:0; }
  .mort-bank-name { font-weight:600; font-size:12px; color:var(--ink); flex:1; }
  .mort-bank-rate { font-family:"Sora",sans-serif; font-size:13px; font-weight:700; color:var(--blue-700); }
  .mort-bank-monthly { font-size:11px; color:var(--ink-3); text-align:right; }
  /* Lock overlay */
  .mort-lock-overlay { background:var(--surface-2); border:1px solid var(--border); border-radius:0 0 var(--radius-lg) var(--radius-lg); padding:2rem; text-align:center; }
  .mort-lock-icon { font-size:40px; margin-bottom:10px; }
  .mort-lock-title { font-family:"Sora",sans-serif; font-size:15px; font-weight:700; color:var(--ink); margin-bottom:6px; }
  .mort-lock-desc { font-size:13px; color:var(--ink-3); margin-bottom:16px; }
  @media(max-width:640px) {
    .mort-input-grid { grid-template-columns:1fr; }
    .mort-result-grid { grid-template-columns:1fr 1fr; }
    .mort-banks-grid .mort-bank-row { flex-wrap:wrap; }
  }

  /* BRICKZ TRANSACTION SECTION */
  .brickz-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); margin-bottom:1.25rem; overflow:hidden; }
  .brickz-header { background:linear-gradient(135deg,#1a3a6e,#2563c4); padding:12px 16px; display:flex; align-items:center; justify-content:space-between; }
  .brickz-header-left { display:flex; align-items:center; gap:10px; }
  .brickz-logo-text { font-family:"Sora",sans-serif; font-weight:700; font-size:14px; color:#fff; }
  .brickz-logo-sub { font-size:10px; color:var(--blue-200); font-weight:400; }
  .brickz-source-badge { font-size:10px; background:rgba(255,255,255,0.15); color:#fff; padding:2px 8px; border-radius:10px; font-weight:500; }
  .brickz-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-bottom:1px solid var(--border); }
  .brickz-stat { padding:12px 14px; border-right:1px solid var(--border); text-align:center; }
  .brickz-stat:last-child { border-right:none; }
  .brickz-stat-val { font-family:"Sora",sans-serif; font-size:16px; font-weight:700; color:var(--blue-700); }
  .brickz-stat-lbl { font-size:10px; color:var(--ink-3); margin-top:2px; text-transform:uppercase; letter-spacing:0.4px; }
  .brickz-stat-sub { font-size:11px; color:var(--ink-3); margin-top:1px; }
  .brickz-trend-up { color:#059669; font-size:11px; font-weight:600; }
  .brickz-trend-down { color:#dc2626; font-size:11px; font-weight:600; }
  .brickz-transactions { padding:10px 14px; }
  .brickz-tx-head { display:grid; grid-template-columns:80px 1fr 90px 70px 70px; gap:6px; padding:6px 8px; font-size:10px; font-weight:700; color:var(--ink-3); text-transform:uppercase; letter-spacing:0.4px; border-bottom:1px solid var(--border); margin-bottom:4px; }
  .brickz-tx-row { display:grid; grid-template-columns:80px 1fr 90px 70px 70px; gap:6px; padding:7px 8px; font-size:12px; color:var(--ink-2); border-radius:6px; transition:background 0.1s; align-items:center; }
  .brickz-tx-row:hover { background:var(--surface-2); }
  .brickz-tx-date { color:var(--ink-3); font-size:11px; }
  .brickz-tx-price { font-weight:700; color:var(--ink); }
  .brickz-tx-psf { color:var(--blue-600); font-weight:500; }
  .brickz-tx-size { color:var(--ink-3); }
  .brickz-tx-trend { font-size:10px; font-weight:700; }
  .brickz-footer { padding:10px 14px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; background:var(--surface-2); }
  .brickz-disclaimer { font-size:10px; color:var(--ink-3); line-height:1.5; flex:1; margin-right:12px; }
  .brickz-cta { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; background:var(--blue-600); color:#fff; border-radius:var(--radius); font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; transition:background 0.15s; }
  .brickz-cta:hover { background:var(--blue-700); }
  .price-indicator { display:flex; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid var(--border); background:var(--surface-2); }
  .price-bar-wrap { flex:1; }
  .price-bar-track { height:8px; background:var(--border); border-radius:4px; position:relative; overflow:hidden; }
  .price-bar-range { position:absolute; top:0; height:100%; background:linear-gradient(90deg,var(--blue-300),var(--blue-500)); border-radius:4px; }
  .price-bar-marker { position:absolute; top:-3px; width:14px; height:14px; background:var(--blue-700); border:2px solid #fff; border-radius:50%; transform:translateX(-50%); box-shadow:0 1px 4px rgba(0,0,0,0.2); }
  .price-bar-labels { display:flex; justify-content:space-between; font-size:10px; color:var(--ink-3); margin-top:3px; }
  .price-verdict { display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex-shrink:0; }
  .verdict-badge { padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; }
  .verdict-good { background:#dcfce7; color:#166534; }
  .verdict-fair { background:#fef3c7; color:#92400e; }
  .verdict-high { background:#fee2e2; color:#991b1b; }
  @media(max-width:640px) {
    .brickz-tx-head,.brickz-tx-row { grid-template-columns:70px 1fr 80px 55px; }
    .brickz-tx-trend { display:none; }
    .brickz-summary { grid-template-columns:1fr 1fr; }
    .brickz-summary .brickz-stat:last-child { display:none; }
  }
  /* Map view toggle button */
  .btn-map-view { display:flex; align-items:center; gap:6px; }

  @media (max-width: 640px) {
    .hero h1 { font-size: 26px; }
    .form-grid { grid-template-columns: 1fr; }
    .listings-grid { grid-template-columns: 1fr; }
    nav { padding: 0 1rem; }
    .container { padding: 0 1rem 3rem; }
    .filter-bar { padding: 1rem; }
    .stat-item { padding: 10px 1.2rem; }
    .nav-name { display: none; }
    .stats-strip { flex-wrap: wrap; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-tabs { display: none; }
  }

  /* ═══════════════════════════════════════════
     POS (PROCLAMATION OF SALE) — AUCTION
  ═══════════════════════════════════════════ */
  .pos-badge { position:absolute; top:44px; left:12px; display:inline-flex; align-items:center; gap:4px; background:#7c3aed; color:#fff; padding:3px 9px; border-radius:5px; font-size:10px; font-weight:700; letter-spacing:0.3px; box-shadow:0 2px 6px rgba(124,58,237,0.35); }
  .pos-badge.expired { background:#dc2626; }
  .pos-badge.sold { background:#374151; }
  .pos-section { border:2px solid #7c3aed; border-radius:var(--radius-lg); margin-bottom:1.25rem; overflow:hidden; }
  .pos-header { background:linear-gradient(135deg,#4c1d95,#7c3aed); padding:12px 16px; display:flex; align-items:center; justify-content:space-between; }
  .pos-header-title { font-family:"Sora",sans-serif; font-size:14px; font-weight:700; color:#fff; }
  .pos-header-sub { font-size:10px; color:#ddd6fe; margin-top:1px; }
  .pos-status-badge { padding:3px 10px; border-radius:10px; font-size:11px; font-weight:700; }
  .pos-status-active { background:#dcfce7; color:#166534; }
  .pos-status-expired { background:#fee2e2; color:#991b1b; }
  .pos-status-sold { background:#f3f4f6; color:#374151; }
  .pos-countdown { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:14px 16px; background:#faf5ff; border-bottom:1px solid #e9d5ff; }
  .pos-countdown-item { text-align:center; background:#fff; border-radius:var(--radius); padding:8px 4px; border:1px solid #e9d5ff; }
  .pos-countdown-num { font-family:"Sora",sans-serif; font-size:22px; font-weight:800; color:#6d28d9; line-height:1; }
  .pos-countdown-lbl { font-size:10px; color:#7c3aed; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; margin-top:2px; }
  .pos-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; }
  .pos-info-item { padding:10px 14px; border-right:1px solid #e9d5ff; border-bottom:1px solid #e9d5ff; }
  .pos-info-item:nth-child(2n) { border-right:none; }
  .pos-info-item:nth-last-child(-n+2) { border-bottom:none; }
  .pos-info-lbl { font-size:10px; font-weight:600; color:#7c3aed; text-transform:uppercase; letter-spacing:0.4px; margin-bottom:3px; }
  .pos-info-val { font-size:13px; font-weight:600; color:#1a1a2e; }
  .pos-info-sub { font-size:11px; color:#6b7ea8; margin-top:1px; }
  .pos-doc-area { padding:14px 16px; background:#faf5ff; border-top:1px solid #e9d5ff; }
  .pos-doc-title { font-size:11px; font-weight:700; color:#6d28d9; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
  .pos-doc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
  .pos-doc-thumb { border-radius:var(--radius); overflow:hidden; border:2px solid #e9d5ff; cursor:pointer; position:relative; background:#fff; transition:all 0.15s; }
  .pos-doc-thumb:hover { border-color:#7c3aed; box-shadow:0 2px 12px rgba(124,58,237,0.2); }
  .pos-doc-thumb img { width:100%; height:100px; object-fit:cover; display:block; }
  .pos-doc-overlay { position:absolute; inset:0; background:rgba(76,29,149,0.7); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 0.15s; }
  .pos-doc-thumb:hover .pos-doc-overlay { opacity:1; }
  .pos-doc-label { position:absolute; bottom:0; left:0; right:0; background:rgba(76,29,149,0.85); color:#fff; font-size:10px; font-weight:600; padding:4px 6px; }
  .pos-watermark-wrap { position:relative; }
  .pos-watermark { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; z-index:2; }
  .pos-watermark span { transform:rotate(-35deg); font-size:22px; font-weight:900; color:rgba(124,58,237,0.18); letter-spacing:4px; white-space:nowrap; text-transform:uppercase; }
  .pos-upload-area { border:2px dashed #c4b5fd; border-radius:var(--radius-lg); padding:1.25rem; text-align:center; cursor:pointer; color:#7c3aed; font-size:13px; font-weight:500; background:#faf5ff; transition:all 0.15s; }
  .pos-upload-area:hover { border-color:#7c3aed; background:#f5f3ff; }
  .pos-upload-area input { display:none; }
  .pos-closed-banner { padding:10px 14px; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; background:#374151; color:#fff; }
  .pos-closed-banner.expired { background:#dc2626; }
  .pos-lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.92); z-index:600; align-items:center; justify-content:center; flex-direction:column; gap:12px; }
  .pos-lightbox.open { display:flex; }
  .pos-lightbox img { max-width:90vw; max-height:85vh; object-fit:contain; border-radius:var(--radius); }
  .pos-lightbox-close { position:absolute; top:1rem; right:1rem; width:40px; height:40px; background:rgba(255,255,255,0.15); border:none; border-radius:50%; color:#fff; font-size:20px; cursor:pointer; }
  .auction-fields { display:none; background:#faf5ff; border:1.5px dashed #c4b5fd; border-radius:var(--radius-lg); padding:1rem; margin-top:4px; }
  .auction-fields.visible { display:block; }

  /* ── Listings page (sidebar filters + pagination) — added for /hartanah ── */
  .page-header { background: var(--blue-900); color: #fff; padding: 1.75rem 0 1.5rem; }
  .page-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
  .page-sub { color: #9fb3d9; font-size: 13px; margin: 0; }
  .listings-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1.5rem 0; align-items: start; }
  .filters-sidebar { background: #fff; border: 1px solid #e5e9f0; border-radius: var(--radius-lg); padding: 1rem; position: sticky; top: 1rem; }
  .filter-section { margin-bottom: 1.25rem; }
  .filter-section:last-child { margin-bottom: 0; }
  .filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--blue-700); margin-bottom: 8px; }
  .filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #f1f4f9; color: var(--blue-800); font-size: 12px; font-weight: 500; text-decoration: none; border: 1px solid transparent; }
  .chip.active { background: var(--blue-600); color: #fff; }
  .filter-input { width: 100%; padding: 7px 10px; border: 1px solid #d8dee8; border-radius: 8px; font-size: 13px; font-family: inherit; }
  .listings-main { min-width: 0; }
  .listings-toolbar { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
  .search-inline { display: flex; gap: 8px; flex: 1; min-width: 200px; }
  .search-inline .filter-input { flex: 1; }
  .pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 1.5rem; flex-wrap: wrap; }
  .page-btn { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid #d8dee8; color: var(--blue-800); text-decoration: none; font-size: 13px; font-weight: 500; }
  .page-btn.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
  .page-ellipsis { color: #9aa6b8; padding: 0 4px; }
  @media (max-width: 640px) {
    .listings-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
  }

  /* ── UTILITY: Alert boxes ─────────────────────────────────── */
  .alert { border-radius: var(--radius); padding: .6rem .85rem; font-size: .84rem; line-height: 1.5; margin-bottom: .75rem; display: flex; align-items: flex-start; gap: .5rem; }
  .alert-error   { background: var(--error-bg);   border: 1px solid var(--error-border);   color: var(--error);   }
  .alert-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
  .alert-warn    { background: var(--warn-bg);    border: 1px solid var(--warn-border);    color: var(--warn);    }
  .alert-info    { background: var(--info-bg);    border: 1px solid var(--info-border);    color: var(--info);    }

  /* ── UTILITY: Disabled button state ──────────────────────── */
  .btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

  /* ── UTILITY: Skeleton loader ─────────────────────────────── */
  @keyframes skeleton-pulse { 0%,100% { opacity:1; } 50% { opacity:.45; } }
  .skeleton { background: var(--surface-3); border-radius: var(--radius); animation: skeleton-pulse 1.5s ease-in-out infinite; color: transparent !important; user-select: none; }

  /* ── MOBILE NAV (hamburger) ───────────────────────────────── */
  .nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; border-radius: 6px; }
  .nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .2s; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-mobile-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--blue-800); padding: .75rem 1.25rem; z-index: 99; border-top: 1px solid rgba(255,255,255,0.1); flex-direction: column; gap: 8px; max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-mobile-menu.open { display: flex; }
  /* Mobile menu reuses the same role-based link markup as the desktop
     dropdown (built once in auth.js) — force every item full-width/centered
     here regardless of the classes it was given for its desktop layout. */
  .nav-mobile-menu #mobileLoggedIn .btn { width: 100%; justify-content: center; text-decoration: none; }
  @media (max-width: 640px) {
    nav { position: relative; }
    .nav-actions { display: none; }
    .nav-hamburger { display: flex; }
  }

/* ── Quill toolbar: prevent site-wide form CSS from overriding toolbar elements ── */
.ql-toolbar select, .ql-toolbar button, .ql-toolbar span {
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
