/* Fonts: system defaults (no external fonts) */
/* AqarSY Web — v7 (App UI style reference) */
/* Brand */
/* ===== AqarSY UI Theme (Hotel-style) ===== */
:root{
  --bottom-nav-h: 78px;

  --font:system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 30px;

  --shadow-xs: 0 6px 14px rgba(2,16,32,.08);
  --shadow-sm: 0 10px 22px rgba(2,16,32,.10);
  --shadow-md: 0 14px 30px rgba(2,16,32,.12);
  --shadow-lg: 0 18px 44px rgba(2,16,32,.14);

  --ring: rgba(11,85,148,.14);
  --ease: cubic-bezier(.2,.8,.2,1);

  --brand:#0B5594;
  --brand2:#3BC1C6;
  --cta:#FFC107;

  /* Aliases used across components */
  --tech-blue: var(--brand);
  --cyan: var(--brand2);

  --bg:#F5F8FC;
  --bg2:#ECF3FA;
  --surface:#FFFFFF;
  --surface2:#F8FBFF;

  --text:#0A1B2C;
  --muted:rgba(10,27,44,.62);
  --border:rgba(11,85,148,.14);

  --shadow: 0 14px 30px rgba(2,16,32,.10);
  --shadow2: 0 8px 18px rgba(2,16,32,.08);

  --chip:rgba(11,85,148,.08);
  --chipBorder:rgba(11,85,148,.18);

  --icon:rgba(10,27,44,.78);
}

html, body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  margin:0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59,193,198,.22), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(11,85,148,.18), transparent 55%),
              linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image: radial-gradient(rgba(11,85,148,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity:.55;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.0) 70%);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Prevent page scroll when Explore is in fullscreen mode */
body.no-scroll{overflow:hidden; height:100dvh; padding-bottom:0;}
[data-theme="dark"] body{
  background: radial-gradient(900px 500px at 20% -10%, rgba(59,193,198,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(11,85,148,.22), transparent 55%),
              linear-gradient(180deg, var(--bg2), var(--bg));
}
*{box-sizing:border-box}
*{ -webkit-tap-highlight-color: transparent; }
button, input, select, textarea{font-family:inherit;}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(11,85,148,.28);
}

body{
  margin:0;
  font-family: var(--font);
  letter-spacing: 0;
}

html[data-theme="light"]{
  --bg:#F5F8FC;
  --surface:#FFFFFF;
  --surface2:#F9FBFF;
  --border:rgba(10,27,44,.10);
  --text:#0A1B2C;
  --muted:rgba(10,27,44,.62);
  --chip:rgba(11,85,148,.07);
  --icon:rgba(10,27,44,.66);
  --nav:rgba(255,255,255,.92);
}

html[data-theme="dark"]{
  --brand:#0B5594;
  --brand2:#3BC1C6;
  --cta:#FFC107;

  --bg:#06131E;
  --bg2:#0B1E2F;
  --surface:rgba(255,255,255,.06);
  --surface2:rgba(255,255,255,.08);

  --text:#FFFFFF;
  --muted:rgba(255,255,255,.70);
  --border:rgba(255,255,255,.14);

  --shadow: 0 18px 40px rgba(0,0,0,.40);
  --shadow2: 0 10px 24px rgba(0,0,0,.32);

  --chip:rgba(255,255,255,.08);
  --chipBorder:rgba(255,255,255,.16);

  --icon:rgba(255,255,255,.88);
}

body{
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(59,193,198,.16), transparent 60%),
    radial-gradient(820px 520px at 90% 10%, rgba(11,85,148,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
  color: var(--text);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:0 14px}
.page{padding:14px}

/* Top bar like app */
.topbar{
  display:flex;
  position: sticky;
  top: 8px;
  z-index: 80;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 12px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2,16,32,.10);
}
.topbar::after{display:none;}

html[data-theme="dark"] .topbar{
  background: linear-gradient(180deg, rgba(8,18,30,.88), rgba(8,18,30,.62));
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.brand:hover{transform: translateY(-1px);}
.brand-logo{width:38px;height:38px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background: linear-gradient(135deg, rgba(11,85,148,.14), rgba(59,193,198,.18));border:1px solid rgba(11,85,148,.14);box-shadow: 0 10px 22px rgba(2,16,32,.08);overflow:hidden}
.brand-logo img{width:26px;height:26px;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-title{font-weight:800;font-size:15px;letter-spacing:.2px}
.brand-sub{font-size:11px;color:var(--muted);margin-top:3px}



.actions-right{display:flex;align-items:center;gap:8px}
.pill, .btn{
  border:1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius:999px;
  padding:10px 12px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
html[data-theme="dark"] .pill, html[data-theme="dark"] .btn{
  background: var(--surface2);
  box-shadow: none;
}
.pill.small, .btn-small{padding:8px 10px;font-size:12px}
.pill:active, .btn:active{transform: translateY(1px)}

.pill:hover, .btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11,85,148,.22);
}
.btn-primary:hover, .btn-cta:hover{filter: brightness(1.02)}


.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border: none;
}
.btn-cta{
  background: var(--cta);
  color: #1A1A1A;
  border: none;
}


.btn-ghost{
  background: rgba(255,255,255,.78);
  color: var(--text);
  border: 1px solid rgba(10,27,44,.12);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(11,85,148,.20);
  box-shadow: var(--shadow-sm);
}

.input{
  width:100%;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:12px 14px;
  outline:none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .input{background: var(--surface2); box-shadow:none}
.input.small{border-radius:999px;padding:10px 12px}

/* Cards */
.card{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2,16,32,.10);
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(700px 220px at 0% 0%, rgba(59,193,198,.12), transparent 60%),
              radial-gradient(740px 220px at 100% 0%, rgba(11,85,148,.10), transparent 60%);
  opacity:.55;
}
.card > *{position:relative; z-index:1;}

html[data-theme="dark"] .card{background: var(--surface2); box-shadow:none}
.section-title{font-weight:700;font-size:14px;margin:0 0 10px 0;color:var(--text)}
.muted{color:var(--muted)}
.h-title{font-weight:700;margin:0}

/* Hero (app-like) */
.hero{
  padding:16px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(59,193,198,.16), transparent 60%),
    radial-gradient(740px 360px at 100% 0%, rgba(11,85,148,.12), transparent 60%),
    var(--surface);
  border:1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .hero{background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.05)); box-shadow:none}
.hero .row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hero .cta-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}

/* Grid */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:900px){ .grid{grid-template-columns:1fr} }

/* Results list like app cards */
.results{display:grid;grid-template-columns:repeat(3, 1fr);gap:12px}
@media(max-width:980px){ .results{grid-template-columns:repeat(2, 1fr)} }
@media(max-width:640px){ .results{grid-template-columns:1fr} }

.item-card{
  display:block;text-decoration:none;
  border-radius: var(--radius-xl);
  overflow:hidden;
  border:1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  will-change: transform;
}
html[data-theme="dark"] .item-card{background: var(--surface2); box-shadow:none}
.item-card:hover{transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(11,85,148,.22);}
.item-card:hover .item-thumb img{transform: scale(1.05);}
.item-thumb::after{content:"";position:absolute;inset:0;pointer-events:none;background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(10,27,44,.35) 100%);opacity:.55;}
.item-thumb{position:relative;height:140px;background: var(--surface2)}
.item-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition: transform .35s var(--ease)}
.badge{
  position:absolute;left:10px;top:10px;
  background: rgba(255,255,255,.92);
  color:#0A1B2C;
  border:1px solid rgba(10,27,44,.10);
  border-radius:999px;
  padding:6px 10px;
  font-weight:600;font-size:11px;
}
html[data-theme="dark"] .badge{
  background: rgba(8,18,30,.82);
  color:#fff;
  border-color: rgba(255,255,255,.14);
}
.item-body{padding:12px 12px 14px 12px}
.item-title{font-weight:700;font-size:15px;line-height:1.2;margin-bottom:6px}
.item-sub{font-size:12px;color:var(--muted);font-weight:600}
.item-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.item-price{font-weight:700;color: var(--tech-blue)}
html[data-theme="dark"] .item-price{color: var(--cta)}

/* Chips */
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.chip{
  display:inline-flex;align-items:center;gap:6px;
  background: var(--chip);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;font-size:12px;
}

/* Sticky header (Explore filters) */
.sticky{position:sticky;top:12px;z-index:55}
@media(max-width:640px){.sticky{top:8px}}

/* Animated filters row (Explore) */
.filters-row{padding:12px 12px 14px; max-height:980px; opacity:1; transform:translateY(0); overflow:hidden; transition: max-height .28s var(--ease), opacity .20s var(--ease), transform .20s var(--ease);}
.filters-row.is-collapsed{max-height:0; opacity:0; transform:translateY(-6px); padding-top:0; padding-bottom:0; margin-top:-6px; pointer-events:none;}
.filters-row.is-open{pointer-events:auto;}

