:root{--bg:#f2f3f7;--cd:#fff;--tx:#16162a;--tm:#7c829b;--ac:#5b4cc4;--ab:#eeeaff;--at:#5b4cc4;--gn:#27c281;--gb:#e6f9f0;--rd:#ef4444;--rb:#fee;--brd:#e8e8ee;--inp:#f7f8fa;--bl:#3b82f6;--mo:font-family}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,sans-serif;background:var(--bg);color:var(--tx);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:contain}

/* ANIMATIONS & UTILS */
.fade-in { animation: fadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.slide-up { animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.hover-scale { transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hover-scale:active { transform: scale(0.92) !important; }
@media(hover: hover) and (pointer: fine) {
    .hover-scale:hover { transform: scale(1.03); }
}

.hover-bg { transition: background-color 0.2s ease; }
@media(hover: hover) and (pointer: fine) {
    .hover-bg:hover { background-color: var(--inp) !important; }
}

.rotated { transform: rotate(180deg); }

.pulse-anim { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim {
    0% { box-shadow: 0 0 0 0 rgba(39, 194, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(39, 194, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 194, 129, 0); }
}

/* AUTH */
.auth{display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:20px}
.abox{width:100%;max-width:360px;background:var(--cd);border-radius:24px;padding:40px 32px;box-shadow:0 10px 40px rgba(0,0,0,.08)}
.alogo{text-align:center;margin-bottom:24px}.alogo h1{font-size:1.4rem;margin-top:12px;font-weight:800; letter-spacing:-0.5px}
.sil{width:56px;height:56px;border-radius:16px;background:var(--ac);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:1.4rem;overflow:hidden; box-shadow:0 6px 16px rgba(91,76,196,0.3)}
.sil img{width:100%;height:100%;object-fit:cover}
.asub{text-align:center;font-size:.9rem;color:var(--tm);margin-bottom:16px}
.aerr{background:var(--rb);color:var(--rd);padding:12px 16px;border-radius:12px;font-size:.85rem;margin-bottom:16px;text-align:center; font-weight:500}
.auth form{display:flex;flex-direction:column;gap:12px}
.auth input{padding:16px 18px;border:2px solid var(--brd);border-radius:14px;font-size:1rem;background:var(--inp);outline:none;transition:all .2s; font-weight:500}
.auth input:focus{border-color:var(--ac); background:#fff; box-shadow:0 0 0 4px var(--ab)}

/* BUTTONS */
.b{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:12px 20px;border-radius:12px;font-size:.85rem;font-weight:700;border:none;cursor:pointer;transition:all .2s;touch-action:manipulation}
.bp{background:var(--ac);color:#fff; box-shadow:0 4px 12px rgba(91,76,196,0.3)}.bp:active{background:#4a3db0}
.bo{background:var(--inp);color:var(--tx);border:2px solid var(--brd)}.bo:active{background:#e2e4ea}
.bw{width:100%}
.bs{padding:8px 16px;font-size:.8rem}
.bg{padding:4px 10px;border-radius:8px;font-size:.66rem;font-weight:700;display:inline-flex;align-items:center}
.bg-u{background:var(--ab);color:var(--at)}.bg-o{background:var(--gb);color:var(--gn)}.bg-a{background:#fef3c7;color:#d97706}
.ic{width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;touch-action:manipulation; transition:all 0.15s}
.ic svg{width:16px;height:16px}
.ic.gn{color:var(--gn);background:var(--gb)}.ic.pu{color:var(--ac);background:var(--ab)}.ic.re{color:var(--rd);background:var(--rb)}

/* AVATAR */
.av{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;flex-shrink:0;overflow:hidden}
.av-b{background:var(--ab);color:var(--at)}.av-p{background:var(--ac);color:#fff}
.avimg{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* STATUS DOT */
.sd{width:10px;height:10px;border-radius:50%;flex-shrink:0; border:2px solid #fff; box-sizing:content-box}.sd.on{background:var(--gn)}.sd.off{background:#ccc}

/* CARD ROW */
.cr{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--brd);flex-wrap:nowrap}
.cr:last-child{border-bottom:none}
.ri{flex:1;min-width:0}.rn{font-size:.9rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; color:var(--tx)}
.rs{font-size:.75rem;color:var(--tm);margin-top:2px; font-weight:500}.rm{font-size:.64rem;color:var(--tm)}
.ra{display:flex;align-items:center;gap:6px;flex-shrink:0}

/* SECTIONS */
.st{padding:14px 16px 8px;font-size:.8rem;font-weight:800;color:var(--tm);text-transform:uppercase;letter-spacing:.06em}
.cd{background:var(--cd);border-radius:16px;overflow:hidden;margin:0 12px 12px;box-shadow:0 4px 16px rgba(0,0,0,.03)}
.emp{padding:30px 20px;text-align:center;font-size:.9rem;color:var(--tm); font-weight:500}
.tab{display:none}.tab.a{display:block}
.hid{display:none!important}

/* QUICK FORM */
.qf{display:flex;gap:8px;padding:12px 16px;align-items:center}
.qf input,.qf select{padding:10px 14px;border:1.5px solid var(--brd);border-radius:10px;font-size:.85rem;background:var(--inp);outline:none;flex:1; font-weight:500; transition:border 0.2s}
.qf input:focus,.qf select:focus{border-color:var(--ac); background:#fff}

/* CHAT */
.chb{display:flex;flex-direction:column;height:320px;background:var(--cd);border-radius:16px;margin:0 12px 12px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.04)}
.chm{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch}
.msg-row{display:flex;gap:8px;max-width:85%}
.msg-row.in{align-self:flex-start}.msg-row.out{align-self:flex-end;flex-direction:row-reverse}
.mb{padding:10px 14px;border-radius:16px;font-size:.9rem;line-height:1.45;max-width:100%;word-wrap:break-word; font-weight:500}
.mo{background:var(--ac);color:#fff;border-bottom-right-radius:4px; box-shadow:0 4px 10px rgba(91,76,196,0.2)}
.mi{background:var(--inp);color:var(--tx);border-bottom-left-radius:4px}
.mt{font-size:.65rem;opacity:.7;margin-top:4px; font-weight:600}

/* CHAT INPUT FORM */
.chat-input, .chi {
  display: flex;
  gap: 12px;
  background: var(--cd);
  border-top: 1px solid var(--brd);
  align-items: center;
}
.chat-input { padding: 12px 16px calc(env(safe-area-inset-bottom, 12px) + 12px); }

/* Красивое поле ввода */
.chat-input input[type="text"], .chi input[type="text"] {
  flex: 1;
  padding: 12px 20px;
  border: 1.5px solid var(--brd);
  border-radius: 24px;
  font-size: 0.95rem;
  background: var(--inp);
  color: var(--tx);
  outline: none;
  transition: all 0.2s ease;
  line-height: 1.4;
  font-weight:500;
}
.chat-input input[type="text"]:focus, .chi input[type="text"]:focus {
  border-color: var(--ac);
  background: var(--cd);
  box-shadow: 0 0 0 4px var(--ab);
}

.flb{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;color:var(--tm);flex-shrink:0;transition:all .15s}
.flb:active{background:var(--ab);color:var(--ac);transform:scale(0.9)}
.msg-av{width:28px;height:28px;border-radius:50%;flex-shrink:0;background:var(--ab);color:var(--ac);display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:800;overflow:hidden}
.msg-av img{width:100%;height:100%;object-fit:cover}

/* ATTACHMENTS PREVIEW */
.att-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background: var(--ab);
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--at);
  font-weight: 700;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(91, 76, 196, 0.15);
}
.att-preview img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.att-preview button { background: rgba(239, 68, 68, 0.1); border: none; color: var(--rd); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 50%; transition: transform 0.1s; }
.att-preview button:active { transform: scale(0.85); }

.att{margin-top:6px;max-width:240px}.att img{width:100%;border-radius:10px;cursor:pointer;transition:transform .15s; box-shadow:0 2px 8px rgba(0,0,0,0.1)}.att img:active{transform:scale(.95)}
.att a.file-link{display:flex;align-items:center;gap:6px;padding:8px 12px;background:rgba(0,0,0,.04);border-radius:10px;font-size:.8rem;color:var(--bl);text-decoration:none;word-break:break-all; font-weight:600}

/* LIGHTBOX */
.lbox{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center;cursor:zoom-out;animation:lbin .2s;backdrop-filter:blur(6px)}
@keyframes lbin{from{opacity:0}to{opacity:1}}
.lbox img{max-width:94vw;max-height:92vh;object-fit:contain;border-radius:12px; box-shadow:0 10px 40px rgba(0,0,0,0.5)}
.lbox .lclose{position:absolute;top:env(safe-area-inset-top,16px);right:16px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.2);border:none;color:#fff;font-size:1.4rem;cursor:pointer;display:flex;align-items:center;justify-content:center; backdrop-filter:blur(4px); transition:background 0.2s}
.lbox .lclose:hover{background:rgba(255,255,255,.3)}

/* INCOMING CALL MODAL */
.mbg{position:fixed;inset:0;z-index:1500;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(8px)}
.mbox{background:#fff;border-radius:28px;padding:36px 32px;text-align:center;width:320px;box-shadow:0 25px 80px rgba(0,0,0,.25)}
.mav{width:80px;height:80px;border-radius:50%;background:var(--ac);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:800;margin:0 auto 16px;overflow:hidden; box-shadow:0 10px 20px rgba(91,76,196,0.3)}
.mav img{width:100%;height:100%;object-fit:cover}
.mbox h2{font-size:1.2rem;margin-bottom:6px; font-weight:800}.mbox .sub{font-size:.85rem;color:var(--tm);margin-bottom:24px; font-weight:500}
.mact{display:flex;justify-content:center;gap:24px}
.mr{width:64px;height:64px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation; box-shadow:0 8px 16px rgba(0,0,0,0.15)}
.mr svg{width:28px;height:28px}.mr.ga{background:var(--gn);color:#fff; box-shadow:0 8px 20px rgba(39,194,129,0.4)}.mr.gr{background:var(--rd);color:#fff; box-shadow:0 8px 20px rgba(239,68,68,0.4)}

/* CALL PAGE */
.cp{background:#000;color:#fff;min-height:100dvh;height:100dvh;overflow:hidden;}
.cc{display:block;height:100dvh;position:relative;background:#000;}
.vg { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; overflow: hidden; }
.v-main { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); background: #000; }
.v-main video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.v-pip { position: absolute; bottom: 120px; right: 16px; width: 110px; height: 160px; z-index: 10; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.6); border: 1.5px solid rgba(255,255,255,0.15); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; background: #1a1a2e; }
.v-pip:active { transform: scale(0.95); }
.v-pip video { width: 100%; height: 100%; object-fit: cover; }
.va { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; font-weight: 700; color: rgba(255,255,255,0.5); background: #16162a; }
.v-pip .va { font-size: 1.8rem; }
.vl { position: absolute; bottom: calc(env(safe-area-inset-bottom, 16px) + 110px); left: 16px; font-size: 0.85rem; font-weight: 600; background: rgba(0,0,0,0.5); padding: 6px 12px; border-radius: 10px; backdrop-filter: blur(8px); max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 5; }
.v-pip .vl { display: none; }
.stb { position: absolute; top: calc(env(safe-area-inset-top, 16px) + 20px); left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); padding: 10px 20px; border-radius: 24px; display: flex; align-items: center; gap: 12px; z-index: 20; color: #fff; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.spn{width:18px;height:18px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.tmr{font-family:monospace;font-size:1.05rem;letter-spacing:1px}
.cbar { position: absolute; bottom: calc(env(safe-area-inset-bottom, 16px) + 20px); left: 50%; transform: translateX(-50%); display: flex; justify-content: center; gap: 18px; padding: 14px 28px; background: rgba(30, 30, 46, 0.85); backdrop-filter: blur(16px); border-radius: 36px; z-index: 20; box-shadow: 0 10px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); width: max-content; max-width: 92vw; }
@media(max-width: 400px){ .cbar { gap: 12px; padding: 14px 20px; width: 92%; } }
.cb2{display:flex;flex-direction:column;align-items:center;gap:8px;background:transparent;border:none;color:rgba(255,255,255,.9);cursor:pointer;touch-action:manipulation;transition:transform 0.15s}
.cb2:active{transform:scale(.9)}.cb2.mut{color:var(--rd)}.cb2.act{color:var(--gn)}.cb2.hng{color:var(--rd)}
.cic{width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;transition:background 0.2s; box-shadow:0 4px 10px rgba(0,0,0,0.2)}
.cic svg{width:26px;height:26px}.clb{font-size:.7rem;font-weight:600}
.cb2.hng .cic{background:var(--rd); box-shadow:0 4px 15px rgba(239,68,68,0.4)}
.sovr{position:fixed;inset:0;z-index:50;background:#000;display:flex;align-items:center;justify-content:center}
.sovr video{width:100%;height:100%;object-fit:contain}

/* PULL TO REFRESH */
.ptr{position:fixed;top:0;left:0;right:0;height:60px;display:flex;align-items:center;justify-content:center;z-index:100;pointer-events:none;opacity:0;transition:opacity .2s}
.ptr.show{opacity:1}.ptr svg{width:24px;height:24px;color:var(--ac);animation:sp .8s linear infinite}

/* TEAM TAGS */
.team-tag{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:6px;font-size:.66rem;font-weight:700;background:var(--ab);color:var(--at);margin:2px}
.team-tag.owner{background:var(--gb);color:#007a50}

/* ====== CLIENT LAYOUT ====== */
.client-app{display:flex;flex-direction:column;min-height:100dvh}
.client-top{position:sticky;top:0;z-index:50;background:var(--cd);padding:14px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--brd);box-shadow:0 2px 10px rgba(0,0,0,.03)}
.client-top .sil{width:36px;height:36px;border-radius:12px;font-size:.9rem}
.client-top .title{flex:1;font-size:1.1rem;font-weight:800; letter-spacing:-0.5px}
.client-content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:70px}
.client-nav{position:fixed;bottom:0;left:0;right:0;z-index:50;background:var(--cd);border-top:1px solid var(--brd);display:flex;padding:8px 0 env(safe-area-inset-bottom,8px); box-shadow:0 -2px 10px rgba(0,0,0,0.02)}
.client-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0;border:none;background:transparent;color:var(--tm);font-size:.65rem;font-weight:700;cursor:pointer;touch-action:manipulation; transition:color 0.2s}
.client-nav button svg{width:22px;height:22px}
.client-nav button.a{color:var(--ac)}
.dialog-item{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--brd);cursor:pointer;touch-action:manipulation; transition:background 0.2s}
.dialog-item:active{background:var(--inp)}
.dialog-item .av{width:48px;height:48px;font-size:1rem}
.dialog-info{flex:1;min-width:0}
.dialog-name{font-size:.95rem;font-weight:700}
.dialog-last{font-size:.8rem;color:var(--tm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px; font-weight:500}
.dialog-time{font-size:.65rem;color:var(--tm);flex-shrink:0;align-self:flex-start;margin-top:2px; font-weight:600}

/* Client chat view */
.chat-view{position:fixed;inset:0;z-index:80;background:var(--bg);display:flex;flex-direction:column; animation:slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;}
.chat-header{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--cd);border-bottom:1px solid var(--brd); box-shadow:0 2px 8px rgba(0,0,0,0.03)}
.chat-header .back{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:var(--inp); border-radius:12px; cursor:pointer;color:var(--tx); transition:transform 0.15s}
.chat-header .back:active{transform:scale(0.9)}
.chat-header .back svg{width:18px;height:18px}
.chat-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch}

/* ====== STAFF LAYOUT ====== */
.staff-app{display:flex;height:100dvh;overflow:hidden}
.staff-side{width:260px;background:var(--cd);border-right:1px solid var(--brd);display:flex;flex-direction:column;flex-shrink:0; z-index:10; box-shadow:2px 0 10px rgba(0,0,0,0.02)}
.staff-side-head{padding:20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--brd)}
.staff-side-head .sil{width:40px;height:40px;border-radius:12px}
.staff-side-head span{font-size:1.2rem;font-weight:800; letter-spacing:-0.5px}
.staff-nav{flex:1;overflow-y:auto;padding:12px 10px}
.staff-nav button{width:100%;display:flex;align-items:center;gap:10px;padding:12px 14px;border:none;background:transparent;border-radius:12px;font-size:.85rem;font-weight:600;color:var(--tm);cursor:pointer;text-align:left;transition:all .15s}
.staff-nav button:hover{background:var(--inp); color:var(--tx)}
.staff-nav button.a{background:var(--ab);color:var(--ac);font-weight:700}
.staff-nav button svg{width:18px;height:18px;flex-shrink:0}
.staff-footer{padding:16px;border-top:1px solid var(--brd); background:var(--inp)}
.staff-footer .uf{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.staff-footer .un{font-size:.85rem;font-weight:700}.staff-footer .ur{font-size:.7rem;color:var(--tm); font-weight:500}
.staff-main{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0; background:var(--bg)}
.staff-main .ct{max-width:960px;margin:0 auto;padding:20px}
.share-row{display:flex;gap:6px;align-items:center;padding:6px 16px 12px;flex-wrap:wrap}
.share-row select,.share-row button{padding:6px 10px;font-size:.75rem;border-radius:8px; font-weight:600}
.share-row select{border:1.5px solid var(--brd);background:var(--inp);outline:none; transition:border 0.2s}
.share-row select:focus{border-color:var(--ac)}
.ps-pick{max-width:90px;padding:4px 6px;font-size:.7rem;border-radius:8px;border:1.5px solid var(--brd);background:var(--inp); font-weight:600; cursor:pointer}

/* ====== RESPONSIVE ====== */
@media(max-width:768px){
  .staff-side{display:none}
  .staff-app{flex-direction:column}
  .staff-main{flex:1}
  .staff-mob-nav{display:flex !important}
  .staff-main .ct{padding:12px 0 80px}
}
.staff-mob-nav{display:none;position:fixed;bottom:0;left:0;right:0;z-index:50;background:var(--cd);border-top:1px solid var(--brd);padding:6px 0 env(safe-area-inset-bottom,6px); box-shadow:0 -2px 10px rgba(0,0,0,0.03)}
.staff-mob-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;border:none;background:transparent;color:var(--tm);font-size:.6rem;font-weight:700;cursor:pointer; transition:color 0.2s}
.staff-mob-nav button svg{width:20px;height:20px}
.staff-mob-nav button.a{color:var(--ac)}

/* AUDIO ONLY MODE */
body.audio-only .cp, body.audio-only .vg, body.audio-only .v-main { background: transparent !important; }
body.audio-only .cc { background: linear-gradient(135deg, #16162a, #2a2a4a); }
body.audio-only .v-pip { display: none !important; }
body.audio-only .v-main video { opacity: 0; }

body.audio-only .va {
  display: flex !important;
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ac), #8b5cf6);
  font-size: 5rem;
  box-shadow: 0 10px 40px rgba(91, 76, 196, 0.4);
  animation: pulse-ring 2.5s infinite;
  z-index: 10;
}
body.audio-only .vl {
  bottom: auto;
  top: calc(40% + 120px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(255,255,255,0.95);
  font-weight:800;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(91, 76, 196, 0.5); }
  70% { box-shadow: 0 0 0 50px rgba(91, 76, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 76, 196, 0); }
}

/* iOS PWA PROMPT */
.ios-pwa-prompt {
  position: fixed;
  bottom: 25px;
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10001;
  border: 1px solid rgba(0,0,0,0.06);
  animation: iosSlideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ios-pwa-prompt img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ios-pwa-prompt .pwa-text {
  flex: 1;
  font-size: 0.95rem;
  color: #1c1c1e;
  line-height: 1.4;
  font-weight:500;
}
.ios-pwa-prompt .pwa-text b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight:800;
}
.ios-pwa-prompt .pwa-close {
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 18px;
  width:32px; height:32px; border-radius:50%;
  color: #8e8e93;
  display:flex; align-items:center; justify-content:center;
  cursor: pointer;
  transition:background 0.2s;
}
.ios-pwa-prompt .pwa-close:active { background: rgba(0,0,0,0.1); }
.ios-icon-share {
  display: inline-block;
  width: 20px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23007AFF"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"/></svg>') no-browser no-repeat center;
  vertical-align: middle;
  margin: 0 4px;
}
@keyframes iosSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}