*{box-sizing:border-box}
:root{--primary:#ff4b72;--primary-dark:#e11d48;--primary-light:#ff758c;--primary-gradient:linear-gradient(135deg,#ff4b72 0%,#ff758c 100%);--purple:#ff4b72;--purple2:#ff758c;--ink:#1c1924;--muted:#746e82;--line:#fae1e7;--bg:#fff7f9;--surface:#ffffff}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
a{text-decoration:none;color:inherit}
.top-strip{height:34px;background:#1c1924;color:#fce4ec;padding:0 6%;display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.2px}
.top-links{display:flex;gap:22px}
.site-header{height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}
.header-inner{max-width:1240px;height:100%;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:850;letter-spacing:-.7px;color:#1c1924}
.brand-mark{width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#ff4b72,#ff758c);color:#fff;display:grid;place-items:center;font-weight:900}
.main-nav{display:flex;gap:34px;margin-left:70px}
.main-nav a{font-size:14px;color:#606574;position:relative;padding:28px 0;transition:.18s}
.main-nav a.active,.main-nav a:hover{color:var(--primary)}
.main-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--primary)}
.header-actions{display:flex;align-items:center;gap:22px}
.login-link{font-size:14px;color:#525866;font-weight:600}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:13px 22px;font-size:14px;font-weight:750;transition:.2s;cursor:pointer}
.btn-primary{background:linear-gradient(135deg,#ff4b72 0%,#ff6384 100%);color:#fff;box-shadow:0 8px 24px rgba(255,75,114,0.28);border:none}
.btn-primary:hover{background:linear-gradient(135deg,#e11d48 0%,#ff4b72 100%);transform:translateY(-1px);box-shadow:0 12px 28px rgba(255,75,114,0.36)}
.btn-small{padding:10px 18px;font-size:13px}
.btn-light{background:#fff;border:1px solid #ffd1dc;color:#353844}
.btn-light:hover{background:#fff5f7;border-color:#ff4b72;color:#ff4b72}
.hero{max-width:1240px;margin:auto;min-height:610px;padding:70px 24px;display:grid;grid-template-columns:1.08fr .92fr;gap:50px;align-items:center}
.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:850;color:var(--purple)}
.hero h1{font-size:68px;line-height:.98;letter-spacing:-3.5px;margin:14px 0 24px}
.hero h1 span{color:var(--purple)}
.hero-text{max-width:610px;font-size:18px;line-height:1.7;color:var(--muted);margin-bottom:30px}
.hero-buttons{display:flex;gap:12px}
.hero-trust{display:flex;flex-wrap:wrap;gap:20px;margin-top:27px;color:#777d8b;font-size:12px}
.hero-visual{min-height:440px;position:relative;display:grid;place-items:center}
.visual-orb{position:absolute;border-radius:50%;filter:blur(2px)}
.orb-one{width:390px;height:390px;background:#e6ddff}
.orb-two{width:270px;height:270px;background:#d9f1ed;right:20px;bottom:5px;opacity:.8}
.hero-profile-card{position:relative;width:330px;height:390px;background:#fff;border:1px solid #ebe8f2;border-radius:28px;box-shadow:0 30px 80px #28203d1a;padding:24px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
.hero-profile-card:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,#d8d0ff,#fff 55%,#e2f6f1)}
.hero-avatar{position:relative;width:90px;height:90px;border-radius:28px;background:linear-gradient(135deg,var(--purple),#9c7aea);color:#fff;display:grid;place-items:center;font-size:44px;font-weight:900;margin-bottom:18px}
.hero-card-copy{position:relative}.hero-card-copy strong{font-size:25px;line-height:1.12;display:block}.hero-card-copy span{display:block;color:#747987;margin-top:8px;font-size:13px}
.floating-card{position:absolute;background:#fff;border:1px solid #eeeaf5;box-shadow:0 15px 40px #29203d18;border-radius:14px;padding:13px 16px;font-size:12px;z-index:2}
.card-top{top:38px;left:8px}.card-bottom{right:0;bottom:40px;display:flex;flex-direction:column}.card-bottom strong{font-size:20px}.card-bottom span{color:#777}
.mini-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#36bf78;margin-right:7px}
.discover-section{max-width:1240px;margin:auto;padding:65px 24px 100px}
.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:30px}
.section-heading h2{font-size:34px;letter-spacing:-1.2px;margin:8px 0}.section-heading p{color:var(--muted);margin:0}
.filters{display:flex;gap:10px}.filters select,.search-box{height:44px;border:1px solid #dddbe6;border-radius:10px;background:#fff}
.filters select{padding:0 35px 0 13px;color:#4d5260}.search-box{display:flex;align-items:center;padding:0 12px;width:230px}.search-box span{color:#8a8f9b;font-size:22px}.search-box input{border:0;outline:0;width:100%;padding:0 7px;font:inherit;font-size:13px}
.profile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.profile-card{background:#fff;border:1px solid #eceaf2;border-radius:18px;overflow:hidden;box-shadow:0 8px 28px #30234b0a;transition:.22s}.profile-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px #30234b15}
.profile-image-wrap{height:310px;position:relative;background:#eae8f2}.profile-image-wrap img{width:100%;height:100%;object-fit:cover}.profile-placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#ddd5f7,#f1eff8);font-size:70px;font-weight:900;color:#7654bf}

.profile-body{padding:18px}.profile-body h3{margin:4px 0 5px;font-size:21px;letter-spacing:-.4px}.profile-body h3 span{font-weight:450;color:#737783}.location{font-size:12px;color:#777d89;margin-bottom:12px}.profile-body p{font-size:13px;line-height:1.55;color:#626877;min-height:61px}.looking-for{background:#f6f3ff;border-radius:10px;padding:9px 11px;display:flex;justify-content:space-between;font-size:11px;color:#777}.looking-for strong{color:#5930ae}.profile-btn{display:flex;justify-content:space-between;align-items:center;background:var(--purple);color:#fff;padding:12px 13px;border-radius:10px;margin-top:12px;font-size:12px;font-weight:750}
.notice{padding:14px 16px;background:#fff0f0;border:1px solid #f4cccc;border-radius:10px;color:#9b3434;margin-bottom:20px}.empty-state{text-align:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:60px 20px}.empty-icon{font-size:42px;color:var(--purple)}
.how-section{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:85px max(24px,calc((100% - 1192px)/2))}
.how-section h2{font-size:36px;margin:8px 0 35px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.step{padding:28px;border:1px solid var(--line);border-radius:16px}.step>span{color:var(--purple);font-weight:900}.step h3{margin:22px 0 8px}.step p{color:var(--muted);line-height:1.6;margin:0}
.cta-section{max-width:1240px;margin:70px auto;padding:55px 65px;border-radius:28px;background:linear-gradient(120deg,#5c2cc1,#8556df);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px}.cta-section .eyebrow{color:#d9c9ff}.cta-section h2{font-size:35px;margin:9px 0}.cta-section p{margin:0;color:#e8e0fa}.btn-white{background:#fff;color:#5530b0;white-space:nowrap}
.site-footer{background:#171822;color:#aeb1bd;padding:60px max(24px,calc((100% - 1192px)/2)) 25px}.footer-main{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:45px}.brand.light{color:#fff}.footer-brand p{max-width:330px;line-height:1.7;font-size:13px}.footer-col{display:flex;flex-direction:column;gap:12px;font-size:13px}.footer-col h4{color:#fff;margin:0 0 7px}.footer-col a:hover{color:#fff}.footer-bottom{border-top:1px solid #2c2e38;padding-top:20px;display:flex;justify-content:space-between;font-size:11px}
@media(max-width:1050px){.profile-grid{grid-template-columns:repeat(3,1fr)}.hero h1{font-size:56px}.main-nav{margin-left:20px}}
@media(max-width:800px){.top-strip{display:none}.site-header{height:68px}.main-nav{display:none}.hero{grid-template-columns:1fr;padding-top:50px}.hero-visual{display:none}.section-heading{display:block}.filters{margin-top:18px}.profile-grid{grid-template-columns:repeat(2,1fr)}.footer-main{grid-template-columns:2fr 1fr}.cta-section{margin:45px 20px;padding:35px 25px}}
@media(max-width:520px){.header-inner{padding:0 16px}.login-link{display:none}.hero{padding:45px 18px}.hero h1{font-size:45px;letter-spacing:-2px}.hero-trust{display:block}.hero-trust span{display:block;margin-bottom:8px}.discover-section{padding:50px 18px}.profile-grid{grid-template-columns:1fr}.filters{display:block}.filters select,.search-box{width:100%;margin-bottom:9px}.how-section{padding:55px 18px}.steps{grid-template-columns:1fr}.cta-section{display:block}.cta-section .btn{margin-top:22px}.footer-main{grid-template-columns:1fr 1fr}.footer-bottom{display:block}.footer-bottom span{display:block;margin-top:8px}}

.form{max-width:460px;margin:70px auto;padding:30px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 60px #30234b0b}
.form h1{margin:0 0 8px}.form-sub{color:var(--muted);margin-bottom:22px}.form form{display:grid;gap:12px}.form input,.form select,.form textarea{width:100%;padding:13px;border:1px solid #dedee7;border-radius:10px;font:inherit}.form .btn{border:0;cursor:pointer}
.simple-page{max-width:1000px;margin:0 auto;padding:28px 20px}.simple-head,.chat-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:22px}.simple-head nav,.chat-header nav{display:flex;gap:18px;color:#656b79;font-size:13px}
.simple-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px}.simple-card h1{font-size:36px;margin:7px 0 10px}.simple-card p{color:var(--muted);line-height:1.65}.simple-card label{display:block;font-size:13px;font-weight:700;margin:20px 0 12px}.simple-card input{display:block;width:100%;padding:13px;margin-top:7px;border:1px solid #dddde7;border-radius:10px}.ref-stat{margin-top:25px;padding:18px;border-radius:12px;background:#f6f3ff}.ref-stat strong{font-size:30px;display:block;color:var(--purple)}.ref-stat span{color:var(--muted);font-size:12px}
.inbox-list{display:grid;gap:10px;margin-top:20px}.inbox-item{display:flex;gap:15px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}.inbox-item img,.inbox-avatar{width:58px;height:58px;border-radius:14px;object-fit:cover;background:#e8e2fa;display:grid;place-items:center;font-weight:900;color:#6540bc}.inbox-item strong,.inbox-item span,.inbox-item p{display:block}.inbox-item span{font-size:12px;color:#818693;margin-top:3px}.inbox-item p{margin:6px 0 0;font-size:12px;color:#686f7d}
.chat-header{padding:18px max(20px,calc((100% - 1100px)/2));background:#fff;border-bottom:1px solid var(--line)}.chat-page{max-width:900px;margin:30px auto;padding:0 20px}.chat-profile{display:flex;gap:15px;align-items:center;margin-bottom:16px}.chat-avatar{width:68px;height:68px;border-radius:20px;overflow:hidden;background:#e8e2fa;display:grid;place-items:center;font-size:28px;font-weight:900;color:#6540bc}.chat-avatar img{width:100%;height:100%;object-fit:cover}.chat-profile h1{font-size:25px;margin:5px 0}.chat-profile p{color:var(--muted);margin:0;font-size:12px}.chat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.chat-notice{padding:11px 13px;background:#f7f4ff;border:1px solid #e6defd;color:#5d4a8e;border-radius:10px;font-size:12px;line-height:1.5;margin-bottom:15px}.message-list{min-height:350px;max-height:580px;overflow:auto;padding:8px}.msg{max-width:78%;padding:11px 13px;border-radius:14px;margin:9px 0;line-height:1.5;font-size:14px}.msg.user{margin-left:auto;background:#6337d1;color:#fff;border-bottom-right-radius:4px}.msg.ai{background:#f1f2f5;color:#282d37;border-bottom-left-radius:4px}.msg small{display:block;font-size:9px;opacity:.55;margin-top:5px}.chat-form{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:15px}.chat-form textarea{resize:vertical;border:1px solid #dddde7;border-radius:12px;padding:12px;font:inherit}.chat-meta{font-size:11px;color:#7a808c;margin-top:9px}.chat-meta a{color:var(--purple);font-weight:700}
@media(max-width:600px){.simple-head,.chat-header{align-items:flex-start}.simple-head nav,.chat-header nav{flex-wrap:wrap;justify-content:flex-end}.chat-form{grid-template-columns:1fr}.simple-card h1{font-size:29px}}

.college-demo-banner{position:relative;z-index:999;background:#fff3cd;color:#664d03;border-bottom:1px solid #ffe69c;text-align:center;padding:9px 16px;font-size:12px;font-weight:700;letter-spacing:.1px}
.demo-mini{font-size:9px;letter-spacing:1px;color:#6b37d1;border:1px solid #d9cdf8;padding:3px 6px;border-radius:999px}
.demo-card{display:inline-block;background:#f0eaff;color:#5d35b7;border:1px solid #d9cdf8;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800;letter-spacing:.7px}

.ai-disclosure-note{margin-top:12px;padding:10px 12px;border:1px solid #e8e4f2;background:#fbfaff;border-radius:10px;color:#747987;font-size:12px;line-height:1.5}
.ai-disclosure-note a{color:var(--purple);font-weight:700}
.legal-page{min-height:65vh;padding:75px 24px;background:#f8f7fc}
.legal-wrap{max-width:850px;margin:auto}
.legal-wrap h1{font-size:52px;letter-spacing:-2px;margin:10px 0 12px}
.legal-lead{font-size:18px;color:var(--muted);line-height:1.6;margin-bottom:28px}
.legal-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;margin:14px 0;box-shadow:0 8px 25px #30234b08}
.legal-card h2{margin:0 0 10px;font-size:19px}.legal-card p{color:#626877;line-height:1.7;margin:8px 0}
@media(max-width:520px){.legal-page{padding:50px 18px}.legal-wrap h1{font-size:38px}}

/* v6 layout hardening */
body{min-width:320px;overflow-x:hidden}
img{max-width:100%}
button,input,select,textarea{font:inherit}
.btn{border:0;cursor:pointer}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none!important}
.alert{padding:12px 14px;border-radius:10px;background:#fff0f0;border:1px solid #f1c8c8;color:#9b3434;font-size:13px;margin-bottom:14px}
.notice.success{background:#eefbf3;border-color:#c9ead6;color:#21733f}
.auth-page{min-height:100vh;background:linear-gradient(145deg,#f8f7fc 0%,#f0ecff 100%);padding:28px 18px 70px}
.auth-shell{max-width:1120px;margin:0 auto}.auth-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.auth-top .brand{font-size:24px}.auth-top a:last-child{font-size:13px;color:#626877}
.form.auth-form{max-width:480px;margin:0 auto;padding:34px}.auth-form h1{font-size:38px;letter-spacing:-1.4px}.auth-form .form-sub{line-height:1.6}.auth-form form{gap:14px}.auth-form input{background:#fff}.auth-form .btn{width:100%;min-height:48px}.auth-footer{text-align:center;margin-top:18px;color:#777d8b;font-size:12px}.auth-footer a{color:var(--purple);font-weight:700}
.credits-page{max-width:1120px;margin:0 auto;padding:35px 20px 80px}.credits-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.credits-head h1{font-size:38px;letter-spacing:-1.5px;margin:0 0 7px}.credits-head p{color:var(--muted);margin:0}.credits-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.credit-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 12px 35px #30234b0b}.credit-card.featured{border-color:#cfc0f7;box-shadow:0 15px 45px #6637d11c}.credit-card h2{margin:0 0 12px}.credit-price{font-size:34px;font-weight:850;letter-spacing:-1px}.credit-count{color:#6c7280;margin:5px 0 20px}.credit-card form .btn{width:100%}
@media(max-width:800px){.credits-grid{grid-template-columns:1fr 1fr}.credits-head{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.auth-page{padding:18px 14px 45px}.auth-top{margin-bottom:24px}.auth-top .brand{font-size:21px}.form.auth-form{padding:24px 18px}.auth-form h1{font-size:32px}.credits-page{padding:25px 16px 60px}.credits-head h1{font-size:31px}.credits-grid{grid-template-columns:1fr}}

/* Fixed 4:5 profile media */
.profile-image-wrap{height:auto!important;aspect-ratio:4/5!important;overflow:hidden}.profile-image-wrap img{display:block;width:100%;height:100%;object-fit:cover!important;object-position:center}
.profile-card .profile-body{min-width:0}.profile-card{min-width:0}
.filters{flex-shrink:0}.filters select{min-width:180px}
@media(max-width:800px){.section-heading .filters{width:100%}.filters select{width:100%}}


/* v7 profile cards: equal-height layout, compact intent, online indicator */
.profile-grid{align-items:stretch;grid-auto-rows:1fr}
.profile-card{height:100%;display:flex;flex-direction:column;min-height:0}
.profile-image-wrap{position:relative;aspect-ratio:4/5;height:auto!important;flex:0 0 auto}
.profile-body{display:flex;flex-direction:column;flex:1;padding:18px;min-height:300px}
.profile-body h3{display:flex;align-items:center;gap:6px;min-height:27px}
.profile-body h3 span:last-child{font-weight:450;color:#737783}
.profile-body p{flex:1;margin-top:0;margin-bottom:13px;min-height:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.looking-for{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:max-content;max-width:100%;padding:7px 10px;border-radius:999px;font-size:10px;background:#f6f3ff;color:#777;margin-top:auto}
.looking-for strong{font-size:10px;color:#5930ae;white-space:nowrap}
.profile-btn{width:100%;min-height:44px;margin-top:10px;flex:0 0 44px;white-space:nowrap}
.online-badge{position:absolute;right:12px;top:12px;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.94);color:#218a4d;font-size:10px;font-weight:800;box-shadow:0 5px 14px rgba(0,0,0,.12)}
.online-badge i{width:7px;height:7px;border-radius:50%;background:#22c55e;display:block;box-shadow:0 0 0 2px #dcfce7}
.account-page{max-width:1050px;margin:0 auto;padding:55px 20px 90px}
.account-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px;display:grid;grid-template-columns:auto 1fr auto;gap:25px;align-items:center;box-shadow:0 20px 60px #30234b0b}
.account-avatar{width:86px;height:86px;border-radius:24px;background:linear-gradient(135deg,var(--purple),#9c7aea);color:#fff;display:grid;place-items:center;font-size:32px;font-weight:900}
.account-main h1{font-size:34px;letter-spacing:-1px;margin:6px 0}.account-main>p{color:var(--muted);margin:0 0 18px}.account-meta{display:flex;gap:12px;flex-wrap:wrap}.account-meta>div{min-width:130px;background:#f8f7fc;border:1px solid var(--line);border-radius:12px;padding:11px 13px}.account-meta span,.account-meta strong{display:block}.account-meta span{font-size:10px;color:#858b97;text-transform:uppercase;letter-spacing:.6px}.account-meta strong{margin-top:4px;font-size:15px}.account-actions{display:flex;flex-direction:column;gap:9px;min-width:150px}.account-actions .btn{width:100%}
@media(max-width:800px){.account-nav-link{display:inline-flex;align-items:center;font-size:12px;color:#525866}.account-card{grid-template-columns:auto 1fr}.account-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.header-actions{gap:8px}.header-actions .login-link{font-size:12px}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.profile-body{min-height:260px}.profile-grid{grid-template-columns:1fr}.profile-image-wrap{aspect-ratio:4/5}.account-page{padding:28px 14px 55px}.account-card{grid-template-columns:1fr;padding:22px;gap:16px;text-align:left}.account-avatar{width:68px;height:68px;border-radius:20px}.account-main h1{font-size:29px}.account-actions{grid-template-columns:1fr}.site-header{position:sticky}.header-inner{gap:10px}.header-actions .login-link{display:none}.header-actions .btn{padding:10px 12px;font-size:12px}.hero-buttons{flex-direction:column}.hero-buttons .btn{width:100%}.simple-page{padding:18px 14px 45px}.simple-head{flex-direction:column;align-items:flex-start}.simple-head nav{gap:9px;flex-wrap:wrap}.chat-header{padding:14px}.chat-header nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.chat-page{margin:18px auto;padding:0 14px}.chat-profile{align-items:flex-start}.chat-avatar{width:58px;height:58px;border-radius:16px;flex:0 0 58px}.chat-form textarea{min-height:86px}.chat-form .btn{width:100%}.credits-page{padding:22px 14px 55px}.credit-card{padding:20px}.auth-form{width:100%}}


/* v8 direct discovery + user space */
.discover-direct{padding-top:52px}.discover-direct .section-heading h1{font-size:40px;letter-spacing:-1.6px;margin:8px 0}.discover-direct .section-heading{align-items:center}.online-dot{position:absolute;right:12px;top:12px;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.96);border:1px solid #e7eee9;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;color:#237b49;box-shadow:0 6px 18px rgba(0,0,0,.12)}.online-dot i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px #dcfce7}.looking-for{gap:8px!important;justify-content:flex-start!important}.looking-for span{color:#9296a1}.looking-for strong{white-space:nowrap}.space-page{max-width:1180px;margin:0 auto;padding:42px 24px 90px}.space-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.space-title h1{font-size:42px;letter-spacing:-1.7px;margin:7px 0}.space-title p{margin:0;color:var(--muted)}.space-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:20px}.space-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:0 12px 35px #30234b0b}.space-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.space-card-head h2{margin:0 0 5px;font-size:21px}.space-card-head p{margin:0;color:var(--muted);font-size:13px}.space-card-head>a{color:var(--purple);font-size:12px;font-weight:800}.profile-edit-top{display:flex;align-items:center;gap:18px;padding:15px;background:#faf9fd;border:1px solid var(--line);border-radius:15px;margin-bottom:18px}.user-photo-preview{width:92px;height:115px;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#e7ddff,#f6f4fb);display:grid;place-items:center;color:#7654bf;font-size:32px;font-weight:900;flex:0 0 92px}.user-photo-preview img{width:100%;height:100%;object-fit:cover}.profile-edit-top input[type=file]{display:block;margin-top:8px;max-width:100%;font-size:12px}.profile-edit-top small{display:block;color:#838895;margin-top:7px}.field-label,.form-grid label>span,.password-form label>span{display:block;font-size:11px;font-weight:800;color:#626877;margin-bottom:7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.form-grid label.full{grid-column:1/-1}.form-grid input,.form-grid textarea,.form-grid select,.password-form input{width:100%;border:1px solid #dddbe6;border-radius:11px;background:#fff;padding:12px 13px;outline:none;color:var(--ink)}.form-grid textarea{resize:vertical;min-height:100px}.form-grid input:disabled{background:#f5f4f8;color:#7c8190}.space-side{display:flex;flex-direction:column;gap:20px}.space-empty{padding:20px;background:#faf9fd;border-radius:12px;color:#777d8b;font-size:13px;line-height:1.6}.space-empty a{color:var(--purple);font-weight:700}.mini-inbox{display:flex;flex-direction:column}.mini-inbox>a{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--line)}.mini-inbox>a:last-child{border-bottom:0}.mini-avatar{width:45px;height:45px;border-radius:13px;overflow:hidden;display:grid;place-items:center;background:#eee9fb;color:#6740bd;font-weight:900;flex:0 0 45px}.mini-avatar img{width:100%;height:100%;object-fit:cover}.mini-inbox strong,.mini-inbox span{display:block}.mini-inbox strong{font-size:13px}.mini-inbox span{font-size:11px;color:#7d8290;margin-top:3px}.password-form{display:flex;flex-direction:column;gap:13px}.password-form label{display:block}.password-form .btn{width:100%}.credit-summary{display:grid;grid-template-columns:1fr auto;gap:5px 15px;align-items:center}.credit-summary span{font-size:12px;color:#777d8b}.credit-summary strong{font-size:28px}.credit-summary .btn{grid-column:1/-1;margin-top:8px}.alert.success{background:#eefbf3;border-color:#cce9d7;color:#247343}.site-footer{margin-top:20px}.footer-bottom{max-width:1240px;margin:auto;padding:22px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:#818692;font-size:11px}.footer-bottom a{color:var(--purple);font-weight:700}
@media(max-width:900px){.main-nav{margin-left:0;gap:18px}.main-nav a{font-size:13px}.header-actions{gap:10px}.space-grid{grid-template-columns:1fr}.space-side{display:grid;grid-template-columns:1fr 1fr}.credit-summary{grid-column:1/-1}.profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.top-strip{display:none}.site-header{height:auto;min-height:68px}.header-inner{padding:10px 14px;flex-wrap:wrap}.brand{font-size:20px}.main-nav{order:3;width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:8px;margin-top:4px}.main-nav a{padding:6px 2px;font-size:12px}.header-actions{margin-left:auto}.header-actions .login-link{display:none}.header-actions .btn{padding:9px 12px}.discover-direct{padding:28px 14px 60px}.discover-direct .section-heading{display:flex;flex-direction:column;align-items:stretch;gap:16px}.discover-direct .section-heading h1{font-size:31px}.filters select{width:100%}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-body{padding:14px}.profile-body h3{font-size:18px}.profile-body p{font-size:12px;-webkit-line-clamp:3}.looking-for{font-size:9px;padding:6px 8px}.looking-for strong{font-size:9px}.profile-btn{min-height:42px;flex-basis:42px}.online-dot{right:8px;top:8px;padding:5px 7px}.space-page{padding:26px 14px 60px}.space-title{align-items:stretch;flex-direction:column}.space-title h1{font-size:34px}.space-title .btn{width:100%}.space-card{padding:18px}.space-side{display:flex}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.profile-edit-top{align-items:flex-start;flex-direction:column}.user-photo-preview{width:88px;flex-basis:110px}.footer-bottom{padding:18px 14px;flex-direction:column;gap:8px}}
@media(max-width:430px){.header-actions .btn{font-size:11px;padding:8px 10px}.profile-grid{grid-template-columns:1fr}.profile-image-wrap{aspect-ratio:4/5}.profile-body{min-height:0}.profile-body p{min-height:0}.space-title h1{font-size:30px}.credit-summary{grid-template-columns:1fr auto}}

/* V9: professional discovery + authenticated user navigation */
.discover-home{background:#f8f7fb;min-height:calc(100vh - 82px)}
.public-discover-header{background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
.discover-direct{max-width:1320px;margin:0 auto;padding:34px 28px 72px}
.discover-toolbar{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.discover-toolbar h1{font-size:36px;letter-spacing:-1.5px;margin:7px 0 0}
.discover-toolbar .filters select{min-width:190px}
.profile-grid-minimal{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:start}
.profile-card-minimal{background:transparent;border:0;box-shadow:none;border-radius:22px;overflow:visible;display:flex;flex-direction:column}
.profile-card-minimal:hover{transform:none;box-shadow:none}
.profile-card-minimal .profile-image-wrap{display:block;width:100%;aspect-ratio:4/5;height:auto!important;border-radius:22px;overflow:hidden;background:#e9e7ef;box-shadow:0 12px 30px rgba(31,23,54,.08);position:relative}
.profile-card-minimal .profile-image-wrap img{transition:transform .35s ease}
.profile-card-minimal:hover .profile-image-wrap img{transform:scale(1.025)}
.profile-card-minimal .online-dot{width:16px;height:16px;padding:0;right:12px;top:12px;border:3px solid #fff;background:#22c55e;box-shadow:0 4px 12px rgba(0,0,0,.18);animation:onlinePulse 1.7s infinite}
.profile-card-minimal .online-dot i{display:none}
.profile-minimal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.profile-action{height:44px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;text-decoration:none;transition:.18s}
.profile-view{background:#fff;color:#4c3a6e;border:1px solid #ded9e9}
.profile-message{background:var(--purple);color:#fff;border:1px solid var(--purple);box-shadow:0 8px 20px rgba(100,55,209,.16)}
.profile-action:hover{transform:translateY(-1px)}
@keyframes onlinePulse{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.35),0 4px 12px rgba(0,0,0,.18)}50%{box-shadow:0 0 0 7px rgba(34,197,94,0),0 4px 12px rgba(0,0,0,.18)}}
.profile-page{max-width:1050px;margin:0 auto;padding:34px 22px 80px}.back-link{display:inline-block;color:#6e647d;font-size:13px;margin-bottom:18px}.profile-detail{display:grid;grid-template-columns:minmax(320px,480px) 1fr;gap:42px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:28px;padding:22px;box-shadow:0 20px 60px rgba(48,35,75,.07)}.profile-detail-photo{position:relative;aspect-ratio:4/5;border-radius:22px;overflow:hidden;background:#eee}.profile-detail-photo img{width:100%;height:100%;object-fit:cover}.profile-detail-photo .online-dot{top:15px;right:15px}.profile-detail-copy{padding:12px 24px 12px 0}.profile-detail-copy h1{font-size:46px;letter-spacing:-2px;margin:7px 0}.profile-location{color:#737986;margin:0 0 22px}.detail-looking{display:inline-flex;gap:9px;align-items:center;background:#f7f4ff;border-radius:999px;padding:8px 12px;font-size:12px;margin-bottom:22px}.detail-looking span{color:#888d99}.detail-looking strong{color:#5830ae}.profile-bio{font-size:16px;line-height:1.7;color:#5d6370;margin:0 0 26px}.profile-detail-message{min-width:170px;text-align:center}
.user-layout{min-height:100vh;background:#f8f7fb}.user-sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;background:#fff;border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column;z-index:30}.user-sidebar-brand{display:flex;align-items:center;gap:10px;font-size:21px;padding:4px 10px 28px}.user-sidebar-nav{display:flex;flex-direction:column;gap:5px}.user-nav-item,.user-nav-logout{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:12px;color:#606574;font-size:13px;font-weight:700}.user-nav-item:hover,.user-nav-item.active{background:#f3efff;color:var(--purple)}.user-nav-icon{width:20px;text-align:center;font-size:16px}.user-nav-logout{margin-top:auto;color:#7d6570}.user-nav-logout:hover{background:#fff3f3;color:#b34c59}.user-content{margin-left:240px;max-width:1240px;padding:42px 34px 100px}.user-content .space-title{max-width:1150px;margin-bottom:26px}.space-credit-pill{background:#f1edff;color:#5c32b4;border:1px solid #e4dcff;padding:9px 13px;border-radius:999px;font-size:12px;font-weight:800}.user-content .space-grid{max-width:1150px}.inbox-card{min-height:300px}
.chat-balance{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#777d8b;margin-top:10px}.chat-balance a{color:var(--purple);font-weight:800}.chat-error{margin-top:9px;padding:9px 11px;border-radius:9px;background:#fff0f0;color:#a03d49;font-size:12px}.typing-bubble{opacity:.65;font-style:italic}.chat-form .btn:disabled{opacity:.65;cursor:wait}
@media(max-width:1050px){.profile-grid-minimal{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-detail{grid-template-columns:minmax(280px,420px) 1fr}.profile-detail-copy h1{font-size:40px}}
@media(max-width:760px){.user-sidebar{display:none}.user-content{margin-left:0;padding:24px 14px 92px}.space-title{margin-bottom:20px}.space-title h1{font-size:32px}.space-credit-pill{align-self:flex-start}.profile-grid-minimal{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.discover-direct{padding:24px 14px 82px}.discover-toolbar{align-items:stretch;flex-direction:column;gap:14px;margin-bottom:20px}.discover-toolbar h1{font-size:30px}.discover-toolbar .filters select{width:100%;min-width:0}.profile-card-minimal .profile-image-wrap{border-radius:17px}.profile-minimal-actions{gap:7px;margin-top:8px}.profile-action{height:40px;font-size:11px;border-radius:9px}.profile-detail{grid-template-columns:1fr;gap:22px;padding:14px;border-radius:20px}.profile-detail-copy{padding:2px 7px 10px}.profile-detail-copy h1{font-size:34px}.profile-bio{font-size:14px}.profile-detail-message{width:100%}.chat-page{padding:0 12px;margin:16px auto}.chat-card{padding:12px}.message-list{min-height:340px}.chat-form{grid-template-columns:1fr auto}.chat-form textarea{min-height:52px}.chat-form .btn{width:auto;min-width:82px}.chat-balance{font-size:10px}.site-footer{padding-bottom:65px}}
@media(max-width:480px){.profile-grid-minimal{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-card-minimal .profile-image-wrap{border-radius:14px}.profile-minimal-actions{grid-template-columns:1fr;gap:6px}.profile-action{height:38px}.discover-toolbar h1{font-size:27px}.header-inner{padding:10px 14px}.main-nav{display:none}.header-actions .login-link{display:none}.header-actions .btn{font-size:11px}.chat-form{grid-template-columns:1fr}.chat-form .btn{width:100%}}

/* V10 presence and credit modal */
.online-dot.offline{background:#9ca3af!important;animation:none!important;box-shadow:0 4px 12px rgba(0,0,0,.14)!important}
.online-dot.offline:after{content:''}
.credit-modal[hidden]{display:none}.credit-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px}.credit-modal-backdrop{position:absolute;inset:0;background:rgba(19,14,31,.55);backdrop-filter:blur(5px)}.credit-modal-card{position:relative;z-index:1;width:min(440px,100%);background:#fff;border-radius:22px;padding:30px;box-shadow:0 30px 80px rgba(20,12,40,.25)}.credit-modal-card h2{font-size:28px;margin:8px 0}.credit-modal-card p{color:#707684;line-height:1.6}.credit-modal-close{position:absolute;right:14px;top:12px;border:0;background:#f3f1f7;width:34px;height:34px;border-radius:50%;font-size:24px;cursor:pointer}.credit-modal-actions{display:flex;gap:10px;margin-top:22px}.credit-modal-actions .btn{flex:1;text-align:center}.modal-open{overflow:hidden}
.chat-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);height:72px;padding:0 max(18px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:30px}.chat-header nav{display:flex;gap:20px;margin-left:auto}.chat-header nav a{color:#686d7b;font-size:13px;text-decoration:none}.chat-credit-link{font-size:12px;font-weight:800;color:var(--purple);text-decoration:none}.chat-profile{display:flex;align-items:center;gap:14px;margin-bottom:16px}.chat-avatar{width:64px;height:80px;aspect-ratio:4/5;border-radius:16px;overflow:hidden;flex:0 0 auto;background:#eee}.chat-avatar img{width:100%;height:100%;object-fit:cover}.chat-profile h1{margin:0;font-size:24px}.chat-profile p{margin:4px 0;color:#777d8b;font-size:12px}
@media(max-width:760px){.chat-header{height:60px;padding:0 12px;gap:10px}.chat-header nav{display:none}.chat-credit-link{margin-left:auto}.chat-profile{margin-bottom:10px}.chat-avatar{width:50px;height:63px}.chat-profile h1{font-size:19px}.credit-modal-card{padding:25px 20px}.credit-modal-actions{flex-direction:column}}

/* V11 chat polish */
.chat-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;margin-bottom:12px;font-size:11px}
.chat-notice span{font-weight:800;color:#5a3ab3}.chat-notice small{font-size:10px;color:#77718a}
.message-list{min-height:330px;padding:10px 6px 14px;scroll-behavior:smooth}
.msg{max-width:min(68%,620px);padding:10px 14px;border-radius:15px;margin:8px 0;line-height:1.45;font-size:14px;word-break:break-word}
.msg.user{border-bottom-right-radius:5px}.msg.ai{border-bottom-left-radius:5px}
.typing-bubble{display:inline-flex!important;width:max-content;max-width:fit-content;align-items:center;gap:3px;padding:9px 14px}
.typing-bubble::after{content:'•••';letter-spacing:3px;animation:chatTyping 1.1s infinite;opacity:.65}
.typing-bubble{font-size:0}.typing-bubble span{display:none}
@keyframes chatTyping{0%,100%{opacity:.25}50%{opacity:1}}
.chat-form{align-items:stretch}.chat-form textarea{min-height:54px;max-height:130px;resize:none;line-height:1.45}.chat-form .btn{min-width:86px;align-self:stretch}
.chat-balance{padding:0 2px}.chat-error{border:1px solid #ffd4d8}
.admin-user-list td strong{display:block}.admin-user-list td small.admin-muted{display:block;margin-top:3px}
@media(max-width:760px){.msg{max-width:82%}.chat-notice{align-items:flex-start;flex-direction:column;gap:2px}.chat-form{grid-template-columns:1fr auto}.chat-form textarea{min-height:50px}.chat-form .btn{min-width:78px}}
@media(max-width:480px){.message-list{min-height:320px}.msg{max-width:88%;font-size:13px}.chat-form{grid-template-columns:1fr auto;gap:7px}.chat-form textarea{font-size:14px}.chat-form .btn{min-width:70px;padding:10px 13px}.chat-balance{font-size:10px}}

/* V13 final layout polish */
.profile-user-sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;z-index:30}
.profile-user-sidebar .user-sidebar{position:absolute;width:240px}
.profile-user-content{margin-left:240px;min-height:100vh;padding:34px 36px 90px;background:#f8f7fb}
.profile-user-content .profile-page{max-width:1120px;margin:0 auto;padding:0}
.profile-detail-clean{max-width:1120px;grid-template-columns:minmax(360px,520px) 1fr;align-items:center}
.profile-detail-clean .profile-detail-photo{width:100%}
.profile-detail-clean .profile-detail-copy{padding:22px 34px}
.profile-detail-clean .profile-bio{max-width:620px}
.profile-detail-clean .online-dot b{font-size:10px;font-weight:800}
.profile-detail-clean .online-dot i{display:block;width:8px;height:8px;border-radius:50%;background:#22c55e;animation:onlineBlink 1.35s infinite}
@keyframes onlineBlink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.78)}}
.profile-detail-clean .online-dot.offline{color:#777!important;background:rgba(255,255,255,.96)!important}
.profile-detail-clean .online-dot.offline i{background:#9ca3af;animation:none}
.profile-detail-clean .online-dot.offline b{color:#777}
.chat-page{max-width:980px;padding-bottom:100px}
.chat-card{box-shadow:0 16px 50px rgba(48,35,75,.06)}
.typing-bubble{display:inline-flex!important;align-items:center;gap:4px;font-style:normal!important}
.typing-bubble::after{content:'•••';letter-spacing:3px;animation:typingDots 1s infinite}
@keyframes typingDots{0%,100%{opacity:.3}50%{opacity:1}}
@media(max-width:760px){
 .profile-user-sidebar{display:none}.profile-user-content{margin-left:0;padding:18px 12px 88px}
 .profile-user-content .profile-page{padding:0}
 .profile-detail-clean{grid-template-columns:1fr;padding:12px;gap:18px}
 .profile-detail-clean .profile-detail-copy{padding:2px 8px 10px}
 .profile-detail-clean .profile-detail-photo{border-radius:18px}
}

/* V14 final visual cleanup */
.profile-user-content{margin-left:240px!important;max-width:none!important;padding:34px 42px 100px!important}
.profile-user-content .profile-detail-clean{max-width:1120px;margin:0 auto;grid-template-columns:minmax(340px,460px) minmax(0,1fr);gap:42px;align-items:center}
.profile-user-content .profile-detail-clean .profile-detail-photo{width:100%;max-width:460px;margin:auto}
.profile-user-content .profile-detail-clean .profile-detail-copy{padding:10px 24px}
.profile-user-content .profile-detail-clean .profile-detail-copy h1{font-size:44px;line-height:1.08}
.profile-user-content .profile-detail-clean .profile-bio{max-width:650px}
.chat-user-content{padding-top:28px!important}
.chat-topbar{max-width:980px;margin:0 auto 12px;display:flex;justify-content:space-between;align-items:center;gap:15px}
.chat-credit-pill{background:#f1edff;border:1px solid #e1d8ff;color:#5d32b4;padding:9px 13px;border-radius:999px;font-size:12px;font-weight:800;text-decoration:none}
.chat-profile-card{max-width:980px;margin:0 auto 14px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px 16px;box-shadow:0 10px 30px rgba(48,35,75,.04)}
.chat-profile-card .chat-profile-copy{flex:1}
.chat-profile-card .chat-view-profile{font-size:12px;font-weight:800;color:var(--purple);text-decoration:none}
.chat-user-content .chat-card{max-width:980px;margin:0 auto}
.chat-user-content .message-list{background:#fff}
@media(max-width:760px){
 .profile-user-content{padding:18px 12px 88px!important}
 .profile-user-content .profile-detail-clean{grid-template-columns:1fr;gap:20px;padding:12px}
 .profile-user-content .profile-detail-clean .profile-detail-photo{max-width:none}
 .profile-user-content .profile-detail-clean .profile-detail-copy{padding:2px 7px 10px}
 .profile-user-content .profile-detail-clean .profile-detail-copy h1{font-size:34px}
 .chat-user-content{padding:14px 10px 88px!important}
 .chat-topbar{margin-bottom:9px}
 .chat-profile-card{padding:10px 11px;border-radius:15px}
 .chat-profile-card .chat-view-profile{font-size:10px}
}
/* V16 interactive chat bubbles */
.message-list .msg.ai{background:#eeeaff;color:#28233a;border:1px solid #ddd4ff}
.message-list .msg.user{background:#6337d1;color:#fff}
.message-list .typing-bubble{background:#eeeaff!important;border:1px solid #cfc1ff!important;color:#6b55a7!important;min-width:58px!important;min-height:34px!important;width:58px!important;height:34px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:18px!important;opacity:1!important;font-size:0!important;font-style:normal!important;box-sizing:border-box!important}
.message-list .typing-bubble::after{content:'•••'!important;display:block!important;font-size:17px!important;line-height:1!important;letter-spacing:4px!important;color:#6b55a7!important;animation:connectaTypingDots 1.15s ease-in-out infinite!important;opacity:1!important}
.message-list .typing-bubble span{display:none!important}
@keyframes connectaTypingDots{0%,100%{opacity:.28;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}

.typing-bubble{min-width:56px!important;width:max-content!important;padding:10px 14px!important;background:#eeeafd!important;border:1px solid #d8ccff!important;border-radius:16px 16px 16px 5px!important;}
.typing-dots{display:inline-flex;gap:4px;align-items:center;height:10px;}
.typing-dots i{width:6px;height:6px;border-radius:50%;background:#6b3bd4;display:block;animation:connectaTyping 1.1s infinite ease-in-out;}
.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes connectaTyping{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}


/* V70 in-chat conversation switcher: direct switching without returning to Inbox. */
.v22-chat-switcher{display:flex;align-items:center;gap:10px;width:min(1040px,100%);margin:0 auto 8px;padding:7px 8px;background:#fff;border:1px solid #e9e5f0;border-radius:14px;box-shadow:0 5px 18px rgba(43,28,70,.04);min-width:0;}
.v22-chat-switcher-back{flex:0 0 auto;color:#686275;font-size:11px;font-weight:800;text-decoration:none;padding:6px 8px;border-radius:9px;background:#f7f4fb;}
.v22-chat-switcher-list{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:1px 0;}
.v22-chat-switcher-item{display:flex;align-items:center;gap:6px;flex:0 0 auto;max-width:150px;padding:5px 8px;border:1px solid transparent;border-radius:10px;text-decoration:none;color:#575162;background:#fbfaff;}
.v22-chat-switcher-item:hover{border-color:#ded5f5;background:#f5f0ff;}
.v22-chat-switcher-item.is-current{border-color:#d6c8f7;background:#eee7ff;color:#4f2aa5;}
.v22-chat-switcher-avatar{width:24px;height:30px;border-radius:7px;overflow:hidden;background:#e8e2fa;display:grid;place-items:center;flex:none;font-size:10px;font-weight:900;color:#6540bc;}
.v22-chat-switcher-avatar img{width:100%;height:100%;object-fit:cover;}
.v22-chat-switcher-name{font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* V22 professional chat UI */
.v22-chat-body{background:#f5f3fa;color:#191823;min-height:100vh}
.v22-chat-content{padding:24px 28px 90px!important;max-width:none!important}
.v22-chat-shell{width:min(1040px,100%);margin:0 auto}
.v22-chat-head{height:76px;background:#fff;border:1px solid #e9e5f0;border-radius:20px 20px 0 0;display:grid;grid-template-columns:120px 1fr auto;align-items:center;gap:18px;padding:12px 18px;box-shadow:0 8px 30px rgba(43,28,70,.05)}
.v22-back{font-size:13px;color:#686275;font-weight:700;white-space:nowrap}
.v22-person{display:flex;align-items:center;gap:12px;min-width:0}
.v22-avatar{width:48px;height:60px;aspect-ratio:4/5;border-radius:13px;overflow:hidden;background:#eee9f7;flex:none}.v22-avatar img{width:100%;height:100%;object-fit:cover}
.v22-person strong{display:block;font-size:15px;line-height:1.2}.v22-person small{display:block;margin-top:4px;color:#7c7887;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v22-credits{font-size:12px;font-weight:800;color:#5d35bd;background:#f1ecff;border:1px solid #e0d7ff;border-radius:999px;padding:9px 12px;white-space:nowrap}
.v22-chat-card{background:#fff;border:1px solid #e9e5f0;border-top:0;border-radius:0 0 20px 20px;overflow:hidden;box-shadow:0 20px 55px rgba(43,28,70,.07)}
.v22-chat-note{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fbfaff;border-bottom:1px solid #eeeaf5;color:#6241ad;font-size:11px;font-weight:800}.v22-chat-note a{color:#898493;font-size:10px;font-weight:600}
.v22-messages{height:min(62vh,610px);min-height:430px;overflow-y:auto;padding:20px 22px 16px;background:linear-gradient(180deg,#fff 0%,#fdfcff 100%);scroll-behavior:smooth}
.v22-msg{width:fit-content;max-width:min(72%,650px);padding:10px 14px;margin:7px 0;border-radius:16px;font-size:14px;line-height:1.45;word-break:break-word;box-shadow:0 1px 1px rgba(30,20,50,.03)}
.v22-msg.is-ai{margin-right:auto;background:#f0edfb;border:1px solid #e1daf3;color:#292535;border-bottom-left-radius:5px}.v22-msg.is-user{margin-left:auto;background:#6538d5;color:#fff;border-bottom-right-radius:5px;box-shadow:0 6px 16px rgba(101,56,213,.14)}
.v22-typing{min-width:60px;min-height:38px;padding:0 15px!important;display:flex;align-items:center;justify-content:center}.v22-dots{display:flex;gap:4px;align-items:center}.v22-dots i{width:6px;height:6px;border-radius:50%;background:#6941c5;animation:v22typing 1.05s infinite ease-in-out}.v22-dots i:nth-child(2){animation-delay:.15s}.v22-dots i:nth-child(3){animation-delay:.3s}@keyframes v22typing{0%,65%,100%{opacity:.25;transform:translateY(0)}32%{opacity:1;transform:translateY(-3px)}}
.v22-composer-wrap{padding:14px 18px 12px;border-top:1px solid #eeeaf5;background:#fff}.v22-composer{display:grid;grid-template-columns:1fr 92px;gap:10px;align-items:stretch}.v22-composer textarea{width:100%;min-height:52px;max-height:130px;border:1px solid #ddd8e8;border-radius:14px;padding:14px 15px;resize:none;outline:none;font:inherit;font-size:14px;line-height:1.45;background:#fff;color:#1d1a26}.v22-composer textarea:focus{border-color:#8b6bdb;box-shadow:0 0 0 3px rgba(105,59,209,.09)}.v22-composer button{border:0;border-radius:13px;background:#6637d1;color:#fff;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(102,55,209,.18)}.v22-composer button:disabled{opacity:.65;cursor:wait}.v22-meta{display:flex;justify-content:space-between;align-items:center;padding:7px 2px 0;font-size:10px;color:#8a8593}.v22-meta a{color:#6235bf;font-weight:800}.v22-error{margin-top:8px;background:#fff0f0;border:1px solid #ffd8dc;color:#9b3f49;border-radius:9px;padding:9px 11px;font-size:11px}
@media(max-width:760px){.v22-chat-content{padding:10px 8px 82px!important}.v22-chat-shell{width:100%}.v22-chat-head{height:70px;border-radius:15px 15px 0 0;grid-template-columns:44px 1fr auto;gap:9px;padding:8px 10px}.v22-back{font-size:0}.v22-back:first-letter{font-size:18px}.v22-person{gap:9px}.v22-avatar{width:40px;height:50px;border-radius:11px}.v22-person strong{font-size:13px}.v22-person small{font-size:10px}.v22-credits{font-size:10px;padding:7px 9px}.v22-chat-card{border-radius:0 0 15px 15px}.v22-chat-note{height:38px;padding:0 12px}.v22-messages{height:calc(100vh - 245px);min-height:360px;padding:14px 10px 12px}.v22-msg{max-width:84%;font-size:13px;padding:9px 12px;margin:6px 0}.v22-composer-wrap{padding:9px 9px 8px}.v22-composer{grid-template-columns:1fr 72px;gap:7px}.v22-composer textarea{min-height:48px;padding:12px;font-size:14px;border-radius:12px}.v22-composer button{border-radius:11px}.v22-meta{font-size:9px}}
@media(max-width:430px){.v22-chat-head{grid-template-columns:32px 1fr auto}.v22-back{width:28px;overflow:hidden}.v22-credits{font-size:9px}.v22-messages{height:calc(100vh - 238px);min-height:330px}.v22-msg{max-width:88%}.v22-composer{grid-template-columns:1fr 64px}}

/* V23 chat polish: never clip generated replies and keep mobile bubbles readable. */
.v22-msg span{display:block;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;min-width:0}
.v22-msg{overflow:visible;max-height:none;height:auto}
.v22-composer button{transition:transform .12s ease,box-shadow .12s ease,opacity .12s ease}
.v22-composer button:active{transform:translateY(1px)}
@media(max-width:760px){
  .v22-messages{overscroll-behavior:contain}
  .v22-msg{max-width:86%;overflow:visible}
  .v22-composer{position:relative}
  .v22-composer textarea{min-width:0}
}
@media(max-width:430px){.v22-msg{max-width:90%}}

/* V24 chat quality / responsive hardening */
.v22-messages{min-width:0;contain:layout paint}
.v22-msg,.v22-msg span{box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;word-break:normal;white-space:pre-wrap;hyphens:none}
.v22-msg{height:auto!important;min-height:0!important;overflow:visible!important}
.v22-msg span{display:block;overflow:visible!important;text-overflow:clip!important}
.v22-composer textarea{box-sizing:border-box;min-width:0}
@media (max-width: 900px) {
  body.v22-chat-body {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.v22-chat-body .v22-chat-layout {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.v22-chat-body .v22-chat-content {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 0 0 60px 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body.v22-chat-body .v22-chat-shell {
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    border: 0 !important;
  }
  body.v22-chat-body .v22-chat-head {
    flex: 0 0 auto !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 6px 12px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #fae1e7 !important;
    z-index: 10 !important;
  }
  body.v22-chat-body .v22-chat-card {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  body.v22-chat-body .v22-messages {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 12px 10px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }
  body.v22-chat-body .v22-msg {
    max-width: 86% !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
  }
  body.v22-chat-body .v22-composer-wrap {
    flex: 0 0 auto !important;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
    border-top: 1px solid #fae1e7 !important;
    z-index: 10 !important;
  }
  body.v22-chat-body .v22-composer {
    grid-template-columns: minmax(0, 1fr) 72px !important;
    gap: 8px !important;
  }
  body.v22-chat-body .v22-composer textarea {
    min-height: 44px !important;
    max-height: 110px !important;
    padding: 11px 13px !important;
    font-size: 14px !important;
  }

  /* Mobile chat layout - keep bottom nav always visible */
  body.v22-chat-body .v22-chat-content {
    padding-bottom: 60px !important;
  }
}


/* V32 typing indicator polish */
.v22-msg.v22-typing{display:inline-flex!important;align-items:center;gap:7px;min-width:76px;padding:11px 14px!important;}
.v22-typing-label{font-size:12px;line-height:1;color:#6d5aa8;font-weight:600;letter-spacing:.1px;}
.v22-dots{display:inline-flex;align-items:center;gap:3px;height:12px;}
.v22-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.35;animation:v22TypingDot 1.15s infinite ease-in-out;}
.v22-dots i:nth-child(2){animation-delay:.18s;}
.v22-dots i:nth-child(3){animation-delay:.36s;}
@keyframes v22TypingDot{0%,60%,100%{transform:translateY(0);opacity:.3;}30%{transform:translateY(-3px);opacity:.9;}}

/* V35: character sheets, referral UI, recharge and cross-chat notifications */
.character-sheet-card{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#faf9ff}.character-sheet-card h2{margin:4px 0 14px;font-size:20px}.character-sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.character-sheet-grid>div{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.character-sheet-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#7b728d;margin-bottom:4px}.character-sheet-grid strong{font-size:13px;line-height:1.45}.character-disclosure-mini{margin:14px 0 0;color:#6f687a;font-size:12px;line-height:1.5}.affiliate-panel{max-width:920px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 14px 40px #30234b0b}.affiliate-panel>div>span{font-size:11px;font-weight:800;letter-spacing:.08em;color:#756a88}.affiliate-link-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:8px}.affiliate-link-row input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:13px;background:#faf9ff}.affiliate-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.affiliate-stats div{border:1px solid var(--line);border-radius:15px;padding:15px;background:#faf9ff}.affiliate-stats strong{display:block;font-size:26px}.affiliate-stats span{font-size:12px;color:var(--muted)}.affiliate-rules{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.affiliate-rules h2{margin:0 0 10px}.affiliate-rules p{margin:7px 0;color:#4d4758}.affiliate-rules small{color:#777}.affiliate-note,.payment-note{margin:0 0 18px;padding:12px 14px;border-radius:12px;background:#f4efff;border:1px solid #e2d8ff;color:#51436f;font-size:13px}.payment-footnote{color:#777;font-size:12px;margin-top:16px}.settings-subhead{margin:25px 0 10px;font-size:17px}.account-credit-actions{display:flex;gap:8px;flex-wrap:wrap}.chat-notify-stack{position:fixed;right:22px;bottom:22px;z-index:1000;display:flex;flex-direction:column;gap:10px;max-width:340px}.chat-notify{border:1px solid #ddd4f7;background:#fff;border-radius:16px;padding:13px 15px;text-align:left;box-shadow:0 14px 35px #30234b1f;transform:translateY(15px);opacity:0;transition:.25s ease;cursor:pointer}.chat-notify.show{transform:translateY(0);opacity:1}.chat-notify strong{display:block;font-size:13px;color:#4d2ca0;margin-bottom:3px}.chat-notify span{display:block;font-size:12px;color:#4d4758;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v22-typing{display:inline-flex!important;align-items:center;gap:7px}.v22-typing-label{font-size:11px;color:#6b5a91}.v22-dots{display:inline-flex;gap:3px;align-items:center}.v22-dots i{width:4px;height:4px;border-radius:50%;background:#7958c9;animation:v35dot 1.1s infinite ease-in-out}.v22-dots i:nth-child(2){animation-delay:.16s}.v22-dots i:nth-child(3){animation-delay:.32s}@keyframes v35dot{0%,80%,100%{opacity:.25;transform:scale(0.85) translateY(0)}40%{opacity:1;transform:scale(1.2) translateY(-3.5px)}}
@media(max-width:700px){.character-sheet-grid{grid-template-columns:1fr}.affiliate-link-row{grid-template-columns:1fr}.affiliate-stats{grid-template-columns:1fr 1fr}.chat-notify-stack{left:12px;right:12px;bottom:78px;max-width:none}.chat-notify{width:100%}}

.v22-presence{font-size:10px!important;font-weight:700}.v22-presence.is-online{color:#21844b}.v22-presence.is-offline{color:#8b8f98}.chat-notify-stack{position:fixed;right:18px;top:78px;bottom:auto;z-index:9999;display:flex;flex-direction:column;gap:8px;max-width:340px}.chat-notify{display:flex;flex-direction:column;text-align:left;background:#fff;border:1px solid #ddd5f4;border-radius:16px;padding:12px 14px;box-shadow:0 14px 35px rgba(48,35,75,.15);cursor:pointer}.chat-notify strong{font-size:13px;color:#5732b5}.chat-notify span{font-size:12px;color:#555b68;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:700px){.chat-notify-stack{right:10px;left:10px;top:72px;bottom:auto;max-width:none}.chat-notify{border-radius:14px}}

.v22-scheduled-hidden{display:none!important}


.v22-msg{position:relative}
.v22-reply-btn{display:block;margin-top:6px;border:0;background:transparent;color:#7656b7;font-size:10px;font-weight:700;padding:0;cursor:pointer;opacity:.72;text-align:left}
.v22-reply-btn:hover{opacity:1;text-decoration:underline}
.v22-reply-quote{border-left:3px solid #8d6be0;background:rgba(105,59,209,.07);border-radius:7px;padding:5px 8px;margin:-2px 0 7px;font-size:10px;color:#756d83;max-width:100%;overflow:hidden}
.v22-msg.is-user .v22-reply-quote{border-left-color:#e8ddff;background:rgba(255,255,255,.13);color:#f1ebff}
.v22-reply-quote span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v22-reply-composer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:8px 10px;border:1px solid #e1d8f2;border-left:3px solid #7450cf;border-radius:10px;background:#faf8ff}
.v22-reply-composer>div{min-width:0}.v22-reply-composer small{display:block;font-size:9px;font-weight:800;color:#7557af;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}.v22-reply-composer span{display:block;font-size:11px;color:#514b5c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v22-reply-composer>button{width:28px;height:28px;border-radius:50%;background:#eee8fb;color:#5e478f;box-shadow:none!important;flex:0 0 28px;font-size:18px;line-height:1}

@media(min-width:761px){.v22-msg .v22-reply-btn{opacity:0}.v22-msg:hover .v22-reply-btn{opacity:.72}}
@media(max-width:760px){.v22-msg .v22-reply-btn{opacity:.72}}

/* V48 chat polish: reply composer, character-only block state and learning notices */
.v22-reply-composer{grid-column:1/-1;width:100%;box-sizing:border-box}
.v22-composer.is-blocked textarea{background:#f5f3f8;color:#999;cursor:not-allowed}
.v22-composer.is-blocked button{opacity:.45;cursor:not-allowed}
.v22-block-banner,.v22-warning-banner{margin:0 12px 10px;padding:10px 12px;border-radius:10px;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:10px}
.v22-block-banner{background:#fff0f0;border:1px solid #f1c8ce;color:#9a3b48}
.v22-warning-banner{background:#fff8e8;border:1px solid #f0dfb2;color:#85651c}
.v22-block-banner small,.v22-warning-banner small{font-weight:600;color:#777}
.v22-chat-status-actions{display:flex;align-items:center;gap:8px}
@media(max-width:760px){.v22-reply-composer{grid-column:1/-1}.v22-block-banner,.v22-warning-banner{margin:0 8px 8px;font-size:10px}}

/* V50: compact WhatsApp-style reply controls. Reply must never enlarge a message bubble. */
.v22-msg .v22-reply-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:0 !important;
  max-width:max-content !important;
  height:22px !important;
  min-height:22px !important;
  margin:7px 0 0 !important;
  padding:2px 7px !important;
  border:0 !important;
  border-radius:6px !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#7656b7 !important;
  font-size:10px !important;
  line-height:16px !important;
  font-weight:700 !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  opacity:.72;
  transform:none !important;
}
.v22-msg .v22-reply-btn:hover{opacity:1 !important;background:rgba(105,59,209,.08) !important;text-decoration:none !important}
.v22-msg.is-user .v22-reply-btn:hover{background:rgba(255,255,255,.16) !important}

/* Compact reply composer: a slim context strip, not a second message box. */
.v22-reply-composer{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  min-height:34px !important;
  box-sizing:border-box !important;
  margin:0 0 7px !important;
  padding:5px 7px !important;
  border:1px solid #e5def3 !important;
  border-left:2px solid #7450cf !important;
  border-radius:8px !important;
  background:#faf9ff !important;
}
.v22-reply-composer>div{min-width:0 !important;flex:1 !important}
.v22-reply-composer small{display:block !important;margin:0 0 1px !important;font-size:8px !important;line-height:10px !important;font-weight:800 !important;letter-spacing:.04em !important;color:#7557af !important}
.v22-reply-composer span{display:block !important;max-width:100% !important;font-size:10px !important;line-height:14px !important;color:#514b5c !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important}
.v22-reply-composer>button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  padding:0 !important;
  margin:0 !important;
  flex:0 0 22px !important;
  border:0 !important;
  border-radius:50% !important;
  background:#eee8fb !important;
  color:#5e478f !important;
  box-shadow:none !important;
  font-size:15px !important;
  line-height:20px !important;
  cursor:pointer !important;
}
.v22-reply-composer>button:hover{background:#e4dcf8 !important}

@media(max-width:760px){
  .v22-msg .v22-reply-btn{height:21px !important;min-height:21px !important;font-size:9px !important;padding:2px 6px !important;margin-top:6px !important}
  .v22-reply-composer{min-height:32px !important;padding:4px 6px !important;border-radius:7px !important}
  .v22-reply-composer span{font-size:9px !important;line-height:13px !important}
}

/* HTML hidden must win over the generic composer display rule. */
.v22-reply-composer[hidden]{
  display:none !important;
}
.v22-reply-composer:not([hidden]){
  display:flex !important;
}
.v22-reply-composer{
  margin:0 0 7px !important;
  min-height:30px !important;
  padding:4px 7px !important;
  border-radius:7px !important;
  box-sizing:border-box !important;
}
.v22-reply-composer small{font-size:7px !important;line-height:9px !important}
.v22-reply-composer span{font-size:10px !important;line-height:13px !important}
.v22-reply-composer>button{width:21px !important;height:21px !important;min-width:21px !important;min-height:21px !important;font-size:14px !important}
@media(max-width:760px){
  .v22-msg{margin-bottom:0 !important}
  .v22-msg .v22-reply-btn{bottom:-20px !important;font-size:9px !important}
}

/* V53: compact natural chat bubbles. Prevent block bubbles from stretching to the
   available chat width; each bubble should size to its content up to a readable max. */
.v22-messages .v22-msg:not(.v22-typing){
  display:table;
  width:auto;
  max-width:min(68%, 620px);
  box-sizing:border-box;
  clear:both;
}
.v22-messages .v22-msg.is-ai:not(.v22-typing){margin-right:auto;margin-left:0}
.v22-messages .v22-msg.is-user:not(.v22-typing){margin-left:auto;margin-right:0}
.v22-messages .v22-msg span{width:auto;max-width:100%;display:block}
@media(max-width:760px){
  .v22-messages .v22-msg:not(.v22-typing){max-width:82%}
}
@media(max-width:430px){
  .v22-messages .v22-msg:not(.v22-typing){max-width:88%}
}

/* V55 live discover + persistent user-space navigation */
.discover-user-content{max-width:1320px}
.user-discover-section{padding:0;background:transparent}
.user-discover-section .discover-toolbar{margin-bottom:18px}
.discover-subtitle{font-size:18px;margin:22px 0 12px;color:#24232b}
.member-discover-title{margin-top:34px}
.discover-card-meta{padding:9px 2px 2px;display:flex;flex-direction:column;gap:3px}
.discover-card-meta strong{font-size:14px;color:#24232b}
.discover-card-meta span{font-size:11px;color:#777b87}
.discover-card-meta small{font-size:10px;color:#7d61c8;font-weight:700}
.member-card .profile-image-wrap{background:#f2eff8}
.member-image-wrap:after{content:'';position:absolute;inset:auto 10px 10px auto;width:8px;height:8px;border-radius:50%;background:#a6aab5;border:2px solid #fff}
@media(max-width:760px){
  .discover-user-content{padding-top:20px}
  .discover-subtitle{font-size:17px}
  .discover-card-meta strong{font-size:13px}
}

.v22-message-time{display:block!important;font-size:9px!important;line-height:1!important;opacity:.55!important;margin-top:5px!important;font-weight:500!important}.v22-msg.is-user .v22-message-time{text-align:right}.v22-msg.is-ai .v22-message-time{text-align:left}

/* V96: 100% Rock-Solid, Static, Persistent Mobile Bottom Navigation Bar */
@media (min-width: 901px) {
  .global-mobile-user-nav,
  .user-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .user-sidebar {
    display: none !important;
  }
  .user-content {
    margin-left: 0 !important;
    padding-bottom: 84px !important;
  }
  .global-mobile-user-nav,
  .user-bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 1px solid #fae1e7 !important;
    box-shadow: 0 -4px 18px rgba(255, 75, 114, 0.09) !important;
    z-index: 9999999 !important;
    margin: 0 !important;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
    box-sizing: border-box !important;
    touch-action: manipulation !important;
  }

  .user-bottom-nav ~ .user-bottom-nav,
  .global-mobile-user-nav ~ .global-mobile-user-nav {
    display: none !important;
  }

  .user-bottom-nav .bottom-tab,
  .global-mobile-user-nav .bottom-tab,
  .user-bottom-nav a,
  .global-mobile-user-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #8c8596 !important;
    gap: 3px !important;
    height: 100% !important;
    width: 20% !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: color 0.15s ease !important;
  }

  .user-bottom-nav .bottom-tab .tab-icon,
  .global-mobile-user-nav .bottom-tab .tab-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    color: #8c8596 !important;
  }

  .user-bottom-nav .bottom-tab .tab-icon svg,
  .global-mobile-user-nav .bottom-tab .tab-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    color: inherit !important;
    stroke: currentColor !important;
  }

  .user-bottom-nav .tab-label,
  .global-mobile-user-nav .tab-label,
  .user-bottom-nav small,
  .global-mobile-user-nav small {
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    color: #8c8596 !important;
  }

  .user-bottom-nav .bottom-tab.active,
  .global-mobile-user-nav .bottom-tab.active,
  .user-bottom-nav a.active,
  .global-mobile-user-nav a.active {
    color: #ff4b72 !important;
  }

  .user-bottom-nav a.active .tab-icon,
  .global-mobile-user-nav a.active .tab-icon,
  .user-bottom-nav a.active .tab-icon svg,
  .global-mobile-user-nav a.active .tab-icon svg {
    color: #ff4b72 !important;
    stroke: #ff4b72 !important;
  }

  .user-bottom-nav a.active .tab-label,
  .global-mobile-user-nav a.active .tab-label {
    color: #ff4b72 !important;
    font-weight: 850 !important;
  }

  body {
    padding-bottom: 74px !important;
  }
}

/* V59: scheduled/typing singleton hardening */
.v22-scheduled-hidden{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
.v22-msg.v22-typing.v22-scheduled-reply{max-width:max-content!important;width:auto!important;}

/* V63: singleton typing bar is outside the scrollable message list.
   It stays fixed directly above the composer, so new user messages never push it upward. */
.v22-fixed-typing{height:34px;min-height:34px;box-sizing:border-box;display:flex;align-items:center;gap:7px;padding:0 18px;border-top:1px solid #eeeaf5;background:#fff;color:#6b5a91;position:relative;z-index:2;}
.v22-fixed-typing[hidden]{display:none!important}
.v22-fixed-typing .v22-typing-label{font-size:11px;color:#6b5a91;font-weight:600;line-height:1}
.v22-fixed-typing .v22-dots{display:inline-flex;gap:4px;align-items:center}
.v22-fixed-typing .v22-dots i{width:5px;height:5px;border-radius:50%;background:#7958c9;animation:v35dot 1.2s infinite ease-in-out}
.v22-fixed-typing .v22-dots i:nth-child(2){animation-delay:.18s}
.v22-fixed-typing .v22-dots i:nth-child(3){animation-delay:.36s}
@media(max-width:760px){.v22-fixed-typing{height:30px;min-height:30px;padding:0 10px}}

/* V65: minimal chat header/status polish. */
.v22-person-info{display:block;min-width:0}
.v22-person-title{display:flex;align-items:center;gap:9px;min-width:0}
.v22-person-title strong{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v22-presence{display:inline-flex!important;align-items:center;gap:5px;margin:0!important;font-size:11px!important;font-weight:800!important;white-space:nowrap}
.v22-presence i{display:block;width:7px;height:7px;border-radius:50%;flex:0 0 7px}
.v22-presence.is-online{color:#21844b!important}
.v22-presence.is-online i{background:#21b45d;animation:v65OnlineBlink 1.35s infinite ease-in-out}
.v22-presence.is-offline{color:#8f3d45!important}
.v22-presence.is-offline i{background:#d34d59;animation:none}
.v22-presence b{font:inherit}
@keyframes v65OnlineBlink{0%,100%{opacity:.35;box-shadow:0 0 0 0 rgba(33,180,93,0)}50%{opacity:1;box-shadow:0 0 0 3px rgba(33,180,93,.12)}}
.v22-chat-note{display:none!important}
@media(max-width:760px){.v22-person-title{gap:7px}.v22-presence{font-size:10px!important}.v22-presence i{width:6px;height:6px;flex-basis:6px}}

@media(max-width:760px){
  .v22-chat-switcher{width:100%;margin:0 0 6px;padding:5px 6px;border-radius:11px;gap:5px;}
  .v22-chat-switcher-back{font-size:10px;padding:5px 6px;}
  .v22-chat-switcher-list{gap:5px;}
  .v22-chat-switcher-item{padding:4px 6px;max-width:118px;border-radius:8px;}
  .v22-chat-switcher-avatar{width:20px;height:25px;border-radius:6px;}
  .v22-chat-switcher-name{font-size:10px;}
}

/* V88: calmer, responsive conversation surface; avatar rendering stays unchanged. */
.v22-chat-body{background:radial-gradient(circle at 82% 0%,#eee7fc 0,#f8f6fb 36%,#f4f1f8 100%)}
.v22-chat-shell{width:min(1000px,100%)}
.v22-chat-head{background:rgba(255,255,255,.96);border-color:#e8e0f2;box-shadow:0 12px 36px rgba(55,30,99,.07);gap:14px}
.v22-back{color:#6140a6;transition:color .2s ease}
.v22-back:hover{color:#3c217a}
.v22-credits{background:#f6f1ff;border-color:#e7ddfa;color:#5730aa;box-shadow:inset 0 1px 0 #fff}
.v22-chat-card{border-color:#e8e0f2;box-shadow:0 20px 54px rgba(55,30,99,.085)}
.v22-messages{background-color:#fcfbfe;background-image:radial-gradient(#eae5f3 0.7px,transparent 0.7px);background-size:23px 23px;scrollbar-color:#d8c9ee transparent;scrollbar-width:thin}
.v22-messages .v22-msg.is-ai:not(.v22-typing){background:#fff;border:1px solid #e9e3f0;box-shadow:0 3px 14px rgba(50,25,90,.055)}
.v22-messages .v22-msg.is-user:not(.v22-typing){background:linear-gradient(140deg,#7648d5,#6135c2);box-shadow:0 6px 18px rgba(91,46,179,.18)}
.v22-msg{line-height:1.52}
.v22-message-time{font-variant-numeric:tabular-nums}
.v22-message-status{font-size:12px!important;letter-spacing:-2px!important;opacity:1!important;line-height:1.1!important;margin:4px 2px 0!important}
.v22-message-status.is-sent,.v22-message-status.is-delivered{color:#d8c7fa!important}
.v22-message-status.is-seen{color:#59e298!important;text-shadow:0 0 1px rgba(0,0,0,.2)}
.v22-composer-wrap{background:#fff;border-top-color:#eee7f5;padding:14px 18px 12px}
.v22-composer textarea{background:#fbfaff;border-color:#ded5ed;border-radius:15px;transition:border-color .2s,box-shadow .2s}
.v22-composer textarea:focus{background:#fff;border-color:#8d6bd8;box-shadow:0 0 0 4px rgba(116,72,213,.11)}
.v22-composer button{background:linear-gradient(145deg,#7750d4,#5c32b6);box-shadow:0 8px 17px rgba(92,50,182,.2);transition:transform .15s,box-shadow .15s}
.v22-composer button:hover{transform:translateY(-1px);box-shadow:0 11px 21px rgba(92,50,182,.26)}
.v22-composer button:active{transform:translateY(0)}
.v22-fixed-typing{background:#fdfbff;border-top-color:#eee7f5}
@media(max-width:760px){
 .v22-chat-content{padding:8px 7px 70px!important}
 .v22-chat-head{height:68px;gap:8px;padding:8px 10px}
 .v22-messages{height:calc(100dvh - 235px);min-height:300px;padding:18px 12px 12px}
 .v22-composer-wrap{padding:10px 10px max(9px,env(safe-area-inset-bottom))}
 .v22-composer button{min-height:48px}
}
@media(prefers-reduced-motion:reduce){.v22-composer button,.v22-composer textarea{transition:none}.v22-messages{scroll-behavior:auto}}

/* V92: Modern Snug Chat Bubbles & Visual Style */
.v22-messages{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  padding:20px 22px 16px !important;
  align-items:flex-start !important;
  background:radial-gradient(circle at 50% 0%, #f9f7fd 0%, #f4f0fa 100%) !important;
  background-image:radial-gradient(#dfd7ec 0.8px, transparent 0.8px) !important;
  background-size:22px 22px !important;
  scroll-behavior:smooth !important;
}
.v22-messages::before{display:none !important;}

.v22-messages .v22-msg:not(.v22-typing){
  position:relative !important;
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:flex-end !important;
  justify-content:flex-end !important;
  width:fit-content !important;
  max-width:min(76%, 440px) !important;
  padding:8px 13px 7px 13px !important;
  border-radius:18px !important;
  font-size:13.5px !important;
  line-height:1.45 !important;
  word-break:break-word !important;
  box-sizing:border-box !important;
  gap:3px 8px !important;
  margin:0 !important;
  flex:0 0 auto !important;
  align-self:flex-start !important;
  height:auto !important;
  min-height:0 !important;
}

.v22-messages .v22-msg.is-user:not(.v22-typing){
  align-self:flex-end !important;
  margin-left:0 !important;
  background:linear-gradient(135deg, #ff4b72 0%, #f43f5e 50%, #e11d48 100%) !important;
  color:#ffffff !important;
  border-bottom-right-radius:4px !important;
  box-shadow:0 4px 16px rgba(255, 75, 114, 0.28), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.v22-messages .v22-msg.is-ai:not(.v22-typing){
  align-self:flex-start !important;
  background:#ffffff !important;
  border:1px solid #fce4ec !important;
  color:#1c1924 !important;
  border-bottom-left-radius:4px !important;
  box-shadow:0 3px 12px rgba(255, 75, 114, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.v22-messages .v22-msg>span{
  display:inline !important;
  width:auto !important;
  max-width:100% !important;
  flex:0 1 auto !important;
  white-space:pre-wrap !important;
  word-break:break-word !important;
  line-height:1.45 !important;
  color:inherit !important;
}

.v22-messages .v22-msg .v22-message-time{
  display:inline-block !important;
  font-size:10px !important;
  line-height:1.1 !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 auto !important;
  font-variant-numeric:tabular-nums !important;
  align-self:flex-end !important;
  opacity:0.72 !important;
}
.v22-messages .v22-msg.is-user .v22-message-time{
  color:rgba(255, 255, 255, 0.85) !important;
}
.v22-messages .v22-msg.is-ai .v22-message-time{
  color:#8c859c !important;
}

.v22-messages .v22-msg .v22-message-status{
  display:inline-block !important;
  font-size:11px !important;
  line-height:1.1 !important;
  letter-spacing:-1.5px !important;
  margin:0 0 0 -2px !important;
  padding:0 !important;
  flex:0 0 auto !important;
  align-self:flex-end !important;
  font-weight:800 !important;
}
.v22-messages .v22-msg .v22-message-status.is-sent,
.v22-messages .v22-msg .v22-message-status.is-delivered{
  color:rgba(255, 255, 255, 0.75) !important;
}
.v22-messages .v22-msg .v22-message-status.is-seen{
  color:#38ef7d !important;
  text-shadow:0 0 6px rgba(56, 239, 125, 0.4) !important;
}

@media(max-width:760px){
  .v22-messages{
    padding:12px 10px 10px !important;
    gap:8px !important;
  }
  .v22-messages .v22-msg:not(.v22-typing){
    max-width:82% !important;
    padding:7px 11px 6px 11px !important;
    font-size:13px !important;
  }
}
@media(max-width:430px){
  .v22-messages .v22-msg:not(.v22-typing){max-width:86% !important;}
}
.v22-avatar{position:relative;display:grid;place-items:center}
.v22-avatar-initial{font-size:22px;font-weight:800;color:#ff4b72;line-height:1}
.v22-avatar img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.profile-image-wrap>.profile-placeholder,.profile-image-wrap>img,.profile-detail-photo>.profile-placeholder,.profile-detail-photo>img{position:absolute;inset:0;width:100%;height:100%}
.profile-image-wrap>.online-dot,.profile-detail-photo>.online-dot{z-index:2}
.inbox-avatar{position:relative;overflow:hidden;flex:none}
.inbox-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* V93: Strict 4:5 Photo Aspect Ratio & Dating UI Enhancements */
.profile-image-wrap,
.profile-card-minimal .profile-image-wrap,
.profile-detail-photo,
.hero-dating-card-preview {
  aspect-ratio: 4 / 5 !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #fdf2f4 !important;
}
.profile-image-wrap img,
.profile-card-minimal .profile-image-wrap img,
.profile-detail-photo img,
.hero-dating-card-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 4 / 5 !important;
  display: block !important;
}

/* User Account Profile Avatar (Fixed 4:5 Ratio) */
.profile-edit-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 18px 20px !important;
  background: #fff8f9 !important;
  border: 1px solid #ffd1dc !important;
  border-radius: 18px !important;
  margin-bottom: 24px !important;
}
.user-photo-preview {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  aspect-ratio: 4 / 5 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #ffe4ea !important;
  border: 2px solid #ffb3c1 !important;
  flex: 0 0 96px !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 4px 14px rgba(255, 75, 114, 0.12) !important;
  position: relative !important;
}
.user-photo-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Dating App Hero Section */
.hero-dating {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 24px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-dating-content {
  max-width: 620px;
}
.hero-dating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff0f3;
  color: #ff4b72;
  border: 1px solid #ffd1dc;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}
.hero-dating h1 {
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #1c1924;
  margin: 0 0 18px 0;
}
.hero-dating h1 span {
  background: linear-gradient(135deg, #ff4b72, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-dating p {
  font-size: 17px;
  line-height: 1.65;
  color: #6d6678;
  margin: 0 0 28px 0;
}
.hero-dating-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-dating-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #7d7788;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item svg {
  color: #ff4b72;
}

/* Hero Dating Visual Card */
.hero-dating-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-dating-card-preview {
  width: 320px;
  max-width: 100%;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(255, 75, 114, 0.22);
  border: 2px solid #ffffff;
}
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 25, 0.85) 0%, rgba(20, 10, 25, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  border-radius: 22px;
}
.hero-card-overlay h3 {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}
.hero-card-overlay p {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}
.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 75, 114, 0.9);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  width: fit-content;
}

/* Gender Filter Pills */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.gender-pills {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(255, 75, 114, 0.05);
}
.gender-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #6d6678;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.gender-pill:hover {
  color: var(--primary);
}
.gender-pill.active {
  background: linear-gradient(135deg, #ff4b72, #ff6b8b);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(255, 75, 114, 0.35);
}

/* Verified Badge in Profile Grid & Headers: Clean Emerald Green */
.verified-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  color: #10b981 !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin-left: 4px !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}
.verified-badge svg {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  fill: #10b981 !important;
  vertical-align: middle !important;
}

/* User Space Detailed Form */
.form-grid-detailed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 680px) {
  .form-grid-detailed {
    grid-template-columns: 1fr;
  }
  .hero-dating {
    grid-template-columns: 1fr;
    padding: 30px 16px 40px;
    gap: 30px;
  }
  .hero-dating h1 {
    font-size: 38px;
  }
  .hero-dating-visual {
    display: none;
  }
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  .gender-pills {
    display: flex;
    justify-content: stretch;
  }
  .gender-pill {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Filter Hiding Guarantee */
.profile-card.is-filtered-hidden {
  display: none !important;
}

/* Sidebar User Profile Footer (Soft Pink Theme) */
.user-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #fae1e7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff5f7;
  border: 1px solid #ffd1dc;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(255, 75, 114, 0.06);
  text-decoration: none;
  transition: all 0.18s ease;
}
.sidebar-user-pill:hover {
  background: #ffeef2;
  border-color: #ffb8c8;
}
.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4b72, #ff758c);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 850;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(255, 75, 114, 0.25);
}
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}
.sidebar-user-name {
  font-size: 13px;
  font-weight: 800;
  color: #1c1924;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.sidebar-user-credits {
  font-size: 11px;
  font-weight: 700;
  color: #ff4b72;
  line-height: 1.2;
}
.user-nav-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #8c8596;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}
.user-nav-logout:hover {
  background: #fff0f3;
  color: #ff4b72;
}

/* V99: Chat Header Precision Alignment & Cross-Chat Toast Notifications */
.v22-chat-head {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 16px !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e8e0f2 !important;
  border-bottom: 1px solid #fae1e7 !important;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
  z-index: 10 !important;
}
.v22-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #6140a6 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
.v22-person {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-decoration: none !important;
  color: inherit !important;
}
.v22-avatar {
  width: 38px !important;
  height: 48px !important;
  aspect-ratio: 4 / 5 !important;
  border-radius: 10px !important;
  background: #eee9f7 !important;
  flex: 0 0 38px !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px rgba(255, 75, 114, 0.12) !important;
}
.v22-avatar-initial {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ff4b72 !important;
  line-height: 1 !important;
}
.v22-avatar img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.v22-person-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}
.v22-person-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.v22-person-title strong {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #1c1924 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}
.v22-credits {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #5730aa !important;
  background: #f6f1ff !important;
  border: 1px solid #e7ddfa !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
}
@media (max-width: 760px) {
  body.v22-chat-body .v22-chat-head {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 0 !important;
  }
  .v22-avatar {
    width: 32px !important;
    height: 40px !important;
    border-radius: 8px !important;
    flex: 0 0 32px !important;
  }
  .v22-avatar-initial {
    font-size: 16px !important;
  }
  .v22-person {
    gap: 8px !important;
  }
  .v22-person-title strong {
    font-size: 13.5px !important;
  }
  .v22-credits {
    font-size: 10px !important;
    padding: 5px 9px !important;
  }
}

/* Cross-Chat Clickable Incoming Message Toast */
.connecta-cross-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  width: min(440px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #ffd6e0;
  border-left: 4px solid #ff4b72;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(255, 75, 114, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99999;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.connecta-cross-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.connecta-cross-toast:hover {
  box-shadow: 0 16px 42px rgba(255, 75, 114, 0.25), 0 6px 16px rgba(0, 0, 0, 0.1);
}
.connecta-cross-toast .toast-avatar {
  width: 38px;
  height: 48px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: #fff0f3;
  overflow: hidden;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(255, 75, 114, 0.12);
}
.connecta-cross-toast .toast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.connecta-cross-toast .toast-avatar-init {
  font-size: 16px;
  font-weight: 800;
  color: #ff4b72;
}
.connecta-cross-toast .toast-body {
  flex: 1 1 auto;
  min-width: 0;
}
.connecta-cross-toast .toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.connecta-cross-toast .toast-sender {
  font-size: 13px;
  font-weight: 800;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.connecta-cross-toast .toast-badge {
  font-size: 10px;
  font-weight: 800;
  color: #ff4b72;
  background: #fff0f3;
  padding: 1px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.connecta-cross-toast .toast-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.connecta-cross-toast .toast-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  flex: 0 0 auto;
}
.connecta-cross-toast .toast-close:hover {
  color: #1e1b4b;
  background: #f1f5f9;
}

