/* Agent portal + MLS admin — extends admin.css */
.portal-body { background: #f4f3ef; }
.admin-nav-links { flex-wrap: wrap; }
.auth-wrap { max-width: 480px; margin: 40px auto; }
.auth-wrap.wide { max-width: 760px; }
.auth-card { background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.auth-logo img { height: 48px; margin-bottom: 12px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card fieldset { border: 1px solid #e8e6e1; border-radius: 10px; padding: 16px; margin: 16px 0; }
.auth-card legend { font-weight: 600; padding: 0 6px; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.type-opt { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #e8e6e1; border-radius: 10px; padding: 12px; cursor: pointer; }
.type-opt:has(input:checked) { border-color: #c9a84c; background: #fdfaf0; }
.type-opt span { display: flex; flex-direction: column; } .type-opt small { color: #666; }
.check { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-size: 0.9rem; }
.check.small { font-size: 0.8rem; margin: 4px 0; }
.check input { width: auto; }
.muted { color: #666; } .small { font-size: 0.85rem; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; }
.inline { display: inline-block; margin-right: 4px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text], .inline-form input:not([type]) { flex: 1; min-width: 200px; }
.alert-warn { background: #fff7e0; color: #7a5a00; border: 1px solid #f0d78c; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e8e6e1; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; color: #1a1a1a; }
.stat-card b { font-size: 1.8rem; } .stat-card span { color: #666; font-size: 0.85rem; }
.stat-card.hot { border-color: #c9a84c; background: #fdfaf0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .type-switch { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid #e8e6e1; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 720px; }
.card h2 { font-size: 1.05rem; margin-bottom: 12px; }
.card h3 { font-size: 0.95rem; margin: 16px 0 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .form-row.four { grid-template-columns: 1fr 1fr; } .two-col > *, .form-row > *, .form-group input, .form-group select { min-width: 0; } }  /* listing form was ~550px wide on phones */
.form-group { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.form-group.grow { grid-column: span 1; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: #444; }
.form-group input, .form-group select, .form-group textarea { padding: 9px 10px; border: 1px solid #d9d6cf; border-radius: 8px; font: inherit; font-size: 0.92rem; }
.input-group { display: flex; } .input-group input { flex: 1; border-radius: 8px 0 0 8px; } .input-group select, .input-group .addon { border: 1px solid #d9d6cf; border-left: 0; padding: 9px 10px; border-radius: 0 8px 8px 0; background: #fafafa; font-size: 0.9rem; }
.input-group select + select { border-radius: 0; } .input-group select:last-child { border-radius: 0 8px 8px 0; }
.check-group { justify-content: flex-end; }
.feature-picker summary { cursor: pointer; font-weight: 600; margin: 8px 0; }
.feature-picker h4 { font-size: 0.85rem; margin: 12px 0 6px; color: #444; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #d9d6cf; border-radius: 999px; padding: 4px 10px; font-size: 0.82rem; cursor: pointer; }
.chip:has(input:checked) { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.chip input { display: none; }
.pick-map { height: 280px; border-radius: 8px; margin-top: 10px; background: #e9e7e2; }
.sticky-save { position: sticky; bottom: 12px; }
.table-thumb-empty { width: 56px; height: 42px; background: #eee; border-radius: 6px; }
.badge-gold { background: #fdf3d3; color: #7a5a00; }
.filter-select { padding: 6px 10px; border: 1px solid #d9d6cf; border-radius: 8px; margin-left: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-table.compact td, .admin-table.compact th { padding: 8px 10px; font-size: 0.88rem; }
.upload-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { position: relative; border-radius: 8px; overflow: hidden; background: #eee; aspect-ratio: 4/3; cursor: grab; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.dragging { opacity: 0.4; }
.photo-actions { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 4px; }
.cover-badge { position: absolute; top: 6px; left: 6px; }
.btn.danger { color: #b3261e; border-color: #b3261e; }
.avatar-row { display: flex; gap: 12px; align-items: center; }
.agent-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-avatar.logo { border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid #eee; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.price-big { font-size: 1.6rem; font-weight: 700; } .price-big small { font-size: 0.8rem; color: #666; }
code.key { display: inline-block; background: #0a0a0a; color: #e4cc7a; padding: 6px 10px; border-radius: 6px; font-size: 0.85rem; word-break: break-all; user-select: all; }
code.key.small { font-size: 0.75rem; padding: 4px 8px; }
pre { background: #0a0a0a; color: #e4cc7a; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 0.78rem; }
.plain { list-style: none; padding: 0; } .plain li { padding: 4px 0; }
.dns-box { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 12px; margin: 10px 0; }
.roles-help { margin-top: 12px; }
.check-list { list-style: none; padding: 0; } .check-list li { padding: 4px 0 4px 24px; position: relative; } .check-list li::before { content: '✓'; position: absolute; left: 0; color: #2d7a4a; font-weight: 700; }
input[type=color] { height: 40px; padding: 2px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; } .bar { flex: 1; background: #0a0a0a; min-height: 2px; border-radius: 2px 2px 0 0; } .bar.gold { background: #c9a84c; }
.timeline { list-style: none; padding: 0; } .timeline li { border-left: 2px solid #e8e6e1; padding: 6px 12px; margin-bottom: 6px; }
.quote { background: #fafafa; border-left: 3px solid #c9a84c; padding: 10px 14px; margin: 10px 0; white-space: pre-line; }
.check-box { margin-bottom: 16px; } .check-box .meter { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; } .check-box .meter i { display: block; height: 100%; background: #2d7a4a; }
.danger { color: #b3261e; } .magic-form { margin-bottom: 8px; }
.risk-form .check { margin: 6px 0; }

/* ES/EN toggle */
.admin-nav-links a.lang-toggle { border: 1px solid rgba(228,204,122,.5); border-radius: 6px; padding: 2px 8px; font-size: .78rem; letter-spacing: .05em; color: #e4cc7a; }
.lang-toggle-float { position: absolute; top: 14px; right: 18px; font-size: .85rem; }
.lang-toggle-float a { color: #666; text-decoration: underline; }

.badge-red { background: #fdecec; color: #b3261e; }

/* ===== Site wizard / editor preview ===== */
.wizard-layout { display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 20px; align-items: start; }
.wizard fieldset { border: 0; padding: 0; margin: 0; } .wizard legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.wizard-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.wizard-steps li { flex: 1; min-width: 80px; font-size: 0.78rem; font-weight: 600; padding: 6px 8px; border-radius: 6px; background: rgba(127,127,127,0.12); cursor: pointer; text-align: center; }
.wizard-steps li.on { background: var(--accent, #c9a84c); color: #111; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 16px; } .wizard-nav #wz-next { margin-left: auto; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tpl-card { display: flex; flex-direction: column; gap: 4px; border: 2px solid rgba(127,127,127,0.25); border-radius: 10px; padding: 8px; cursor: pointer; font-size: 0.85rem; }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; } .tpl-card:has(input:checked) { border-color: var(--accent, #c9a84c); box-shadow: 0 0 0 2px rgba(201,168,76,0.25); }
.tpl-grid { grid-template-columns: repeat(4, 1fr); }
.tpl-thumb { display: flex; flex-direction: column; gap: 4px; height: 92px; border-radius: 6px; overflow: hidden; padding: 5px; background: #fff; border: 1px solid #e5e5e5; }
.tpl-thumb.dark { background: #0d0d0d; border-color: #222; }
.tpl-thumb .t-hero { flex: 0 0 44%; border-radius: var(--r); background: var(--p); position: relative; display: flex; align-items: center; padding-left: 6px; }
.tpl-thumb .t-hero em { font-style: normal; font-family: var(--fh), serif; font-weight: 700; color: #fff; font-size: 13px; }
.tpl-thumb .t-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tpl-thumb .t-cards i { border-radius: var(--r); background: #e9e9e9; border-bottom: 3px solid var(--a); }
.tpl-thumb.dark .t-cards i { background: #222; }
.th-split .t-hero { background: linear-gradient(90deg, #f3f3f3 55%, var(--p) 55%); } .th-split .t-hero em { color: #222; }
.th-minimal .t-hero { background: #fff; border-bottom: 2px solid var(--p); border-radius: 0; } .th-minimal .t-hero em { color: #111; }
.th-fullbleed .t-hero { flex-basis: 58%; background: linear-gradient(180deg, #5a5a5a, #111); border-radius: 0; } .th-fullbleed .t-hero em { color: var(--a); align-self: flex-end; padding-bottom: 5px; }
.th-bold .t-hero { background: #fff; border-left: 10px solid var(--a); border-radius: 0; } .th-bold .t-hero em { color: #111; font-weight: 900; text-transform: uppercase; font-size: 15px; }
.th-editorial .t-hero { background: linear-gradient(180deg, #fff 35%, #6b6b6b 35%); } .th-editorial .t-hero em { color: #111; align-self: flex-start; padding-top: 1px; }
.tc-list .t-cards { grid-template-columns: 1fr; } .tc-list .t-cards i { border-bottom: 1px solid #ccc; background: linear-gradient(90deg, #d9d9d9 35%, transparent 35%); border-radius: 0; }
.tc-large .t-cards { grid-template-columns: 1fr 1fr; } .tc-large .t-cards i:nth-child(3) { display: none; }
.tc-overlay .t-cards i { background: linear-gradient(180deg, #bdbdbd, #333); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin-bottom: 12px; }
.callout { border: 1px solid rgba(201,168,76,0.45); background: rgba(201,168,76,0.08); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.wizard-preview { position: sticky; top: 16px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(127,127,127,0.3); background: #111; }
.wizard-preview.compact { position: static; padding: 0; } .wizard-preview.compact p { padding: 8px 12px; margin: 0; background: transparent; }
.preview-chrome { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #1e1e1e; } .preview-chrome > span { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.preview-chrome code { flex: 1; font-size: 0.75rem; color: #aaa; background: #2a2a2a; padding: 3px 8px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-preview iframe { display: block; width: 100%; height: 78vh; border: 0; background: #fff; transition: width .2s; margin: 0 auto; }
.wizard-preview.compact iframe { height: 460px; }
.wizard-preview.mobile iframe { width: 390px; max-width: 100%; }
.omni-card { border-left: 4px solid var(--accent, #c9a84c); } .omni-card .steps { padding-left: 18px; }
@media (max-width: 1000px) { .wizard-layout { grid-template-columns: 1fr; } .wizard-preview { position: static; } .wizard-preview iframe { height: 70vh; } .tpl-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1400px) and (min-width: 1001px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tpl-grid, .check-grid { grid-template-columns: 1fr; } }

/* ===== Email & DNS ===== */
.ns-box { display: grid; gap: 8px; margin: 10px 0 14px; } .ns-box code { font-size: 1.05rem; padding: 6px 10px; }
.ns-steps { border: 1px dashed rgba(201,168,76,0.6); border-radius: 10px; padding: 14px 16px; background: rgba(201,168,76,0.06); }
.big-code { font-size: 1.15rem; padding: 4px 10px; letter-spacing: 0.04em; }
.mail-new { margin-top: 14px; border-top: 1px solid rgba(127,127,127,0.2); padding-top: 14px; }
.mail-actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.inline-details summary { list-style: none; cursor: pointer; } .inline-details summary::-webkit-details-marker { display: none; }
.dns-table .dns-val code { word-break: break-all; font-size: 0.78rem; } .nowrap { white-space: nowrap; }

/* ===== Portal / admin top nav: main links + "More" + user menu (no wrapping) ===== */
.pnav .admin-nav-inner { gap: 18px; height: 60px; }
.pnav-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.pnav-links > a, .pnav-dd > summary { color: rgba(255,255,255,.72); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 7px 11px; border-radius: 8px; white-space: nowrap; cursor: pointer; list-style: none; }
.pnav-dd > summary::-webkit-details-marker { display: none; }
.pnav-links > a:hover, .pnav-dd > summary:hover { color: #fff; background: rgba(255,255,255,.07); }
.pnav-links > a.on, .pnav-dd > summary.on { color: #fff; background: rgba(228,204,122,.16); box-shadow: inset 0 -2px 0 #e4cc7a; }
.pnav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pnav-cta { white-space: nowrap; }
.pnav-admin { color: #e4cc7a; border: 1px solid rgba(228,204,122,.45); border-radius: 8px; padding: 5px 10px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.pnav-admin:hover { background: rgba(228,204,122,.12); }
.pnav-dd { position: relative; }
.pnav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; background: #151515; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.35); z-index: 200; display: flex; flex-direction: column; }
.pnav-menu.right { left: auto; right: 0; }
.pnav-menu a { color: rgba(255,255,255,.8); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .9rem; white-space: nowrap; }
.pnav-menu a:hover, .pnav-menu a.on { background: rgba(255,255,255,.08); color: #fff; }
.pnav-who { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-size: .88rem; line-height: 1.35; } .pnav-who small { color: rgba(255,255,255,.55); }
.pnav-user > summary { display: flex; align-items: center; gap: 8px; }
.pnav-avatar { width: 28px; height: 28px; border-radius: 50%; background: #e4cc7a; color: #111; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pnav-burger { display: none; } .pnav-burger > summary { font-size: 1.2rem; color: #fff; }
@media (max-width: 1100px) { .pnav-links > a, .pnav-dd > summary { padding: 7px 8px; font-size: .85rem; } .pnav-uname { display: none; } }
@media (max-width: 900px) { .pnav-links, .pnav-user, .pnav-admin { display: none; } .pnav-burger { display: block; } .pnav .admin-nav-inner { justify-content: space-between; } .pnav-menu { max-height: 75vh; overflow: auto; } }
a.stat-card, a.stat-card:hover { text-decoration: none; color: inherit; }
.webmail-brand { padding-top: 10px; } .wm-preview { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e8e6e1; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.wm-preview img { max-height: 44px; max-width: 200px; object-fit: contain; } .wm-preview b { font-size: 1rem; }

.idv-selfie img { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; border: 2px solid #1f5c33; display: block; margin: 6px 0 10px; }
.sigpad { width: 100%; max-width: 600px; height: 140px; background: #fff; border: 1.5px dashed #bbb; border-radius: 10px; touch-action: none; display: block; }
.esign-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; } .esign-code input { width: 130px; font-size: 1.2rem; letter-spacing: .2em; text-align: center; padding: 8px; }
.handshake-summary { background: #fffbea; border: 1px solid #f0d98a; border-radius: 10px; padding: 14px 16px; font-size: 1rem; line-height: 1.5; margin-bottom: 14px; } .handshake-summary b.hs { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8a6d00; margin-bottom: 4px; }
.cert-table td { font-size: .8rem; word-break: break-all; }

/* Handshake ease-of-use */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 12px; }
.how-steps div { background: #fff; border: 1px solid #e8e6e1; border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.how-steps b { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #e4cc7a; color: #111; display: flex; align-items: center; justify-content: center; }
.action-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff4d6; border: 2px solid #e4cc7a; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; color: #111; text-decoration: none; }
.action-banner span:not(.btn) { flex: 1; min-width: 200px; color: #555; } .action-banner .btn { margin-left: auto; }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 8px; flex-wrap: wrap; }
.stepper li { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #888; background: #fff; border: 1px solid #e8e6e1; border-radius: 999px; padding: 6px 10px; }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; background: #eee; color: #777; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; flex: 0 0 22px; }
.stepper li.done { color: #1f5c33; } .stepper li.done span { background: #1f5c33; color: #fff; }
.stepper li.current { color: #111; font-weight: 600; border-color: #e4cc7a; } .stepper li.current span { background: #e4cc7a; color: #111; }
.next-step { font-size: .92rem; margin: 0 0 14px; }
.search-inline { display: flex; gap: 8px; } .search-inline input { flex: 1; padding: 10px 12px; font-size: 1rem; border: 1px solid #ddd; border-radius: 8px; }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e8e6e1; border-radius: 10px; text-decoration: none; color: inherit; background: #fff; }
.pick-row:hover { border-color: #e4cc7a; } .pick-row img, .pick-noimg { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; background: #eee; flex: 0 0 72px; }
.pick-main { flex: 1; display: flex; flex-direction: column; min-width: 0; } .pick-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-side { display: flex; flex-direction: column; text-align: right; font-size: .85rem; }
@media (max-width: 700px) { .how-steps { grid-template-columns: 1fr; } .pick-side { display: none; } .stepper li { min-width: calc(50% - 6px); } }

@media (max-width: 700px) {
  .admin-header { flex-wrap: wrap; gap: 10px; } .admin-header h1 { font-size: 1.45rem; width: 100%; } .admin-header .cta-row { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; } .admin-header .cta-row .btn { flex: 1; font-size: .82rem; padding: 8px 10px; }
  .admin-table.compact th, .admin-table.compact td { display: block; width: 100%; padding: 4px 0; border: 0; } .admin-table.compact tr { display: block; padding: 8px 0; border-bottom: 1px solid #eee; }
  .admin-table.compact th { font-size: .72rem; color: #888; } .admin-table td { word-break: break-word; }
  .table-wrap { overflow-x: auto; }
}