/* Map area */
.map{
  border-radius: var(--radius-xl);
  overflow:hidden;
  position:relative;
  border:1px solid var(--border);
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .map{box-shadow:none}
.map .map-canvas{height:360px}
@media(max-width:640px){ .map .map-canvas{height:320px} }

/* Explore map/list panels */
.explore-map .map-canvas{
  height: calc(100vh - 260px);
  min-height: 420px;
  max-height: 760px;
}
@media(max-width:640px){
  .explore-map .map-canvas{height: calc(100vh - 300px); min-height: 360px;}
}

.explore-list{padding:14px}

/* Explore fullscreen overrides */
.page-explore #exploreRoot{z-index:50}
.page-explore #mapWrap,
.page-explore #listWrap{height:100%}
.page-explore .explore-map .map-canvas{height:100% !important; min-height:0 !important; max-height:none !important;}
.page-explore #listWrap{display:flex; flex-direction:column; overflow:hidden;}
.page-explore #results{flex:1; overflow:auto; padding-bottom:110px;}
.page-explore #loadMoreWrap{flex-shrink:0; padding:10px 0 6px;}

.load-more{display:flex;justify-content:center;margin-top:14px}
.load-more .btn{min-width:200px}

/* Google Maps AdvancedMarker HTML bubble */
.gm-bubble{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--tech-blue), var(--cyan));
  color:#fff;
  font-weight:700;
  font-size:15px;
  letter-spacing:.2px;
  white-space:nowrap;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.gm-bubble::before{content:"";position:absolute;inset:1px;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0));opacity:.75;pointer-events:none}
.gm-bubble:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 20px 48px rgba(0,0,0,.22);filter:saturate(1.08)}

@media(max-width:640px){
  .gm-bubble{font-size:14px;padding:11px 14px}
}
.gm-bubble:after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-7px;
  width:14px;
  height:14px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--tech-blue), var(--cyan));
  border-right:1px solid rgba(255,255,255,.28);
  border-bottom:1px solid rgba(255,255,255,.28);
}
.gm-bubble__sep{opacity:.88}
.gm-bubble__type{opacity:.98}
.gm-bubble__price{opacity:1}

/* Map load guard (when Google Maps fails to load) */
.map-guard{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: rgba(245,248,252,.72);
  backdrop-filter: blur(6px);
}
.map-guard__card{
  width:min(420px, 100%);
  background: rgba(255,255,255,.90);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: 0 10px 24px rgba(2,16,32,.10);
  padding:16px;
  text-align:center;
}
.map-guard__title{font-weight:700;font-size:14px;margin-bottom:6px;color:var(--text)}
.map-guard__text{color:var(--muted);font-size:12px;line-height:1.5}

/* Footer */
.footer{
  margin-top:18px;
  padding:18px 0 86px 0; /* leave room for bottom nav */
  color: var(--muted);
}
.footer a{color:inherit;text-decoration:underline}

/* Bottom nav (mobile) */
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background: var(--nav);
  backdrop-filter: blur(18px);
  box-shadow: 0 -14px 34px rgba(2,16,32,.12);
  border-top:1px solid var(--border);
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  height: var(--bottom-nav-h);
}
.bottom-nav::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background: linear-gradient(90deg, var(--brand), var(--brand2));opacity:.45;}
.bottom-nav .nav-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:520px;margin:0 auto}
.nav-item{
  flex:1;
  text-decoration:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6px;
  padding:10px 8px;
  border-radius: 16px;
  color: var(--icon);
  font-weight:600;
  font-size:11px;
}
.nav-item.active{
  color: var(--tech-blue);
  background: rgba(11,85,148,.10);
  border:1px solid rgba(11,85,148,.18);
}
html[data-theme="dark"] .nav-item.active{
  color: var(--cta);
  background: rgba(255,193,7,.14);
  border-color: rgba(255,193,7,.25);
}

/* Modal */
.modal-backdrop{
  position:fixed;inset:0;display:none;align-items:flex-end;justify-content:center;
  background: rgba(0,0,0,.45);
  z-index:70;
  padding:16px;
}
.modal{
  width:min(680px, 100%);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border:1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding:16px;
}
html[data-theme="dark"] .modal{background: rgba(8,18,30,.92); box-shadow:none}
.modal h3{margin:0 0 8px 0}
.modal .cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.modal-title{font-weight:700;font-size:16px}
.modal-sub{font-size:12px;font-weight:600;margin-top:2px}

.settings-modal{max-width:720px}
.set-card{border:1px solid var(--border); background:var(--surface2); border-radius: var(--radius-xl); padding:12px}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.set-title{font-weight:700;font-size:13px}
.set-sub{font-size:12px;color:var(--muted);font-weight:600;line-height:1.25;margin-top:3px}
.set-divider{height:1px;background:var(--border);margin:12px 0;opacity:.9}
.preset-row{display:flex;gap:8px;flex-wrap:wrap}
.preset-row .chip{cursor:pointer;user-select:none}
.preset-row .chip.active{background: rgba(11,85,148,.14); border-color: rgba(11,85,148,.25); color: var(--tech-blue)}

.range{width:100%;accent-color: var(--tech-blue)}

.switch{position:relative;display:inline-flex;align-items:center}
.switch input{position:absolute;opacity:0;pointer-events:none}
.switch-ui{width:48px;height:28px;border-radius:999px;background: rgba(10,27,44,.14);border:1px solid rgba(10,27,44,.14);position:relative;transition:all .18s ease}
.switch-ui::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:999px;background:#fff;box-shadow: 0 10px 22px rgba(0,0,0,.18);transition:transform .18s ease}
.switch input:checked + .switch-ui{background: linear-gradient(135deg, var(--tech-blue), var(--cyan));border-color: rgba(255,255,255,.35)}
.switch input:checked + .switch-ui::after{transform: translateX(20px)}
html[dir='rtl'] .switch input:checked + .switch-ui::after{transform: translateX(-20px)}

/* Language dropdown (premium) */
.actions-right{display:flex;align-items:center;gap:10px}
.lang-dd{position:relative;display:inline-block}
.lang-btn{display:inline-flex;align-items:center;gap:8px}
.lang-ic{opacity:.9}
.lang-chev{opacity:.75;font-size:12px}
.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  inset-inline-end:0;
  min-width:180px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow: var(--shadow-md);
  padding:8px;
  display:none;
  z-index:50;
}
.lang-dd.open .lang-menu{display:block}
.lang-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color: var(--text);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.lang-menu a:hover{background: var(--chip)}



/* Explore topbar */
.explore-header{overflow:visible}
.explore-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
}
.explore-left{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.explore-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* Segmented toggle (Map/List) */
.toggle.toggle-lg{padding:5px; gap:6px; background: rgba(255,255,255,.70); box-shadow: var(--shadow-sm);}
.toggle.toggle-lg button{padding:10px 14px; font-weight:600; display:inline-flex; align-items:center; gap:8px;}
.toggle.toggle-lg button .ic{width:18px;height:18px;opacity:.85}
.toggle.toggle-lg button.active{
  background: linear-gradient(135deg, rgba(11,85,148,.12), rgba(59,193,198,.14));
  border:1px solid rgba(11,85,148,.18);
}

/* Search */
.searchbox{
  flex:1;
  min-width: 220px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border:1px solid rgba(10,27,44,.12);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.search-ic{width:18px;height:18px;color: rgba(10,27,44,.60)}
.search-input{
  flex:1;
  min-width:0;
  border:0;
  outline:none;
  background:transparent;
  color: var(--text);
  font-size:13px;
}
.search-input::placeholder{color: rgba(10,27,44,.45)}
.search-clear{
  width:32px;height:32px;
  border-radius: 999px;
  border:1px solid rgba(10,27,44,.10);
  background: rgba(10,27,44,.04);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.search-clear svg{width:16px;height:16px;opacity:.70}
.search-clear:hover{transform: translateY(-1px); background: rgba(10,27,44,.06); border-color: rgba(10,27,44,.14)}

/* Icon pills */
.icon-pill{width:42px;height:42px;padding:0;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;}
.icon-pill .ic{width:19px;height:19px;opacity:.88}
.icon-pill .lbl{display:none}

.btn-download{padding:10px 14px; border-radius:999px; font-weight:600; box-shadow: var(--shadow-md);}
.btn-download .ic{width:18px;height:18px}

@media (min-width: 901px){
  .page-explore .explore-right .icon-pill{
    width:auto;height:42px;padding:0 12px;gap:8px;justify-content:center;
  }
  .page-explore .explore-right .icon-pill .lbl{display:inline;font-weight:800;font-size:12px}
}

/* Explore: active chips + badge */
.chips-row{display:flex;gap:8px;flex-wrap:wrap;padding:0 12px 12px;}
.chip-x{cursor:pointer;user-select:none;transition:transform .18s var(--ease), opacity .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease)}
.chip-x:hover{transform: translateY(-1px)}
.chip-x .x{opacity:.75;font-weight:900;font-size:12px;line-height:1}
.chip-muted{opacity:.75}
.chip-danger{background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.18); color: rgba(220,38,38,.92)}
.chip-danger:hover{background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.22)}

.mini-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;
  padding:0 6px;
  border-radius:999px;
  font-weight:800;font-size:11px;
  color:#fff;
  background: linear-gradient(135deg, var(--tech-blue), var(--cyan));
  border:1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}

/* Explore: filters sheet */
.filters-modal{width:min(980px,100%);max-height:84vh;display:flex;flex-direction:column;padding:14px}
.filters-body{flex:1;overflow:auto;padding:2px 2px 6px}
.filters-sections{display:grid;gap:12px}
.fsec{border:1px solid var(--border);background: var(--surface2);border-radius: var(--radius-xl);padding:12px}
.fsec-title{font-weight:800;font-size:12px;letter-spacing:.2px;color: var(--text);margin-bottom:10px}
.filters-modal .cta-row{margin-top:10px}

@media (max-width: 900px){
  .filters-modal{max-height:88vh;border-radius: 20px;}
  .chips-row{padding:0 12px 10px}
}

/* Filters grid */
.filters-grid{display:grid;gap:10px;grid-template-columns: repeat(4, minmax(0, 1fr));}
.filters-grid .span-1{grid-column: span 1;}
.filters-grid .span-2{grid-column: span 2;}
.filters-grid .span-4{grid-column: span 4;}
.filters-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}


