/* RatFi rating card (customer rating page + homepage demo) */
.rt-screen{position:fixed;inset:0;min-height:100vh;min-height:100dvh;background:linear-gradient(-45deg,#0f172a,#1e293b,#172554,#0f172a);background-size:400% 400%;animation:rtBG 15s ease infinite;display:flex;justify-content:center;align-items:center;padding:16px;overflow-y:auto;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
@keyframes rtBG{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.rt-card{background:rgba(255,255,255,.96);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:#1e293b;width:100%;max-width:550px;padding:30px 24px 22px;border-radius:32px;box-shadow:0 40px 80px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.4) inset,0 10px 30px rgba(59,130,246,.15);position:relative;display:flex;flex-direction:column;animation:rtIn .7s cubic-bezier(.16,1,.3,1) both;margin:auto}
.rt-card *{box-sizing:border-box}
@keyframes rtIn{0%{opacity:0;transform:translateY(40px) scale(.9)}100%{opacity:1;transform:none}}
.rt-card::before{content:'';position:absolute;top:0;left:0;right:0;height:6px;background:linear-gradient(90deg,#3b82f6,#10b981,#f59e0b,#3b82f6,#8b5cf6);background-size:300% 100%;animation:rtLine 4s linear infinite;border-radius:32px 32px 0 0}
@keyframes rtLine{0%{background-position:0% 50%}100%{background-position:150% 50%}}
.rt-head{text-align:center;margin-bottom:12px}
.rt-logo{width:64px;height:64px;border-radius:18px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#e0e7ff);color:#1d4ed8;font-weight:800;font-size:22px;overflow:hidden;box-shadow:0 8px 20px rgba(37,99,235,.18)}
.rt-logo img{width:100%;height:100%;object-fit:cover}
.rt-pre{font-size:12px;text-transform:uppercase;letter-spacing:2px;color:#475569;font-weight:800;display:inline-block;background:#f1f5f9;padding:4px 12px;border-radius:20px}
.rt-title{font-size:34px;font-weight:900;margin:8px 0;letter-spacing:-1px;line-height:1.15;background:linear-gradient(135deg,#0f172a 0%,#2563eb 50%,#6366f1 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#1e3a8a;filter:drop-shadow(0 4px 8px rgba(37,99,235,.25));word-break:break-word}
.rt-sub{font-size:14px;color:#475569;margin:0;font-weight:500}
.rt-stars{display:flex;justify-content:center;gap:12px;margin:12px 0 16px}
.rt-star{font-size:45px;color:#cbd5e1;cursor:pointer;background:none;border:0;padding:0;line-height:1;text-shadow:0 4px 6px rgba(0,0,0,.05);transition:transform .3s cubic-bezier(.34,1.56,.64,1),color .3s,text-shadow .3s;-webkit-touch-callout:none;min-width:44px;min-height:44px}
.rt-star:focus-visible{outline:3px solid #3b82f6;outline-offset:4px;border-radius:8px}
.rt-star:active{transform:scale(.8)}
@media (hover:hover){.rt-star:hover{transform:scale(1.15) translateY(-5px);color:#fcd34d;text-shadow:0 10px 15px rgba(251,191,36,.4)}}
.rt-star.on{color:#f59e0b;text-shadow:0 8px 20px rgba(245,158,11,.5);animation:rtBounce .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes rtBounce{0%{transform:scale(1)}50%{transform:scale(1.3) rotate(15deg)}100%{transform:scale(1)}}
.rt-msg{text-align:center;font-size:14px;font-weight:700;color:#1d4ed8;margin-bottom:16px;min-height:20px;background:linear-gradient(135deg,#eff6ff,#e0e7ff);padding:8px 16px;border-radius:20px;box-shadow:0 4px 10px rgba(37,99,235,.1)}
.rt-chips{display:none;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:16px;animation:rtFade .4s ease}
.rt-chips.show{display:flex}
.rt-chip{background:#fff;border:1.5px solid #cbd5e1;color:#334155;padding:8px 14px;border-radius:20px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;box-shadow:0 2px 5px rgba(0,0,0,.02);transition:all .2s cubic-bezier(.34,1.56,.64,1);text-align:left}
.rt-chip:hover,.rt-chip.on{background:#2563eb;color:#fff;border-color:#2563eb;transform:translateY(-2px);box-shadow:0 4px 12px rgba(59,130,246,.25)}
.rt-group{margin-bottom:14px}
.rt-group label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px;color:#475569}
.rt-text{width:100%;padding:14px 16px;border:2px solid #cbd5e1;border-radius:16px;font-size:15px;outline:none;background:#f8fafc;color:#0f172a;transition:all .3s;font-family:inherit;resize:none;height:84px;-webkit-appearance:none}
.rt-text:focus{border-color:#3b82f6;background:#fff;box-shadow:0 0 0 4px rgba(59,130,246,.15)}
.rt-text::placeholder{color:#94a3b8}
.rt-actions{margin-top:6px;text-align:center;display:flex;flex-direction:column;gap:10px}
.rt-btn{display:none;width:100%;padding:16px 20px;border-radius:16px;font-size:16px;font-weight:700;text-decoration:none;text-align:center;cursor:pointer;border:none;transition:all .3s cubic-bezier(.34,1.56,.64,1);position:relative;overflow:hidden;font-family:inherit}
.rt-btn::after{content:'';position:absolute;top:0;left:-100%;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transform:skewX(-20deg);transition:.5s}
.rt-btn:hover::after{left:150%}
.rt-btn:hover{transform:translateY(-3px)}
.rt-btn:active{transform:scale(.96) translateY(2px)}
.rt-btn.show{display:block;animation:rtPop .5s cubic-bezier(.34,1.56,.64,1) both}
.rt-wa{background:linear-gradient(135deg,#22c55e,#15803d);color:#fff;box-shadow:0 10px 25px rgba(34,197,94,.4)}
.rt-google{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;box-shadow:0 10px 25px rgba(37,99,235,.4)}
.rt-alt{display:none;background:none;border:0;color:#475569;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;min-height:36px}
.rt-alt.show{display:inline-block}
@keyframes rtPop{0%{opacity:0;transform:scale(.85) translateY(15px)}100%{opacity:1;transform:none}}
@keyframes rtFade{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.rt-toast{text-align:center;font-size:13px;color:#047857;background:#d1fae5;padding:8px;border-radius:8px;font-weight:700;display:none;animation:rtFade .4s ease}
.rt-toast.show{display:block}
.rt-powered{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;font-size:12px;color:#64748b;text-decoration:none}
.rt-powered img{height:24px;width:auto}
.rt-state{color:#e2e8f0;text-align:center;font-size:16px;max-width:420px}
@media (max-width:480px){
  .rt-card{padding:24px 18px 18px;border-radius:24px}
  .rt-pre{font-size:10px;padding:3px 10px}
  .rt-title{font-size:28px;margin:6px 0}
  .rt-sub{font-size:13px}
  .rt-star{font-size:38px}
  .rt-stars{gap:8px}
  .rt-text{height:72px}
  .rt-btn{padding:14px 16px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){.rt-screen,.rt-card,.rt-card::before,.rt-star.on,.rt-btn.show{animation:none}}
/* Homepage demo: same card, not full screen */
.rt-demo{position:relative;inset:auto;min-height:0;border-radius:36px;padding:22px;box-shadow:0 30px 70px rgba(0,0,0,.45)}
.rt-demo .rt-card{max-width:400px;padding:26px 20px 18px}
.rt-demo .rt-title{font-size:28px}
.rt-demo .rt-star{font-size:38px}
.rt-demo .rt-stars{gap:8px}

/* ---- Homepage demo inside a phone frame ---- */
.phone{--pw:320px;position:relative;width:var(--pw);height:calc(var(--pw) * 2.1);flex:none;padding:11px;border-radius:52px;background:linear-gradient(145deg,#2b2f3a,#0b0d12 40%,#1c1f27);box-shadow:0 0 0 2px #3a3f4b inset,0 0 0 1px #000,0 40px 80px rgba(0,0,0,.55),0 12px 24px rgba(0,0,0,.35)}
.phone-key{position:absolute;width:4px;border-radius:2px;background:#2a2e38}
.phone-key.k1{left:-3px;top:110px;height:30px}
.phone-key.k2{left:-3px;top:156px;height:54px}
.phone-key.k3{right:-3px;top:140px;height:78px}
.phone-screen{position:relative;height:100%;border-radius:42px;overflow:hidden;background:#0f172a;display:flex;flex-direction:column}
.phone-status{position:relative;display:flex;align-items:center;justify-content:space-between;padding:12px 24px 6px 28px;color:#fff;font:600 13px/1 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;flex:none;z-index:2}
.phone-island{position:absolute;left:50%;top:9px;transform:translateX(-50%);width:92px;height:26px;border-radius:20px;background:#000}
.phone-icons{display:flex;align-items:center;gap:5px}
.phone-icons i{display:block;background:#fff}
.phone-icons .sig{width:15px;height:10px;clip-path:polygon(0 100%,25% 100%,25% 70%,0 70%,0 100%,35% 100%,35% 50%,60% 50%,60% 100%,70% 100%,70% 25%,95% 25%,95% 100%);background:#fff}
.phone-icons .wifi{width:14px;height:10px;border-radius:14px 14px 0 0;clip-path:polygon(50% 100%,0 20%,100% 20%)}
.phone-icons .bat{width:22px;height:11px;border-radius:3px;background:transparent;border:1.5px solid rgba(255,255,255,.9);position:relative}
.phone-icons .bat::after{content:'';position:absolute;inset:1.5px 4px 1.5px 1.5px;background:#fff;border-radius:1px}
.phone-url{margin:4px 12px 8px;padding:7px 12px;border-radius:12px;background:rgba(255,255,255,.12);color:#e2e8f0;font:500 12px/1 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;display:flex;align-items:center;justify-content:center;gap:6px;flex:none;letter-spacing:.1px}
.phone-view{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.phone-view::-webkit-scrollbar{display:none}
.phone .rt-demo{position:relative;inset:auto;min-height:100%;border-radius:0;padding:10px 10px 28px;box-shadow:none;align-items:flex-start}
.phone .rt-card{max-width:none;padding:18px 14px 14px;border-radius:22px;box-shadow:0 20px 40px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.4) inset}
.phone .rt-card::before{height:5px;border-radius:22px 22px 0 0}
.phone .rt-logo{width:46px;height:46px;border-radius:14px;font-size:17px;margin-bottom:8px}
.phone .rt-pre{font-size:9px;letter-spacing:1.5px;padding:3px 9px}
.phone .rt-title{font-size:23px;margin:5px 0}
.phone .rt-sub{font-size:12px}
.phone .rt-stars{gap:4px;margin:8px 0 10px}
.phone .rt-star{font-size:31px;min-width:40px;min-height:40px}
.phone .rt-msg{font-size:12px;padding:7px 10px;margin-bottom:10px}
.phone .rt-chips{gap:6px;margin-bottom:10px}
.phone .rt-chip{font-size:11px;padding:6px 10px}
.phone .rt-group label{font-size:10px;margin-bottom:6px}
.phone .rt-text{height:60px;font-size:13px;padding:10px 12px;border-radius:12px}
.phone .rt-btn{padding:12px 14px;font-size:14px;border-radius:13px}
.phone .rt-toast{font-size:11px}
.phone-home{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:110px;height:4px;border-radius:4px;background:rgba(255,255,255,.75);z-index:2;pointer-events:none}
@media (max-width:480px){.phone{--pw:276px;padding:9px;border-radius:46px}.phone-screen{border-radius:38px}.phone .rt-title{font-size:21px}.phone .rt-star{font-size:28px;min-width:36px}}
