/* EstateHub panels (admin, sales-closer, user dashboard) + auth pages.
   Uses the colour tokens from app.css; loaded through resources/js/app.js. */

/* ------------------------------------------------------------ Auth: signup / login */
.su-wrap { display: grid; place-items: center; min-height: calc(100vh - 80px); padding: 48px 20px; background: var(--cream); }
.su-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); width: min(100%, 1120px); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.su-card.is-narrow { width: min(100%, 920px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.su-aside { display: flex; flex-direction: column; justify-content: flex-start; gap: 36px; padding: 40px 34px; color: var(--white); background: linear-gradient(160deg, var(--primary-dark), var(--primary)); }
.su-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: inherit; }
.su-eyebrow { margin-bottom: 8px; color: var(--secondary); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.su-aside h2 { margin: 0; font-family: "Playfair Display", serif; font-size: 1.75rem; line-height: 1.25; }
.su-points { display: grid; margin-top: auto; gap: 16px; margin: 0; padding: 0; list-style: none; }
.su-points li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--secondary); }
.su-points span { color: rgba(255, 255, 255, .78); font-size: .88rem; }
.su-body { padding: 40px 44px; }
.su-body h1 { margin: 0 0 6px; color: var(--primary-dark); font-family: "Playfair Display", serif; font-size: 2rem; }
.su-sub { margin: 0 0 22px; color: var(--muted); }
.su-steps { display: flex; gap: 18px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; font-weight: 600; }
.su-steps li { display: flex; align-items: center; gap: 8px; }
.su-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--light); color: var(--primary); font-weight: 800; }
.su-steps .is-active { color: var(--primary-dark); }
.su-steps .is-active span { background: var(--primary); color: var(--white); }
.su-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.su-form.is-single { grid-template-columns: 1fr; }
.su-form .span-2 { grid-column: span 2; } .su-form .span-3 { grid-column: span 3; } .su-form .span-6 { grid-column: 1 / -1; }
.su-field { display: grid; gap: 6px; color: var(--dark); font-size: .86rem; font-weight: 700; }
.su-field em { color: #b4453f; font-style: normal; }
.su-field small { color: var(--muted); font-weight: 500; }
.su-field input:not([type="file"]), .su-field select { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--dark); font: inherit; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.su-field input:focus, .su-field select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 92, 74, .14); }
.su-field { min-width: 0; }
.su-file { width: 100%; max-width: 100%; padding: 10px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); background: var(--cream); font: inherit; }
.su-terms { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .88rem; }
.su-terms input { margin-top: 3px; accent-color: var(--primary); }
.su-submit { min-height: 52px; border: 0; border-radius: 999px; background: var(--primary); color: var(--white); font: inherit; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.su-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.su-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.su-foot { margin: 20px 0 0; color: var(--muted); font-size: .92rem; }
.su-foot a { color: var(--primary); font-weight: 700; }
.su-foot a:hover { text-decoration: underline; }
.auth-role-tabs { display: flex; gap: 6px; margin-bottom: 22px; padding: 4px; background: #eef3f0; border-radius: 999px; border: 1px solid #dbe5e0; }
.auth-role-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--primary-dark); text-decoration: none; transition: all .2s ease; text-align: center; }
.auth-role-tab:hover { color: var(--primary); background: rgba(255, 255, 255, .7); }
.auth-role-tab.is-active { background: var(--primary); color: var(--white); box-shadow: 0 2px 8px rgba(31, 92, 74, .25); }
.su-sales-closer-login { margin: 12px 0 0; text-align: right; font-size: .9rem; }
.su-sales-closer-login a { color: var(--primary); font-weight: 700; text-decoration: none; }
.su-sales-closer-login a:hover { color: var(--primary-dark); text-decoration: underline; }
.su-errors { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fae9e7; color: #963b36; font-size: .9rem; }
.su-errors ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 860px) {
  .su-card, .su-card.is-narrow { grid-template-columns: 1fr; }
  .su-aside { padding: 28px 24px; } .su-points { display: none; }
  .su-body { padding: 28px 22px; }
  .su-form .span-2, .su-form .span-3 { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ Panel shell additions */
.admin-shell .admin-sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-shell .admin-sidebar nav a.is-active { background: rgba(255, 255, 255, .15); font-weight: 700; }
.nav-group { margin: 20px 14px 6px; color: rgba(255, 255, 255, .55); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-badge { min-width: 22px; padding: 2px 8px; border-radius: 999px; background: var(--secondary); color: var(--dark); font-size: .72rem; font-weight: 800; text-align: center; }
.admin-shell .admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.p-topbar-user { display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 600; }
.dashboard-header nav .nav-badge { margin-left: 6px; }

/* Seller account overview and profile */
.seller-quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 34px; }
.seller-quick-links > a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); color: var(--dark); transition: border-color .2s, transform .2s, box-shadow .2s; }
.seller-quick-links > a:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 22px rgba(24, 35, 31, .08); }
.seller-quick-links > a > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.seller-quick-links strong { color: var(--primary-dark); }
.seller-quick-links small { color: var(--muted); line-height: 1.4; }
.seller-quick-links > a > b { margin-left: auto; color: var(--primary); font-size: 1.2rem; }
.seller-tool-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--light); color: var(--primary); font-size: 1.25rem; }
.seller-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.seller-section-heading > a { color: var(--primary); font-size: .9rem; font-weight: 700; }
.seller-profile-page { width: 100%; max-width: 900px; margin: 0 auto; }
.seller-profile-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.seller-profile-page .p-card-head,.seller-password-page .p-card-head { display: block; }
.seller-profile-page .p-card-head p,.seller-password-page .p-card-head p { margin: 6px 0 0; font-size: .9rem; }
.seller-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seller-profile-fields input:not([type="hidden"]), .seller-profile-fields select, .seller-password-page .p-form input { width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--dark); font: inherit; font-weight: 500; }
.seller-profile-fields input:focus, .seller-profile-fields select:focus, .seller-password-page .p-form input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 92, 74, .14); }
.seller-profile-fields input:disabled { background: var(--cream); color: var(--muted); }
.seller-profile-fields label, .seller-password-page .p-form label { display: grid; gap: 6px; color: var(--dark); font-size: .88rem; font-weight: 700; }
.seller-profile-fields label small { color: var(--muted); font-weight: 500; }
.seller-avatar-field { grid-column: 1 / -1; }
.seller-avatar-field { display: grid; gap: 8px; color: var(--dark); font-size: .88rem; font-weight: 700; }
.seller-avatar-field > small { color: var(--muted); font-weight: 500; }
.seller-current-avatar,.seller-new-avatar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seller-current-avatar label { display: inline-flex; align-items: center; gap: 7px; color: #9a3933; font-size: .84rem; font-weight: 700; }
.seller-new-avatar button,.signup-avatar-field [data-clear-signup-avatar] { padding: 7px 11px; border: 1px solid #e7c5c1; border-radius: 8px; background: #fff6f5; color: #963b36; font-size: .8rem; font-weight: 700; cursor: pointer; }
.seller-new-avatar button:hover,.signup-avatar-field [data-clear-signup-avatar]:hover { background: #fae9e7; }
.signup-avatar-field [data-signup-avatar] { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seller-file-name,.photo-file-name { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow-wrap: anywhere; color: #46574c; font-size: .85rem; font-weight: 600; }
.seller-file-name i { color: #77927f; font-size: 1.1rem; font-style: normal; }
.property-file-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(100%, 600px); padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.property-file-row > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.property-file-row button,.photo-file-row button { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #e7c5c1; border-radius: 7px; background: #fff6f5; color: #963b36; font-size: .78rem; font-weight: 700; cursor: pointer; }
.property-file-row button:hover,.photo-file-row button:hover { background: #fae9e7; }
.form-upload-file-list { display: grid; gap: 7px; }
.photo-file-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; width: min(100%, 620px); padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.photo-file-row .cv { margin-left: auto; border-color: #cbdccf; background: #f3f8f3; color: var(--primary-dark); }
.photo-file-row .cv.is { border-color: #e9d3a5; background: #fff5de; color: #715118; }
.seller-phone-field { grid-column: 1 / -1; }
.seller-profile-fields .phone-input { grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); gap: 10px; }
.seller-profile-fields .phone-input .geo-btn { min-height: 50px; padding: 11px 13px; border-color: var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--dark); font-size: .9rem; }
.seller-profile-fields .phone-input input[name="phone"] { min-height: 50px; }
.seller-profile-page .p-btn { justify-self: start; }
.seller-password-page { max-width: 700px; padding: 32px; border-color: #e1e9e2; box-shadow: 0 14px 34px rgba(24,35,31,.055); }
.seller-password-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.seller-password-key { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border: 1px solid #e8d8b8; border-radius: 18px; background: #fbf5e9; color: #a67526; }
.seller-password-key svg { width: 29px; height: 29px; }
.seller-password-eyebrow { margin: 0 0 4px; color: #9a762f; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.seller-password-heading h2 { margin: 0 0 4px; color: var(--primary-dark); font-family: "Playfair Display",serif; font-size: 1.45rem; }
.seller-password-heading .p-muted { margin: 0; font-size: .9rem; }
.seller-password-page .p-form { max-width: 560px; gap: 18px; }
.seller-password-page .p-form label { gap: 8px; }
.seller-password-input { position: relative; display: block; }
.seller-password-input input { padding-right: 52px !important; }
.seller-password-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 38px; height: 38px; place-items: center; transform: translateY(-50%); border-radius: 10px; background: transparent; color: #75817a; cursor: pointer; }
.seller-password-toggle:hover,.seller-password-toggle:focus-visible { background: var(--light); color: var(--primary); }
.seller-password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seller-password-toggle .eye-closed,.seller-password-toggle.is-visible .eye-open { display: none; }
.seller-password-toggle.is-visible .eye-closed { display: block; }
.seller-password-submit { display: flex; justify-self: start; min-width: 190px; gap: 10px; margin-top: 4px; }
.seller-password-page .su-errors,.seller-password-page .flash-message { max-width: 560px; margin-bottom: 18px; }
.seller-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; background: #f3f6f3; }
.seller-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; height: 100vh; padding: 26px 18px 18px; overflow-y: auto; background: linear-gradient(165deg, #174637 0%, #10372d 100%); color: #fff; }
.seller-sidebar-brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 32px; color: #fff; font-size: 1.12rem; font-weight: 800; }
.seller-brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.1); color: #f2c36f; font-size: 1.6rem; }
.seller-sidebar-brand > span:last-child { display: grid; line-height: 1.1; }
.seller-sidebar-brand small { margin-top: 5px; color: rgba(255,255,255,.58); font-size: .58rem; letter-spacing: .12em; }
.seller-sidebar-user { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; padding: 14px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.07); }
.seller-sidebar-avatar,.seller-topbar-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e4b867; color: #173b30; font-weight: 800; }
.seller-sidebar-avatar img,.seller-topbar-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.seller-sidebar-user > span:last-child { display: grid; min-width: 0; gap: 2px; }
.seller-sidebar-user strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.seller-sidebar-user small { color: rgba(255,255,255,.6); font-size: .76rem; }
.seller-nav-label { margin: 0 12px 10px; color: rgba(255,255,255,.48); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.seller-side-nav { display: grid; gap: 6px; }
.seller-side-nav a,.seller-sidebar-bottom a,.seller-sidebar-bottom button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 13px; border: 0; border-radius: 11px; background: transparent; color: rgba(255,255,255,.76); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; }
.seller-side-nav a > span,.seller-sidebar-bottom a > span,.seller-sidebar-bottom button > span { display: grid; width: 21px; place-items: center; color: #e7bd72; font-size: 1.1rem; }
.seller-side-nav a:hover,.seller-sidebar-bottom a:hover,.seller-sidebar-bottom button:hover { background: rgba(255,255,255,.09); color: #fff; }
.seller-side-nav a.is-active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 #e7bd72; }
.seller-side-nav .nav-badge { margin-left: auto; color: #173b30; }
.seller-sidebar-list { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 24px; border-radius: 12px; background: #e7bd72; color: #173b30; font-size: .9rem; font-weight: 800; }
.seller-sidebar-list:hover { background: #f0cc85; }
.seller-sidebar-bottom { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.seller-sidebar-bottom form { margin: 0; }
.seller-workspace { min-width: 0; }
.seller-workspace > .flash-messages { width: min(1460px, calc(100% - 64px)); margin: 18px auto 0; }
.seller-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 18px clamp(24px, 4vw, 56px); border-bottom: 1px solid #e6ebe6; background: rgba(255,255,255,.92); }
.seller-topbar > div > span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.seller-topbar h1 { margin: 2px 0 0; color: var(--primary-dark); font-family: "Playfair Display",serif; font-size: 1.65rem; }
.seller-topbar-avatar { width: 44px; height: 44px; border: 3px solid #f4e7c9; }
.seller-layout .dashboard-main { width: min(1460px, calc(100% - 64px)); margin: 30px auto 56px; }
.seller-side-nav a.is-active,.seller-sidebar-list.is-active { background: rgba(255,255,255,.14); color: #fff; }
.seller-layout .seller-dashboard-intro { border: 0; background: linear-gradient(115deg, #e7f0e8, #fff 68%, #fcf4e5); box-shadow: 0 12px 30px rgba(23,70,55,.06); }
.seller-layout .seller-summary { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 20px; }
.seller-layout .seller-summary article { min-height: 132px; box-shadow: 0 5px 16px rgba(24,35,31,.035); }
.seller-layout .seller-summary article strong { font-size: 2rem; }
.seller-layout .seller-summary article small { color: var(--muted); font-size: .78rem; }
.seller-layout .seller-views-stat { border-color: #e7cf9f; background: linear-gradient(145deg,#fffdf7,#fff); }
.seller-layout .seller-views-stat strong { color: #9a6b20; }
.seller-layout .seller-section-heading { margin-bottom: 12px; }
.seller-property-views { display: grid; gap: 3px; color: var(--primary-dark); font-weight: 700; }
.seller-property-views > span { color: var(--muted); font-size: .78rem; font-weight: 600; }
@media (max-width: 960px) { .seller-quick-links { grid-template-columns: 1fr; } .seller-profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .seller-profile-fields { grid-template-columns: 1fr; } .seller-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 10px; } }
@media (max-width: 900px) {
  .seller-layout { grid-template-columns: 1fr; }
  .seller-sidebar { position: relative; height: auto; min-height: 0; padding: 14px 18px 12px; overflow: visible; }
  .seller-sidebar-brand { margin: 0 4px 12px; }
  .seller-sidebar-user,.seller-nav-label,.seller-sidebar-list,.seller-sidebar-bottom { display: none; }
  .seller-side-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .seller-side-nav a { flex: 0 0 auto; min-height: 40px; padding: 0 11px; font-size: .82rem; }
  .seller-workspace > .flash-messages,.seller-layout .dashboard-main { width: calc(100% - 36px); }
  .seller-topbar { min-height: 78px; padding: 14px 20px; }
}
@media (max-width: 620px) {
  .seller-layout .seller-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .seller-layout .seller-summary article { min-height: 112px; padding: 15px; }
  .seller-layout .seller-summary article strong { font-size: 1.65rem; }
  .seller-layout .seller-dashboard-intro { gap: 14px; padding: 20px; }
  .seller-layout .seller-dashboard-intro h2 { font-size: 1.35rem; }
}

/* ------------------------------------------------------------ Cards, stats, lists */
.p-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
.p-narrow { max-width: 860px; }
.p-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.p-card-head h2 { margin: 0; color: var(--primary-dark); font-family: "Playfair Display", serif; font-size: 1.35rem; }
.p-card-head a { color: var(--primary); font-weight: 700; font-size: .9rem; }
.p-muted { color: var(--muted); } .p-prose { white-space: pre-line; }
.p-sub { margin: 24px 0 10px; color: var(--primary-dark); font-size: 1rem; }
.p-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.p-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.p-stats.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-stat { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--primary); color: var(--white); transition: transform .2s; }
.p-stat:hover { transform: translateY(-2px); }
.p-stat span { font-size: .9rem; opacity: .85; } .p-stat strong { font-size: 2.1rem; line-height: 1; } .p-stat small { opacity: .75; }
.p-stat.is-plain { background: var(--white); color: var(--dark); } .p-stat.is-plain span { color: var(--muted); opacity: 1; } .p-stat.is-plain strong { color: var(--primary-dark); }
.p-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); color: inherit; }
.p-row:first-of-type { border-top: 0; }
.p-row div { display: grid; gap: 2px; min-width: 0; } .p-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-row div span, .p-row time { color: var(--muted); font-size: .82rem; }
.p-empty { padding: 22px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------ Tables, filters, tabs */
.p-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.p-filters input[type="search"] { flex: 1 1 240px; }
.p-filters input, .p-filters select, .p-form input, .p-form select, .p-form textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--dark); font: inherit; }
.p-filters input:focus, .p-filters select:focus, .p-form input:focus, .p-form select:focus, .p-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 92, 74, .14); }
.admin-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, #fbfcfa, #f6f8f5); }
.admin-filter-grid > label { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--dark); font-size: .78rem; font-weight: 700; }
.admin-filter-grid > label > span { color: var(--muted); font-size: .72rem; letter-spacing: .035em; }
.admin-filter-grid input:not([type="checkbox"]), .admin-filter-grid select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--dark); font: inherit; }
.admin-filter-grid input:focus, .admin-filter-grid select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 92, 74, .12); }
.admin-filter-grid .admin-filter-search { grid-column: span 2; }
.admin-filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.admin-filter-actions > span { color: var(--muted); font-size: .82rem; }
.admin-filter-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filter-grid .p-check { min-height: 40px; }
.admin-filter-grid .p-check input { width: 17px; height: 17px; accent-color: var(--primary); }
.admin-filter-grid .p-btn { min-height: 42px; }
.p-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.p-notice { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fbf1df; color: #7a5516; font-size: .9rem; }
.p-link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.p-table-wrap { overflow-x: auto; }
.p-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.p-table th { padding: 10px 12px; border-bottom: 2px solid var(--border); color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.p-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.p-table tr:hover td { background: #fbfcfb; }
.p-table small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; }
.p-strong { color: var(--primary-dark); font-weight: 700; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
td.p-actions { min-width: 220px; }
.p-actions form { margin: 0; } .p-actions-bar { margin-bottom: 20px; }
.p-status-form { display: flex; align-items: center; }
.p-status-toggle { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); color: var(--dark); text-align: left; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.p-status-toggle:hover { border-color: var(--primary); box-shadow: 0 3px 12px rgba(31,92,74,.1); }
.p-status-toggle:focus-visible { outline: 3px solid rgba(216,164,93,.45); outline-offset: 2px; }
.p-status-switch { position: relative; flex: 0 0 38px; width: 38px; height: 22px; border-radius: 999px; background: #c5cbc7; transition: background .18s; }
.p-status-switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.p-status-toggle.is-active { border-color: #d5eadf; background: #f5fbf7; }
.p-status-toggle.is-active .p-status-switch { background: #25815f; }
.p-status-toggle.is-active .p-status-switch span { transform: translateX(16px); }
.p-status-copy { display: grid; gap: 1px; }
.p-status-copy strong { color: #236749; font-size: .82rem; line-height: 1.2; }
.p-status-toggle.is-inactive .p-status-copy strong { color: #7a6254; }
.p-status-copy small { color: var(--muted); font-size: .66rem; line-height: 1.2; white-space: nowrap; }
.p-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.p-tabs a { padding: 8px 14px; border-radius: 999px; background: var(--light); color: var(--primary-dark); font-size: .88rem; font-weight: 700; }
.p-tabs a b { margin-left: 4px; color: var(--muted); }
.p-tabs a.is-active { background: var(--primary); color: var(--white); } .p-tabs a.is-active b { color: var(--white); }
.p-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------ Buttons, badges, forms */
.p-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 1.5px solid var(--primary); border-radius: 999px; background: var(--primary); color: var(--white); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.p-btn:hover { background: var(--primary-dark); }
.p-btn.is-ghost { background: transparent; color: var(--primary); } .p-btn.is-ghost:hover { background: var(--light); }
.p-btn.is-warn { border-color: var(--secondary); background: var(--secondary); color: var(--dark); }
.p-btn.is-danger { border-color: #e8c4c0; background: #fae9e7; color: #963b36; } .p-btn.is-danger:hover { background: #f4d6d2; }
.p-btn.is-small { min-height: 32px; padding: 0 12px; font-size: .8rem; }
.p-btn.is-disabled { opacity: .4; pointer-events: none; }
.p-badge { display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: var(--light); color: var(--primary-dark); font-size: .74rem; font-weight: 800; white-space: nowrap; }
.p-badge.is-live, .p-badge.is-active, .p-badge.is-closed { background: #e7f5ec; color: #176441; }
.p-badge.is-new { background: var(--secondary); color: var(--dark); }
.p-badge.is-hidden, .p-badge.is-inactive { background: #eceeed; color: #5b6560; }
.p-badge.is-blocked { background: #fae9e7; color: #963b36; }
.p-badge.is-assigned { background: #e3edf9; color: #2a5a93; }
.p-badge.is-in_progress, .p-badge.is-featured { background: #fbf1df; color: #7a5516; }
.p-form { display: grid; gap: 14px; margin-top: 8px; }
.p-form label { display: grid; gap: 6px; color: var(--dark); font-size: .88rem; font-weight: 700; }
.p-form label small { color: var(--muted); font-weight: 500; }
.p-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.p-note { margin-bottom: 10px; padding: 12px 14px; border-left: 3px solid var(--secondary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--cream); }
.p-note p { margin: 0 0 4px; white-space: pre-line; } .p-note small { color: var(--muted); }
.p-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 20px 0; }
.p-details.is-single { grid-template-columns: 1fr; }
.p-details dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; } .p-details dd { margin: 2px 0 0; font-weight: 600; }
.p-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.p-gallery img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); object-fit: cover; }

/* ------------------------------------------------------------ Chat */
.chat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.chat-side { padding: 18px; }
.chat-new { display: grid; gap: 6px; margin-bottom: 14px; font-size: .84rem; font-weight: 700; }
.chat-new select { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.chat-list { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.chat-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: var(--radius-sm); color: inherit; }
.chat-item:hover, .chat-item.is-active { background: var(--light); }
.chat-item div { display: grid; min-width: 0; } .chat-item small { color: var(--muted); }
.chat { display: grid; gap: 0; overflow: hidden; border: 1px solid #dce7df; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(19, 52, 40, .08); }
.seller-layout .dashboard-main > .seller-chat-card { width: min(100%, 980px); max-width: 980px; margin: 0 auto; }
.chat-topbar { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 18px; border-bottom: 1px solid #e6eee8; background: #fff; }
.chat-contact-avatar { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#e9c578,#d5a44c); color: #173e32; font-size: .9rem; font-weight: 800; }
.chat-contact-copy { display: grid; min-width: 0; gap: 3px; }
.chat-contact-copy strong { overflow: hidden; color: #183b30; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact-copy small { display: flex; align-items: center; gap: 6px; color: #748078; font-size: .76rem; }
.chat-contact-copy small i { width: 7px; height: 7px; border-radius: 50%; background: #61b783; }
.chat-lock { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #7b8980; font-size: .72rem; }
.chat-lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-log { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 360px; max-height: 58vh; padding: 22px 20px; overflow-y: auto; border: 0; background-color: #edf3ed; background-image: radial-gradient(rgba(91,126,100,.085) .7px,transparent .7px); background-size: 18px 18px; }
.chat-msg { max-width: min(78%, 560px); padding: 10px 13px 8px; border: 1px solid rgba(27,57,42,.04); border-radius: 14px 14px 14px 4px; background: #fff; color: #23332a; box-shadow: 0 2px 4px rgba(22,42,29,.07); }
.chat-msg.is-mine { align-self: flex-end; border-color: #d3ebc9; border-radius: 14px 14px 4px 14px; background: #d9f7c9; color: #183629; }
.chat-msg p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg > span { display: block; color: #728078; font-size: .67rem; text-align: right; } .chat-msg i { margin-left: 2px; color: #2186a1; font-style: normal; font-weight: 800; }
.chat-msg > span em { margin-right: 2px; color: #7a8980; font-style: italic; }
.chat-msg.is-deleted p { color: #758078; font-style: italic; }
.chat-msg-actions { position: absolute; top: -12px; right: 8px; display: flex; gap: 3px; padding: 3px; border: 1px solid #e4eae5; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgba(23,44,30,.12); opacity: 0; pointer-events: none; transition: opacity .15s; }
.chat-msg { position: relative; }
.chat-msg:hover .chat-msg-actions,.chat-msg-actions:focus-within { opacity: 1; pointer-events: auto; }
.chat-msg-actions[hidden] { display: none; }
.chat-msg-actions button { display: grid; width: 28px; height: 27px; place-items: center; border-radius: 6px; background: transparent; color: #607268; cursor: pointer; }
.chat-msg-actions button:hover { background: #edf3ed; color: #215b44; }
.chat-msg-actions button:last-child:hover { background: #fae9e7; color: #a33f39; }
.chat-msg-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-edit-form { display: grid; gap: 8px; min-width: min(280px, 70vw); margin-bottom: 8px; }
.chat-edit-form textarea { width: 100%; min-height: 70px; padding: 8px 10px; border: 1px solid #a9c4b0; border-radius: 9px; font: inherit; resize: vertical; }
.chat-edit-error { color: #9a3933; font-size: .74rem; }
.chat-edit-actions { display: flex; justify-content: flex-end; gap: 6px; }
.chat-edit-form button { padding: 6px 11px; border-radius: 7px; background: #1f6a52; color: #fff; font-size: .76rem; font-weight: 700; cursor: pointer; }
.chat-edit-form button + button { background: #e9efea; color: #44534a; }
.chat-edit-form button:disabled { opacity: .6; }
.chat-welcome { display: grid; justify-items: center; gap: 6px; margin: auto; padding: 25px; color: #63766b; text-align: center; }
.chat-welcome > span { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 4px; border-radius: 50%; background: #dcebdd; color: #397455; font-size: 1.4rem; }
.chat-welcome strong { color: #244333; }
.chat-welcome p { max-width: 270px; font-size: .86rem; }
.chat-typing { display: flex; align-items: center; align-self: flex-start; gap: 8px; width: fit-content; padding: 9px 12px; border: 1px solid rgba(27,57,42,.04); border-radius: 14px 14px 14px 4px; background: #fff; color: #6c7d72; font-size: .74rem; box-shadow: 0 2px 4px rgba(22,42,29,.06); }
.chat-typing[hidden] { display: none; }
.chat-typing-dots { display: flex; gap: 3px; }
.chat-typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: #619578; animation: chat-bounce 1s infinite ease-in-out; }
.chat-typing-dots i:nth-child(2) { animation-delay: .14s; }.chat-typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes chat-bounce { 0%,60%,100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-form { position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 14px 16px 17px; background: #fff; }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 120px; padding: 13px 15px; border: 1px solid #dfe7e1; border-radius: 15px; background: #f8faf8; color: var(--dark); font: inherit; resize: none; }
.chat-form textarea:focus { outline: 0; border-color: #7ba78c; background: #fff; box-shadow: 0 0 0 3px rgba(31, 92, 74, .1); }
.chat-form-hint { position: absolute; bottom: 1px; left: 31px; color: #96a19a; font-size: .65rem; }
.chat-send { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-width: 92px; height: 46px; padding: 0 16px; border-radius: 14px; background: #1f6a52; color: #fff; font: inherit; font-size: .9rem; font-weight: 800; transition: background .2s, transform .2s; }
.chat-send:hover { transform: translateY(-1px); background: #174b3b; }.chat-send:disabled { opacity: .6; cursor: wait; }
.chat-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .chat-msg-actions { opacity: 1; pointer-events: auto; } }
@media (max-width: 520px) { .chat-lock { font-size: 0; }.chat-log { min-height: 320px; padding: 16px 12px; }.chat-msg { max-width: 88%; }.chat-form { gap: 7px; padding-right: 10px; padding-left: 10px; }.chat-form-hint { left: 24px; font-size: .59rem; }.chat-send { min-width: 48px; width: 48px; padding: 0; }.chat-send span { display:none; } }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
  .p-stats, .p-stats.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-two, .chat-layout, .p-form-grid, .p-details { grid-template-columns: 1fr; }
  .admin-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-grid .admin-filter-search { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-shell .admin-sidebar { padding: 14px 16px; }
  .admin-shell .admin-sidebar .logo { margin-bottom: 10px; }
  .admin-shell .admin-sidebar nav { display: flex; gap: 6px; overflow-x: auto; }
  .admin-shell .admin-sidebar nav a { flex: none; } .nav-group { display: none; }
  .admin-main > :not(.admin-topbar) { margin: 18px 14px; }
}
@media (max-width: 520px) {
  .p-stats, .p-stats.is-three { grid-template-columns: 1fr; }
  .chat-msg { max-width: 92%; }
  .admin-filter-grid { grid-template-columns: 1fr; gap: 11px; padding: 14px; }
  .admin-filter-grid > label, .admin-filter-grid .admin-filter-search, .admin-filter-actions { grid-column: 1; }
  .admin-filter-actions { align-items: stretch; flex-direction: column; }
  .admin-filter-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-filter-actions .p-btn { width: 100%; padding-inline: 10px; }
}

/* ------------------------------------------------------------ Auth additions (phone, forgot password, verify email) */
.phone-input { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px; }
.phone-input select, .phone-input input { width: 100%; min-width: 0; }
.su-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.su-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.su-link:hover { text-decoration: underline; }
.admin-login-forgot { display: block; margin-top: 14px; text-align: center; color: var(--primary); font-size: .9rem; font-weight: 700; }
.verify-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--light); color: var(--primary); font-size: 1.8rem; }
.verify-body { min-width: 0; }
.verify-body .su-sub { max-width: 52ch; line-height: 1.55; }
.verify-form { gap: 14px; }
.verify-form > label { display: grid; gap: 8px; min-width: 0; color: var(--dark); font-size: .9rem; font-weight: 700; }
.verify-body .otp-input { display: block; width: 100%; max-width: none; min-height: 62px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--primary-dark); font: inherit; font-size: 1.45rem; font-weight: 800; letter-spacing: .62em; line-height: 1.2; text-align: center; box-shadow: 0 2px 8px rgba(24,35,31,.035); transition: border-color .2s, box-shadow .2s; }
.verify-body .otp-input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31,92,74,.12); }
.verify-form .su-submit { min-height: 56px; }
.verify-resend-form { margin-top: 2px; }
.verify-resend-form .su-link { justify-self: center; min-height: 36px; padding: 6px 10px; }
.verify-body .otp-hint { margin: 4px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.verify-logout { margin-top: 16px; text-align: center; }
.signup-form { align-items: start; gap: 16px 14px; }
.signup-form .su-field { align-content: start; gap: 7px; }
.signup-form .su-field > label { color: var(--dark); font-size: .86rem; font-weight: 700; }
.signup-email-row,.signup-otp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.signup-email-row input,.signup-otp-row input { min-width: 0; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--dark); font: inherit; font-weight: 500; transition: border-color .2s,box-shadow .2s; }
.signup-email-row input:focus,.signup-otp-row input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,92,74,.12); }
.signup-email-row input[aria-invalid="true"],.signup-form .has-error > input,.signup-form .has-error .phone-input input { border-color: #d66b63; }
.signup-otp-button { min-height: 48px; padding: 0 15px; border: 1px solid #d6e5dc; border-radius: 12px; background: #edf5f0; color: var(--primary-dark); font: inherit; font-size: .82rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .18s,border-color .18s,transform .18s; }
.signup-otp-button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--primary); background: #e2efe7; }
.signup-otp-button:disabled { opacity: .65; cursor: wait; }
.signup-otp-button.is-verify { border-color: var(--primary); background: var(--primary); color: #fff; }
.signup-otp-button.is-verify:hover:not(:disabled) { background: var(--primary-dark); }
.signup-otp-fields { display: grid; gap: 7px; margin-top: 3px; }
.signup-otp-fields[hidden],.signup-otp-status[hidden] { display: none !important; }
.signup-otp-fields > label { color: var(--dark); font-size: .82rem; font-weight: 700; }
.signup-otp-row input { font-size: 1rem; font-weight: 700; letter-spacing: .24em; }
.signup-otp-status { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; overflow-wrap: anywhere; }
.signup-otp-status.is-success { color: #20704f; font-weight: 700; }
.signup-otp-status.is-error,.su-field-error { color: #b33b32; }
.su-field-error { display: block; font-size: .76rem; font-weight: 600; line-height: 1.4; }
.signup-terms-wrap { display: grid; gap: 6px; }
.signup-terms-wrap .su-terms { align-items: flex-start; }
.signup-form .has-error .cs-trigger { border-color: #d66b63; }
.su-steps li.is-complete { color: var(--primary-dark); }
.su-steps li.is-complete span { background: var(--primary); color: #fff; }

/* Seller listing row actions */
.seller-property-row > .seller-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seller-row-actions form { margin: 0; }
@media (max-width: 760px) { .seller-property-row { grid-template-columns: 1fr; } }
