:root{--gold:#C9A45C;--ink:#080808;--bg:#efeae2;--out:#d9fdd3;--in:#fff;--text:#111b21;--muted:#667781}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Hebrew","Arial Hebrew",Arial,sans-serif;background:#1b1b1b;color:var(--text);-webkit-text-size-adjust:100%}
.phone{max-width:480px;margin:0 auto;height:100dvh;height:100vh;height:100dvh;display:flex;flex-direction:column;background:var(--bg);position:relative;overflow:hidden}
.top{background:var(--ink);color:#fff;display:flex;align-items:center;gap:10px;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));border-bottom:1px solid #2a2418;flex:0 0 auto}
.avatar{width:40px;height:40px;border-radius:50%;border:1px solid var(--gold);object-fit:cover}
.who{flex:1;min-width:0}
.name{font-weight:600;font-size:17px;color:var(--gold);letter-spacing:.5px}
.badge{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--gold);color:var(--ink);font-size:10px;vertical-align:middle;margin-inline-start:2px}
.status{font-size:12.5px;color:#bdb6a6;margin-top:1px}
.restart{background:none;border:1px solid #3a3222;color:var(--gold);width:36px;height:36px;border-radius:50%;font-size:19px;cursor:pointer}
.chat{flex:1 1 auto;overflow-y:auto;padding:10px 10px 14px;-webkit-overflow-scrolling:touch;
 background-color:var(--bg);background-image:radial-gradient(rgba(201,164,92,.10) 1px,transparent 1.2px);background-size:18px 18px}
.day{text-align:center;margin:4px 0 8px}.day span{background:#fff;color:var(--muted);font-size:12px;padding:4px 10px;border-radius:8px;box-shadow:0 1px .5px rgba(0,0,0,.13)}
.enc{background:#ffeecd;color:#54656f;font-size:12px;line-height:1.45;text-align:center;border-radius:8px;padding:6px 10px;margin:0 auto 10px;max-width:92%}
.row{display:flex;margin:2px 0}
.row.in{justify-content:flex-start}  /* RTL: start = right */
.row.out{justify-content:flex-end}
.msg{max-width:84%;padding:6px 9px 18px;border-radius:8px;font-size:15.5px;line-height:1.42;position:relative;white-space:pre-wrap;word-wrap:break-word;box-shadow:0 1px .5px rgba(0,0,0,.13);min-width:70px}
.in .msg{background:var(--in);border-top-right-radius:0}
.out .msg{background:var(--out);border-top-left-radius:0}
.row.first{margin-top:8px}
.row.in:not(.first) .msg{border-top-right-radius:8px}
.row.out:not(.first) .msg{border-top-left-radius:8px}
.msg .t{position:absolute;bottom:3px;left:8px;font-size:11px;color:var(--muted)}
.out .msg .t::after{content:" ✓✓";color:#53bdeb}
.msg a{color:#027eb5;text-decoration:none}
.opts{margin-top:6px;border-top:1px solid #eef0f1;padding-top:4px}
.opts div{padding:1px 0}
.opts b{color:#8a6d2f;font-weight:700}
.typing .msg{padding:10px 14px;min-width:0}
.dots{display:inline-flex;gap:4px}.dots i{width:7px;height:7px;border-radius:50%;background:#9aa3a8;animation:b 1.2s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes b{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.chips{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;padding:8px 8px 2px;background:var(--bg);max-height:38vh;overflow-y:auto}
.chips:empty{display:none}
.chip{background:#fff;border:1px solid #d7c39a;color:#1f1a10;border-radius:18px;padding:8px 12px;font-size:14.5px;cursor:pointer;line-height:1.2;text-align:right}
.chip b{color:#8a6d2f;margin-inline-end:4px}
.chip:active{background:#f4ead3}
.composer{flex:0 0 auto;display:flex;gap:6px;padding:6px 8px;padding-bottom:max(8px,env(safe-area-inset-bottom));background:var(--bg)}
.composer input{flex:1;border:none;border-radius:22px;padding:11px 14px;font-size:16px;background:#fff;outline:none;font-family:inherit;min-width:0}
.send{width:44px;height:44px;border-radius:50%;border:none;background:#00a884;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
@media (min-width:520px){body{padding:16px 0}.phone{height:calc(100dvh - 32px);border-radius:18px;box-shadow:0 10px 40px rgba(0,0,0,.5)}}

.row.img .msg{padding:3px 3px 20px;width:min(72%,260px);white-space:normal}
.row.img .pic{display:block;border-radius:6px;overflow:hidden;background:#0b0b0b;aspect-ratio:1/1}
.row.img .pic img{display:block;width:100%;height:100%;object-fit:cover}
.row.img .cap{padding:5px 6px 0;font-size:14.5px;line-height:1.35}

.cta{margin:8px 0 6px;display:flex;flex-direction:column;align-items:center;gap:8px}
.wa{display:flex;align-items:center;justify-content:center;gap:10px;width:min(92%,360px);background:#25D366;color:#fff;text-decoration:none;font-weight:700;font-size:17.5px;padding:15px 18px;border-radius:30px;box-shadow:0 3px 10px rgba(37,211,102,.35),0 1px 2px rgba(0,0,0,.15)}
.wa:active{background:#1ebe5a;transform:translateY(1px)}
.wa:focus-visible,.tel:focus-visible,.chip:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.tel{color:#3b3b3b;background:#fff;text-decoration:none;font-size:14.5px;padding:7px 14px;border-radius:18px;border:1px solid #d7c39a}

/* v2: bigger, calmer, max 4 big buttons */
.hero{background:var(--ink);margin:-10px -10px 12px;padding:34px 18px 26px;text-align:center;border-bottom:1px solid #2a2418}
.hero img{width:min(78%,320px);height:auto;display:block;margin:0 auto}
.hero .tag{color:var(--gold);font-size:25px;font-weight:600;margin-top:18px;letter-spacing:.3px}
.hero .sub{color:#d9d2c3;font-size:15.5px;line-height:1.55;margin-top:8px}
.enc{font-size:13px}
.msg{font-size:17.5px;line-height:1.5;max-width:88%}
.msg .t{font-size:11.5px}
.chips{flex-direction:column;flex-wrap:nowrap;gap:8px;padding:10px 12px 4px;max-height:46vh}
.chip{width:100%;font-size:18px;font-weight:600;padding:13px 16px;border-radius:14px;border:1.5px solid var(--gold);background:#fff;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.08);color:#1a1408}
.chip:first-child{background:var(--ink);color:var(--gold);border-color:var(--ink)}
.chip:active{background:#f4ead3}.chip:first-child:active{background:#222}
.row.img .msg{width:min(86%,330px)}
.row.img .pic{display:block;width:100%;border:0;padding:0;cursor:pointer}
.row.img .cap{font-size:16.5px;font-weight:600}
.status{font-size:13.5px}
.name{font-size:19px}

/* v2.1: 360° spins in galleries, own-photo link */
.row.img .pic{position:relative}
.row.img .pic .spinv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s;pointer-events:none;background:transparent}
.row.img .pic.spinning .spinv{opacity:1}
.row.img .pic .b360{position:absolute;top:8px;left:8px;background:rgba(8,8,8,.72);color:var(--gold);border:1px solid rgba(201,164,92,.6);font-size:12.5px;font-weight:600;padding:3px 8px;border-radius:12px;opacity:0;transition:opacity .35s;pointer-events:none;direction:ltr}
.row.img .pic.spinning .b360{opacity:1}
.chip2{width:100%;background:transparent;border:1.5px dashed #b99a5a;color:#5b4718;border-radius:14px;padding:10px 14px;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;text-align:center}
.chip2:active{background:#f4ead3}
.chip2:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

.ccard{align-items:stretch}
.cform{background:#fff;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 1px .5px rgba(0,0,0,.13);margin:0 4px}
.cform label{display:flex;flex-direction:column;gap:5px;font-size:15px;font-weight:600;color:#3b3b3b}
.cform input{border:1.5px solid #d8cfbd;border-radius:12px;padding:12px;font-size:17px;font-family:inherit;outline:none;background:#fff;min-width:0}
.cform input[dir=ltr]{text-align:right}
.cform input:focus{border-color:var(--gold)}
.cform input.bad{border-color:#c0563c}
.ferr{color:#a8432c;font-size:15px;min-height:0}
.ferr:empty{display:none}
.fbtn{background:var(--ink);color:var(--gold);border:none;border-radius:14px;padding:13px;font-size:17px;font-weight:700;font-family:inherit;cursor:pointer}
.fbtn:active{transform:translateY(1px)}

/* Compact Minimalist 2-Card Gallery Bubble (v2.3) */
.row.img--grid .bub { max-width: 94%; padding: 8px; }
.gal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gal-item { display: flex; flex-direction: column; gap: 5px; background: #0c0c0e; border: 1px solid rgba(201,164,92,0.2); border-radius: 10px; overflow: hidden; padding-bottom: 6px; }
.gal-item .pic { width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #09090b; display: block; cursor: pointer; }
.gal-item .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item .cap { font-size: 12px; line-height: 1.3; text-align: center; padding: 0 6px; color: #f0ece3; }

/* === KÖNIG Dark Minimalist Pass (v2.4) === */
:root {
  --bg: #08080a;
  --chat-bg: #0b0b0d;
  --bub-in: #151519;
  --bub-out: #221c12;
  --ink: #f3efe6;
  --muted: #9a9488;
  --gold: #c9a45c;
  --line: rgba(201, 164, 92, 0.24);
}
html, body { background: #08080a !important; color: var(--ink) !important; }
.phone { background: var(--chat-bg) !important; box-shadow: none !important; }
.top { background: #08080a !important; border-bottom: 1px solid var(--line) !important; }
.top .name { color: var(--gold) !important; letter-spacing: .12em; }
.top .status { color: var(--muted) !important; font-size: 12px !important; }
.chat { background: var(--chat-bg) !important; background-image: none !important; padding-top: 8px !important; }
.hero.hero--compact { padding: 14px 16px 12px !important; background: transparent !important; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 10px !important; text-align: center; }
.hero.hero--compact img { width: 104px !important; height: auto !important; margin: 0 auto 6px !important; }
.hero.hero--compact .sub { font-size: 12px !important; color: var(--muted) !important; margin: 0 !important; letter-spacing: .02em; }
.row.in .bub { background: var(--bub-in) !important; color: var(--ink) !important; border: 1px solid rgba(255,255,255,.07) !important; box-shadow: none !important; }
.row.out .bub { background: var(--bub-out) !important; color: #f6ead2 !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.bub .t { color: rgba(255,255,255,.35) !important; }
.chips { background: #0b0b0d !important; border-top: 1px solid rgba(255,255,255,.07) !important; padding: 10px 12px !important; gap: 7px !important; }
.chips button, .chip { background: #141418 !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 12px !important; font-size: 14px !important; padding: 11px 14px !important; font-weight: 500 !important; }
.chips button:first-child { background: var(--gold) !important; color: #09090b !important; border-color: var(--gold) !important; font-weight: 700 !important; }
.chips button.own-photo, .chips button[data-own] { background: transparent !important; border-style: dashed !important; border-color: rgba(201,164,92,.35) !important; color: #d6c5a3 !important; }
.bar, .composer { background: #08080a !important; border-top: 1px solid rgba(255,255,255,.07) !important; }
.bar input, .composer input { background: #151519 !important; color: var(--ink) !important; border: 1px solid rgba(255,255,255,.09) !important; }
.bar input::placeholder, .composer input::placeholder { color: var(--muted) !important; }
.gal-item { background: #0d0d10 !important; border: 1px solid var(--line) !important; }
.gal-item .cap { color: #f2eee6 !important; font-weight: 500; }
.wa-card, .wa-btn { background: #1c7c48 !important; color: #fff !important; border-radius: 12px !important; }

/* === Fix Dark Bubble Contrast & Form Surfaces (v2.5) === */
:root { --in: #17171c; --out: #251f14; --text: #f3efe6; --muted: #9a9488; --bg: #0b0b0d; }
.in .msg { background: #17171c !important; color: #f3efe6 !important; border: 1px solid rgba(255,255,255,.08) !important; box-shadow: none !important; font-size: 15.5px !important; }
.out .msg { background: #251f14 !important; color: #f7ebd2 !important; border: 1px solid rgba(201,164,92,.35) !important; box-shadow: none !important; font-size: 15.5px !important; }
.msg .t { color: rgba(255,255,255,.42) !important; }
.row.img--grid .msg { width: min(94%, 360px) !important; max-width: 94% !important; padding: 8px 8px 22px !important; }
.gal-item .cap { font-size: 13px !important; padding: 4px 6px 2px !important; }
.typing .msg { background: #17171c !important; border: 1px solid rgba(255,255,255,.08) !important; }
.cform { background: #141418 !important; border: 1px solid rgba(201,164,92,.28) !important; color: #f3efe6 !important; }
.cform input { background: #0c0c0f !important; color: #f3efe6 !important; border-color: rgba(255,255,255,.16) !important; }
.fbtn { background: #c9a45c !important; color: #09090b !important; }
.tel { background: #17171c !important; color: #f3efe6 !important; border: 1px solid rgba(201,164,92,.3) !important; }