/* Segmented toggle */
.toggle{display:inline-flex; padding:4px; border-radius:999px; border:1px solid var(--border); background:var(--surface2); gap:6px}
.toggle button{border:0; background:transparent; padding:9px 12px; border-radius:999px; cursor:pointer; color:var(--muted); font-weight:600}
.toggle button.active{background:var(--surface); color:var(--text); box-shadow: var(--shadow2)}
/* Inputs */
.input{
  width:100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  color: var(--text);
  outline:none;
}
.input.small{padding:10px 12px; border-radius: 14px}
.input:focus{border-color: rgba(11,85,148,.35); box-shadow: 0 0 0 4px var(--ring), var(--shadow-sm)}
/* Listing cards */
.listing-card{overflow:hidden}
.listing-hero{height:170px; background: linear-gradient(135deg, rgba(11,85,148,.18), rgba(59,193,198,.20)); position:relative}
[data-theme="dark"] .listing-hero{background: linear-gradient(135deg, rgba(11,85,148,.28), rgba(59,193,198,.22))}
.badge{position:absolute; top:12px; right:12px; padding:7px 10px; border-radius:999px; background: rgba(255,255,255,.92); border:1px solid rgba(0,0,0,.06); font-weight:600; font-size:12px}
[data-theme="dark"] .badge{background: rgba(255,255,255,.90); color:#0A1B2C}
.listing-body{padding:12px 12px 14px}
.listing-title{font-weight:700; font-size:15px; margin:0}
.listing-sub{margin:6px 0 0; font-weight:600; font-size:12px; color: var(--muted)}
.listing-price{margin:10px 0 0; font-weight:700; color: var(--brand)}

/* Filters overlay */
.filters-panel{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  display:none;
  padding: 14px;
  z-index: 50;
}
.filters-panel .card{
  max-width: 520px;
  margin: 90px auto 0;
}

@media (max-width: 900px){
  .filters-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
  .filters-grid .span-2{grid-column: span 2;}
  .filters-grid .span-4{grid-column: span 2;}
  .filters-actions{justify-content:space-between;}
  .explore-bar{flex-direction:column; align-items:stretch;}
  .explore-left{width:100%;}
  .explore-right{width:100%; justify-content:space-between;}
  .toggle.toggle-lg{flex:1;}
  .searchbox{flex:1;}
  .icon-pill .lbl{display:none;}
}

/* Explore controls — mobile app-grade (fix white/invisible icons + better layout) */
@media (max-width: 640px){
  .page-explore .explore-right{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
    justify-content:unset;
    flex-wrap:unset;
  }
  .page-explore .explore-right .icon-pill{
    width:100%;
    height:44px;
    padding:0 12px;
    border-radius:16px;
    justify-content:center;
    gap:8px;
    color: rgba(11,85,148,.92);
    background: rgba(255,255,255,.90);
    border:1px solid rgba(11,85,148,.16);
    box-shadow: var(--shadow-xs);
  }
  .page-explore .explore-right .icon-pill .lbl{
    display:inline;
    font-weight:800;
    font-size:12px;
    opacity:1;
  }
  .page-explore .explore-right .icon-pill .ic{opacity:1}

  .page-explore .btn-download{
    grid-column: 1 / -1;
    width:100%;
    height:44px;
    border-radius:16px;
    padding:0 14px;
    justify-content:center;
  }
  .page-explore .btn-download .lbl{white-space:nowrap;}

  /* Badge should float nicely on mobile */
  .page-explore #btnFilters{position:relative; overflow:visible;}
  .page-explore #filtersBadge{
    position:absolute;
    top:-6px;
    inset-inline-end:-6px;
  }
}
/* Bottom nav sizing fix */
.bottom-nav .nav-item svg{
  width:20px;height:20px;
}

/* OAuth buttons */
.oauth-btn{display:flex;align-items:center;justify-content:center;gap:10px}
.oauth-ic{width:18px;height:18px;object-fit:contain}

/* Store floating pill (mobile only; hidden by JS on desktop) */
.store-pill{
  position: fixed;
  left: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 65;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--tech-blue), var(--cyan));
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.25);
}
.store-pill__ic{width:18px;height:18px;object-fit:contain;filter: drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.store-pill.disabled{opacity:.65}
html[data-theme="dark"] .store-pill{
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}

/* ---- Inbox / Chat (web) ---- */
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.chat-head-mid{flex:1;min-width:160px}
.chat-title{font-weight:700;font-size:15px}
.chat-sub{font-size:12px}

.chat-shell{margin-top:14px}
.chat-messages{height:52vh;min-height:340px;max-height:620px;overflow:auto;padding:12px;border-radius:var(--radius-xl);border:1px solid var(--border);background:var(--surface2)}
html[data-theme="dark"] .chat-messages{background: rgba(255,255,255,.04)}

.bubble{max-width:min(540px, 88%);margin:8px 0;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow-xs);position:relative}
html[data-theme="dark"] .bubble{background: rgba(255,255,255,.06);border-color: rgba(255,255,255,.10);box-shadow:none}
.bubble.me{margin-left:auto;background: rgba(46, 204, 113, .10);border-color: rgba(46, 204, 113, .18)}
html[data-theme="dark"] .bubble.me{background: rgba(46, 204, 113, .14);border-color: rgba(46, 204, 113, .22)}
.msg-text{white-space:pre-wrap;word-break:break-word;line-height:1.35}
.msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:6px;font-size:11px;color:var(--muted);font-weight:600}
.msg-media{width:100%;height:auto;border-radius:12px;border:1px solid var(--border);background:#000}

.chat-inputbar{display:flex;align-items:center;gap:10px;margin-top:10px}
.chat-text{flex:1;min-width:0;padding:12px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);outline:none}
html[data-theme="dark"] .chat-text{background: rgba(255,255,255,.04)}
.chat-file{width:155px}
@media(max-width:640px){ .chat-file{width:120px} }

