/* ================================================================
   EstateWheels Public CSS v1.1
   ================================================================ */
:root {
    --ew-gold:       #C8A96E;
    --ew-gold-lt:    #E8D5A3;
    --ew-gold-dk:    #9A7A45;
    --ew-dark:       #0D0D0D;
    --ew-card-bg:    #ffffff;
    --ew-border:     #e8e8e8;
    --ew-text:       #1a1a1a;
    --ew-text-muted: #666;
    --ew-sale-color: #16a34a;
    --ew-rent-color: #1d4ed8;
    --ew-radius:     12px;
    --ew-shadow:     0 4px 24px rgba(0,0,0,.08);
    --ew-shadow-hover: 0 12px 40px rgba(200,169,110,.25);
}

/* ── GRID ── */
.ew-grid { display:grid; gap:24px; }
.ew-grid-1 { grid-template-columns:1fr; }
.ew-grid-2 { grid-template-columns:repeat(2,1fr); }
.ew-grid-3 { grid-template-columns:repeat(3,1fr); }
.ew-grid-4 { grid-template-columns:repeat(4,1fr); }
@media(max-width:1024px){.ew-grid-3,.ew-grid-4{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px) {.ew-grid-2,.ew-grid-3,.ew-grid-4{grid-template-columns:1fr;}}

/* ── CARD ── */
.ew-card {
    background:var(--ew-card-bg); border-radius:var(--ew-radius);
    overflow:hidden; box-shadow:var(--ew-shadow);
    transition:transform .3s ease,box-shadow .3s ease;
    position:relative; display:flex; flex-direction:column;
    border:1px solid var(--ew-border);
}
.ew-card:hover { transform:translateY(-6px); box-shadow:var(--ew-shadow-hover); }
.ew-card-featured { border-color:var(--ew-gold); box-shadow:0 0 0 2px var(--ew-gold-lt),var(--ew-shadow); }

/* ── CARD MEDIA ── */
.ew-card-media {
    position:relative; overflow:hidden;
    aspect-ratio:4/3; background:#f0f0f0;
}
.ew-card-media a { display:block; width:100%; height:100%; }
.ew-card-media img {
    width:100%; height:100%;
    object-fit:cover; object-position:center;
    display:block; transition:transform .5s ease;
}
.ew-card:hover .ew-card-media img { transform:scale(1.06); }
.ew-card-placeholder {
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    font-size:56px; background:#f5f5f5;
}

/* ── BADGES ── */
.ew-card-badges { position:absolute; top:12px; right:12px; display:flex; flex-direction:column; gap:4px; align-items:flex-end; z-index:3; }
.ew-badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; backdrop-filter:blur(8px); }
.ew-badge-sale     { background:rgba(22,163,74,.9);   color:#fff; }
.ew-badge-rent     { background:rgba(29,78,216,.9);   color:#fff; }
.ew-badge-both     { background:rgba(234,179,8,.9);   color:#000; }
.ew-badge-featured { background:rgba(200,169,110,.95);color:#fff; }
.ew-badge-inst     { background:rgba(124,58,237,.9);  color:#fff; }
.ew-badge-sold     { background:rgba(239,68,68,.9);   color:#fff; }
.ew-badge-rented   { background:rgba(234,179,8,.85);  color:#000; }
.ew-badge-reserved { background:rgba(99,102,241,.85); color:#fff; }

/* ── WA BUTTON ON CARD ── */
.ew-card-wa-btn {
    position:absolute; bottom:10px; right:10px; z-index:4;
    width:36px; height:36px; border-radius:50%;
    background:linear-gradient(135deg,#25D366,#128C7E);
    display:flex; align-items:center; justify-content:center;
    font-size:18px; text-decoration:none;
    box-shadow:0 3px 12px rgba(37,211,102,.4);
    transition:transform .2s,box-shadow .2s;
}
.ew-card-wa-btn:hover { transform:scale(1.15); box-shadow:0 5px 20px rgba(37,211,102,.6); }

/* ── FAVORITE ── */
.ew-favorite-btn {
    position:absolute; bottom:10px; left:10px;
    width:34px; height:34px; border-radius:50%;
    border:none; background:rgba(255,255,255,.9);
    backdrop-filter:blur(8px); font-size:18px; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:all .2s; z-index:3; color:#999;
}
.ew-favorite-btn:hover,.ew-favorite-btn.active { color:#e53e3e; transform:scale(1.15); }

/* ── CARD BODY ── */
.ew-card-body { padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.ew-card-title { margin:0 0 6px; font-size:15px; font-weight:700; line-height:1.4; }
.ew-card-title a { color:var(--ew-text); text-decoration:none; }
.ew-card-title a:hover { color:var(--ew-gold); }
.ew-card-location { color:var(--ew-text-muted); font-size:12px; margin:0 0 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ew-card-specs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.ew-card-specs span { background:#f5f5f5; color:#555; padding:3px 8px; border-radius:6px; font-size:12px; }
.ew-card-prices { margin-bottom:14px; }
.ew-price { display:flex; align-items:baseline; gap:6px; margin-bottom:4px; }
.ew-price-label { font-size:11px; color:var(--ew-text-muted); min-width:40px; }
.ew-price-sale .ew-price-amount { font-size:16px; font-weight:800; color:var(--ew-sale-color); }
.ew-price-rent .ew-price-amount { font-size:15px; font-weight:700; color:var(--ew-rent-color); }
.ew-card-link { display:inline-block; margin-top:auto; color:var(--ew-gold); font-size:13px; font-weight:600; text-decoration:none; transition:letter-spacing .2s; }
.ew-card-link:hover { letter-spacing:1px; }

/* ── FILTER BAR ── */
.ew-filter-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:12px; flex-wrap:wrap; }
.ew-filter-group { display:flex; gap:6px; flex-wrap:wrap; }
.ew-filter-btn {
    display:inline-block; padding:7px 18px; border-radius:20px;
    border:1.5px solid var(--ew-border); background:white;
    font-size:13px; font-weight:600; text-decoration:none;
    color:var(--ew-text); transition:all .2s;
}
.ew-filter-btn:hover,.ew-filter-btn.active {
    background:var(--ew-gold); border-color:var(--ew-gold); color:white;
}

/* ── ACTIVE FILTERS ── */
.ew-active-filters {
    display:flex; align-items:center; justify-content:space-between;
    background:rgba(200,169,110,.08); border:1px solid rgba(200,169,110,.25);
    border-radius:8px; padding:10px 16px; margin-bottom:16px;
    font-size:13px; flex-wrap:wrap; gap:8px;
}
.ew-clear-filters { color:var(--ew-gold); text-decoration:none; font-weight:700; font-size:13px; }
.ew-clear-filters:hover { text-decoration:underline; }
.ew-reset-link {
    display:inline-block; margin-top:12px; padding:10px 24px;
    background:var(--ew-gold); color:#000 !important;
    border-radius:8px; text-decoration:none; font-weight:700; font-size:14px;
}

/* ── ADVANCED SEARCH ── */
.ew-advanced-search {
    background:white; border-radius:16px;
    box-shadow:var(--ew-shadow); overflow:hidden;
    border:1px solid var(--ew-border); margin-bottom:32px;
    padding:20px 24px;
}
.ew-search-row-main,
.ew-search-row-specs {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
    gap:12px; margin-bottom:12px;
}
.ew-field-wide { grid-column:span 2; }
.ew-search-field { display:flex; flex-direction:column; gap:5px; }
.ew-search-field label { font-size:12px; font-weight:700; color:var(--ew-text-muted); }
.ew-search-field input,
.ew-search-field select {
    padding:9px 12px; border:1.5px solid var(--ew-border);
    border-radius:8px; font-size:13px; background:white;
    transition:border-color .2s; font-family:inherit;
}
.ew-search-field input:focus,
.ew-search-field select:focus { outline:none; border-color:var(--ew-gold); box-shadow:0 0 0 3px rgba(200,169,110,.12); }
.ew-search-actions { display:flex; align-items:center; gap:12px; margin-top:4px; }
.ew-search-btn {
    background:linear-gradient(135deg,var(--ew-gold),var(--ew-gold-dk)); color:white;
    border:none; padding:11px 28px; border-radius:10px;
    font-size:14px; font-weight:700; cursor:pointer;
    transition:all .2s; font-family:inherit;
}
.ew-search-btn:hover { box-shadow:0 4px 16px rgba(200,169,110,.4); transform:translateY(-1px); }
.ew-search-reset {
    font-size:13px; color:var(--ew-text-muted); text-decoration:none;
    padding:4px 10px; border-radius:6px; transition:color .2s;
}
.ew-search-reset:hover { color:var(--ew-gold); }

/* ── TOGGLE CHECKBOX ── */
.ew-toggle-label { display:flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; user-select:none; padding-top:4px; }
.ew-toggle-label input { display:none; }
.ew-toggle-track { width:40px; height:22px; background:#ccc; border-radius:11px; position:relative; transition:background .2s; flex-shrink:0; }
.ew-toggle-thumb { width:18px; height:18px; background:white; border-radius:50%; position:absolute; top:2px; left:2px; transition:left .2s; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.ew-toggle-label input:checked + .ew-toggle-track { background:var(--ew-gold); }
.ew-toggle-label input:checked + .ew-toggle-track .ew-toggle-thumb { left:20px; }

/* ── NO RESULTS ── */
.ew-no-results { grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--ew-text-muted); }
.ew-no-results-icon { font-size:48px; display:block; margin-bottom:12px; }

/* ── STATS BAR ── */
.ew-stats-bar { display:flex; gap:32px; justify-content:center; flex-wrap:wrap; padding:24px; background:var(--ew-dark); border-radius:12px; color:white; margin-bottom:32px; }
.ew-stat-item { text-align:center; }
.ew-stat-icon   { font-size:28px; display:block; margin-bottom:6px; }
.ew-stat-number { font-size:28px; font-weight:800; color:var(--ew-gold); display:block; }
.ew-stat-label  { font-size:13px; color:#aaa; }

/* ── PAGINATION ── */
.ew-pagination { display:flex; justify-content:center; gap:6px; margin-top:32px; flex-wrap:wrap; }
.ew-pagination .page-numbers {
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:8px;
    border:1.5px solid var(--ew-border); color:var(--ew-text);
    text-decoration:none; font-size:13px; font-weight:600; transition:all .2s;
}
.ew-pagination .page-numbers.current,
.ew-pagination .page-numbers:hover { background:var(--ew-gold); border-color:var(--ew-gold); color:white; }

/* ── LISTING WRAP ── */
.ew-listing-wrap { position:relative; }

/* ── INQUIRY FORM ── */
.ew-inquiry-form { display:flex; flex-direction:column; gap:10px; }
.ew-form-field input,.ew-form-field textarea {
    width:100%; background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.15); color:inherit;
    padding:11px 14px; border-radius:8px;
    font-family:inherit; font-size:13px; transition:border-color .2s;
}
.ew-form-field input:focus,.ew-form-field textarea:focus { outline:none; border-color:var(--ew-gold); }
.ew-form-success { padding:14px; border-radius:8px; background:rgba(34,197,94,.15); color:#22c55e; font-weight:600; text-align:center; }

/* ── FLOATING WHATSAPP ── */
.ew-wa-float {
    position:fixed; bottom:28px; left:28px; z-index:9000;
    width:58px; height:58px; border-radius:50%;
    background:linear-gradient(135deg,#25D366,#128C7E);
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 6px 28px rgba(37,211,102,.45);
    cursor:pointer; transition:all .3s; border:none;
    color:white; font-size:26px; text-decoration:none;
}
.ew-wa-float:hover { transform:scale(1.12) translateY(-3px); box-shadow:0 10px 40px rgba(37,211,102,.6); color:white; }

@media(max-width:640px) {
    .ew-field-wide { grid-column:span 1; }
    .ew-search-row-main,.ew-search-row-specs { grid-template-columns:1fr 1fr; }
}
@media(max-width:420px) {
    .ew-search-row-main,.ew-search-row-specs { grid-template-columns:1fr; }
}

/* ================================================================
   SEARCH GATE (بوابة حد البحث للزوار)
   ================================================================ */
.ew-search-gate {
    grid-column: 1/-1; text-align: center; padding: 60px 24px;
    background: linear-gradient(135deg, rgba(200,169,110,.08), rgba(200,169,110,.03));
    border: 1px dashed var(--ew-gold); border-radius: 16px;
}
.ew-search-gate-icon { font-size: 48px; margin-bottom: 16px; }
.ew-search-gate h3 { margin-bottom: 10px; color: var(--ew-text); }
.ew-search-gate p { color: var(--ew-text-muted); max-width: 420px; margin: 0 auto 20px; }
.ew-search-gate-btn {
    display: inline-block; padding: 12px 32px; border-radius: 10px;
    background: linear-gradient(135deg, var(--ew-gold), var(--ew-gold-dk));
    color: #000 !important; font-weight: 800; text-decoration: none;
    box-shadow: 0 4px 16px rgba(200,169,110,.35);
}

.ew-quota-banner {
    padding: 10px 18px; border-radius: 8px; margin-bottom: 16px;
    font-size: 13px; text-align: center;
}
.ew-quota-warning {
    background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #b91c1c;
}
.ew-quota-warning a { color: var(--ew-gold-dk); font-weight: 700; margin-right: 4px; }

/* ================================================================
   PHONE AUTH WIDGET (OTP)
   ================================================================ */
.ewauth-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh; padding: 40px 16px;
}
.ewauth-box {
    max-width: 420px; width: 100%; background: #14141a;
    border: 1px solid rgba(200,169,110,.2); border-radius: 18px;
    padding: 36px 28px; text-align: center; color: #e8e4dc;
}
.ewauth-icon { font-size: 44px; margin-bottom: 12px; }
.ewauth-box h2 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; }
.ewauth-box p { color: #8a8680; font-size: 14px; margin-bottom: 26px; line-height: 1.6; }
.ewauth-form { text-align: right; }
.ewauth-field { margin-bottom: 16px; }
.ewauth-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #c8a96e; }
.ewauth-field input {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04);
    color: #fff; font-size: 15px; text-align: center; direction: ltr;
}
.ewauth-field input:focus { outline: none; border-color: #c8a96e; }
.ewauth-otp-input { letter-spacing: 8px; font-weight: 800; font-size: 22px !important; }
.ewauth-btn {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #c8a96e, #9a7a45); color: #000;
    font-weight: 800; font-size: 15px; cursor: pointer; transition: all .2s;
}
.ewauth-btn:hover { box-shadow: 0 6px 20px rgba(200,169,110,.4); }
.ewauth-btn:disabled { opacity: .6; cursor: not-allowed; }
.ewauth-btn-link {
    display: block; width: 100%; text-align: center; margin-top: 10px;
    background: none; border: none; color: #8a8680; font-size: 13px; cursor: pointer;
}
.ewauth-wa-instruction { margin-bottom: 16px; }
.ewauth-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 10px; background: linear-gradient(135deg,#25D366,#128C7E);
    color: #fff; font-weight: 700; text-decoration: none; font-size: 14px;
}
.ewauth-message { margin-top: 16px; font-size: 13px; min-height: 18px; }
.ewauth-msg-error { color: #f87171; }
.ewauth-msg-success { color: #4ade80; }

.ewbs-badge-verified {
    display: inline-block; background: rgba(34,197,94,.15); color: #22c55e;
    padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.ewbs-welcome { text-align: center; padding: 32px 16px 20px; }
.ewbs-welcome h2 { color: #fff; margin-bottom: 6px; }
.ewbs-welcome p { color: #8a8680; font-size: 14px; }

.ewbs-tabs {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
    padding: 0 16px 20px; max-width: 900px; margin: 0 auto;
}
.ewbs-tab {
    padding: 9px 20px; border-radius: 20px; border: 1.5px solid rgba(200,169,110,.25);
    background: transparent; color: #8a8680; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .2s;
}
.ewbs-tab.active, .ewbs-tab:hover { background: #c8a96e; color: #000; border-color: #c8a96e; }
.ewbs-panel { display: none; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ewbs-panel.active { display: block; }
.ewbs-empty { text-align: center; color: #8a8680; padding: 40px; }
.ewbs-my-list { display: flex; flex-direction: column; gap: 10px; }
.ewbs-my-item {
    display: flex; align-items: center; gap: 12px; background: #14141a;
    border: 1px solid rgba(200,169,110,.15); border-radius: 10px; padding: 10px;
}
.ewbs-my-item img, .ewbs-my-thumb-placeholder {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
    display: flex; align-items: center; justify-content: center; background: #222; font-size: 22px; flex-shrink: 0;
}
.ewbs-my-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ewbs-my-info strong { color: #fff; font-size: 14px; }
.ewbs-status-tag { font-size: 11px; color: #c8a96e; }
.ewbs-btn-sm {
    padding: 6px 12px; border-radius: 6px; background: rgba(200,169,110,.12);
    color: #c8a96e; text-decoration: none; font-size: 12px;
}

/* ================================================================
   AL MOAYED LIVE  –  لوحة البروكر (mobile-first, tabs + slides)
   ================================================================ */
.ewlp-app {
    background: #0d0d0d; color: #e8e4dc; min-height: 100vh;
    font-family: 'IBM Plex Sans Arabic','Segoe UI',sans-serif;
    padding-bottom: 80px; /* مساحة للـ bottom nav */
}
.ewlp-header {
    position: sticky; top: 0; z-index: 500;
    background: rgba(13,13,13,.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,169,110,.15);
}
.ewlp-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; max-width: 1100px; margin: 0 auto;
}
.ewlp-brand { display: flex; align-items: center; gap: 10px; }
.ewlp-brand-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: ewlpPulse 2s infinite;
}
@keyframes ewlpPulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.ewlp-brand strong { display: block; font-size: 16px; color: #fff; font-family: 'Playfair Display',serif; }
.ewlp-brand strong em { color: #c8a96e; font-style: normal; }
.ewlp-brand-sub { font-size: 10px; color: #8a8680; letter-spacing: .5px; }
.ewlp-user-chip { display: flex; align-items: center; gap: 8px; }
.ewlp-user-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#c8a96e,#9a7a45);
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: #000; font-size: 14px;
}
.ewlp-user-name { font-size: 13px; color: #ccc; display: none; }
@media(min-width:600px){ .ewlp-user-name{ display:inline; } }

.ewlp-tabs {
    position: sticky; top: 57px; z-index: 400;
    display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 12px; background: #0d0d0d; border-bottom: 1px solid rgba(255,255,255,.06);
    scrollbar-width: none;
}
.ewlp-tabs::-webkit-scrollbar { display: none; }
.ewlp-tab {
    flex-shrink: 0; padding: 8px 16px; border-radius: 20px; border: none;
    background: rgba(255,255,255,.05); color: #999; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.ewlp-tab.active { background: #c8a96e; color: #000; }

.ewlp-panels { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.ewlp-panel { display: none; animation: ewlpFadeIn .3s ease; }
.ewlp-panel.active { display: block; }
@keyframes ewlpFadeIn { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:none;} }

.ewlp-stats-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 24px; }
@media(min-width:600px){ .ewlp-stats-row{ grid-template-columns: repeat(4,1fr); } }
.ewlp-stat-card {
    background: #14141a; border-radius: 14px; padding: 16px; text-align: center;
    border-top: 3px solid #333;
}
.ewlp-stat-gold { border-top-color: #c8a96e; }
.ewlp-stat-green { border-top-color: #22c55e; }
.ewlp-stat-blue { border-top-color: #3b82f6; }
.ewlp-stat-purple { border-top-color: #a855f7; }
.ewlp-stat-icon { display: block; font-size: 22px; margin-bottom: 6px; }
.ewlp-stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.ewlp-stat-lbl { font-size: 11px; color: #8a8680; }

.ewlp-section-title { font-size: 15px; font-weight: 800; color: #fff; margin: 20px 0 14px; }
.ewlp-hint { font-size: 12px; color: #8a8680; margin-bottom: 16px; }
.ewlp-empty, .ewlp-empty-sm { text-align: center; color: #8a8680; padding: 30px; font-size: 13px; }

.ewlp-top-list, .ewlp-property-list { display: flex; flex-direction: column; gap: 10px; }
.ewlp-top-item {
    display: flex; align-items: center; gap: 12px; background: #14141a;
    border-radius: 12px; padding: 10px; border: 1px solid rgba(200,169,110,.1);
}
.ewlp-top-thumb, .ewlp-prop-thumb {
    width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
    background: #222; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ewlp-top-thumb img, .ewlp-prop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ewlp-top-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ewlp-top-info strong { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ewlp-top-info span { font-size: 11px; color: #8a8680; }
.ewlp-top-views { display: flex; flex-direction: column; gap: 3px; text-align: left; flex-shrink: 0; }
.ewlp-views-num, .ewlp-leads-num { font-size: 11px; color: #c8a96e; font-weight: 700; }

.ewlp-prop-card { display: flex; gap: 12px; background: #14141a; border-radius: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.06); }
.ewlp-prop-body { flex: 1; min-width: 0; }
.ewlp-prop-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ewlp-prop-title-row strong { font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ewlp-badge { font-size: 10px; padding: 3px 9px; border-radius: 12px; font-weight: 700; flex-shrink: 0; }
.ewlp-badge-live { background: rgba(34,197,94,.15); color: #22c55e; }
.ewlp-badge-draft { background: rgba(148,163,184,.15); color: #94a3b8; }
.ewlp-badge-pending { background: rgba(245,158,11,.15); color: #f59e0b; }
.ewlp-prop-meta { display: flex; gap: 12px; font-size: 11px; color: #8a8680; margin-bottom: 10px; }
.ewlp-prop-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ewlp-btn-sm {
    padding: 6px 12px; border-radius: 8px; background: rgba(200,169,110,.1);
    border: 1px solid rgba(200,169,110,.2); color: #c8a96e; font-size: 11px; font-weight: 600;
    cursor: pointer; text-decoration: none;
}
.ewlp-btn-sm:hover { background: rgba(200,169,110,.2); }

.ewlp-leads-list { display: flex; flex-direction: column; gap: 8px; }
.ewlp-lead-card {
    display: flex; align-items: center; gap: 10px; background: #14141a;
    border-radius: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.06);
}
.ewlp-lead-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#a855f7,#7c3aed);
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0;
}
.ewlp-lead-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ewlp-lead-body strong { font-size: 13px; color: #fff; }
.ewlp-lead-prop, .ewlp-lead-time { font-size: 11px; color: #8a8680; }
.ewlp-lead-wa {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg,#25D366,#128C7E); display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 16px;
}

.ewlp-audience-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:768px){ .ewlp-audience-grid{ grid-template-columns: 1fr 1fr; } }
.ewlp-audience-card { background: #14141a; border-radius: 14px; padding: 18px; border: 1px solid rgba(255,255,255,.06); }
.ewlp-audience-full { grid-column: 1/-1; }
.ewlp-audience-card h4 { font-size: 13px; color: #c8a96e; margin-bottom: 14px; }
.ewlp-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ewlp-bar-label { font-size: 12px; color: #ccc; width: 90px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ewlp-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,.06); border-radius: 10px; overflow: hidden; }
.ewlp-bar-fill { height: 100%; background: linear-gradient(90deg,#9a7a45,#c8a96e); border-radius: 10px; transition: width .6s ease; }
.ewlp-bar-fill-blue { background: linear-gradient(90deg,#1d4ed8,#3b82f6); }
.ewlp-bar-num { font-size: 11px; color: #8a8680; width: 24px; text-align: left; flex-shrink: 0; }

.ewlp-price-buckets { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.ewlp-bucket { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ewlp-bucket-bar {
    width: 100%; max-width: 40px; background: linear-gradient(180deg,#c8a96e,#9a7a45);
    border-radius: 6px 6px 0 0; display: flex; align-items: flex-start; justify-content: center;
    padding-top: 4px; transition: height .6s ease; min-height: 4px;
}
.ewlp-bucket-bar span { font-size: 10px; color: #000; font-weight: 800; }
.ewlp-bucket-label { font-size: 9px; color: #8a8680; margin-top: 6px; text-align: center; }

/* Form */
.ewlp-form { max-width: 600px; }
.ewlp-form-group { margin-bottom: 14px; }
.ewlp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ewlp-form-group label { display: block; font-size: 12px; font-weight: 700; color: #c8a96e; margin-bottom: 5px; }
.ewlp-form-group input, .ewlp-form-group select, .ewlp-form-group textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
    color: #fff; font-size: 13px; font-family: inherit;
}
.ewlp-form-group input:focus, .ewlp-form-group select:focus, .ewlp-form-group textarea:focus { outline: none; border-color: #c8a96e; }
.ewlp-checkbox-group label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ccc; font-weight: 400; }
.ewlp-submit-btn {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    background: linear-gradient(135deg,#c8a96e,#9a7a45); color: #000; font-weight: 800; font-size: 14px; cursor: pointer;
}
.ewlp-form-message { margin-top: 10px; font-size: 13px; text-align: center; }
.ewlp-msg-success { color: #4ade80; }
.ewlp-msg-error { color: #f87171; }

.ewlp-image-upload { }
.ewlp-image-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ewlp-image-item, .ewbs-image-item {
    width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
    background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center;
}
.ewlp-image-item img { width: 100%; height: 100%; object-fit: cover; }
.ewlp-uploading { font-size: 20px; }
.ewlp-add-image-btn, .ewbs-add-image-btn { display: inline-flex; }

/* Modal */
.ewlp-modal {
    position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.85);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.ewlp-modal.open { display: flex; }
.ewlp-modal-inner {
    background: #14141a; border-radius: 16px; padding: 24px; max-width: 480px; width: 100%;
    max-height: 85vh; overflow-y: auto; position: relative; border: 1px solid rgba(200,169,110,.2);
}
.ewlp-modal-close {
    position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.08); border: none;
    color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.ewlp-detail-stats { display: flex; gap: 16px; margin: 16px 0; }
.ewlp-detail-stats div { flex: 1; text-align: center; background: rgba(255,255,255,.04); border-radius: 10px; padding: 12px; }
.ewlp-detail-stats strong { display: block; font-size: 1.4rem; color: #c8a96e; }
.ewlp-detail-stats span { font-size: 11px; color: #8a8680; }
.ewlp-mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin: 14px 0; }
.ewlp-mini-bar { flex: 1; background: linear-gradient(180deg,#c8a96e,#9a7a45); border-radius: 3px 3px 0 0; min-height: 3px; }

/* Locked screen */
.ewlp-locked { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #0d0d0d; }
.ewlp-locked-box { max-width: 420px; text-align: center; color: #e8e4dc; }
.ewlp-locked-icon { font-size: 48px; margin-bottom: 14px; }
.ewlp-locked-box h2 { color: #fff; margin-bottom: 10px; }
.ewlp-locked-box p { color: #8a8680; margin-bottom: 24px; line-height: 1.7; font-size: 14px; }
.ewlp-locked-btn {
    display: inline-block; padding: 12px 32px; border-radius: 10px;
    background: linear-gradient(135deg,#c8a96e,#9a7a45); color: #000; font-weight: 800; text-decoration: none;
}

/* Bottom nav (mobile) */
.ewlp-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
    background: rgba(13,13,13,.97); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(200,169,110,.15);
    display: flex; align-items: center; justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
@media(min-width:900px){ .ewlp-bottom-nav{ display:none; } .ewlp-app{ padding-bottom:20px; } }
.ewlp-bnav-btn {
    background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: #666; font-size: 9px; cursor: pointer; padding: 4px 8px; border-radius: 10px; transition: color .2s;
}
.ewlp-bnav-btn span { font-size: 19px; }
.ewlp-bnav-btn.active { color: #c8a96e; }
.ewlp-bnav-add {
    background: linear-gradient(135deg,#c8a96e,#9a7a45) !important; border-radius: 50% !important;
    width: 46px; height: 46px; margin-top: -18px; box-shadow: 0 4px 16px rgba(200,169,110,.4);
}
.ewlp-bnav-add span { font-size: 22px; color: #000; }
