:root{--td-pink:#ff5d8f;--td-gold:#ffd66b;--td-ink:#09080b}
body.td-open{overflow:hidden!important}
.td-modal,.td-chat-modal{position:fixed;z-index:2147483645;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:18px;background:rgba(0,0,0,.7);backdrop-filter:blur(9px)}
.td-modal[hidden],.td-chat-modal[hidden]{display:none!important}
.td-sheet,.td-chat-sheet{position:relative;width:min(520px,100%);max-height:min(880px,calc(100dvh - 28px));overflow:auto;border:1px solid rgba(255,255,255,.13);border-radius:28px;background:linear-gradient(155deg,#1b1016,#08090a 72%);color:#fff;box-shadow:0 30px 100px rgba(0,0,0,.62);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.td-sheet{padding:25px}
.td-close{position:absolute;right:15px;top:14px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:27px;line-height:1}
.td-sheet-head{display:flex;align-items:center;gap:13px;padding-right:38px}
.td-sheet-head>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#ff477e,#ff9cba);font-size:25px;box-shadow:0 0 26px rgba(255,71,126,.3)}
.td-sheet-head small{display:block;color:#ff9cba;font-size:9px;font-weight:850;letter-spacing:1.8px}
.td-sheet-head h2{margin:2px 0 0;font-size:25px}
.td-lead{margin:17px 0 20px;color:rgba(255,255,255,.68);font-size:13px;line-height:1.45}
.td-form{display:grid;gap:13px}
.td-form[hidden]{display:none!important}
.td-form label>span{display:block;margin:0 0 6px;font-size:11px;font-weight:750;color:rgba(255,255,255,.78)}
.td-form label>span i{font-style:normal;font-weight:500;opacity:.55}
.td-form input:not([type=checkbox]):not([type=file]),.td-form textarea{width:100%;border:1px solid rgba(255,255,255,.13);border-radius:13px;background:rgba(255,255,255,.06);color:#fff;padding:12px 13px;font:inherit;outline:none}
.td-form textarea{resize:vertical}
.td-form input:focus,.td-form textarea:focus{border-color:rgba(255,93,143,.72);box-shadow:0 0 0 3px rgba(255,93,143,.1)}
.td-file{position:relative;display:block;border:1px dashed rgba(255,255,255,.22);border-radius:16px;padding:13px}
.td-file input{position:absolute;opacity:0;pointer-events:none}
.td-file b{display:inline-block;padding:9px 13px;border-radius:999px;background:rgba(255,93,143,.16);color:#ff9cba;font-size:12px;cursor:pointer}
.td-file small{display:block;margin-top:7px;color:rgba(255,255,255,.5);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.td-check{display:flex;align-items:center;gap:9px}
.td-check input{width:18px;height:18px;accent-color:var(--td-pink)}
.td-check span{margin:0!important}
.td-safety{margin:0;padding:10px 12px;border-radius:12px;background:rgba(255,214,107,.08);color:rgba(255,231,165,.8);font-size:10px;line-height:1.4}
.td-submit{width:100%;padding:14px 18px;border:0;border-radius:999px;background:linear-gradient(135deg,#ff477e,#ff8fb3);color:#fff;font-size:14px;font-weight:850;box-shadow:0 12px 30px rgba(255,71,126,.22)}
.td-submit:disabled{opacity:.55}
.td-status{min-height:18px;text-align:center;color:#ffb4ca;font-size:12px}
.td-status strong{display:block;color:#8dffb1}
.td-status a{display:inline-block;margin-top:7px;color:#fff}
.td-upload-success[hidden]{display:none!important}
.td-upload-success{position:relative;min-height:510px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:44px 18px 28px;text-align:center;overflow:hidden}
.td-upload-success:before{content:"";position:absolute;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(255,71,126,.24),rgba(255,71,126,0) 68%);animation:tdSuccessGlow 2.4s ease-in-out infinite}
.td-upload-success>*{position:relative;z-index:1}
.td-success-hearts{position:relative;width:132px;height:118px;margin-bottom:18px}
.td-success-hearts i{position:absolute;display:grid;place-items:center;border-radius:50%;font-style:normal;color:#fff;background:linear-gradient(145deg,#ff356f,#ff9fbd);box-shadow:0 15px 45px rgba(255,53,111,.38)}
.td-success-hearts i:nth-child(1){left:31px;top:9px;width:72px;height:72px;font-size:36px;animation:tdHeartMain 1.7s ease-in-out infinite}
.td-success-hearts i:nth-child(2){left:2px;top:67px;width:38px;height:38px;font-size:18px;animation:tdHeartFloat 1.8s .15s ease-in-out infinite}
.td-success-hearts i:nth-child(3){right:0;top:58px;width:45px;height:45px;font-size:21px;animation:tdHeartFloat 2s .45s ease-in-out infinite}
.td-upload-success small{color:#ff9cba;font-size:10px;font-weight:900;letter-spacing:2.2px}
.td-upload-success h2{margin:10px 0 8px;font-size:34px;line-height:1.05}
.td-upload-success p{max-width:340px;margin:0;color:#fff;font-size:17px;font-weight:750;line-height:1.4}
.td-upload-success>span{max-width:320px;margin:12px 0 24px;color:rgba(255,255,255,.58);font-size:12px;line-height:1.5}
.td-success-done{width:min(300px,100%);padding:14px;border:0;border-radius:999px;background:linear-gradient(135deg,#ff477e,#ff8fb3);color:#fff;font-weight:850;box-shadow:0 14px 34px rgba(255,71,126,.25)}
.td-upload-success>a{margin-top:15px;color:rgba(255,255,255,.68);font-size:12px}
.td-upload-success:not(.is-showing){opacity:0;transform:scale(.96)}
.td-upload-success.is-showing{opacity:1;transform:scale(1);transition:opacity .35s ease,transform .5s cubic-bezier(.2,.8,.2,1)}
@keyframes tdSuccessGlow{50%{transform:scale(1.12);opacity:.72}}
@keyframes tdHeartMain{50%{transform:scale(1.1) rotate(-3deg)}}
@keyframes tdHeartFloat{50%{transform:translateY(-8px) rotate(6deg)}}
.td-promo-card{display:grid!important;place-items:center!important;box-sizing:border-box!important;width:100%!important;padding:24px!important;background:radial-gradient(circle at 50% 28%,rgba(255,93,143,.27),transparent 40%),linear-gradient(155deg,#1b0911,#050706 72%)!important}
.td-promo-inner{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;box-sizing:border-box!important;width:min(360px,calc(100% - 18px));max-width:100%!important;margin-left:auto!important;margin-right:auto!important;padding:31px 23px;text-align:center;border:1px solid rgba(255,255,255,.13);border-radius:28px;background:rgba(255,255,255,.055);color:#fff;box-shadow:0 25px 70px rgba(0,0,0,.38);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.td-promo-heart{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 14px;border-radius:50%;background:linear-gradient(145deg,#ff477e,#ff9cba);font-size:31px}
.td-promo-inner>small{color:#ff9cba;font-size:9px;font-weight:850;letter-spacing:2px}
.td-promo-inner h2{margin:10px 0 9px;font-size:27px}
.td-promo-inner p{margin:0 auto 20px;max-width:300px;color:rgba(255,255,255,.7);font-size:13px;line-height:1.5}
.td-promo-inner button{width:100%;padding:13px;border:0;border-radius:999px;background:linear-gradient(135deg,#ff477e,#ff8fb3);color:#fff;font-weight:850}
.td-promo-inner a{display:inline-block;margin-top:13px;color:rgba(255,255,255,.68);font-size:11px}
.td-chat-sheet{height:min(720px,calc(100dvh - 28px));display:flex;flex-direction:column;overflow:hidden}
.td-chat-head{display:flex;align-items:center;gap:10px;padding:14px;border-bottom:1px solid rgba(255,255,255,.1)}
.td-chat-head img{width:44px;height:44px;object-fit:contain}
.td-chat-head>div{min-width:0;flex:1}
.td-chat-head strong,.td-chat-head span{display:block}
.td-chat-head strong{font-size:14px}
.td-chat-head span{margin-top:2px;color:rgba(255,255,255,.58);font-size:9px}
.td-chat-head button{border:0;background:transparent;color:#fff}
.td-chat-close{width:36px;height:36px;font-size:26px}
.td-chat-back{width:28px;font-size:30px}
.td-chat-body{flex:1;overflow:auto;padding:14px;background:radial-gradient(circle at 50% 0,rgba(255,93,143,.07),transparent 40%)}
.td-chat-empty{display:grid;place-items:center;height:100%;min-height:180px;color:rgba(255,255,255,.55);font-size:12px;text-align:center}
.td-chat-messages{display:flex;flex-direction:column;gap:9px}
.td-chat-message{align-self:flex-start;max-width:82%}
.td-chat-message.is-mine{align-self:flex-end}
.td-chat-message span{display:block;padding:10px 12px;border-radius:16px 16px 16px 5px;background:rgba(255,255,255,.1);font-size:13px;line-height:1.4}
.td-chat-message.is-mine span{border-radius:16px 16px 5px 16px;background:linear-gradient(135deg,#ff477e,#d94274)}
.td-chat-message small{display:block;margin:3px 5px;color:rgba(255,255,255,.38);font-size:8px}
.td-chat-message.is-mine small{text-align:right}
.td-chat-compose{padding:12px;border-top:1px solid rgba(255,255,255,.1)}
.td-chat-compose[hidden]{display:none}
.td-chat-name,.td-chat-compose textarea{width:100%;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.07);color:#fff;padding:10px;font:inherit}
.td-chat-name{margin-bottom:8px}
.td-chat-compose>div{display:flex;gap:8px}
.td-chat-compose textarea{resize:none}
.td-chat-send{flex:0 0 44px;border:0;border-radius:14px;background:linear-gradient(135deg,#ff477e,#ff8fb3);color:#fff;font-size:18px}
.td-chat-status{height:12px;margin:6px 2px 0;color:#ffb4ca;font-size:9px}
.td-chat-list{display:flex;flex-direction:column;gap:8px}
.td-chat-list button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.05);color:#fff;text-align:left}
.td-chat-list button span strong,.td-chat-list button span small{display:block}
.td-chat-list button span small{margin-top:3px;color:rgba(255,255,255,.5);font-size:9px}
.td-chat-list button i{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--td-pink);font-size:10px;font-style:normal}
@media(min-width:700px){.td-modal,.td-chat-modal{align-items:center}
.td-sheet{padding:29px}
}
@media(max-width:480px){.td-modal,.td-chat-modal{padding:0}
.td-sheet,.td-chat-sheet{max-height:100dvh;height:100dvh;border-radius:0;border:0}
.td-sheet{padding:22px 18px}
.td-promo-inner{padding:27px 20px}
}