.conv-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:var(--radius-xl);border:1px solid var(--border);background:var(--surface);text-decoration:none;color:inherit;box-shadow:var(--shadow-xs)}
html[data-theme="dark"] .conv-item{background: var(--surface2);box-shadow:none}
.conv-left{min-width:0}
.conv-title{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv-sub{font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.unread{background: var(--cta);color:#fff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700}
.time{font-size:11px;color:var(--muted);font-weight:700}

.loader{width:22px;height:22px;border-radius:50%;border:2px solid rgba(0,0,0,.18);border-top-color: rgba(0,0,0,.55);animation:spin 0.9s linear infinite}
html[data-theme="dark"] .loader{border-color:rgba(255,255,255,.18);border-top-color:rgba(255,255,255,.55)}
@keyframes spin{to{transform:rotate(360deg)}}


/* Fixed bottom-nav layout */
body{ padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
body.no-scroll{ padding-bottom: 0; }
.bottom-nav{ padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* Better mixed RTL/LTR text */
html[dir='rtl']{ unicode-bidi: plaintext; }
.gm-bubble{ unicode-bidi: plaintext; }


/* Explore should never show the page footer */
.page-explore .footer{display:none !important;}

/* ---------- Skeleton loading (list) ---------- */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel{
  background: linear-gradient(90deg, rgba(10,27,44,.06) 0%, rgba(10,27,44,.12) 20%, rgba(10,27,44,.06) 40%);
  background-size: 200% 100%;
  animation: shimmer 1.15s linear infinite;
}
.skel-line{ width: 100%; }
.item-card.is-skel{
  pointer-events: none;
  user-select: none;
}
.item-card.is-skel .item-thumb{
  height: 140px;
  border-radius: 14px;
}
.item-card.is-skel .item-body{
  padding: 12px 12px 14px;
}
#btnMore.is-loading{
  opacity: .65;
  cursor: progress;
}

/* ---------- Cluster bubble (map) ---------- */
.gm-cluster{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--tech-blue), var(--cyan));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}
.gm-cluster::after{
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.22);
}


/* Hide floating store pill on Explore (use header download button instead) */
.page-explore #storeFab{display:none !important;}

/* --------------------
   Header + Footer v2
   -------------------- */
.brand-logo{
  width:40px;height:40px;
  border-radius:14px;
  background: rgba(11,85,148,.08);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow-xs);
}
.brand-logo img{width:24px;height:24px;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-title{font-weight:800;font-size:15px;letter-spacing:.2px}
.brand-sub{font-size:11px;color:var(--muted);margin-top:2px}
.lang-btn .lang-text{font-weight:800;letter-spacing:.6px}

.footer.footer-v2{
  margin-top:24px;
  padding:18px 12px 26px;
  text-align:center;
}
.footer.footer-v2 .footer-line{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
.footer.footer-v2 .footer-copy{font-weight:900;letter-spacing:.2px}
.footer.footer-v2 .footer-support{font-size:12px;color:var(--muted)}
.footer.footer-v2 .footer-support a{color:var(--text);text-decoration:none}
.footer.footer-v2 .footer-support a:hover{text-decoration:underline}
.footer.footer-v2 .footer-links{gap:16px;margin-top:8px}
.footer.footer-v2 .footer-links a{color:var(--muted);text-decoration:none;font-size:13px}
.footer.footer-v2 .footer-links a:hover{color:var(--text)}
.footer.footer-v2 .dot{opacity:.7}

/* --------------------
   Forms / Segmented UI
   -------------------- */
.form-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
@media(max-width: 760px){
  .form-grid{grid-template-columns: 1fr;}
}
.field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px;
  font-weight:700;
}
.seg{
  display:inline-flex;
  background: rgba(11,85,148,.06);
  border:1px solid var(--border);
  border-radius:999px;
  padding:4px;
  gap:4px;
}
.seg .seg-btn{
  border:0;
  background: transparent;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  color:var(--muted);
}
.seg .seg-btn.active{
  background:#fff;
  color:var(--primary);
  box-shadow: var(--shadow-xs);
}
.pro-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.pro-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pro-list{margin-top:12px;display:grid;grid-template-columns: repeat(3, minmax(0, 1fr));gap:12px}
@media(max-width:980px){.pro-list{grid-template-columns: repeat(2, minmax(0,1fr));}}
@media(max-width:620px){.pro-list{grid-template-columns:1fr;}}
.pro-item{padding:14px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow: var(--shadow-xs)}
.pro-item__top{display:flex;align-items:center;gap:10px}
.pro-logo{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:rgba(11,85,148,.06);border:1px solid var(--border)}
.pro-logo img{width:100%;height:100%;object-fit:cover}
.pro-title{font-weight:900}
.pro-meta{font-size:12px;color:var(--muted);margin-top:2px}
.badge-verify{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;background:rgba(59,193,198,.16);border:1px solid rgba(59,193,198,.38);color:#0b6c6f;margin-top:8px}
.pro-actions-row{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}

/* --------------------
   Auth screens
   -------------------- */
.auth-wrap{max-width:980px;margin:18px auto;padding:0 12px}
.auth-card{display:grid;grid-template-columns: 1.05fr .95fr;gap:0;border-radius:20px;overflow:hidden;border:1px solid var(--border);background:#fff;box-shadow: var(--shadow)}
@media(max-width: 900px){.auth-card{grid-template-columns:1fr}}
.auth-hero{padding:22px 22px 18px;background: linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;position:relative;}
.auth-hero:before{content:'';position:absolute;inset:-40px -60px auto auto;width:220px;height:220px;border-radius:50%;background: rgba(255,255,255,.10);filter: blur(0);}
.auth-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(255,255,255,.28);background: rgba(255,255,255,.14);border-radius:999px;font-weight:800;font-size:12px}
.auth-title{font-size:26px;letter-spacing:.2px;margin:14px 0 6px;font-weight:900}
.auth-sub{opacity:.92;margin:0 0 14px;line-height:1.5}
.auth-steps{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.auth-steps .step{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:14px;background: rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);font-size:12px}
.auth-steps .step span{width:20px;height:20px;border-radius:8px;display:flex;align-items:center;justify-content:center;background: rgba(255,255,255,.22);font-weight:900}
.auth-form{padding:22px}
.auth-form h2{margin:0 0 10px;font-size:18px;font-weight:900}
.stack{display:flex;flex-direction:column;gap:10px}
.input-row{display:flex;gap:8px;align-items:center}
.input-row .input{flex:1}
.auth-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:13px}
.auth-links a{color:var(--brand);font-weight:800}
.social-stack{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.btn.social{justify-content:center;background:#fff;border:1px solid var(--border);color:var(--text);font-weight:900}
.btn.social:hover{background:rgba(11,85,148,.03)}
.g-icon{width:18px;height:18px;display:inline-block}
.btn.apple{opacity:.55;cursor:not-allowed}

/* --------------------
   Professionals page
   -------------------- */
.pro-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.pro-head .h-title{margin:0;font-size:20px;font-weight:900}
.pro-head .muted{margin:4px 0 0;color:var(--muted)}
.pro-controls{display:flex;gap:10px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;margin-top:12px}
.pro-controls .field{min-width:240px;flex:1}
.pro-actions{display:flex;gap:10px;align-items:center}
.pro-actions .btn{height:44px;padding:0 16px}
.pro-grid{display:grid;grid-template-columns: repeat(3, minmax(0,1fr));gap:10px;margin-top:14px}
@media(max-width: 1020px){.pro-grid{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media(max-width: 650px){.pro-grid{grid-template-columns: 1fr;}}
.pro-item{padding:12px;border:1px solid var(--border);border-radius:16px;background: rgba(11,85,148,.02)}
.pro-item .pro-top{display:flex;align-items:center;gap:10px}
.pro-logo{width:40px;height:40px;border-radius:12px;background: rgba(11,85,148,.08);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden}
.pro-logo img{width:100%;height:100%;object-fit:cover}
.pro-name{font-weight:900}
.pro-type{margin-top:2px;font-size:12px;color:var(--muted)}
.pro-badge{margin-inline-start:auto;font-size:12px;font-weight:800;color:#0B5594;background: rgba(11,85,148,.08);border:1px solid rgba(11,85,148,.18);padding:6px 10px;border-radius:999px}
.pro-about{margin:10px 0 0;color:var(--text);font-size:13px;line-height:1.45}
.pro-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:12px}
.pro-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.pro-links a{display:inline-flex;gap:8px;align-items:center;padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:#fff}


/* =====================
   Auth V3 (Modern)
   ===================== */
body.auth-page{padding-bottom:0;}
.auth-shell{min-height: calc(100dvh - 24px);display:flex;align-items:center;justify-content:center;padding:18px 0;}
.auth-grid{width:100%;max-width:980px;display:grid;grid-template-columns: 1.05fr .95fr;gap:14px;align-items:stretch;}
.auth-side{border-radius:24px;padding:22px;border:1px solid rgba(11,85,148,.14);background:
  radial-gradient(900px 500px at 10% 0%, rgba(59,193,198,.22), transparent 60%),
  radial-gradient(900px 500px at 90% 10%, rgba(11,85,148,.20), transparent 58%),
  linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.auth-side::after{content:"";position:absolute;inset:-1px;opacity:.45;pointer-events:none;background-image:radial-gradient(rgba(11,85,148,.10) 1px, transparent 1px);background-size: 26px 26px;mask-image:radial-gradient(ellipse at top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 72%);} 
.auth-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);}
.auth-brand .brand-logo{box-shadow:none;background:rgba(255,255,255,.80)}
.auth-side h1{margin:14px 0 6px 0;font-size:28px;letter-spacing:-.2px}
.auth-side p{margin:0 0 16px 0;color:var(--muted);max-width:42ch}
.auth-features{display:grid;gap:10px;margin-top:14px}
.auth-feature{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,.72);border:1px solid rgba(11,85,148,.12);border-radius:16px;padding:12px 12px}
.auth-feature .dot{width:10px;height:10px;border-radius:999px;margin-top:7px;background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 0 0 6px rgba(11,85,148,.06)}
.auth-feature b{display:block;margin-bottom:2px}
.auth-feature span{color:var(--muted);font-size:13px}
.auth-side-footer{margin-top:18px;font-size:12px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}
.auth-side-footer a{color:var(--muted);text-decoration:none;border-bottom:1px dashed rgba(11,85,148,.22)}
.auth-side-footer a:hover{color:var(--text)}

.auth-main{border-radius:24px;padding:18px;border:1px solid rgba(11,85,148,.12);background:rgba(255,255,255,.92);box-shadow: var(--shadow);}
.auth-card{height:100%;display:flex;flex-direction:column;gap:12px}
.auth-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.auth-head h2{margin:0;font-size:18px}
.auth-head .auth-switch{font-size:13px;color:var(--muted)}
.auth-head .auth-switch a{color:var(--brand);text-decoration:none}
.auth-form{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.auth-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.auth-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.auth-actions .link{font-size:13px;color:var(--brand);text-decoration:none}
.auth-actions .link:hover{text-decoration:underline}
.auth-msg{min-height:18px;font-size:13px;color:var(--muted)}
.auth-msg.ok{color:#0B6F3A}
.auth-msg.err{color:#B42318}
.auth-divider{display:flex;align-items:center;gap:10px;margin:8px 0}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:rgba(10,27,44,.10)}
.auth-divider span{font-size:12px;color:var(--muted)}

.auth-oauth{display:grid;gap:10px}
.oauth-btn{width:100%;justify-content:center;border-radius:16px;padding:12px 14px}
.oauth-btn .oauth-ic{width:18px;height:18px;display:inline-flex}
.oauth-btn.google{background:rgba(10,27,44,.02)}
.oauth-btn.apple{background:rgba(10,27,44,.02)}
.oauth-btn.disabled{opacity:.55;pointer-events:none}

@media (max-width: 900px){
  .auth-grid{grid-template-columns:1fr;max-width:560px}
  .auth-side{padding:18px}
  .auth-side h1{font-size:22px}
  .auth-row{grid-template-columns:1fr}
}

/* =====================
   Pro Profile V3
   ===================== */
.pro-hero{border-radius:24px;border:1px solid rgba(11,85,148,.12);background:rgba(255,255,255,.92);box-shadow: var(--shadow);padding:18px;display:flex;gap:14px;align-items:center;margin-bottom:14px}
.pro-avatar{width:64px;height:64px;border-radius:18px;background:linear-gradient(135deg, rgba(11,85,148,.16), rgba(59,193,198,.18));border:1px solid rgba(11,85,148,.14);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--brand)}
.pro-hero h1{margin:0;font-size:22px}
.pro-hero .meta{margin-top:4px;color:var(--muted);font-size:13px;display:flex;gap:10px;flex-wrap:wrap}
.pro-grid{display:grid;grid-template-columns: 1.15fr .85fr;gap:14px}
.pro-card{border-radius:24px;border:1px solid rgba(11,85,148,.12);background:rgba(255,255,255,.92);box-shadow: var(--shadow);padding:18px}
.pro-card h3{margin:0 0 10px 0;font-size:16px}
.kv{display:grid;grid-template-columns: 120px 1fr;gap:8px 12px;font-size:14px}
.kv .k{color:var(--muted)}
.pro-actions{display:flex;gap:10px;flex-wrap:wrap}
.pro-actions a{flex:1;min-width:170px;border-radius:16px;padding:12px 14px;justify-content:center}
@media (max-width: 900px){
  .pro-grid{grid-template-columns:1fr}
  .pro-actions a{min-width:unset}
}


/* ===== Auth V3 ===== */
.auth-page{min-height:100dvh; padding-bottom:0;}
.auth-shell{max-width:1100px;margin:0 auto;padding:18px 14px 32px;}
.auth-layout{display:grid;grid-template-columns: 1.05fr .95fr;gap:16px;align-items:stretch;}
@media(max-width: 960px){.auth-layout{grid-template-columns: 1fr;}}

.auth-side{position:relative;overflow:hidden;border-radius:24px;border:1px solid var(--border);background: linear-gradient(135deg, rgba(11,85,148,.08), rgba(59,193,198,.10));box-shadow: var(--shadow-sm);padding:22px;}
.auth-side::before{content:'';position:absolute;inset:-80px;background: radial-gradient(500px 300px at 20% 10%, rgba(59,193,198,.28), transparent 60%), radial-gradient(520px 340px at 90% 20%, rgba(11,85,148,.22), transparent 60%);opacity:.9;pointer-events:none;}
.auth-side::after{content:'';position:absolute;inset:0;pointer-events:none;background-image: radial-gradient(rgba(11,85,148,.10) 1px, transparent 1px);background-size: 28px 28px;opacity:.18;}
.auth-side-inner{position:relative;z-index:1;display:flex;flex-direction:column;gap:14px;min-height:320px;}
.auth-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);}
.auth-brand .logo{width:44px;height:44px;border-radius:16px;background: linear-gradient(135deg, rgba(11,85,148,.18), rgba(59,193,198,.20));border:1px solid rgba(11,85,148,.14);display:flex;align-items:center;justify-content:center;box-shadow: var(--shadow-sm);}
.auth-brand .logo img{width:28px;height:28px;object-fit:contain} 
.auth-brand .meta{display:flex;flex-direction:column;line-height:1.1} 
.auth-brand .meta .t{font-weight:900;font-size:18px;}
.auth-brand .meta .s{font-size:12px;color:var(--muted);margin-top:2px;}
.auth-side h1{margin:6px 0 0 0;font-size:30px;letter-spacing:-.3px;line-height:1.2} 
.auth-side p{margin:0;color:var(--muted);max-width:46ch} 
.auth-feats{display:grid;gap:10px;margin-top:6px;}
.auth-feat{display:flex;gap:10px;align-items:flex-start;border:1px solid rgba(11,85,148,.12);background: rgba(255,255,255,.55);backdrop-filter: blur(12px);padding:12px 12px;border-radius:16px;}
.auth-feat .dot{width:10px;height:10px;border-radius:999px;background: linear-gradient(135deg, var(--brand), var(--brand2));margin-top:5px;flex:0 0 auto;}
.auth-feat b{display:block;font-size:13px;margin-bottom:2px;}
.auth-feat span{display:block;font-size:12px;color:var(--muted);line-height:1.45;}
.auth-side-foot{margin-top:auto;display:flex;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:12px;}
.auth-side-foot a{color:inherit;text-decoration:none;border-bottom:1px dashed rgba(10,27,44,.22);}
.auth-side-foot a:hover{color:var(--text);border-bottom-color: rgba(10,27,44,.42);}

.auth-main{display:flex;align-items:stretch;}
.auth-card{width:100%;border-radius:24px;border:1px solid var(--border);background: rgba(255,255,255,.80);backdrop-filter: blur(18px);box-shadow: var(--shadow);padding:22px;}
html[data-theme='dark'] .auth-card{background: rgba(8,18,30,.72);}
.auth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px;}
.auth-head h2{margin:0;font-size:20px;letter-spacing:-.2px;}
.auth-head .sub{margin-top:4px;color:var(--muted);font-size:13px;}
.auth-tabs{display:flex;gap:6px;border:1px solid rgba(10,27,44,.10);background: rgba(10,27,44,.04);padding:4px;border-radius:999px;}
.auth-tabs a{padding:8px 12px;border-radius:999px;text-decoration:none;font-weight:700;font-size:12px;color:var(--muted);}
.auth-tabs a.active{background: var(--surface);color: var(--text);box-shadow: var(--shadow-xs);}

.auth-form{display:grid;gap:10px;margin-top:10px;}
.auth-row{display:grid;gap:8px;}
.auth-row label{font-size:12px;font-weight:700;color: rgba(10,27,44,.72);}
.auth-row .hint{font-size:12px;color:var(--muted);}
.auth-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:6px;flex-wrap:wrap;}
.auth-actions .link{font-size:13px;color:var(--brand);text-decoration:none;font-weight:700;}
.auth-actions .link:hover{text-decoration:underline;}

.auth-divider{display:flex;align-items:center;gap:10px;margin:16px 0;}
.auth-divider::before,.auth-divider::after{content:'';height:1px;flex:1;background: rgba(10,27,44,.12);}
.auth-divider span{font-size:12px;color:var(--muted);}

.oauth-btn{width:100%;border-radius:16px;padding:12px 14px;border:1px solid rgba(10,27,44,.12);background: rgba(255,255,255,.75);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:800;cursor:pointer;transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);}
.oauth-btn:hover{transform: translateY(-1px);box-shadow: var(--shadow-sm);}
.oauth-btn:active{transform: translateY(1px);}
.oauth-btn img{width:18px;height:18px} 
.oauth-btn.apple{background: rgba(10,27,44,.04);}
.oauth-btn.disabled{opacity:.55;cursor:not-allowed;}

