:root{--bg:#101528;--surface:#202642;--accent:#ffc7a0;--hot:#ff6f8c;--pale:#f8f7ff;--muted:#aeb4cb;--ring:#58627e;color-scheme:dark}
*{box-sizing:border-box}html,body{padding:0;margin:0;min-height:100%;background:#101528;color:var(--pale);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}body{background:radial-gradient(ellipse at 0% 10%,#45233d 0,transparent 35%),radial-gradient(ellipse at 100% 70%,#223d41 0,transparent 44%),linear-gradient(130deg,#141626,#11172c 65%,#1d1834)}button,input{font-family:inherit}button{cursor:pointer}button:focus-visible{outline:2px solid #ffd2a3;outline-offset:3px}.shell{max-width:520px;min-height:100dvh;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 18px env(safe-area-inset-bottom)}.header{display:flex;align-items:center;gap:11px;padding:17px 0 11px}.mark{width:46px;height:46px;border-radius:16px;background:linear-gradient(145deg,#ee6b85,#fbaf85);box-shadow:0 6px 20px #f36f8066;display:grid;place-items:center;color:white;font-size:36px;font-weight:bold;transform:rotate(-8deg)}.mark-heart{transform:rotate(8deg);margin-top:-5px}.brand{flex:1}.brandname{font-size:25px;line-height:1.05;font-weight:850;letter-spacing:-.4px}.brandname span{color:#ffd4a4}.eyebrow{font-size:10px;letter-spacing:.1px;color:#b5bdd0;margin-top:7px}.icon-button{border:1px solid #ffffff25;background:#ffffff0c;border-radius:14px;width:42px;height:42px;color:white;font-size:27px}.location-line{display:flex;align-items:center;gap:8px;color:#cdd2e0;font-size:11px;padding:8px 13px;border-radius:12px;background:#ffffff0a;border:1px solid #ffffff10}.status-dot{background:#7cdaa1;box-shadow:0 0 8px #69d69a88;border-radius:50%;height:7px;width:7px}.status-spacer{flex:1}.safe-caption{color:#b9c0ce}.roulette-head{display:flex;align-items:center;justify-content:space-between;margin:19px 2px 14px}.overline{font-size:11px;color:#fdbdaa}.roulette-head h1{font-size:20px;letter-spacing:-.45px;margin:5px 0 0;font-weight:750}.roulette-head h1 span{color:var(--hot)}.roulette-symbol{font-size:40px;background:linear-gradient(140deg,#ffa484,#ff6d85);background-clip:text;color:transparent}.card-wrap{position:relative;width:100%;height:min(57vh,540px);min-height:320px;max-height:565px}.profile-card{position:absolute;inset:0;overflow:hidden;border-radius:25px;background:linear-gradient(140deg,#2a375d,#7c4c65 58%,#c7857a);border:1px solid #ffffff30;box-shadow:0 18px 60px #0306148c;touch-action:pan-y;user-select:none;transform-origin:50% 75%;transition:transform .25s ease,opacity .25s ease;will-change:transform}.profile-card.dragging{transition:none}.card-photo{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.portrait-fallback{width:100%;height:100%;background:radial-gradient(circle at 30% 20%,#a86a9a,transparent 50%),linear-gradient(145deg,#5b668b 0%,#38335c 45%,#261e3e);display:grid;place-items:center;font-size:104px;color:#ffffff50}.card-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0004,transparent 25%,transparent 44%,#0a1127e6 88%)}.image-meter{position:absolute;display:flex;gap:5px;inset:13px 12px auto}.image-meter span{height:4px;flex:1;border-radius:3px;background:#ffffff64}.image-meter span.current{background:white}.tap-left,.tap-right{position:absolute;top:10%;bottom:28%;width:28%;border:none;background:transparent;opacity:0}.tap-left{right:0}.tap-right{left:0}.image-count{position:absolute;top:29px;left:15px;font-size:11px;color:#fff;background:#111b2e75;border-radius:20px;padding:5px 9px}.card-data{position:absolute;bottom:0;left:0;right:0;padding:20px 19px 19px}.name-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.name-line h2{font-size:31px;font-weight:850;margin:0;line-height:1.15;max-width:90%;overflow-wrap:anywhere}.checked{font-size:10px;background:#63ae9a;padding:5px 8px;border-radius:20px}.place{color:#f3d2c8;font-size:13px;margin:8px 0}.about{font-size:13px;line-height:1.65;color:#f4edf2;max-height:70px;overflow:hidden}.chips{display:flex;gap:5px;flex-wrap:wrap}.chip{font-size:10px;color:#fce9e8;background:#ffffff29;border:1px solid #ffffff22;border-radius:14px;padding:5px 9px;white-space:nowrap}.swipe-stamp{position:absolute;top:80px;padding:9px 16px;font-size:22px;font-weight:900;border:4px solid;border-radius:9px;opacity:0;pointer-events:none}.stamp-like{left:17px;color:#89ffb6;border-color:#89ffb6;transform:rotate(-17deg)}.stamp-pass{right:17px;color:#ffaaa9;border-color:#ffaaa9;transform:rotate(17deg)}.placeholder-inner{height:100%;display:grid;place-content:center;text-align:center;gap:12px;color:#fffcc9;padding:22px}.placeholder-inner p{margin:0;font-size:16px;line-height:1.7}.placeholder-icon{font-size:82px;line-height:1}.swipe-hint{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:10px;color:#bfc5d0;opacity:0;pointer-events:none}.swipe-hint span{padding:0 5px}.action-row{display:flex;justify-content:center;gap:20px;margin:16px auto 6px}.action{display:flex;align-items:center;flex-direction:column;gap:4px;width:76px;height:70px;border-radius:20px;background:linear-gradient(135deg,#29314a,#20263d);border:1px solid #ffffff2b;box-shadow:0 10px 20px #0003;color:#fff}.action b{font-size:28px;line-height:35px}.action small{font-size:10px;color:#ced0de}.button-skip b{color:#ff97a1}.button-like{background:linear-gradient(145deg,#d95f78,#e99691);box-shadow:0 9px 27px #fa6c7960}.button-like b{color:white}.button-like small{color:white}.button-photo b{color:#d1bdeb}.action:disabled{opacity:.45}.tip{text-align:center;font-size:11px;color:#aeb5cc;line-height:1.5;margin:12px auto 16px}.nav{margin-top:auto;position:sticky;bottom:0;display:flex;justify-content:space-around;padding:10px 0 12px;border-top:1px solid #ffffff18;background:linear-gradient(90deg,#13172b,#18182a)}.nav-item{border:none;background:none;color:#9ba5bd;display:flex;align-items:center;flex-direction:column;gap:2px;min-width:65px}.nav-item span{font-size:25px;line-height:26px}.nav-item small{font-size:11px}.nav-item.active{color:#ffacba}.veil{position:fixed;inset:0;z-index:20;background:#03050bb9;display:flex;align-items:flex-end;justify-content:center}.hidden{display:none!important}.sheet{width:min(100%,520px);max-height:96dvh;overflow-y:auto;background:linear-gradient(180deg,#2a304c,#151a2b);border-radius:25px 25px 0 0;padding:12px 22px max(28px,env(safe-area-inset-bottom));box-shadow:0 -10px 45px #0007}.sheet-handle{height:5px;width:42px;border-radius:15px;background:#65718b;margin:0 auto 15px}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet h2{font-size:21px}.exit-sheet{border:none;background:#ffffff1f;border-radius:50%;color:#fff;font-size:18px;width:35px;height:35px}.sheet label{display:block;font-weight:bold;font-size:13px;color:#dddced;margin:16px 0 11px}.choice-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice-row button,.radius-grid button{border:1px solid #ffffff26;background:#1b2138;color:#d7d9e9;padding:13px 4px;border-radius:14px;font-size:13px}.choice-row button.selected,.radius-grid button.selected{background:#6f344f;border-color:#e28ba0;color:white;font-weight:bold}.age-row{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.age-row div{display:flex;align-items:center;justify-content:space-around;padding:5px 10px;border:1px solid #ffffff33;border-radius:12px;background:#1b2033}.age-row span{font-size:12px;color:#aab2c9}.age-row input{width:80px;height:39px;text-align:center;border:0;background:transparent;color:#fff;font-size:19px;outline:0}.radius-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.privacy-note{color:#b8c1d6;font-size:11px;line-height:1.8}.save-filters{background:linear-gradient(120deg,#f27a94,#ffba9d);color:#1e1829;font-size:15px;font-weight:800;border:0;border-radius:14px;width:100%;padding:15px}.toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%) translateY(15px);color:white;background:#323951f5;padding:12px 18px;border-radius:14px;border:1px solid #ffffff2e;z-index:40;opacity:0;transition:.2s;max-width:85%;text-align:center;font-size:13px;pointer-events:none}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-height:770px){.card-wrap{height:48vh;min-height:290px}.header{padding-top:10px}.roulette-head{margin:10px 2px}.action-row{margin-top:8px}.tip{margin:7px auto}}@media(min-width:521px){.shell{border-left:1px solid #ffffff14;border-right:1px solid #ffffff14}}

/* v4: accessible in-app matches, profile and privacy */
.v4-sheet{min-height:55dvh;max-height:87dvh}
.v4-content{padding:12px 0 24px}
.v4-content h3{font-size:18px;margin:18px 0 10px}
.v4-paragraph{font-size:14px;color:#d4d9e7;line-height:1.9}
.v4-button{display:block;width:100%;padding:14px;margin:11px 0;border:0;border-radius:15px;background:#20855f;color:#fff;font-size:15px;font-weight:750}
.v4-secondary{background:#343e57}
.v4-match{padding:16px;margin:12px 0;border-radius:17px;background:#ffffff10;border:1px solid #ffffff18}
.v4-match strong{font-size:17px}

/* ───────────────────────────────────────────────────────────────────
   WESAL SYRIA MINI APP 4.1  |  صورة الخلفية المحبوبة
   Background stays subtle. All functional text and images sit on high-contrast
   surfaces. Relative asset paths work locally in PREVIEW.html and on HTTPS.
   ─────────────────────────────────────────────────────────────────── */
:root {
  --bg: #081c2e;
  --surface: #132d3c;
  --accent: #5ee7ad;
  --hot: #f9a7b8;
  --pale: #f5fff9;
  --muted: #bed0d0;
  --ring: #6ac6aa;
}
html,body {min-height:100%;background-color:#081a2a;color:var(--pale)}
body {
  isolation:isolate;
  background:#081827;
  font-synthesis:none;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content:"";
  position:fixed;
  z-index:0;
  inset:0;
  pointer-events:none;
  background-image:url("wesal_background.webp");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:.76;
}
body::after {
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(5,19,33,.63) 0%,rgba(5,23,34,.78) 15%,rgba(5,25,37,.74) 58%,rgba(4,16,30,.69) 100%);
}
.shell {
  z-index:1;
  max-width:520px;
  padding-inline:clamp(12px,3.8vw,20px);
  position:relative;
  background:linear-gradient(180deg,rgba(5,25,34,.14),rgba(1,18,31,.08));
  min-height:100dvh;
}
.header {
  gap:12px;
  margin-top:8px;
  padding:10px 10px 12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:23px;
  background:rgba(8,39,46,.66);
  box-shadow:0 12px 30px rgba(0,0,0,.16);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
.mark {
  width:46px;height:46px;flex-shrink:0;
  background:linear-gradient(140deg,#2cbb83,#106c6c);
  box-shadow:0 3px 18px rgba(25,207,145,.33),inset 0 1px 0 #ffffff55;
  border:1px solid #8ef1ce75;
  transform:none;
}
.mark-heart{transform:none;margin-top:-3px;font-size:31px;text-shadow:0 2px 14px #0b553b}
.brandname{font-size:23px;line-height:1.1;color:#fff;font-weight:900}
.brandname span{color:#80ebc1}
.eyebrow{font-size:11px;color:#d3eeeb;margin-top:6px}
.icon-button {
  width:43px;height:43px;flex-shrink:0;
  border-radius:15px;
  border:1px solid rgba(158,235,202,.35);
  color:#dcfff1;
  background:rgba(36,111,99,.38);
  font-size:27px;
}
.location-line {
  background:rgba(4,34,49,.76);
  border:1px solid rgba(172,233,205,.18);
  color:#e6f8f4;
  margin-top:9px;
  padding:10px 13px;
  font-size:11px;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.safe-caption{color:#baf1dd}
.status-dot{background:#66f6b0;box-shadow:0 0 12px #56eca7}
.roulette-head {margin:19px 2px 12px;min-height:55px}
.overline{font-size:11px;color:#aff6d5;font-weight:650}
.roulette-head h1 {font-size:21px;color:white;text-shadow:0 1px 9px #071b30;margin-top:6px}
.roulette-head h1 span{color:#ffa7bd}
.roulette-symbol{font-size:32px;color:#aaf2d3;background:none;filter:drop-shadow(0 0 8px #31a47f)}
.card-wrap {
  height:min(52dvh,510px);
  min-height:275px;
  max-height:530px;
  filter:drop-shadow(0 10px 24px #0006);
}
.profile-card{
  border:1.5px solid rgba(203,255,226,.54);
  border-radius:26px;
  background:linear-gradient(140deg,#224c5d,#6c6e71 66%,#e4a8a1);
  box-shadow:0 18px 42px #010d1bd0,inset 0 0 0 1px #ffffff23;
}
.portrait-fallback {
  background:radial-gradient(ellipse at 50% 18%,rgba(173,225,203,.27),transparent 45%),
             linear-gradient(145deg,#1d6a68 0%,#164559 51%,#142c49);
  color:#d6fff0;
}
.card-shade{background:linear-gradient(180deg,#03151d99 0%,transparent 24%,transparent 38%,#041321e3 88%)}
.card-data {padding:24px 20px 21px;background:linear-gradient(0deg,rgba(5,22,28,.2),transparent)}
.name-line h2 {font-size:30px;text-shadow:0 2px 7px #0008}
.checked{background:#227c62;border:1px solid #79ecc66e;color:#fff}
.place{color:#daf4e4;font-size:13px}
.chip{background:#0f484e9c;border-color:#aeffe733;color:#f9fff9;font-size:11px}
.about{color:#f3faf8}
.image-meter span.current{background:#eafff7;box-shadow:0 0 7px #77ffc2}
.image-count {background:#001921a8}
.placeholder-inner{color:#e9fff7}
.placeholder-icon{color:#a5ffd2;text-shadow:0 5px 28px #4fd59e}
.swipe-hint{
  opacity:1;
  position:absolute;bottom:8px;left:50%;right:auto;
  transform:translateX(-50%);
  width:fit-content;max-width:90%;white-space:nowrap;
  border-radius:20px;padding:5px 10px;
  font-size:10px;color:#e6fff3;
  background:rgba(0,31,43,.82);
  border:1px solid #ddffe92c;
  text-shadow:none;
  backdrop-filter:blur(7px);
}
.action-row{margin:14px auto 8px;gap:clamp(11px,5vw,27px)}
.action {
  width:clamp(74px,21vw,91px);
  height:69px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(16,55,61,.87);
  box-shadow:0 7px 22px #00151dc0,inset 0 1px 0 #ffffff29;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.action b{font-size:27px}
.action small{font-size:11px;color:#e1eeeb;font-weight:650}
.button-like{
  background:linear-gradient(145deg,#29aa76,#127e71);
  box-shadow:0 8px 25px #136b5fb8, inset 0 1px 0 #eaffff55;
  border-color:#adffdb9a;
}
.button-skip b{color:#ffb5bd}
.button-photo b{color:#d2fff1}
.tip{
  font-size:11px;
  line-height:1.6;
  margin:9px 3px 13px;
  padding:9px 10px;
  border-radius:12px;
  color:#d7f1e5;
  background:rgba(4,27,40,.66);
  border:1px solid #ecfff11c;
}
.nav {
  z-index:4;
  width:100%;
  position:sticky;
  bottom:env(safe-area-inset-bottom);
  margin-top:auto;
  margin-bottom:8px;
  padding:10px 5px;
  border-radius:19px;
  border:1px solid #ffffff24;
  background:rgba(6,35,43,.91);
  box-shadow:0 7px 35px #00101d9e;
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
}
.nav-item {min-width:0;flex:1;color:#cfdddb;gap:4px}
.nav-item span {font-size:23px;line-height:25px}
.nav-item small {font-size:11px;font-weight:650}
.nav-item.active {color:#81f1bc;text-shadow:0 0 11px #2bb67c}
.sheet {
  background:linear-gradient(175deg,rgba(20,62,71,.98),rgba(9,26,44,.99));
  border:1px solid #bcfff33a;
  border-radius:25px 25px 0 0;
  color:#fff;
  box-shadow:0 -15px 48px #000b;
}
.sheet h2 {color:#f5fff9}
.sheet label{color:#e0f8ea}
.choice-row button,.radius-grid button,.age-row div {
  background:rgba(7,37,52,.8);
  border-color:#c6ffe82c;
  color:#e5f5f0;
}
.choice-row button.selected,.radius-grid button.selected {
  background:#1c806e;
  border-color:#a7ffe5;
  color:white;
}
.save-filters,.v4-button {
  background:linear-gradient(120deg,#3bc88c,#2e9a88);
  color:#08282c;
  border:1px solid #9bffe081;
  font-weight:850;
}
.v4-secondary {background:rgba(29,61,74,.95);color:#effff7}
.v4-match {background:#0e3946ba;border:1px solid #87ebca48}
.v4-paragraph {color:#dcefea}
.privacy-note {color:#c9e3dc}
button:focus-visible {outline:3px solid #9cf7ce;outline-offset:3px}
@media(max-height:770px){
  .card-wrap{height:min(45dvh,420px);min-height:260px}
  .header{margin-top:3px;padding:7px 10px}
  .roulette-head{margin:8px 2px 9px;min-height:45px}
  .action-row{margin:8px auto 3px}
  .tip{margin:5px 3px 8px}
}
@media(max-height:670px){
  .card-wrap{height:40dvh;min-height:230px}
  .eyebrow{font-size:10px}
  .nav{padding:7px 4px;margin-bottom:3px}
}
@media(max-width:350px){
  .brandname{font-size:20px}
  .eyebrow{font-size:9px}
  .safe-caption{display:none}
  .roulette-head h1{font-size:18px}
  .action{width:73px}
  .swipe-hint{font-size:9px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
