@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
    :root { color-scheme: dark; --pink:#ee3877; --pink-light:#ff5991; --glass:rgba(30,16,23,.79); --line:rgba(255,255,255,.13); --green:#28c76f; }
    *, *::before, *::after { box-sizing: border-box; }
    html,body { margin:0; min-height:100%; background:#090809; color:#fff; font-family:'Cairo',Tahoma,Arial,sans-serif; }
    button { font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
    button:focus-visible,input:focus-visible { outline:3px solid #fff; outline-offset:4px; }
    .app { position:relative; isolation:isolate; width:100%; max-width:440px; min-height:100svh; margin:auto; overflow:hidden; background:#241219; display:flex; flex-direction:column; }
    .app { background:#241219 url('../media/background.webp') center 35% / cover no-repeat; }
    .app::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(7,4,8,.58) 0%,rgba(9,5,9,.27) 30%,rgba(14,6,13,.58) 67%,rgba(8,4,8,.94) 100%); }
    .exit { position:absolute; top:calc(env(safe-area-inset-top,0px) + 15px); left:18px; z-index:5; width:40px;height:40px;border:0;background:rgba(0,0,0,.27);border-radius:50%; color:#fff; display:grid;place-items:center;font-size:26px;line-height:1; }
    .screen { min-height:100svh; width:100%; display:flex;flex-direction:column;align-items:center; padding:calc(env(safe-area-inset-top,0px) + 62px) 20px calc(env(safe-area-inset-bottom,0px) + 34px); animation:reveal .38s ease both; }
    .screen[hidden] { display:none !important; }
    .call-header { display:flex;align-items:center;flex-direction:column;text-align:center; margin-top:clamp(20px,7vh,82px); }
    .call-eyebrow { background:rgba(255,255,255,.095);border:1px solid rgba(255,255,255,.13); padding:4px 13px; border-radius:50px;font-size:12px;font-weight:700;color:#f4dce5; }
    .avatar-wrap { width:144px;height:144px;position:relative;display:grid;place-items:center;margin:30px 0 19px; }
    .avatar-wrap::before,.avatar-wrap::after { content:"";position:absolute;inset:-10px;border:1.5px solid rgba(245,76,137,.55);border-radius:50%;animation:echo 2.5s ease-out infinite; }
    .avatar-wrap::after { animation-delay:1.25s; }
    .avatar { width:138px;height:138px;object-fit:cover;object-position:center 30%;border-radius:50%;border:3px solid var(--pink);box-shadow:0 0 0 7px rgba(234,45,110,.14),0 12px 35px rgba(0,0,0,.5); }
    h1 { margin:6px 0 0;font-size:clamp(26px,7vw,34px);font-weight:900;line-height:1.6;text-shadow:0 3px 18px #0009; }
    .subline { font-size:15px;color:#e4ccd5;margin:1px 0 0;font-weight:600; }
    .ringing { display:flex; align-items:center;gap:6px; direction:ltr; margin-top:19px;height:24px; }
    .ringing i { display:block;height:5px;width:5px;border-radius:10px;background:var(--pink-light);animation:bars 1s ease-in-out infinite; }
    .ringing i:nth-child(2){animation-delay:.15s}.ringing i:nth-child(3){animation-delay:.3s}.ringing i:nth-child(4){animation-delay:.45s}.ringing i:nth-child(5){animation-delay:.6s}
    .call-actions { margin-top:auto;width:100%;display:flex;align-items:flex-start;justify-content:space-evenly;gap:20px;padding-bottom:clamp(15px,3vh,35px); }
    .action { background:none;border:0;color:#fff;display:flex;flex-direction:column;gap:12px;align-items:center;min-width:110px;font-size:14px;font-weight:700; }
    .action-icon { width:80px;height:80px;border-radius:50%;display:grid;place-items:center;box-shadow:0 10px 28px #0008;transition:transform .2s; }
    .action:active .action-icon { transform:scale(.94); }
    .action-icon svg{ width:35px;height:35px;fill:#fff; }
    .decline .action-icon { background:#ed4654; }
    .decline svg{transform:rotate(135deg)}
    .answer .action-icon { background:var(--green);animation:answerPulse 2s ease-in-out infinite; }
    .disclaimer { font-size:11px;color:#cbbac2;text-align:center;margin:0;opacity:.78; }
    .voice-screen { justify-content:flex-end; }
    .voice-panel { position:relative;width:100%;padding:55px 19px 27px;background:linear-gradient(150deg,rgba(42,22,32,.92),rgba(20,11,18,.93));border:1px solid var(--line);border-radius:28px;backdrop-filter:blur(18px);box-shadow:0 18px 50px rgba(0,0,0,.55);text-align:center;margin-bottom:15px; }
    .voice-panel .mini-avatar { position:absolute;top:-49px;left:50%;transform:translateX(-50%);width:96px;height:96px;object-fit:cover;border:2px solid var(--pink);border-radius:50%;box-shadow:0 0 0 7px rgba(238,56,119,.12); }
    .voice-panel h2 { font-size:25px;margin:5px 0 0;font-weight:900;line-height:1.65; }
    .voice-panel p { color:#decbd3;font-size:13px;margin:0 0 19px; }
    .note { padding:13px 12px;background:rgba(255,255,255,.075);border-radius:18px;display:flex;gap:10px;align-items:center;text-align:right; }
    .play { width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;background:var(--pink);border:0;border-radius:50%;color:#fff;box-shadow:0 5px 16px #ee38774a; }
    .play svg { width:21px;height:21px;fill:currentColor; }
    .note-meta { flex:1;min-width:0; }
    .note-title {font-size:12px;font-weight:800; margin-bottom:6px;}
    .seek-row { display:flex;direction:ltr;align-items:center;gap:7px; }
    .seek { -webkit-appearance:none;appearance:none;width:100%;height:5px;background:rgba(255,255,255,.23);border-radius:10px;cursor:pointer;accent-color:var(--pink);outline-offset:4px; }
    .seek::-webkit-slider-thumb { -webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--pink-light); }
    .seek::-moz-range-thumb {width:12px;height:12px;border:0;border-radius:50%;background:var(--pink-light);}
    .time { direction:ltr;font-family:Arial,sans-serif;font-size:11px;color:#f6dae3;min-width:32px; font-variant-numeric:tabular-nums; }
    .voice-hint { display:block;color:#f7a7c4;font-size:11px;line-height:1.6;margin:11px 2px 0;min-height:18px; }
    .again { margin:18px auto 0;color:#f7d4df;background:transparent;border:1px solid rgba(255,255,255,.26);border-radius:50px;padding:8px 23px;font-size:12px;font-weight:800; }
    .fallback {margin:auto;text-align:center;width:100%;padding:26px 19px;background:rgba(22,10,17,.82);border:1px solid var(--line);border-radius:24px;backdrop-filter:blur(12px);}
    .fallback h2{font-size:25px;margin:4px 0}.fallback p{color:#decbd3;font-size:14px}.fallback button {margin-top:15px;background:var(--pink);border:0;color:white;border-radius:999px;padding:12px 30px;font-weight:800;}

    /* The redirect CTA is always visible directly below the voice player. */
    .register-cta { display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:12px 0 0;border:0;border-radius:999px;padding:14px 18px;background:linear-gradient(100deg,#f83d80,#df2d70);text-decoration:none;color:#fff;font-weight:900;font-size:16px;box-shadow:0 9px 28px rgba(238,56,119,.33);animation:ctaReveal .45s cubic-bezier(.2,1.25,.3,1) both,ctaBreathe 2.8s 1s ease-in-out infinite;}
    .register-cta svg { width:19px;height:19px;stroke:currentColor;stroke-width:2;fill:none; }
    @keyframes ctaReveal {from{opacity:0;transform:translateY(18px) scale(.93)}to{opacity:1;transform:translateY(0) scale(1)}}
    @keyframes ctaBreathe {0%,100%{box-shadow:0 9px 28px rgba(238,56,119,.33)}50%{box-shadow:0 9px 31px rgba(238,56,119,.64)}}
    @keyframes echo { 0% {transform:scale(.88);opacity:.85} 90%,100% {transform:scale(1.52);opacity:0} }
    @keyframes bars {0%,100%{height:5px;opacity:.5}50%{height:24px;opacity:1} }
    @keyframes answerPulse {0%,100%{box-shadow:0 0 0 0 #28c76f60,0 10px 28px #0007}55%{box-shadow:0 0 0 12px #28c76f00,0 10px 28px #0007} }
    @keyframes reveal {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
    @media(min-width:600px) { body{background:#120b10;} .app{min-height:100vh;box-shadow:0 0 0 1px #ffffff20,0 0 110px #000; } .screen{min-height:100vh;} }
    @media(max-height:650px) { .call-header{margin-top:0}.avatar-wrap{width:120px;height:120px;margin:15px 0 10px}.avatar{width:112px;height:112px}.call-actions{padding-bottom:0}.action-icon{width:65px;height:65px}.voice-panel{margin-bottom:0} }
    @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;}}
    /* For phones and embedded Messenger / in-app browsers */
    .register-cta:focus-visible { outline:3px solid white; outline-offset:3px; }
    @media (max-width:360px) {.call-header{margin-top:10px}.voice-panel h2{font-size:21px}.voice-panel{padding-left:12px;padding-right:12px}}
