:root{--g:#8BED02;--gd:#6bc200;--navy:#0B1A30}

/* Notification badge */
.wa-notif{position:absolute;top:-7px;right:-7px;width:22px;height:22px;background:#ef4444;color:#fff;border-radius:50%;font-size:12px;font-weight:800;display:none;align-items:center;justify-content:center;border:2px solid #fff;animation:notif-pop .35s cubic-bezier(.36,.07,.19,.97) forwards}
.wa-notif.show{display:flex}
@keyframes notif-pop{0%{transform:scale(0)}70%{transform:scale(1.3)}100%{transform:scale(1)}}

/* Overlay & modal */
.spop-overlay{position:fixed;inset:0;background:rgba(7,14,26,.82);backdrop-filter:blur(5px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;pointer-events:none;transition:opacity .28s}
.spop-overlay.show{opacity:1;pointer-events:all}
.spop-modal{background:#fff;border-radius:24px;padding:0;max-width:400px;width:100%;text-align:center;transform:translateY(20px) scale(.96);transition:transform .28s;box-shadow:0 32px 80px rgba(0,0,0,.3);overflow:hidden;position:relative}
.spop-overlay.show .spop-modal{transform:translateY(0) scale(1)}

/* Top section */
.spop-top{background:var(--navy);padding:28px 28px 24px;position:relative}
.spop-close-x{position:absolute;top:14px;right:16px;background:rgba(255,255,255,.12);border:none;color:#fff;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border-radius:50%;font-size:14px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;transition:background .2s}
.spop-close-x:hover{background:rgba(255,255,255,.22)}
.spop-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(139,237,2,.15);border:1px solid rgba(139,237,2,.35);border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700;color:var(--g);margin-bottom:14px;letter-spacing:.3px}
.spop-badge::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--g);animation:spop-blink 1.4s infinite}
@keyframes spop-blink{0%,100%{opacity:1}50%{opacity:.3}}
.spop-logo{height:32px;width:auto;margin:0 auto 16px;filter:brightness(0) invert(1)}
.spop-title{font-size:22px;font-weight:800;color:#fff;line-height:1.25;margin-bottom:0}
.spop-title span{color:var(--g);position:relative;display:inline-block}
.spop-title span::after{content:'';position:absolute;bottom:-3px;left:0;right:0;height:2px;background:var(--g);border-radius:2px;animation:spop-ul 1.8s ease-in-out infinite}
@keyframes spop-ul{0%,100%{opacity:1;transform:scaleX(1)}50%{opacity:.3;transform:scaleX(.6)}}

/* Bottom section */
.spop-bottom{padding:24px 28px 28px}
.spop-ticks{color:#34B7F1;font-size:10px;font-weight:700;margin-left:3px}
.spop-hours{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:20px}
.spop-hour{text-align:center}
.spop-hour-val{font-size:15px;font-weight:800;color:var(--navy);white-space:nowrap}
.spop-hour-lbl{font-size:11px;color:#999;margin-top:1px}
.spop-divider{width:1px;height:28px;background:#e5e7eb}

/* WhatsApp chat */
.spop-chat{display:block;border-radius:16px;overflow:hidden;margin-bottom:14px;box-shadow:0 4px 20px rgba(0,0,0,.15);text-decoration:none;transition:filter .2s}
.spop-chat:hover{filter:brightness(1.03)}
.spop-chat-hdr{background:#075E54;padding:10px 14px;display:flex;align-items:center;gap:10px}
.spop-chat-av{width:40px;height:40px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}
.spop-chat-av img{width:100%;height:100%;object-fit:cover}
.spop-chat-info{flex:1;min-width:0;text-align:left}
.spop-chat-name{font-size:14px;font-weight:700;color:#fff;line-height:1.1}
.spop-chat-status{font-size:11px;color:rgba(255,255,255,.6);margin-top:1px}
.spop-chat-hdr-ic{display:flex;gap:18px;align-items:center}
.spop-chat-hdr-ic svg{width:20px;height:20px;fill:rgba(255,255,255,.75)}
.spop-chat-body{background:#e5ddd5 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5b9ad' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");padding:12px 14px 10px}
.spop-chat-bubble{background:#fff;border-radius:0 10px 10px 10px;padding:8px 10px 22px;display:inline-block;max-width:90%;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.spop-typing{display:flex;align-items:center;gap:4px;padding:2px 0;height:20px}
.spop-typing span{width:7px;height:7px;background:#aaa;border-radius:50%;animation:spop-dot 1s infinite ease-in-out}
.spop-typing span:nth-child(2){animation-delay:.2s}
.spop-typing span:nth-child(3){animation-delay:.4s}
@keyframes spop-dot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-5px);opacity:1}}
.spop-wa-msg{font-size:13.5px;color:#111;line-height:1.4;display:none;text-align:left}
.spop-wa-msg.show{display:block}
.spop-bubble-time{position:absolute;bottom:5px;right:8px;font-size:10px;color:#aaa;display:none}
.spop-wa-msg.show ~ .spop-bubble-time{display:block}
.spop-chat-inp{background:#f0f2f5;padding:8px 10px;display:flex;align-items:center;gap:8px}
.spop-chat-inp-emoji{font-size:20px;flex-shrink:0;line-height:1}
.spop-chat-inp-field{flex:1;background:#fff;border-radius:20px;padding:8px 14px;font-size:13px;color:#aaa;font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spop-chat-inp-send{width:40px;height:40px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.spop-chat-inp-send svg{fill:#fff;width:18px;height:18px;margin-left:2px}

/* Exit overlay */
.spop-exit{position:absolute;inset:0;background:var(--navy);border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 28px;opacity:0;pointer-events:none;transition:opacity .3s,transform .3s;transform:scale(.96);z-index:20}
.spop-exit.show{opacity:1;pointer-events:all;transform:scale(1)}
.spop-exit-flag{font-size:52px;margin-bottom:12px;line-height:1}
.spop-exit-title{font-size:20px;font-weight:800;color:#fff;margin-bottom:6px;line-height:1.2}
.spop-exit-sub{font-size:13px;color:rgba(255,255,255,.55);margin-bottom:24px}
.spop-exit-btn{display:block;width:100%;background:var(--g);color:var(--navy);text-decoration:none;border-radius:12px;padding:15px 24px;font-size:15px;font-weight:800;text-align:center;margin-bottom:14px;transition:filter .2s}
.spop-exit-btn:hover{filter:brightness(1.08)}
.spop-exit-skip{background:none;border:none;color:rgba(255,255,255,.35);font-size:12px;cursor:pointer;transition:color .2s}
.spop-exit-skip:hover{color:rgba(255,255,255,.7)}

/* Trust section */
.spop-trust{max-height:0;overflow:hidden;transition:max-height .65s cubic-bezier(.4,0,.2,1),opacity .5s,border-top-color .5s;opacity:0;background:linear-gradient(180deg,#f8fafc 0%,#f0f4f8 100%);border-top:1px solid transparent;border-radius:0 0 24px 24px}
.spop-trust.reveal{max-height:260px;opacity:1;border-top-color:#e2e8f0}
.spop-trust-rating{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 0 10px;border-bottom:1px solid #e8edf2}
.spop-stars{display:flex;gap:2px}
.spop-stars svg{width:14px;height:14px;fill:#FBBC04}
.spop-rating-val{font-size:14px;font-weight:800;color:var(--navy)}
.spop-rating-sep{color:#ccc;font-size:12px}
.spop-rating-src{display:flex;align-items:center;gap:4px;font-size:11px;color:#888;font-weight:600}
.spop-rating-src svg{width:12px;height:12px}
.spop-trust-row{display:flex;align-items:center;padding:0 20px;gap:0}
.spop-trust-stat{text-align:center;flex:0 0 64px}
.spop-trust-num{font-size:18px;font-weight:900;color:var(--navy);line-height:1;letter-spacing:-.02em}
.spop-trust-lbl{font-size:9px;color:#aaa;font-weight:700;text-transform:uppercase;letter-spacing:.4px;margin-top:3px}
.spop-trust-vdiv{width:1px;height:36px;background:#dde3ea;flex-shrink:0}
.spop-logo-stage{position:relative;flex:1;height:82px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0 12px}
.stage-logo{position:absolute;width:calc(100% - 24px);height:auto;max-height:64px;object-fit:contain;opacity:0;transform:scale(.78);transition:opacity .4s ease,transform .4s ease;pointer-events:none}
.stage-logo.active{opacity:1;transform:scale(1)}
.stage-logo.out{opacity:0;transform:scale(1.08)}
.spop-trust-ft{font-size:11px;font-weight:700;color:#64748b;text-align:center;padding:8px 0 13px;border-top:1px solid #e8edf2;letter-spacing:.1px}
.spop-trust-ft::before{content:'✓  ';color:var(--g);font-size:12px}

/* Corner mode — desktop popup near floating WA button */
@media(min-width:601px){
  .spop-overlay.spop-corner{align-items:flex-end;justify-content:flex-end;padding:0 24px 110px 24px;background:transparent;backdrop-filter:none;pointer-events:none}
  .spop-overlay.spop-corner .spop-modal{width:400px;max-width:calc(100vw - 48px);pointer-events:all;transform-origin:bottom right;box-shadow:0 16px 60px rgba(0,0,0,.35)}
  .spop-overlay.spop-corner.show .spop-modal{transform:translateY(0) scale(1)}
}