.auth-msg{display:none;margin-top:10px;padding:10px 12px;border-radius:14px;border:1px solid rgba(11,85,148,.14);background: rgba(11,85,148,.06);color: var(--text);font-size:13px;line-height:1.4;}
.auth-msg.error{border-color: rgba(220,53,69,.25);background: rgba(220,53,69,.07);}

/* ===== Pro Profile V3 ===== */
.pro-shell{padding:14px;}
.pro-hero{border-radius:24px;border:1px solid var(--border);background: rgba(255,255,255,.75);backdrop-filter: blur(16px);box-shadow: var(--shadow);overflow:hidden;}
.pro-hero-top{display:flex;gap:14px;align-items:center;padding:18px;}
@media(max-width:720px){.pro-hero-top{flex-direction:column;align-items:flex-start}}
.pro-avatar{width:78px;height:78px;border-radius:22px;background: linear-gradient(135deg, rgba(11,85,148,.14), rgba(59,193,198,.18));border:1px solid rgba(11,85,148,.14);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.pro-avatar img{width:64px;height:64px;object-fit:cover;border-radius:18px} 
.pro-title{display:flex;flex-direction:column;gap:6px;min-width:0;}
.pro-title h1{margin:0;font-size:22px;letter-spacing:-.2px;line-height:1.2;}
.pro-title .meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:13px;}
.pro-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:999px;border:1px solid rgba(11,85,148,.14);background: rgba(11,85,148,.06);font-weight:700;font-size:12px;}
.pro-hero-actions{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap;}
@media(max-width:720px){.pro-hero-actions{margin-left:0;width:100%}}
.pro-grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:14px;margin-top:14px;}
@media(max-width: 960px){.pro-grid{grid-template-columns:1fr}}
.pro-card{border-radius:22px;border:1px solid var(--border);background: rgba(255,255,255,.80);backdrop-filter: blur(16px);box-shadow: var(--shadow2);padding:16px;}
.pro-card h3{margin:0 0 8px 0;font-size:16px;}
.pro-kv{display:grid;grid-template-columns: 140px 1fr;gap:8px 10px;font-size:13px;align-items:center;}
@media(max-width:520px){.pro-kv{grid-template-columns:1fr}}
.pro-kv .k{color:var(--muted);font-weight:700;}
.pro-kv .v{color:var(--text);font-weight:600;word-break:break-word;}

/* ==============================
   UI Refresh v3 — Feb 2026
   Modern light-only polish (Header, Pro, Inbox/Chat, Auth)
   ============================== */

/* Small helpers (missing in some pages) */
.kicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(15,23,42,.55);
  font-weight:800;
}
.h-title{
  font-size:26px;
  margin:8px 0 0;
  letter-spacing:-.02em;
}
.muted{
  color:rgba(15,23,42,.65);
}
.page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}

/* Header refresh */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
  margin-top:0;
  padding:12px 12px;
  border-radius:0;
  background:rgba(255,255,255,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom:1px solid rgba(15,23,42,.08);
  box-shadow:none;
}
.app-shell{gap:16px}
.brand{gap:10px}
.brand-logo{
  width:42px;height:42px;border-radius:12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  border:1px solid rgba(15,23,42,.06);
}
.brand-title{font-size:16px; font-weight:900; letter-spacing:-.02em;}
.brand-sub{font-size:11px; opacity:.7; letter-spacing:.08em}
.actions-right{gap:10px}
.pill{
  height:42px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.7);
  box-shadow: 0 12px 30px rgba(15,23,42,.07);
}
.pill:hover{background:#fff;}
.pill-icon{
  width:38px;height:38px;
  padding:0;
  display:grid;place-items:center;
}
.lang-dd .dd-btn{gap:8px}
.lang-dd .dd-menu{border-radius:16px; box-shadow:0 30px 60px rgba(15,23,42,.14)}

@media (max-width:640px){
  .brand-sub{display:none}
  .pill span{display:none}
  .pill{padding:0 10px}
}

/* Buttons refresh */
.btn{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  box-shadow: 0 12px 24px rgba(15,23,42,.08);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow:0 18px 34px rgba(15,23,42,.12)}
.btn:active{transform: translateY(0)}
.btn.primary{
  border:0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
}
.btn.btn-ghost{
  background:rgba(255,255,255,.7);
}

/* Inputs + grids */
.input, select.input, textarea.input{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.9);
}
.field-label{font-weight:800}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:700px){.grid-2{grid-template-columns:1fr}}

/* Commission calculator spacing fix */
.form-grid{gap:14px}
.form-grid > *{min-width:0}

/* Pro cards */
.pro-controls{gap:12px}
.pro-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow: 0 20px 50px rgba(15,23,42,.08);
}
.pro-card--link{display:block; text-decoration:none; color:inherit}
.pro-card--link:hover{background:#fff}
.pro-name{font-size:16px; font-weight:900; letter-spacing:-.01em}
.pro-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* Pro profile */
.pro-hero-card{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:16px;
  align-items:stretch;
  padding:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:rgba(255,255,255,.85);
  box-shadow: 0 30px 70px rgba(15,23,42,.10);
}
.pro-hero-main{display:flex; gap:14px; align-items:flex-start}
.pro-avatar{
  width:74px;height:74px;border-radius:18px;
  background: linear-gradient(135deg, rgba(15,23,42,.06), rgba(15,23,42,.02));
  border:1px solid rgba(15,23,42,.08);
  overflow:hidden;
}
.pro-avatar img{width:100%;height:100%;object-fit:cover}
.pro-avatar-fallback{display:grid;place-items:center;height:100%;font-weight:900;color:rgba(15,23,42,.65)}
.pro-hero-title{font-size:22px; margin:4px 0 0; letter-spacing:-.02em}
.pro-hero-meta{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:8px}
.pro-hero-about{margin:10px 0 0; color:rgba(15,23,42,.65); line-height:1.7}
.pro-hero-links{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.pro-hero-side{display:flex; align-items:stretch}
@media (max-width:900px){
  .pro-hero-card{grid-template-columns:1fr}
}

/* Inbox */
.inbox-list{display:grid; gap:12px; margin-top:14px}
.inbox-item{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.84);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  text-decoration:none;
  color:inherit;
}
.inbox-item:hover{background:#fff}
.inbox-ava{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:900}
.inbox-mid{flex:1; min-width:0}
.inbox-title{font-weight:900; display:flex; gap:8px; align-items:center}
.inbox-sub{margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.inbox-meta{text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:6px}
.inbox-time{font-size:12px; color:rgba(15,23,42,.55)}
.inbox-badge{min-width:22px;height:22px;padding:0 8px;border-radius:999px;background:rgba(37,99,235,.12);color:#1d4ed8;font-weight:900;display:grid;place-items:center;font-size:12px;border:1px solid rgba(37,99,235,.18)}

/* Skeleton helpers */
.skel{border-radius:14px; background:linear-gradient(90deg, rgba(15,23,42,.06), rgba(15,23,42,.03), rgba(15,23,42,.06)); background-size:200% 100%; animation: skel 1.2s infinite}
@keyframes skel{0%{background-position:200% 0}100%{background-position:-200% 0}}
.skel.line{height:12px}
.skel.w60{width:60%}
.skel.w90{width:90%}
.skel.tiny{width:40px;height:10px;border-radius:999px}

/* Chat refresh (keeps existing structure) */
.progress-line{height:1px;background:rgba(15,23,42,.08);margin:16px 0}
.chat-shell{border-radius:22px;border:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.85);box-shadow:0 30px 70px rgba(15,23,42,.10)}
.chat-head{border-bottom:1px solid rgba(15,23,42,.08);padding:14px 14px}
.chat-head .chat-title{font-weight:900; font-size:15px}
.chat-messages{padding:14px 14px}
.bubble{border-radius:18px; border:1px solid rgba(15,23,42,.08); box-shadow:0 12px 30px rgba(15,23,42,.08)}
.bubble.me{border:0; background:linear-gradient(135deg, var(--brand), var(--brand2)); color:#fff}
.bubble.me .msg-meta, .bubble.me .msg-text{color:rgba(255,255,255,.92)}
.msg-text{line-height:1.7}
.msg-meta{font-size:12px; margin-top:8px; opacity:.75}
.chat-inputbar{border-top:1px solid rgba(15,23,42,.08);padding:12px 12px}
.chat-text{border-radius:16px}

/* Auth refresh — unify everything on modern card */
.auth-shell{min-height: calc(100vh - 40px)}
.auth-layout{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:16px;
}
.auth-side{position:sticky; top:92px; align-self:start}
.auth-side-inner{padding:16px}
.auth-side-card{border-radius:22px;border:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.80);box-shadow:0 30px 70px rgba(15,23,42,.10);padding:18px}
.auth-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit;margin-bottom:14px}
.auth-brand__logo{width:44px;height:44px;border-radius:14px;box-shadow:0 12px 30px rgba(15,23,42,.10)}
.auth-brand__name{font-weight:900}
.auth-brand__sub{font-size:12px;color:rgba(15,23,42,.6)}
.auth-main-inner{padding:16px; display:flex; flex-direction:column; align-items:stretch; justify-content:center; min-height: calc(100vh - 120px)}
.auth-card{border-radius:22px;border:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.88);box-shadow:0 30px 70px rgba(15,23,42,.12);padding:20px}
.auth-card-head h1{margin:0;font-size:24px;letter-spacing:-.02em}
.auth-form .field{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.auth-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:rgba(15,23,42,.55);font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.12em}
.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:rgba(15,23,42,.10)}
.auth-foot-links{display:flex;gap:10px;justify-content:center;margin-top:14px;flex-wrap:wrap}
.auth-legal{margin-top:14px;text-align:center}
.auth-step{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.7);font-weight:900}
.auth-step span{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:rgba(37,99,235,.12);color:#1d4ed8}
.auth-step.active{background:#fff}
.auth-step.done span{background:rgba(16,185,129,.14);color:#059669}

@media (max-width:980px){
  .auth-layout{grid-template-columns:1fr}
  .auth-side{position:relative; top:auto}
  .auth-main-inner{min-height:auto}
}

/* Header accent line */
.topbar{position:sticky; overflow:visible}
.topbar:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:2px;
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  opacity:.9;
}

/* Google GIS button (modern) */
.google-btn{width:100%;justify-content:center;gap:10px}
.google-icon{
  width:18px;height:18px;display:inline-block;
  background-repeat:no-repeat;background-position:center;background-size:contain;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23EA4335' d='M24 9.5c3.54 0 6.72 1.22 9.24 3.22l6.9-6.9C35.96 2.36 30.33 0 24 0 14.6 0 6.51 5.38 2.55 13.22l8.02 6.23C12.5 13.1 17.77 9.5 24 9.5z'/><path fill='%234285F4' d='M46.1 24.5c0-1.64-.15-3.22-.43-4.75H24v9h12.4c-.54 2.9-2.17 5.36-4.62 7.02l7.11 5.52C43.98 36.7 46.1 30.9 46.1 24.5z'/><path fill='%23FBBC05' d='M10.57 28.45c-.52-1.55-.82-3.2-.82-4.95s.3-3.4.82-4.95L2.55 12.32C.93 15.62 0 19.32 0 23.5s.93 7.88 2.55 11.18l8.02-6.23z'/><path fill='%2334A853' d='M24 47c6.33 0 11.66-2.08 15.55-5.66l-7.11-5.52c-1.98 1.33-4.51 2.12-8.44 2.12-6.23 0-11.5-3.6-13.43-8.95l-8.02 6.23C6.51 41.62 14.6 47 24 47z'/></svg>");
}


.auth-bullets{margin:12px 0 0; padding-left:18px; color:rgba(15,23,42,.65); line-height:1.8}
.auth-bullets li{margin:6px 0}

/* =========================================================
   UI V4 (Feb 2026) — Modern refresh + fixes
   - Fix header look + missing closing tags impact
   - Make Pro Profile compact
   - Make Auth pages more premium/clean
   ========================================================= */

:root{
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-xl: 0 30px 80px rgba(15,23,42,.14);
}

/* Container: slightly wider + cleaner spacing */
.container{max-width:1240px;}

/* ---------------- Header (Topbar) ---------------- */
.topbar{
  position:sticky;
  top:10px;
  z-index:50;
  margin-top:10px;
  margin-bottom:14px;
  border-radius: var(--radius-xl);
  border: 0 !important;
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(255,255,255,.16), transparent 58%),
    linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow: 0 22px 60px rgba(11,85,148,.28);
  padding: 12px 14px;
  backdrop-filter: blur(14px);
}
.topbar:after{display:none !important;}

.brand{gap:10px;}
.brand-logo{
  width:38px;height:38px;border-radius:14px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.brand-logo img{filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));}
.brand-title{color:#fff;font-size:16px;letter-spacing:-.02em;}
.brand-sub{color:rgba(255,255,255,.84);letter-spacing:.14em;font-weight:800;}

.actions-right{gap:8px;}

/* Icon buttons */
.icon-pill{
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff;
  border-radius:16px;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.icon-pill:hover{background: rgba(255,255,255,.22);}

/* Language pill */
.lang-btn{
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.lang-btn:hover{background: rgba(255,255,255,.22);}
.lang-ic svg,.lang-chev svg{opacity:.92;}

.lang-menu{
  border-radius: 18px;
  border:1px solid rgba(15,23,42,.10);
  box-shadow: 0 24px 70px rgba(15,23,42,.20);
  overflow:hidden;
}
.lang-menu a{padding:12px 12px;}

/* Minimal header (auth pages) */
.topbar--minimal{
  background: transparent !important;
  box-shadow:none !important;
  border:0 !important;
  padding: 8px 2px !important;
  margin-top: 6px !important;
  margin-bottom: 10px !important;
  backdrop-filter:none !important;
}
.topbar--minimal .brand-title{color: var(--text) !important;}
.topbar--minimal .brand-sub{color: rgba(15,23,42,.55) !important;}
.topbar--minimal .brand-logo{background: rgba(255,255,255,.80) !important; border:1px solid rgba(15,23,42,.10) !important; box-shadow: var(--shadow-sm) !important;}
.topbar--minimal .lang-btn{background: rgba(15,23,42,.04) !important; border:1px solid rgba(15,23,42,.10) !important; color: var(--text) !important; box-shadow:none !important;}

@media(max-width:720px){
  .topbar{top:8px; padding: 11px 12px;}
  .brand-title{font-size:15px;}
}

/* ---------------- Footer (centered 3 lines) ---------------- */
.footer.footer-v2{
  margin-top: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-xl);
  padding: 18px 16px;
  text-align:center;
}
.footer-v2 .footer-line{justify-content:center;}
.footer-v2 .footer-support{gap:10px;}
.footer-v2 .footer-links a{
  padding:8px 12px;
  border-radius: 999px;
  background: rgba(11,85,148,.06);
  border:1px solid rgba(11,85,148,.10);
  text-decoration:none;
}
.footer-v2 .footer-links a:hover{background: rgba(11,85,148,.10);}

/* ---------------- Auth pages (premium/clean) ---------------- */
body.auth-page{
  background:
    radial-gradient(1100px 520px at 12% 10%, rgba(59,193,198,.20), transparent 60%),
    radial-gradient(900px 520px at 88% 0%, rgba(11,85,148,.18), transparent 60%),
    linear-gradient(180deg, #f8fafc, #ffffff);
}

.auth-shell{min-height: calc(100dvh - 24px);display:flex;align-items:center;justify-content:center;padding: 14px 0 28px;}
.auth-grid{max-width: 980px; gap: 16px;}

.auth-side{
  border-radius: var(--radius-xl) !important;
  background:
    radial-gradient(800px 420px at 12% 0%, rgba(59,193,198,.28), transparent 60%),
    radial-gradient(800px 420px at 90% 20%, rgba(11,85,148,.24), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.72)) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: var(--shadow-xl) !important;
}
.auth-side h1{font-size: 28px !important; letter-spacing:-.03em;}
.auth-feature{border-radius: 18px !important;}

.auth-main{
  border-radius: var(--radius-xl) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  background: rgba(255,255,255,.90) !important;
  box-shadow: var(--shadow-xl) !important;
}

.auth-card{gap: 14px;}
.auth-head h2{font-size: 18px;}

.input, .auth-main input, .auth-main select{
  border-radius: 16px !important;
}

.oauth-btn{border-radius: 18px !important;}
.oauth-btn.google{background: rgba(255,255,255,.95) !important;}
.oauth-btn.google:hover{background: #fff !important;}

@media(max-width: 900px){
  .auth-grid{max-width: 560px;}
  .auth-side h1{font-size:22px !important;}
}

/* ---------------- Pro profile (compact + modern) ---------------- */
.page-pro-profile .pro-hero{background:transparent;border:0;box-shadow:none;padding:0;margin-top:14px;margin-bottom:14px;}
.page-pro-profile .pro-hero-card{
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 340px at 10% 0%, rgba(59,193,198,.16), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(11,85,148,.14), transparent 60%),
    rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  gap: 14px;
}
.page-pro-profile .pro-avatar{width:64px;height:64px;border-radius:18px;}
.page-pro-profile .pro-hero-title{font-size:20px;margin-top:2px;}
.page-pro-profile .pro-hero-about{font-size:13px; margin-top:8px;}

.page-pro-profile .kv{display:grid;gap:10px;}
.page-pro-profile .kv-item{padding:10px 12px;border-radius:16px;border:1px solid rgba(15,23,42,.08);background: rgba(255,255,255,.75);}
.page-pro-profile .kv-k{font-size:12px;color:rgba(15,23,42,.55);font-weight:800;}
.page-pro-profile .kv-v{font-size:13px;font-weight:800;}

@media(max-width: 900px){
  .page-pro-profile .pro-hero-card{grid-template-columns:1fr !important;}
}

/* ---------------- Inbox / Chat small polishing ---------------- */
.inbox-item{border-radius: 20px;}
.chat-shell{border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);}

/* ---------------- Content pages (Terms/Privacy/About/Contact) ---------------- */
.page-content .page-hero{
  margin-top:14px;
  border-radius: var(--radius-xl);
  padding: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background:
    radial-gradient(900px 340px at 10% 0%, rgba(59,193,198,.18), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(11,85,148,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
  box-shadow: var(--shadow-xl);
  position:relative;
  overflow:hidden;
}
.page-content .hero-kicker{font-weight:900;font-size:12px;letter-spacing:.25px;color: rgba(11,85,148,.86);display:inline-flex;align-items:center;gap:8px}
.page-content .hero-kicker .dot{width:8px;height:8px;border-radius:999px;background: linear-gradient(135deg, var(--tech-blue), var(--cyan));box-shadow: 0 10px 22px rgba(0,0,0,.16)}
.page-content .page-hero h1{margin:10px 0 6px;font-size:26px;letter-spacing:-.03em}
.page-content .page-hero p{margin:0;color: rgba(15,23,42,.62);font-weight:700;line-height:1.45;max-width: 72ch}

.page-content .page-card{margin-top:12px;border-radius: var(--radius-xl);box-shadow: var(--shadow-xl);border:1px solid rgba(15,23,42,.08);background: rgba(255,255,255,.92)}
.page-content .page-card .section-title{font-weight:900;font-size:13px;margin:0 0 10px;color: rgba(15,23,42,.72);letter-spacing:.2px}
.page-content .rich{line-height:1.65;font-weight:650;color: rgba(15,23,42,.70)}
.page-content .rich h2{margin:18px 0 8px;font-size:16px;letter-spacing:-.01em;color: rgba(15,23,42,.88)}
.page-content .rich h3{margin:16px 0 8px;font-size:14px;color: rgba(15,23,42,.88)}
.page-content .rich ul{margin:10px 0 14px;padding-inline-start:18px}
.page-content .rich li{margin:6px 0}
.page-content .callout{
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(11,85,148,.14);
  background: linear-gradient(135deg, rgba(11,85,148,.08), rgba(59,193,198,.10));
  color: rgba(15,23,42,.78);
  font-weight:750;
}
.page-content .feature-grid{display:grid;gap:12px;grid-template-columns: repeat(3, minmax(0,1fr));}
.page-content .feature-card{border-radius: 18px;border:1px solid rgba(15,23,42,.08);background: rgba(255,255,255,.75);padding:12px}
.page-content .feature-card .ft{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.page-content .feature-card .ic{
  width:40px;height:40px;border-radius: 14px;
  display:inline-flex;align-items:center;justify-content:center;
  background: linear-gradient(135deg, rgba(11,85,148,.16), rgba(59,193,198,.16));
  border:1px solid rgba(15,23,42,.08)
}
.page-content .feature-card .ic svg{width:20px;height:20px;opacity:.9}
.page-content .feature-card .t{font-weight:900}
.page-content .feature-card p{margin:0;color: rgba(15,23,42,.62);font-weight:650;line-height:1.45}

.page-content .contact-grid{display:grid;grid-template-columns: 1.1fr .9fr;gap:12px}
.page-content .contact-card{padding:14px}
.page-content .contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

@media(max-width: 960px){
  .page-content .feature-grid{grid-template-columns:1fr}
  .page-content .contact-grid{grid-template-columns:1fr}
  .page-content .page-hero h1{font-size:22px}
}


/* ---------------- Pro (offices/developers) — app-grade controls + prevent huge SVG ---------------- */
.page-pro .pro-head{margin-bottom:10px}
.page-pro .pro-controls{width:100%}

.page-pro .seg{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(11,85,148,.14);
  background: rgba(11,85,148,.06);
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
.page-pro .seg-btn{
  border:0;
  background:transparent;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  color: rgba(15,23,42,.62);
  cursor:pointer;
}
.page-pro .seg-btn.active{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
  color: var(--brand);
}

.page-pro .pro-search-row{
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
  margin-top:12px;
}
.page-pro .pro-search{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  height:46px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
.page-pro .pro-search .ic{
  width:18px;
  height:18px;
  flex:0 0 auto;
  color: rgba(15,23,42,.55);
}
.page-pro .pro-search input{
  border:0;
  outline:0;
  width:100%;
  background:transparent;
  font-size:14px;
}
.page-pro #proSearchBtn{
  height:46px;
  padding:0 16px;
  border-radius:16px;
  white-space:nowrap;
}

/* Empty + skeleton used by pro.php */
.empty-state{
  text-align:center;
  padding:18px;
  border-radius:18px;
  border:1px dashed rgba(15,23,42,.14);
  background: rgba(255,255,255,.70);
  color: rgba(15,23,42,.60);
  font-weight:800;
}
.skeleton-list{display:grid;gap:10px;padding:10px 0}
.skeleton-row{
  height:74px;
  border-radius:18px;
  background:linear-gradient(90deg, rgba(15,23,42,.06), rgba(15,23,42,.03), rgba(15,23,42,.06));
  background-size:200% 100%;
  animation: skel 1.2s infinite;
}

@media (max-width:640px){
  .page-pro .seg{width:100%;}
  .page-pro .seg-btn{flex:1; text-align:center; padding:10px 8px;}
  .page-pro .pro-search-row{flex-direction:column; align-items:stretch;}
  .page-pro #proSearchBtn{width:100%;}
}

/* =========================================================
   UI V8 (Feb 2026) — Mobile + Explore polish
   - Fix white/invisible action buttons on Explore
   - Prevent header actions (lang/inbox) from wrapping/hiding on small screens
   ========================================================= */

/* Icon buttons: neutral by default (works on light cards) */
.icon-pill{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(10,27,44,.12);
  color: rgba(10,27,44,.92);
  box-shadow: var(--shadow-sm);
}
.icon-pill:hover{
  background: rgba(255,255,255,.98);
  border-color: rgba(11,85,148,.18);
}

/* Keep header icon buttons glassy/white */
.topbar{z-index:120;}
.topbar .icon-pill{
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.topbar .icon-pill:hover{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.28);
}

/* Ensure language dropdown always overlays UI */
.lang-menu{z-index:220; max-width: calc(100vw - 24px);}

/* Explore buttons: app-grade (readable + brand tint) */
.page-explore .explore-right .icon-pill{
  background: linear-gradient(135deg, rgba(11,85,148,.06), rgba(59,193,198,.08));
  border: 1px solid rgba(11,85,148,.14);
  color: rgba(11,85,148,.95);
}
.page-explore .explore-right .icon-pill:hover{
  background: linear-gradient(135deg, rgba(11,85,148,.08), rgba(59,193,198,.10));
  border-color: rgba(11,85,148,.18);
}
.page-explore .explore-right .icon-pill .ic{opacity:1;}

/* Explore download button: always visible */
.page-explore .btn-download{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 1px solid rgba(255,255,255,.25);
  color:#fff;
}
.page-explore .btn-download:hover{filter: brightness(1.02);}

/* Mobile header: keep actions visible, shrink brand text, make lang icon-only */
@media (max-width:540px){
  .topbar{gap:10px; padding: 10px 10px;}
  .brand{min-width:0; flex:1;}
  .brand-text{min-width:0;}
  .brand-title{max-width:160px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .brand-sub{display:none;}
  .actions-right{flex-shrink:0;}

  .topbar .lang-btn{
    width:42px;height:42px;padding:0;border-radius:16px;
    justify-content:center;
  }
  .topbar .lang-btn .lang-text,
  .topbar .lang-btn .lang-chev{display:none;}
  .topbar .lang-ic svg{width:19px;height:19px;}
}

/* Mobile: keep filters badge inside button (less "floating") */
@media (max-width:640px){
  .page-explore #filtersBadge{top:6px; inset-inline-end:10px;}
}

/* Stronger contrast for Explore buttons on small phones */
@media (max-width:640px){
  .page-explore .explore-right .icon-pill{
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(11,85,148,.16);
    color: rgba(11,85,148,.92);
  }
}

/* Header language button should match header icon pills */
.topbar .lang-btn{
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.topbar .lang-btn:hover{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.28);
}

/* =========================================================
   UI V9 hotfix — Mobile consistency & contrast
   (fixes: explore buttons white, lang pill hidden, download page layout)
   ========================================================= */
html, body{overflow-x:hidden;}

@media (max-width: 640px){
  /* Topbar: keep actions visible on narrow screens */
  .topbar{display:grid; grid-template-columns: 1fr auto; align-items:center; gap:10px; padding:10px 10px;}
  .topbar .brand{min-width:0;}
  .topbar .brand-title{max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .topbar .actions-right{gap:8px; flex-wrap:nowrap;}
  .topbar .icon-pill{width:40px !important; height:40px !important; border-radius:14px !important;}
  .topbar .lang-btn{height:40px !important; min-width:54px; padding:0 10px !important; border-radius:14px !important;}
  /* On some builds the lang icon is missing; keep text visible instead of hiding everything */
  .topbar .lang-ic{display:none !important;}
  .topbar .lang-text{display:inline !important; font-weight:900; letter-spacing:.3px;}
  .topbar .lang-chev{display:none !important;}
}
@media (max-width: 380px){
  .topbar .brand-title{max-width:118px;}
  .topbar .lang-btn{min-width:50px; padding:0 8px !important;}
}

@media (max-width: 640px){
  /* Explore toolbar: app-grade spacing, prevent wrap/overflow */
  .explore-bar{padding:10px;}
  .explore-left{display:grid; grid-template-columns:1fr; gap:10px; align-items:stretch;}
  .toggle.toggle-lg{width:100%;}
  .toggle.toggle-lg button{flex:1; justify-content:center;}
  .searchbox{width:100%; min-width:0;}

  /* Keep filter/settings pills readable (not white-on-white) */
  .page-explore #btnFilters,
  .page-explore #btnSettings{
    background: linear-gradient(135deg, rgba(11,85,148,.08), rgba(59,193,198,.10)) !important;
    border: 1px solid rgba(11,85,148,.18) !important;
    color: rgba(11,85,148,.95) !important;
  }
  .page-explore #btnFilters .ic,
  .page-explore #btnSettings .ic{opacity:1 !important;}
  .page-explore #btnFilters .lbl,
  .page-explore #btnSettings .lbl{display:inline !important;}

  .page-explore .explore-right{gap:10px;}
  .page-explore .btn-download{height:46px;}
}

@media (max-width: 640px){
  /* Filters modal: keep within viewport and avoid side clipping */
  #filtersBackdrop{padding:12px !important; align-items:center !important;}
  #filtersBackdrop .filters-modal{width: calc(100vw - 24px) !important; max-height: calc(100dvh - 24px) !important; border-radius:22px !important;}
  #filtersBackdrop .modal-head{position:sticky; top:0; z-index:3; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86)); backdrop-filter: blur(14px); padding-bottom:12px; margin-bottom:8px;}
  #filtersBackdrop .filters-body{padding: 0 2px 8px;}
}

/* Download page: store buttons with icons + mobile stacking */
.page-download .store-btn{gap:10px;}
.page-download .store-btn .oauth-ic{width:18px;height:18px;}
@media (max-width: 640px){
  .page-download .hero{padding:14px;}
  .page-download .cta-row{flex-direction:column; align-items:stretch;}
  .page-download .cta-row .btn{width:100%; justify-content:center; min-height:44px;}
  .page-download .hero-right .card .cta-row{flex-direction:column;}
}

html[dir='rtl'] .switch-ui::after{left:auto;right:3px}


/* --- SelectX (custom select, avoids iOS native picker) --- */
.selectx{position:relative;display:block;width:100%}
.selectx.small .selectx-btn{padding:10px 12px;font-size:12px;border-radius:14px}
.selectx-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius:16px;
  padding:12px 14px;
  font-weight:600;
  color: var(--text);
  cursor:pointer;
}
.selectx-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:start}
.selectx-label.muted{color:var(--muted);font-weight:600}
.selectx-chev{width:18px;height:18px;display:inline-flex;opacity:.75}
.selectx-chev svg{width:18px;height:18px}
.selectx-menu{
  position:absolute;
  inset-inline-start:0;
  inset-inline-end:0;
  top:calc(100% + 8px);
  background: rgba(255,255,255,.98);
  border:1px solid rgba(10,27,44,.12);
  border-radius:16px;
  box-shadow: var(--shadow-md);
  padding:6px;
  max-height:320px;
  overflow:auto;
  z-index:9999;
  display:none;
}
.selectx.open .selectx-menu{display:block}
.selectx-opt{
  width:100%;
  text-align:start;
  padding:10px 12px;
  border-radius:14px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:13px;
  color: var(--text);
}
.selectx-opt:hover{background: rgba(10,27,44,.06)}
.selectx-opt.active{background: rgba(10,27,44,.08);font-weight:800}
.selectx-native{display:none !important}


/* --- Auth field validation (per-field errors) --- */
.auth-row.has-error .input{
  border-color: rgba(239,68,68,.55) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.10);
}
.field-err{
  display:none;
  margin-top:6px;
  font-size:12px;
  color:#ef4444;
}
.auth-row.has-error .field-err{display:block}
.auth-msg{
  margin-top:10px;
  display:none;
  font-size:13px;
}
.auth-msg.error{
  display:block;
  background: rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.22);
  color:#b91c1c;
  padding:10px 12px;
  border-radius:16px;
}

/* ===== AQARSY READY FIX (buttons / readability) ===== */
.btn{
  background: var(--surface);
  color: var(--text);
}
html[data-theme="dark"] .btn{
  background: var(--surface2);
  box-shadow: none;
}
/* Keep gradient on btn-primary even if .btn is defined later */
.btn.btn-primary,
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  color: #fff !important;
  border: none !important;
}
/* Ensure CTA stays readable */
.btn.btn-cta,
.btn-cta{
  background: var(--cta) !important;
  color: #1A1A1A !important;
  border: none !important;
}
/* Ghost buttons: readable text */
.btn.btn-ghost,
.btn-ghost{
  background: rgba(255,255,255,.78) !important;
  color: var(--text) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
}
html[data-theme="dark"] .btn.btn-ghost,
html[data-theme="dark"] .btn-ghost{
  background: var(--surface2) !important;
  border-color: rgba(255,255,255,.14) !important;
}
/* Pills should not inherit odd colors */
.pill{ color: var(--text); }
html[data-theme="dark"] .pill{ color: var(--text); }
